What had to change.
Response-side metadata missed the behavior that actually distinguishes DNS exfiltration. The original feature design detected only 18.5% of malicious windows at the target operating point.
02 · DETECTION ENGINEERING · DNS
COMPLETE · VALIDATEDA leakage-audited Random Forest pipeline built around windowed query-name behavior, validated at a fixed 5% false-positive rate.
A visual explanation of the system's core behavior.
Response-side metadata missed the behavior that actually distinguishes DNS exfiltration. The original feature design detected only 18.5% of malicious windows at the target operating point.
Windowed query-name features capture entropy, label shape, volume, and timing behavior. Live traffic is captured with tcpdump and parsed through Scapy into the same schema used for training.
The result was tested against duplicate-window leakage, a permutation null, and leave-one-payload-type-out validation before being reported on the held-out set.
IMPLEMENTATION NOTES
Want the code and full documentation?
View source on GitHub ↗