dgallagher

Yara: lnk_encoded_powershell

Oct 18th, 2019
580
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. rule lnk_encoded_powershell
  2. {
  3. meta:
  4. description = "LNK with encoded PowerShell"
  5. author = "daniel gallagher"
  6. date = "2017-07"
  7. filetype = "lnk"
  8.  
  9. strings:
  10. $s1 = "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe" ascii nocase
  11. $s2 = "-ExecutionPolicy bypass" wide nocase
  12. $s3 = "-windowstyle hidden" wide nocase
  13. $s4 = "-encodedcommand" wide nocase
  14.  
  15. condition:
  16. (
  17. uint32be(0) == 0x4C000000 and uint32be(4) == 0x01140200
  18. )
  19. and filesize < 12KB
  20. and all of ($s*)
  21. }
Advertisement
Add Comment
Please, Sign In to add comment