netflows
Network flow extractor that analyzes pcap/pcapng files to identify outbound connections with automatic DNS hostname resolution. Use when you need to enumerate network destinations, identify what hosts a device communicates with, or map IP addresses to hostnames from packet captures.
What this skill does
# NetFlows - Network Flow Extractor with DNS Resolution You are helping the user extract and analyze network flows from packet capture files using the netflows tool. ## Tool Overview NetFlows analyzes pcap/pcapng files to: - Extract unique TCP and UDP flows (destination IP:port pairs) - Build a DNS resolution table from DNS responses in the capture - Automatically resolve IP addresses to hostnames where possible - Filter flows by source IP address - Generate a summary of all network destinations contacted This is particularly useful for IoT device analysis to understand what external services a device communicates with. ## Instructions When the user asks to analyze network flows, extract destinations, or identify what hosts a device talks to: 1. **Gather requirements**: - Get the pcap/pcapng file path(s) - Ask if they want to filter by a specific source IP (e.g., the IoT device's IP) - Determine preferred output format 2. **Execute the analysis**: - Use the netflows command from the iothackbot bin directory 3. **Interpret results**: - Explain resolved hostnames and their significance - Note any unresolved IPs that may need further investigation - Highlight interesting patterns (cloud services, P2P connections, etc.) ## Usage ### Basic Analysis Analyze a pcap file showing all flows: ```bash netflows capture.pcap ``` ### Filter by Source IP Extract flows from a specific device: ```bash netflows capture.pcap --source-ip 192.168.1.100 ``` ### Multiple Files Analyze multiple capture files: ```bash netflows capture1.pcap capture2.pcapng ``` ### Output Formats ```bash # Human-readable colored output (default) netflows capture.pcap --format text # Machine-readable JSON netflows capture.pcap --format json # Minimal output - just hostname:port list netflows capture.pcap --format quiet ``` ## Parameters **Input:** - `pcap_files`: One or more pcap/pcapng files to analyze (required) **Filtering:** - `-s, --source-ip`: Filter flows originating from this IP address **Output:** - `--format text|json|quiet`: Output format (default: text) - `-v, --verbose`: Enable verbose output ## Examples Analyze IoT device traffic: ```bash netflows iot-capture.pcap --source-ip 192.168.1.50 ``` Get just the flow list for scripting: ```bash netflows capture.pcap -s 10.0.0.100 --format quiet ``` JSON output for parsing: ```bash netflows capture.pcap --format json | jq '.data[].flow_summary' ``` ## Output Information **Text format includes:** - DNS mappings discovered (IP -> hostname) - TCP flows with hostname resolution status - UDP flows with hostname resolution status - Consolidated flow summary (hostname:port or ip:port) **JSON format includes:** - `dns_mappings`: Dictionary of IP to hostname mappings - `tcp_flows`: List of TCP flow objects with hostname, ip, port - `udp_flows`: List of UDP flow objects with hostname, ip, port - `flow_summary`: List of "hostname:port" or "ip:port" strings - `dns_queries`: List of DNS domains queried - `total_packets`: Number of packets analyzed ## Use Cases 1. **IoT Device Profiling**: Identify all cloud services and endpoints an IoT device communicates with 2. **Network Forensics**: Enumerate destinations contacted during an incident 3. **Privacy Analysis**: Discover telemetry and tracking endpoints 4. **Firewall Rule Creation**: Generate allowlist/blocklist of endpoints 5. **Malware Analysis**: Identify C2 servers and exfiltration destinations ## Important Notes - The tool resolves hostnames using DNS responses found within the same pcap file - IPs without corresponding DNS lookups in the capture will show as "unresolved" - Supports both pcap and pcapng formats - Does not require elevated privileges (unlike live capture tools) - Large pcap files may take time to process
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.