alert http any any -> $HOME_NET any (
msg:"ET WEB_SPECIFIC_APPS Langflow AI Unauthenticated Remote Code Execution via Code Validation Endpoint (CVE-2025-3248)";
flow:established,to_server;
http.method;
content:"POST";
http.uri; bsize:21;
content:"/api/v1/validate/code"; fast_pattern;
http.request_body;
content:"import";
pcre:"/(?:\x5f{2}|\x5c[\x22\x27]|\x255[cC]\x252[27])import(?:\x5f{2}|\x20|\x2520)/";
reference:url,www.horizon3.ai/attack-research/disclosures/unsafe-at-any-speed-abusing-python-exec-for-unauth-rce-in-langflow-ai/;
reference:cve,2025-3248;
classtype:web-application-attack;
sid:2061448; rev:1;
metadata:affected_product Langflow, attack_target Server, tls_state TLSDecrypt, created_at 2025_04_10, cve CVE_2025_3248, deployment Perimeter, deployment Internal, deployment SSLDecrypt, confidence High, signature_severity Major, tag Exploit, updated_at 2025_04_10, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;
target:dest_ip;
)