긴급PHP2Shell(CVE-2026-109618·109619, CVSS 9.2) 실공격 확인
PHP 핵심 구성요소의 인증 없는 원격 코드 실행 취약점 2건이 허니팟에서 실제 웹쉘 실행으로 이어졌고, 북한 연계 의심 스캐닝(216개 호스트 대상)도 보고됐다. 유닛42는 유럽 정부기관 공격을 PHP2Shell 악용 사례로 본 기존 분석을 철회했으며, 최초 침입 경로는 확인되지 않았다.
- SecurityWeek — PHP2Shell Exploitation Moves From Probes to Working Shells
- Security Affairs — PHP2Shell: Suspected North Korean campaign targets 216 vulnerable PHP hosts
- BleepingComputer — PHP2Shell security flaws now sucessfully exploited in the wild
- 데일리시큐 — 에프원시큐리티, UWSS로 ‘PHP2Shell’ 공격 차단 검증…무료 웹 진단 도구 공개
- 데일리시큐 — 유럽 정부기관 ‘PHP2Shell 침해’ 분석 철회…유닛42 “최초 침입 경로 확인 못 해”
- The Hacker News — PHP2Shell Exploitation Attempts Continue Amid Suspected N. Korea Global Scanning Activity
룰 원문 펼치기
alert http $EXTERNAL_NET any -> $HOME_NET any ( msg:"SERVER-WEBAPP PHP serialized integer key collision remote code execution attempt"; flow:to_server,established; http_client_body; content:"i:4294967296|3B|"; content:"i:8589934592|3B|",within 48; content:"i:12884901888|3B|",within 48; metadata:policy balanced-ips drop,policy max-detect-ips drop,policy security-ips drop,ruleset community; reference:cve,2026-109618; reference:cve,2026-109619; classtype:web-application-attack; gid:1; sid:67359; rev:2; )
alert http ( msg:"SERVER-WEBAPP PHP PHPSESSID memory leak attempt"; flow:to_client,established; http_cookie; content:"PHPSESSID="; content:"|00 00|",distance 0,fast_pattern; http_raw_cookie; pcre:"/PHPSESSID=[^\x3b\r\n]*?(?:%00){2}/"; metadata:policy balanced-ips drop,policy connectivity-ips drop,policy max-detect-ips drop,policy security-ips drop,ruleset community; reference:cve,2026-109618; reference:cve,2026-109619; classtype:web-application-attack; gid:1; sid:67375; rev:1; )alert tcp $EXTERNAL_NET any -> $HOME_NET $HTTP_PORTS (msg:"SERVER-WEBAPP PHP serialized integer key collision remote code execution attempt"; flow:to_server,established; content:"i:4294967296|3B|"; http_client_body; content:"i:8589934592|3B|"; within:48; http_client_body; content:"i:12884901888|3B|"; within:48; http_client_body; metadata:policy balanced-ips drop, policy max-detect-ips drop, policy security-ips drop, ruleset community, service http; reference:cve,2026-109618; reference:cve,2026-109619; classtype:web-application-attack; sid:67359; rev:2;)
alert tcp any $HTTP_PORTS -> any any (msg:"SERVER-WEBAPP PHP PHPSESSID memory leak attempt"; flow:to_client,established; content:"PHPSESSID="; fast_pattern:only; content:"PHPSESSID="; http_raw_cookie; content:"%00%00"; distance:0; http_raw_cookie; pcre:"/PHPSESSID=[^\x3b\r\n]*?(?:%00){2}/K"; metadata:policy balanced-ips drop, policy max-detect-ips drop, policy security-ips drop, ruleset community, service http; reference:cve,2026-109618; reference:cve,2026-109619; classtype:web-application-attack; sid:67375; rev:1;)alert tcp any any -> [$HOME_NET,$HTTP_SERVERS] $HTTP_PORTS (msg:"ET EXPLOIT PHP php2shell Multipart Header Amplification OOM (CVE-2026-109618)"; flow:established,to_server; content:"content-type|3a 20|multipart/form-data|3b|"; http_header; nocase; content:"Content-Disposition|3a 20|form-data|3b|"; http_client_body; fast_pattern; pcre:"/^(?:(?:(?!\x0d\x0a\x2d{2}).)+[\x0d\x0a]+[a-zA-Z0-9-]+\x3a){100,}/R"; content:"POST"; http_method; reference:url,github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w; reference:cve,2026-109618; classtype:misc-attack; sid:2072549; rev:1; metadata:affected_product PHP, attack_target Web_Server, tls_state TLSDecrypt, created_at 2026_10_22, cve CVE_2026_109618, deployment Perimeter, deployment Internal, confidence Low, signature_severity Major, updated_at 2026_10_22;)alert tcp any any -> [$HOME_NET,$HTTP_SERVERS] $HTTP_PORTS (msg:"ET EXPLOIT PHP php2shell Nested Empty File Control OOM (CVE-2026-109618)"; flow:established,to_server; content:"content-type|3a 20|multipart/form-data|3b|"; http_header; nocase; content:"Content-Disposition|3a 20|form-data|3b|"; http_client_body; content:"name|3d|"; http_client_body; pcre:"/^[\x22\x27][^\x22\x27]+(?:\x5b[^\x5b\x0d\x0a]*?){3,}/R"; content:"filename|3d 22 22|"; http_client_body; fast_pattern; content:"POST"; http_method; reference:url,github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w; reference:cve,2026-109618; classtype:misc-attack; sid:2072550; rev:1; metadata:affected_product PHP, attack_target Web_Server, tls_state TLSDecrypt, created_at 2026_10_22, cve CVE_2026_109618, deployment Perimeter, deployment Internal, performance_impact Moderate, confidence Low, signature_severity Major, updated_at 2026_10_22;)alert tcp any any -> [$HOME_NET,$HTTP_SERVERS] $HTTP_PORTS (msg:"ET EXPLOIT PHP php2shell Chunked Multipart Request without Content-Length (CVE-2026-109618)"; flow:established,to_server; content:"content-type|3a 20|multipart/form-data|3b|"; http_header; nocase; content:"transfer-encoding: chunked"; http_header; fast_pattern; nocase; content:!"content-length|0d 0a|"; http_header; nocase; content:"POST"; http_method; reference:url,github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w; reference:cve,2026-109618; classtype:misc-attack; sid:2072551; rev:1; metadata:affected_product PHP, attack_target Web_Server, tls_state TLSDecrypt, created_at 2026_10_22, cve CVE_2026_109618, deployment Perimeter, deployment Internal, performance_impact Low, confidence Low, signature_severity Major, updated_at 2026_10_22, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1189, mitre_technique_name Drive_by_Compromise;)
alert tcp any any -> [$HOME_NET,$HTTP_SERVERS] $HTTP_PORTS (msg:"ET EXPLOIT PHP php2shell Binary URL-Encoded POST for $_POST Corruption (CVE-2026-109618)"; flow:established,to_server; content:"content-type|3a 20|application/x-www-form-urlencoded"; http_header; fast_pattern; nocase; pcre:"/^\x3d[^&]*?[\x00-\x1f\x7f-\xff]+[^&]*?\x26/Ps"; content:"POST"; http_method; reference:url,github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w; reference:cve,2026-109618; classtype:misc-attack; sid:2072552; rev:1; metadata:affected_product PHP, attack_target Web_Server, tls_state TLSDecrypt, created_at 2026_10_22, cve CVE_2026_109618, deployment Perimeter, deployment Internal, performance_impact Significant, confidence Low, signature_severity Major, updated_at 2026_10_22;)
alert tcp any any -> [$HOME_NET,$HTTP_SERVERS] $HTTP_PORTS (msg:"ET EXPLOIT PHP php2shell Multipart Request without Content-Length (CVE-2026-109618)"; flow:established,to_server; content:"content-type|3a 20|multipart/form-data|3b|"; fast_pattern; nocase; content:!"content-length|3a 20|"; http_header; nocase; content:"POST"; http_method; reference:url,github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w; reference:cve,2026-109618; classtype:misc-attack; sid:2072553; rev:1; metadata:affected_product PHP, attack_target Web_Server, tls_state TLSDecrypt, created_at 2026_10_22, cve CVE_2026_109618, deployment Perimeter, deployment Internal, performance_impact Moderate, confidence Low, signature_severity Major, updated_at 2026_10_22;)
alert tcp any any -> [$HOME_NET,$HTTP_SERVERS] $HTTP_PORTS (msg:"ET EXPLOIT PHP php2shell Excessive Multipart Part Count (CVE-2026-109618)"; flow:established,to_server; content:"content-type|3a 20|multipart/form-data|3b|"; http_header; nocase; content:"Content-Disposition|3a 20|form-data"; http_client_body; fast_pattern; pcre:"/(?:Content-Disposition\x3a\x20form-data.{,4096}){100,}/Ps"; content:"POST"; http_method; reference:url,github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w; reference:cve,2026-109618; classtype:misc-attack; sid:2072556; rev:1; metadata:affected_product PHP, attack_target Web_Server, tls_state TLSDecrypt, created_at 2026_10_22, cve CVE_2026_109618, deployment Perimeter, deployment Internal, performance_impact Moderate, confidence Low, signature_severity Major, updated_at 2026_10_22;)룰 원문 펼치기
alert http $EXTERNAL_NET any -> $HOME_NET any ( msg:"SERVER-WEBAPP PHP serialized integer key collision remote code execution attempt"; flow:to_server,established; http_client_body; content:"i:4294967296|3B|"; content:"i:8589934592|3B|",within 48; content:"i:12884901888|3B|",within 48; metadata:policy balanced-ips drop,policy max-detect-ips drop,policy security-ips drop,ruleset community; reference:cve,2026-109618; reference:cve,2026-109619; classtype:web-application-attack; gid:1; sid:67359; rev:2; )
alert http $EXTERNAL_NET any -> $HOME_NET any ( msg:"SERVER-WEBAPP PHP session upload progress remote code execution attempt"; flow:to_server,established; http_header:field content-type; content:"multipart/form-data",nocase; http_client_body; content:"Content-Disposition",nocase; content:"PHP_SESSION_UPLOAD_PROGRESS",distance 0,fast_pattern; detection_filter:track by_src,count 10,seconds 5; metadata:policy balanced-ips drop,policy max-detect-ips drop,policy security-ips drop,ruleset community; reference:cve,2026-109619; classtype:web-application-attack; gid:1; sid:67360; rev:2; )
alert http ( msg:"SERVER-WEBAPP PHP PHPSESSID memory leak attempt"; flow:to_client,established; http_cookie; content:"PHPSESSID="; content:"|00 00|",distance 0,fast_pattern; http_raw_cookie; pcre:"/PHPSESSID=[^\x3b\r\n]*?(?:%00){2}/"; metadata:policy balanced-ips drop,policy connectivity-ips drop,policy max-detect-ips drop,policy security-ips drop,ruleset community; reference:cve,2026-109618; reference:cve,2026-109619; classtype:web-application-attack; gid:1; sid:67375; rev:1; )alert tcp $EXTERNAL_NET any -> $HOME_NET $HTTP_PORTS (msg:"SERVER-WEBAPP PHP serialized integer key collision remote code execution attempt"; flow:to_server,established; content:"i:4294967296|3B|"; http_client_body; content:"i:8589934592|3B|"; within:48; http_client_body; content:"i:12884901888|3B|"; within:48; http_client_body; metadata:policy balanced-ips drop, policy max-detect-ips drop, policy security-ips drop, ruleset community, service http; reference:cve,2026-109618; reference:cve,2026-109619; classtype:web-application-attack; sid:67359; rev:2;)
alert tcp $EXTERNAL_NET any -> $HOME_NET $HTTP_PORTS (msg:"SERVER-WEBAPP PHP session upload progress remote code execution attempt"; flow:to_server,established; content:"multipart/form-data"; nocase; http_header; content:"Content-Disposition"; nocase; http_client_body; content:"PHP_SESSION_UPLOAD_PROGRESS"; distance:0; fast_pattern; http_client_body; detection_filter:track by_src, count 10, seconds 5; metadata:policy balanced-ips drop, policy max-detect-ips drop, policy security-ips drop, ruleset community, service http; reference:cve,2026-109619; classtype:web-application-attack; sid:67360; rev:2;)
alert tcp any $HTTP_PORTS -> any any (msg:"SERVER-WEBAPP PHP PHPSESSID memory leak attempt"; flow:to_client,established; content:"PHPSESSID="; fast_pattern:only; content:"PHPSESSID="; http_raw_cookie; content:"%00%00"; distance:0; http_raw_cookie; pcre:"/PHPSESSID=[^\x3b\r\n]*?(?:%00){2}/K"; metadata:policy balanced-ips drop, policy max-detect-ips drop, policy security-ips drop, ruleset community, service http; reference:cve,2026-109618; reference:cve,2026-109619; classtype:web-application-attack; sid:67375; rev:1;)alert tcp any any -> [$HOME_NET,$HTTP_SERVERS] $HTTP_PORTS (msg:"ET EXPLOIT PHP php2shell Handler-mismatch Session Injection (CVE-2026-109619)"; flow:established,to_server; content:"content-type|3a 20|multipart/form-data|3b|"; http_header; nocase; content:"name|3d 22|PHP_SESSION_UPLOAD_PROGRESS|22|"; http_client_body; fast_pattern; content:"filename|3d|"; http_client_body; pcre:"/^[\x22\x27][^\x22\x27\x0d\x0a]*?\x7c[OrC]\x3a\d+\x3a/R"; content:"POST"; http_method; reference:url,github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp; reference:cve,2026-109619; classtype:misc-attack; sid:2072548; rev:1; metadata:affected_product PHP, attack_target Client_and_Server, tls_state TLSDecrypt, created_at 2026_10_22, cve CVE_2026_109619, deployment Perimeter, deployment Internal, confidence Low, signature_severity Major, updated_at 2026_10_22;)
alert tcp any any -> [$HOME_NET,$HTTP_SERVERS] $HTTP_PORTS (msg:"ET EXPLOIT PHP php2shell Code Injection in Filename (CVE-2026-109619)"; flow:established,to_server; content:"content-type|3a 20|multipart/form-data|3b|"; http_header; nocase; content:"name|3d 22|PHP_SESSION_UPLOAD_PROGRESS|22|"; http_client_body; fast_pattern; content:"filename|3d|"; http_client_body; pcre:"/^[\x22\x27][^\x22\x27\x0d\x0a]*?\x3c\x3f(?:php|\x3b)/R"; content:"POST"; http_method; reference:url,github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp; reference:cve,2026-109619; classtype:misc-attack; sid:2072554; rev:1; metadata:affected_product PHP, attack_target Web_Server, tls_state TLSDecrypt, created_at 2026_10_22, cve CVE_2026_109619, deployment Perimeter, deployment Internal, confidence Low, signature_severity Major, updated_at 2026_10_22;)
alert tcp any any -> [$HOME_NET,$HTTP_SERVERS] $HTTP_PORTS (msg:"ET INFO PHP Generic Upload Progress Session Manipulation"; flow:established,to_server; content:"cookie|3a 20|phpsessid|3d|"; http_header; nocase; content:"content-type|3a 20|multipart/form-data|3b|"; http_header; nocase; content:"name|3d 22|PHP_SESSION_UPLOAD_PROGRESS|22|"; http_client_body; fast_pattern; content:"filename|3d|"; http_client_body; content:"POST"; http_method; reference:url,github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp; reference:cve,2026-109619; classtype:misc-attack; sid:2072555; rev:1; metadata:affected_product PHP, attack_target Web_Server, tls_state TLSDecrypt, created_at 2026_10_22, cve CVE_2026_109619, deployment Perimeter, deployment Internal, confidence Low, signature_severity Major, updated_at 2026_10_22;)