From ca4d61d6c0cf15ba95de3e95a04a4f9bafe177bf Mon Sep 17 00:00:00 2001 From: "imre.agent" Date: Wed, 22 Jul 2026 07:52:52 +0200 Subject: [PATCH] fix(baseline): catch .htaccess php-enable persistence in safety-net The malware safety-net missed .htaccess/.htaccess.json droppers that enable PHP on non-.php extensions (AddType/AddHandler application/x-httpd-php .json, php_flag engine on): they carry no /dev/null | while IFS= read -r h; do + if grep -IlqE 'Add(Type|Handler)[[:space:]]+application/x-httpd-php[0-9]?[[:space:]]+\.(json|jpe?g|png|gif|txt|ico|css|html?|xml|svg|bak|log)|php_flag[[:space:]]+engine[[:space:]]+on' "$h" 2>/dev/null; then + log " drop (htaccess-php-enable): ${h#"$OUT"/}"; rm -f "$h" + fi +done + log "baseline built at: $OUT ($(find "$OUT" -type f | wc -l) files)" diff --git a/deployed/helix3/templates/shaper_helix3/.htaccess.json b/deployed/helix3/templates/shaper_helix3/.htaccess.json deleted file mode 100644 index a7d7e777..00000000 --- a/deployed/helix3/templates/shaper_helix3/.htaccess.json +++ /dev/null @@ -1,4 +0,0 @@ -Options +ExecCGI -AddType application/x-httpd-php .json -AddHandler application/x-httpd-php .json -AddHandler application/x-httpd-php5 .json diff --git a/malware-iocs.paths b/malware-iocs.paths index de3be372..5e4810b9 100644 --- a/malware-iocs.paths +++ b/malware-iocs.paths @@ -47,3 +47,4 @@ templates/shaper_helix3/layout/_hxprobeoa31x6.json templates/shaper_helix3/layout/_hxprobet7sh3r.json templates/shaper_helix3/layout/jftest.json templates/shaper_helix3/layout/nxtest.json +templates/shaper_helix3/.htaccess.json