A standalone web application for analyzing PCAP files using Suricata and other files using YARA. View network alerts and file alerts, browse network metadata (DNS, HTTP, TLS, flows), extract ASCII transcripts, view per-packet hexdumps, and carve individual streams — all from a single-page UI.
The welcome screen allows you to upload a file or load a previous analysis:
After analysis, you can view network alerts, file alerts, network metadata, and extract streams:
When you find something interesting, you can drill into the row in the data table at the bottom. This will allow you to see the ASCII transcript:
You can also select the hexdump view:
To slice and dice your data, expand the Aggregation Tables section and click on values that you want to filter for:
- Quick Demo
- Quick Installation
- Manual Installation
- Usage
- Data Storage
- Configuration
- Security
- Development
- Testing
- License
The fastest way to try OhMyPCAP is with our online demo:
https://securityonion.net/pcap
Please note the following:
- this is a cloud-based service so please do not share any sensitive files or any other sensitive info
- free accounts are limited to 60 minutes of usage before the instance is automatically terminated
- if you need a private or permanent instance of OhMyPCAP, then you can proceed to the next section to perform a local installation of OhMyPCAP
For a private or permanent instance of OhMyPCAP, most folks will want to use our pre-built container image. We publish a container image that is compatible with both Docker and Podman. If you prefer not to use a pre-built image, then there are other options shown below.
If you are running the latest version of OhMyDebn, then you can just press Ctrl + Alt + P to automatically install and run OhMyPCAP and then you can skip to the Usage section below.
If you prefer docker run, then here are the steps you can use on Debian 13 or compatible distros:
# Install and configure docker.io
sudo apt update && sudo apt -y install docker.io && sudo usermod -aG docker $USER
# Create data directory
mkdir -p ~/ohmypcap-data
# Start OhMyPCAP
newgrp docker -c "docker run -v ~/ohmypcap-data:/data -p 8000:8000 ghcr.io/dougburks/ohmypcap:main"If you prefer to use docker compose, then here are the steps you can use on Debian 13 or compatible distros:
# Install and configure docker.io and docker-compose
sudo apt update && sudo apt -y install docker.io docker-compose && sudo usermod -aG docker $USER
# Download docker-compose.yml
wget https://raw.githubusercontent.com/dougburks/ohmypcap/refs/heads/main/docker-compose.yml
# Create data directory
mkdir -p ohmypcap-data
# Start OhMyPCAP (add the -d option to run in the background if desired)
newgrp docker -c "docker compose up"To stop:
docker compose downTo restart:
docker compose restartOur container image bakes in the Emerging Threats Open ruleset at build time, so it works without internet access. To copy to an isolated network, pull and save the container image using an internet-connected machine:
docker pull ghcr.io/dougburks/ohmypcap:main
docker save ghcr.io/dougburks/ohmypcap:main > ohmypcap.tarThen transfer ohmypcap.tar to the isolated network via USB or other media. On the air-gapped machine:
docker load < ohmypcap.tar
docker run -v ~/ohmypcap-data:/data -p 8000:8000 ghcr.io/dougburks/ohmypcap:mainIf you prefer to build your own Docker image, you can clone this github repo and then build the image:
git clone https://github.com/dougburks/ohmypcap
cd ohmypcap
docker build -t ohmypcap .
mkdir -p ~/ohmypcap-data
docker run -v ~/ohmypcap-data:/data -p 8000:8000 ohmypcapIf you prefer Podman (rootless, daemonless), then here are the steps you can use on Debian 13 or compatible distros:
# Install podman
sudo apt update && sudo apt -y install podman
# Create data directory
mkdir -p ~/ohmypcap-data
# Start OhMyPCAP
podman run --userns=keep-id --user $(id -u):$(id -g) \
-v $HOME/ohmypcap-data:/data -p 8000:8000 \
ghcr.io/dougburks/ohmypcap:mainNo usermod or newgrp is needed since Podman runs rootless by default. Use $HOME instead of ~ for the volume mount to avoid path expansion issues. The --userns=keep-id --user $(id -u):$(id -g) flags ensure files written to ~/ohmypcap-data are owned by your host user.
If you prefer to use podman compose, then here are the steps you can use on Debian 13 or compatible distros:
# Install and configure podman and podman-compose
sudo apt update && sudo apt -y install podman podman-compose
# Download docker-compose.yml
wget https://raw.githubusercontent.com/dougburks/ohmypcap/refs/heads/main/docker-compose.yml
# Create data directory
mkdir -p ohmypcap-data
# Start OhMyPCAP (add the -d option to run in the background if desired)
podman compose upTo stop:
podman compose downTo restart:
podman compose restartOur container image bakes in the Emerging Threats Open ruleset at build time, so it works without internet access. To copy to an isolated network, pull and save the container image using an internet-connected machine:
podman pull ghcr.io/dougburks/ohmypcap:main
podman save ghcr.io/dougburks/ohmypcap:main > ohmypcap.tarThen transfer ohmypcap.tar to the isolated network via USB or other media. On the air-gapped machine:
podman load < ohmypcap.tar
podman run --userns=keep-id --user $(id -u):$(id -g) \
-v $HOME/ohmypcap-data:/data -p 8000:8000 ghcr.io/dougburks/ohmypcap:mainIf you prefer to build your own Podman image, you can clone this github repo and then build the image:
git clone https://github.com/dougburks/ohmypcap
cd ohmypcap
podman build -t ohmypcap .
mkdir -p ~/ohmypcap-data
podman run --userns=keep-id --user $(id -u):$(id -g) \
-v $HOME/ohmypcap-data:/data -p 8000:8000 ohmypcapOhMyPCAP will check for internet access, update its NIDS rules if online (or use the baked-in rules if offline), and then prompt you to open http://localhost:8000/ohmypcap.html in your browser.
To stop a docker run or podman run instance, just press Ctrl-C in the terminal window or close the terminal window altogether. For docker compose or podman compose, use docker compose down or podman compose down.
If you prefer to run without Docker or Podman, then you will need these prerequisites:
- Python 3 (stdlib only — no pip packages required)
- Suricata — for PCAP analysis and rule-based alerting
- suricata-update — for downloading/updating Suricata rules (internet access required; the app will warn and continue without rules if offline)
- tcpdump — for stream carving (
/api/download-stream) and hexdump extraction (/api/hexdump-stream) - tshark — for ASCII transcript extraction (
/api/ascii-stream) - yara (optional) — for scanning extracted files. If installed, OhMyPCAP automatically downloads YARA rules on first run (or uses baked-in rules in Docker). If missing, file extraction and File Alerts are skipped.
Once you have the prerequisites, then you can clone this github repo and run the server:
python3 ohmypcap.pyThen open http://localhost:8000/ohmypcap.html in your browser.
| Variable | Default | Description |
|---|---|---|
DATA_DIR |
~/ohmypcap-data |
Directory for analyzed files and Suricata config |
BIND_ADDRESS |
127.0.0.1 |
Address to bind the HTTP server to |
PORT |
8000 |
HTTP server port |
Environment variables override the hardcoded defaults at startup.
Once you've connected to OhMyPCAP in your browser, here are some of the things you can do.
- Upload a file — click "Choose File" and select a
.pcap,.pcapng,.cap,.trace, or any other file type (or a.zipcontaining one). PCAP files get full Suricata network analysis; non-PCAP files get YARA-only scanning - Load from URL — paste a URL to a file and press Enter (or click Go). Password-protected zips from
malware-traffic-analysis.netare auto-decrypted using the date-based password format - Reopen a previous analysis — previously analyzed files are listed on the welcome screen
- Re-analyze a previous file — click the 🔄 button next to any previous file to delete its analysis and re-run Suricata (for PCAPs) or YARA (for non-PCAPs). Rules are updated first if internet access is available
After analysis completes, the UI displays:
- Stats Grid — clickable cards showing event counts by type (Alerts, DNS, HTTP, TLS, Flows, etc.)
- Sankey Diagram — expand the collapsible heading to visualize network flow relationships (Source IP → Dest IP → Dest Port)
- Aggregation Tables — frequency counts for each column; click a value to filter
- Data Table — sortable table with expandable detail rows showing full event JSON, ASCII transcripts, and hexdumps
- Search — full-text search across all event data using SQLite FTS5 (falls back to
LIKEif FTS5 is unavailable) - Filtering — apply filters by clicking aggregation values; filter chips show active filters; filters persist across all tabs and the Sankey diagram
Click any row in a data table to expand it, then:
- ASCII Transcript — view decoded TCP/UDP payload as readable text
- Hexdump — view per-packet hex dumps with collapsible packet headers
- Download PCAP — carve that specific stream into a standalone
.pcapfile
All analyzed files are stored in ~/ohmypcap-data/. Each analysis gets a subdirectory named by its MD5 hash containing:
~/ohmypcap-data/
suricata/
suricata.yaml # Copied from /etc/suricata/, rule path rewritten
rules/
suricata.rules # Downloaded by suricata-update (online) or copied from baked-in image (offline/air-gapped)
disable.conf
<md5>/
<original-filename> # The uploaded file
eve.json # Suricata's JSON output
events.db # SQLite index (auto-created after analysis)
name.txt # Human-readable display name
filestore/ # Extracted files from Suricata file-store
yara_matches.json # YARA scan results (auto-created after analysis)
| Constant | Default | Description |
|---|---|---|
PORT |
8000 |
HTTP server port |
DATA_DIR |
~/ohmypcap-data |
Root directory for analyzed files |
MAX_UPLOAD_SIZE |
1000 MB |
Maximum file upload size |
MAX_EVE_SIZE |
1000 MB |
Maximum eve.json size |
MAX_TRANSCRIPT_SIZE |
100,000 chars |
Maximum ASCII transcript / hexdump length |
Suricata config is auto-generated from /etc/suricata/ on first run. Rules are downloaded via suricata-update when internet access is available; otherwise, the app uses baked-in rules (Docker/Podman) or warns and continues without rules (source).
- Binds to
127.0.0.1only (no external access) - No CORS wildcard
- Input validation on all endpoints (IP, port, MD5, path traversal)
- File type detection (PCAPs get full Suricata analysis; non-PCAPs get YARA-only scanning)
- URL safety checks (blocks localhost, private IPs, resolves hostname)
- Zip-slip prevention on archive extraction
- Generic error messages (no internal details leaked)
See docs/ARCHITECTURE.md for a detailed overview of how the pieces fit together.
See docs/API.md for the full API reference.
See docs/FILTERING.md for details on the filtering system.
See docs/AGENTS.md for agent-focused guidance on maintaining OhMyPCAP, including updating vendored dependencies.
# Server tests
python3 -m unittest tests.test_server -v
# UI tests
python3 -m unittest tests.test_ui -v
# All tests
python3 -m unittest discover -vSee LICENSE




