SIGS: Possible Gamaredon APT Delimiter

Just as seen this a lot over several years in their malware, loaders and recently in even their trycloudflare domains but while we have signatures for specific cases combined with this delimiter we aren’t actually looking for just this unusual delimiter being present in traffic.

The header has appeared both in cleartext HTTP but also HTTPS traffic (such as recently using trycloudflare domains which are https)

Specific cases for user agent, cookie which have been seen but also a http.header one in case they use it elsewhere. Also URI one.

Kind regards,
Kevin Ross

alert http $HOME_NET any → $EXTERNAL_NET any (msg:“ET MALWARE Possible Gamaredon APT Delimiter In HTTP User-Agent”; flow:established,to_server; http.user_agent; content:“|3a 3a|/.”; fast_pattern:only; classtype:trojan-activity; sid:154551; rev:1;)

alert http $HOME_NET any → $EXTERNAL_NET any (msg:“ET MALWARE Possible Gamaredon APT Delimiter In HTTP Cookie”; flow:established,to_server; http.cookie; content:“|3a 3a|/.”; fast_pattern:only; classtype:trojan-activity; sid:154552; rev:1;)

alert http $HOME_NET any → $EXTERNAL_NET any (msg:“ET MALWARE Possible Gamaredon APT Delimiter In HTTP Header”; flow:established,to_server; http.header; content:“|3a 3a|/.”; fast_pattern:only; classtype:trojan-activity; sid:154553; rev:1;)

alert http $HOME_NET any → $EXTERNAL_NET any (msg:“ET MALWARE Possible Gamaredon APT Delimiter In HTTP URI”; flow:established,to_server; http.uri; content:“|3a 3a|/.”; fast_pattern:only; classtype:trojan-activity; sid:154554; rev:1;)

Hey @kevross33 - Thanks for the tip, I’ll test these out and get them in today’s release!

@kevross33 - Here are the sigs from today. I placed the HTTP Header rule in the HUNTING category initially because I’m slightly concerned if people are utilizing custom header content there may be a risk for false positives. If we don’t see any FP’s we can move to the MALWARE category as well.

ET MALWARE Gamaredon APT Style Delimiter Observed In HTTP User-Agent - 2061886
ET MALWARE Gamaredon APT Style Delimiter Observed In HTTP Cookie - 2061887
ET MALWARE Gamaredon APT Style Delimiter Observed In HTTP URI - 2061888
ET HUNTING Gamaredon APT Style Delimiter Observed In HTTP Header - 2061889

Have a great weekend :partying_face: !
Isaac