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.5 KiB

API Reference: DNS Tunneling Detection with Zeek

Detection Heuristics

Indicator Threshold Score
Shannon entropy > 3.5 +40
Avg subdomain length > 30 chars +30
Tunnel query type ratio > 50% TXT/NULL/CNAME +20
High query volume > 500 queries +10

Zeek dns.log Fields

Index Field Description
0 ts Timestamp
2 id.orig_h Source IP
4 id.resp_h DNS server
9 query Query name
13 qtype_name Query type (A, TXT, etc.)
21 answers Response answers

DNS Tunneling Tools (for detection reference)

Tool Encoding Query Type
iodine Base128 NULL, TXT
dnscat2 Hex/Base64 CNAME, TXT, MX
dns2tcp Base64 TXT
Cobalt Strike Hex A, AAAA, TXT

Shannon Entropy Reference

Data Type Entropy
Normal hostnames 2.0 - 3.0
Base32 encoded 3.5 - 4.0
Base64 encoded 4.0 - 5.0
Hex encoded 3.5 - 4.0

Python Libraries

Library Use
math Entropy calculation
csv TSV log parsing
collections.defaultdict Domain aggregation
dpkt PCAP DNS parsing
dnslib DNS packet construction

Zeek Scripts for DNS Analysis

@load base/protocols/dns
redef DNS::max_pending_queries = 1000;
event dns_request(c: connection, msg: dns_msg, query: string, qtype: count) {
    if (|query| > 50) print fmt("Long query: %s", query);
}