Skip to content
.ca
detection rulesuricata

cPanel JSON-API Cron add_line stager persistence

First seen
2026-10-23
Last seen
2026-10-25
Used in
1 post
SuricatacPanel JSON-API Cron add_line stager persistence
alert http $EXTERNAL_NET any -> $HOME_NET any (msg:"MALWARE cPanel JSON-API Cron add_line Shell Stager Persistence"; flow:to_server,established; http.method; content:"GET"; http.uri; content:"/json-api/cpanel?"; content:"cpanel_jsonapi_module=Cron"; fast_pattern; content:"cpanel_jsonapi_func=add_line"; content:"command="; pcre:"/command=[^&]*(?:RCEOK|%2Fslw|%2Fslt|public_html%2F\.s\.txt)/i"; classtype:attempted-admin; sid:1000898005; rev:1; metadata:created_at 2026_10_21, deployment Ingress;)

Posts using this rule

  • TLS-terminated HTTP ingress in front of cPanel & WHM (TCP/2082, 2083, 2086, 2087) · SID 1000898005

    Matches post-authentication cPanel JSON-API requests (`cpanel_jsonapi_module=Cron&cpanel_jsonapi_func=add_line`) whose URL-encoded `command=` parameter contains `RCEOK`, `/slw`, `/slt`, or `public_html/.s.txt`. * **Scope and tuning:** Deploy where TLS is terminated in front of cPanel & WHM management ports.