Skip to content

Instantly share code, notes, and snippets.

@IlluminatiFish
Last active November 10, 2022 00:29
Show Gist options
  • Save IlluminatiFish/472543c8b4b5d2a3e1326651f4f96128 to your computer and use it in GitHub Desktop.
Save IlluminatiFish/472543c8b4b5d2a3e1326651f4f96128 to your computer and use it in GitHub Desktop.
A yara rule written by myself to detect the apparent pattern that most videos spreading malware have
rule MALWARE_VIDEO {
strings:
$password = /(PASS|PASSWORD)( )?(:|-)?( )?[0-9A-Za-z]{3,10}/i
$download = /(http|https):\/\/(yt\.sv|shorturl\.at|clck\.ru|sites\.google\.com|bit\.ly|bit\.do|cutt\.ly|mega\.nz|(www\.)?mediafire\.com|gg\.gg|(www\.)?sendspace\.com|t\.ly|telegra\.ph|split\.to|actgames\.site|goo\.su|easyupload\.io)\/(.*)/i
$keywords = /(crack|hack|cheat)/i
condition:
(all of them) or ($download and $keywords)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment