alert http $EXTERNAL_NET any -> $HOME_NET any (
msg:"ET WEB_SERVER Kubernetes Ingress NGINX Controller auth-tls-match-cn Annotation Injection (CVE-2025-1097)";
flow:established,to_server;
http.method;
content:"POST";
http.content_type;
content:"application/json";
http.request_body;
content:"|22|admission.k8s.io/v1|22 2c|";
content:"|22|nginx.ingress.kubernetes.io/auth-tls-secret|22 3a|";
content:"|22|nginx.ingress.kubernetes.io/auth-tls-match-cn|22 3a|"; fast_pattern;
pcre:"/^\s*?\x22CN\x3d[^\x22]*?(?:\\n|[\x23\x3b])/R";
reference:url,www.wiz.io/blog/ingress-nginx-kubernetes-vulnerabilities;
reference:cve,2025-1097;
classtype:web-application-attack;
sid:2061041; rev:1;
metadata:affected_product Kubernetes, attack_target Server, tls_state TLSDecrypt, created_at 2025_03_25, cve CVE_2025_1097, deployment Perimeter, deployment Internal, deployment SSLDecrypt, confidence High, signature_severity Major, tag Exploit, updated_at 2025_03_25, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;
target:dest_ip;
)