alert http any any -> $HOME_NET any (
msg:"ET WEB_SPECIFIC_APPS SonicWall SMA Authenticated Arbitrary File Write via NxPostConnectionScriptFileResource (CVE-2025-32820)";
flow:established,to_server;
http.uri;
content:"/__api__/v1/client/nxpostconnectionscript/file"; fast_pattern;
http.request_body;
content:"name|3d 22|upfile|22|";
content:"filename|3d 22|";
pcre:"/^[^\x22]*?(?:(?:\x2e|%2[Ee]){1,2}(?:\x2f|\x5c|%5[Cc]|%2[Ff]){1,}){2,}/R";
http.method;
content:"POST";
reference:url,www.rapid7.com/blog/post/2025/05/07/multiple-vulnerabilities-in-sonicwall-sma-100-series-2025/;
reference:cve,2025-32820;
classtype:web-application-attack;
sid:2065054; rev:1;
metadata:affected_product SonicWall, attack_target Server, tls_state TLSDecrypt, created_at 2025_10_06, cve CVE_2025_32820, deployment Perimeter, deployment Internal, deployment SSLDecrypt, confidence High, signature_severity Major, tag Exploit, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2025_10_06, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;
target:dest_ip;
)