ditekshen / detection

Detection in the form of Yara, Snort and ClamAV signatures.
Other
206 stars 40 forks source link

Error on Malware_Win_Warezov malware.yar #18

Closed HydraDragonAntivirus closed 1 year ago

HydraDragonAntivirus commented 1 year ago

rule MALWARE_Win_Warezov { meta: author = "ditekSHen" description = "Detects Warezov worm/downloader" strings: $s1 = "ft\Windows\CurrentVersion\Run" wide $s2 = "DIR%SOFTWARE\Microsoft\Windows\CurrentVersion\Run" wide $s3 = "%WINDIR%\sqhos32.wmf" wide $s4 = "Accept: /" fullword ascii $s5 = "Range: bytes=" fullword ascii $s6 = "module.exe" fullword ascii $s7 = { 25 73 25 73 2e 25 73 ?? ?? 22 22 26 6c 79 79 56 00 00 00 00 25 73 25 30 34 64 25 30 32 64 25 30 32 64 00 } condition: uint16(0) == 0x5a4d and 4 of them } I got error on $s5 = "Range: bytes=" fullword ascii malware.yar

ditekshen commented 1 year ago

Where did you get that rule you are pasting? That's not how it looks in the repo. Also, not specifying what the error is ambiguous and useless. Check the repo and compare or update. No errors found!

HydraDragonAntivirus commented 1 year ago

Error in output_rule_1.yara: line 33144: unterminated string.

HydraDragonAntivirus commented 1 year ago

Fixed by deleting s5