eth0izzle/shhgit

Implement YARA rules

Ouverte

#17 ouverte le 1 oct. 2019

 (9 commentaires) (2 réactions) (1 personne assignée)JavaScript (481 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (3 976 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

To replace the current yaml signatures. This will allow us to create mroe powerful rules. For example to find GitHub API keys we would regex on ([a-f\d]{40}), but currently that would produce a lot of false positives (it's a SHA1 hash). With a YARA rule we could do:

rule GitHubApikey
{
    strings:
        $re1 = /[a-f\d]{40}/
        $re2 = /Authorization: token/
        $re3 = /https://api.github.com/

    condition:
        $re1 and ($re2 or $re3)
}

Guide contributeur