# Odin by Brandefense - Monograph 37 / 46 Suricata 7.x Detection Suite
# Coverage: Open HTTP directory listings exposing Git or Python virtual-environment
#           artifacts, and outbound HTTP POST exfiltration of Chromium DPAPI Local State
#           keys
# Classification: TLP:CLEAR

alert http $EXTERNAL_NET any -> $HOME_NET any (msg:"ODIN [R37] Open HTTP Directory Listing Exposing Git Virtualenv or Script Artifacts"; flow:established,to_client; http.stat_code; bsize:3; content:"200"; http.response_body; bsize:>48; content:"Directory listing for /"; fast_pattern; pcre:"/href=\x22[^\x22]*(\.git\/|\.venv\/|venv\/|\.ps1\x22|\.hta\x22|\.db\x22)/i"; classtype:attempted-recon; sid:9537001; rev:2; metadata:created_at 2026_11_20, deployment perimeter, tactic resource_development;)

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"ODIN [R37] Outbound HTTP POST Exfiltration of Chromium DPAPI Local State Key"; flow:established,to_server; http.method; bsize:4; content:"POST"; http.request_body; bsize:>32; content:"os_crypt"; fast_pattern; content:"encrypted_key"; distance:0; classtype:credential-theft; sid:9537006; rev:2; metadata:created_at 2026_11_20, deployment perimeter_egress, tactic exfiltration;)
