eth0izzle/shhgit

Implement YARA rules

Aberta

#17 aberto em 1 de out. de 2019

 (9 comentários) (2 reações) (1 responsável)JavaScript (481 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (3.976 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

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)
}

Guia do colaborador