alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"ET MALWARE CeranaKeeper BingoShell Activity (Create Github File)";
flow:established,to_server;
http.method;
content:"PUT";
http.host;
content:"api.github.com";
http.uri;
content:"/repos/"; startswith;
content:"/contents/"; distance:0;
content:"share-"; distance:0;
pcre:"/^[a-z]{6}/Ri";
content:"_file.txt"; distance:0;
http.request_body;
content:"|22|message|22 3a 22|file|22|";
content:"|22|content|22 3a 22|VGhpcyBpcyBhIHJlYWRtZSBmaWxlLg|3d 3d 22|"; fast_pattern; distance:0;
reference:url,web-assets.esetstatic.com/wls/en/papers/white-papers/ceranakeeper.pdf;
reference:url,docs.github.com/en/rest/repos/contents?apiVersion=2022-11-28#create-or-update-file-contents;
classtype:command-and-control;
sid:2056499; rev:1;
metadata:attack_target Client_Endpoint, tls_state TLSDecrypt, created_at 2024_10_05, deployment Perimeter, deployment SSLDecrypt, malware_family CeranaKeeper, confidence High, signature_severity Major, tag c2, updated_at 2024_10_07, mitre_tactic_id TA0011, mitre_tactic_name Command_And_Control, mitre_technique_id T1071, mitre_technique_name Application_Layer_Protocol;
)