James_inthe_box

NyanW0rm snort suricata yara

Aug 6th, 2019
1,233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. yara
  2.  
  3. rule NyanW0rm_bin
  4. {
  5. meta:
  6. description = "NyanW0rm"
  7. author = "James_inthe_box"
  8. reference = "https://app.any.run/tasks/1cb6ca71-f3d6-432b-a0c2-7be930826229/"
  9. date = "2019/08"
  10. maltype = "Bot"
  11.  
  12. strings:
  13. $string1 = "BotSocket"
  14. $string2 = "|NW|" wide
  15.  
  16. condition:
  17. uint16(0) == 0x5A4D and all of ($string*) and filesize < 200KB
  18. }
  19.  
  20. rule NyanW0rm_mem
  21. {
  22. meta:
  23. description = "NyanW0rm"
  24. author = "James_inthe_box"
  25. reference = "https://app.any.run/tasks/1cb6ca71-f3d6-432b-a0c2-7be930826229/"
  26. date = "2019/08"
  27. maltype = "Bot"
  28.  
  29. strings:
  30. $string1 = "BotSocket"
  31. $string2 = "|NW|" wide
  32.  
  33. condition:
  34. all of ($string*) and filesize > 200KB
  35. }
  36.  
  37. snort / suricata
  38. alert tcp any any -> any !$HTTP_PORTS (msg:"NyanW0rm Bot Detected"; flow:established,to_server; content:"|00 00 00|"; within:4; reference:url,https://app.any.run/tasks/1cb6ca71-f3d6-432b-a0c2-7be930826229/; classtype:trojan-activity; sid:20166300; rev:1; metadata:created_at 2019_08_06;)
Advertisement
Add Comment
Please, Sign In to add comment