Arkime Network Traffic Analysis

•
4.1k
•

Automates network traffic analysis and full packet capture querying using the Arkime API to detect sophisticated security threats.

This skill enables AI agents to interface directly with Arkime (formerly Moloch) for high-fidelity network forensics and threat hunting. By leveraging the Arkime API v3, the skill automates the process of searching sessions, downloading PCAP data, and analyzing connection patterns for indicators of compromise. It is designed to identify complex threats such as C2 beaconing, DNS tunneling, and TLS certificate anomalies, making it an essential tool for security operations centers (SOCs) looking to integrate AI into their incident response and monitoring workflows while maintaining alignment with NIST CSF and MITRE ATT&CK frameworks.

Key Features

01DNS tunneling identification through query length and frequency statistics
02Full packet capture (FPC) session querying via Arkime API v3
03Forensic PCAP extraction for deep-dive packet-level investigation
04TLS certificate anomaly detection and malicious issuer flagging
05Automated C2 beaconing detection with jitter and interval analysis
064,121 GitHub stars

Use Cases

01Proactive threat hunting for low-and-slow command-and-control communication
02Monitoring network traffic for unauthorized DNS-based data exfiltration
03Automating incident response by programmatically retrieving network sessions for suspicious IPs
name implementing-network-traffic-analysis-with-arkime
description Deploy and query Arkime (formerly Moloch) for full packet capture network traffic analysis. Uses the Arkime API v3 to search sessions, download PCAPs, analyze connection patterns, detect beaconing behavior, and identify suspicious network flows. Monitors DNS queries, HTTP traffic, and TLS certificate anomalies across captured traffic.
domain cybersecurity
subdomain network-security
tags
implementing
network
traffic
analysis
version 1.0
author mahipal
license Apache-2.0
nist_csf
PR.IR-01
DE.CM-01
ID.AM-03
PR.DS-02

Implementing Network Traffic Analysis with Arkime

When to Use

  • When deploying or configuring implementing network traffic analysis with arkime capabilities in your environment
  • When establishing security controls aligned to compliance requirements
  • When building or improving security architecture for this domain
  • When conducting security assessments that require this implementation

Prerequisites

  • Familiarity with network security concepts and tools
  • Access to a test or lab environment for safe execution
  • Python 3.8+ with required dependencies installed
  • Appropriate authorization for any testing activities

Instructions

  1. Install dependencies: pip install requests
  2. Configure Arkime viewer URL and credentials.
  3. Run the agent to query Arkime sessions and analyze traffic:
    • Search sessions by IP, port, protocol, or expression
    • Download PCAP data for forensic analysis
    • Detect C2 beaconing via connection interval analysis
    • Identify DNS tunneling through query length statistics
    • Flag connections to known-bad TLS certificate issuers
python scripts/agent.py --arkime-url https://arkime.local:8005 --user admin --password secret --output arkime_report.json

Examples

Beaconing Detection

Source: 10.1.2.50 -> 185.220.101.34:443
Sessions: 288 over 24 hours
Avg interval: 300s, Jitter: 4.2%
Verdict: HIGH confidence C2 beaconing (jitter < 5%)