YARA RULES LIBRARY

Pattern matching for malware identification and threat hunting

50+ RULES LOADED
MULTIPLE CATEGORIES
COPY-PASTE READY

>> CATEGORIES


Ransomware
APT Groups
Webshells
Trojans
RATs
Cryptominers
Exploits

>> RANSOMWARE DETECTION RULES


LockBit Ransomware
CRITICAL
Detects LockBit ransomware family based on strings and behavior patterns. LockBit is one of the most prolific ransomware-as-a-service operations.
rule LockBit_Ransomware {
    meta:
        description = "Detects LockBit ransomware variants"
        author = "VAULT 4624"
        severity = "critical"
        date = "2024-01-15"
        
    strings:
        $s1 = "LockBit" ascii wide
        $s2 = ".lockbit" ascii wide
        $s3 = "Your files are encrypted" ascii wide
        $s4 = "contact@lockbitsupp" ascii wide
        $hex1 = { 4C 6F 63 6B 42 69 74 }
        
    condition:
        uint16(0) == 0x5A4D and 2 of ($s*) or $hex1
}
Author: VAULT 4624 Updated: 2024-01-15 MITRE: T1486
BlackCat/ALPHV Ransomware
CRITICAL
Identifies BlackCat (ALPHV) ransomware written in Rust. Known for fast encryption and targeting enterprise environments.
rule BlackCat_ALPHV_Ransomware {
    meta:
        description = "Detects BlackCat/ALPHV ransomware"
        author = "VAULT 4624"
        severity = "critical"
        
    strings:
        $rust1 = "rust_begin_unwind" ascii
        $rust2 = "rust_panic" ascii
        $s1 = "RECOVER-" ascii wide
        $s2 = "-FILES.txt" ascii wide
        $s3 = "alphv" nocase ascii wide
        $s4 = "BlackCat" ascii wide
        
    condition:
        uint16(0) == 0x5A4D and
        1 of ($rust*) and 2 of ($s*)
}
MITRE: T1486 Family: BlackCat/ALPHV
Generic Ransomware Note
HIGH
Detects common ransomware note patterns across multiple families.
rule Generic_Ransomware_Note {
    meta:
        description = "Generic ransomware note detection"
        author = "VAULT 4624"
        
    strings:
        $pay1 = "bitcoin" nocase ascii wide
        $pay2 = "payment" nocase ascii wide
        $enc1 = "encrypted" nocase ascii wide
        $enc2 = "decrypt" nocase ascii wide
        $warn1 = "do not" nocase ascii wide
        $warn2 = "warning" nocase ascii wide
        $contact1 = "contact us" nocase ascii wide
        $contact2 = "email" nocase ascii wide
        
    condition:
        filesize < 100KB and
        2 of ($pay*) and 2 of ($enc*) and
        1 of ($warn*) and 1 of ($contact*)
}
Type: Document Analysis MITRE: T1486