Contact us Buy Me a Coffee

Sponsored by Hudson Rock Use Hudson Rock's free cybercrime intelligence tools to learn how Infostealer infections are leading to ransomware attacks

YARA Rule: cuba.yar

Group:
Valid Rule

/*
Cuba ransomware
*/

rule Cuba_Ransomnote
{
    meta:
        author = "ransomware.live"
        family = "ransomware.cuba"
        description = "Detects Cuba ransomware ransom note"
        date = "2026-05-04"
        severity = 7
        score = 70

    strings:
        $s1 = ".cuba" ascii nocase
        $s2 = "HOW-TO-DECRYPT.txt" ascii nocase
        $s3 = "cuba.barzini" ascii nocase
        $s4 = "cubahitaramos" ascii nocase

    condition:
        any of them
}

rule Cuba_PE
{
    meta:
        author = "ransomware.live"
        family = "ransomware.cuba"
        description = "Detects Cuba ransomware executable"
        date = "2026-05-04"
        severity = 9
        score = 90

    strings:
        $s1 = "\x00Cuba-Locker\x00" ascii
        $s2 = "\x00CUBA\x00" ascii wide
        $s3 = "HOW-TO-DECRYPT.txt" ascii

    condition:
        uint16(0) == 0x5A4D and 2 of them
}