# Odin by Brandefense - Monograph 35 / 35 Suricata 7.x Detection Suite (public edition v1.1)
# Coverage: AdaptixC2 default TLS server certificate, self-hosted Interactsh OAST headers,
#           co-exposed C2 and AI coding-agent open-directory listings, and OpenClaw/dingtalk-connector
#           session fetches
# Classification: TLP:CLEAR

alert tls $EXTERNAL_NET any -> $HOME_NET any (msg:"ODIN [R35] AdaptixC2 Default Self-Signed TLS Server Certificate (CN=adaptix)"; flow:established,to_client; tls.cert_subject; bsize:>9; content:"CN=adaptix"; fast_pattern; classtype:trojan-activity; sid:9535002; rev:1; metadata:created_at 2026_11_20, deployment perimeter, tactic command_and_control;)

alert http $EXTERNAL_NET any -> $HOME_NET any (msg:"ODIN [R35] HUNT Self-Hosted Interactsh OAST Response Header"; flow:established,to_client; http.header; bsize:>22; content:"X-Interactsh-Version:"; fast_pattern; classtype:policy-violation; sid:9535003; rev:2; metadata:created_at 2026_11_20, updated_at 2026_11_20, deployment perimeter_and_proxy, policy behavioral_hunt;)

alert http $EXTERNAL_NET any -> $HOME_NET any (msg:"ODIN [R35] Co-Exposed Hybrid C2 or AI-Offense Open-Directory Listing"; flow:established,to_client; http.stat_code; bsize:3; content:"200"; http.response_body; bsize:>48; content:"<title>Directory listing for "; fast_pattern; pcre:"/(cyberstrike|hexstrike|sliver|adaptix|strix|vshell|octopus)/i"; classtype:attempted-recon; sid:9535004; rev:1; metadata:created_at 2026_11_20, deployment perimeter, tactic resource_development;)

alert http any any -> any any (msg:"ODIN [R35] Unauthenticated HTTP Directory Listing Exposing AI Agent Runtime Folder"; 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\.(hermes|openclaw|claude|codex|cursor-server)\//i"; classtype:policy-violation; sid:9535005; rev:1; metadata:created_at 2026_11_20, deployment perimeter_and_east_west, tactic credential_access;)

alert http any any -> any any (msg:"ODIN [R35] HTTP Retrieval of Exposed OpenClaw Session or dingtalk-connector Config"; flow:established,to_server; http.method; bsize:3; content:"GET"; http.uri; bsize:>11; content:"/.openclaw/"; fast_pattern; pcre:"/\/\.openclaw\/.*(dingtalk-connector|config|\.env|session)/i"; classtype:credential-theft; sid:9535006; rev:1; metadata:created_at 2026_11_20, deployment perimeter_and_waf, tactic credential_access;)
