alert http $EXTERNAL_NET any -> $HOME_NET any (
msg:"ET WEB_SPECIFIC_APPS GL.iNet add_user API Request - Backdoor root User Attempt";
flow:established,to_server;
http.method;
content:"POST";
http.uri;
content:"/rpc";
http.request_body;
content:"|7b 22|jsonrpc|22 3a|"; startswith;
content:"|22|2.0|22 2c|"; distance:0; within:10;
content:"|22|method|22 3a|";
content:"|22|call|22 2c|"; distance:0; within:20;
content:"|22|params|22 3a 5b|";
content:"|22|system|22 2c|"; distance:0; within:50;
content:"|22|add_user|22 3c|"; distance:0; within:30;
content:"|7b 22|username|22 3a|";
content:"|3a|0|3a|0|3a|root|3a|/root|3a|"; distance:0; within:100;
reference:url,libdzonerzy.so/articles/from-zero-to-botnet-glinet.html;
classtype:attempted-admin;
sid:2049927; rev:1;
metadata:affected_product GL_iNet, attack_target Networking_Equipment, created_at 2024_01_05, deployment Perimeter, deployment Internal, deployment SSLDecrypt, performance_impact Low, confidence High, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2024_01_05, reviewed_at 2024_10_03;
target:dest_ip;
)