Claude 24f816b6a3
Consolidate 22 sibling repos into layered organism structure
Place useful parts of the surrounding repos into sica-fondt by layer, per the
body model (Ada = membrane; brain/endocrine/capabilities/knowledge non-Ada):

- brain/        LLM reasoning + providers (dapr, hermes, MoMoA)
- capabilities/ REPRAG sidecars: hermes tools/skills, dapr tools, parallel
                dispatch, A51 channels, and the OSINT cluster
- knowledge/    LORAG corpus: 754 cyber-skills, agency personas, secure-coding,
                MITRE ATT&CK data
- reference/    defensive threat-reference (C3, shhbruh doc) + AdaYaml parser

License handling: AGPL sources (worldosint, advanced_evolution, mercury,
Reticulum) and GPL DeTTECT are SPEC-only clean-room/port descriptions — no
copyleft code copied. MIT/Apache/data parts copied as working trees.

Safety: shhbruh escape/persistence material and C3 covert-C2 kept as reference
only, not wired into the running organism. See CONSOLIDATION.md.

https://claude.ai/code/session_01UehUqEXXJJCsHoA4voCU5c
2026-06-10 06:53:01 +00:00

1.6 KiB

API Reference — Performing Network Packet Capture Analysis

Libraries Used

  • scapy: PCAP parsing, protocol dissection, packet analysis
  • subprocess: Execute tshark for HTTP extraction and conversation analysis
  • collections.Counter: Traffic statistics aggregation

CLI Interface

python agent.py analyze --pcap capture.pcap
python agent.py http --pcap capture.pcap
python agent.py suspicious --pcap capture.pcap
python agent.py conversations --pcap capture.pcap

Core Functions

analyze_pcap_scapy(pcap_file) — Protocol and IP statistics

Returns: protocol distribution, top source/dest IPs, top destination ports, DNS queries.

extract_http_requests(pcap_file) — HTTP request extraction via tshark

Extracts: source/dest IP, method, host, URI, user agent from HTTP requests.

detect_suspicious_traffic(pcap_file) — Anomaly detection

Detects: port scanning (>=20 SYN to same target), DNS exfiltration (queries >60 chars), suspicious ports (4444, 31337, 6667, etc.).

conversation_analysis(pcap_file) — TCP conversation summary

Uses tshark -z conv,tcp for conversation-level statistics.

Suspicious Port Detection

4444, 5555, 6666, 8888, 9999, 1234, 31337, 12345, 6667, 6697

Detection Categories

Finding Severity Trigger
PORT_SCAN HIGH >=20 SYN packets to same target
DNS_EXFILTRATION HIGH DNS queries >60 characters
SUSPICIOUS_PORTS MEDIUM Traffic on known C2 ports

Dependencies

pip install scapy

System: tshark (optional, for HTTP and conversation analysis)