Skip to content
.ca
detection ruleyara

SafeNetv2 Go client ELF binary

First seen
2026-10-21
Last seen
2026-10-21
Used in
1 post
YARASafeNetv2 Go client ELF binary
rule SafeNet_Go_Client {
    meta:
        description = "Detects SafeNetv2 (safenet/client) Go worm ELF builds and recompilations via check-registry hex tables and C2/runtime markers"
        author = "Cyfar"
        date = "2026-10-19"
    strings:
        // 9-entry scanner.Scan interface slice on amd64 (144 B: 0xa76860..0xa768ef)
        $reg_amd64 = {
            20 d1 82 00 00 00 00 00 [8] 60 d1 82 00 00 00 00 00 [8]
            a0 d1 82 00 00 00 00 00 [8] e0 d1 82 00 00 00 00 00 [8]
            20 d2 82 00 00 00 00 00 [8] 60 d2 82 00 00 00 00 00 [8]
            a0 d2 82 00 00 00 00 00 [8] e0 d2 82 00 00 00 00 00 [8]
            20 d3 82 00 00 00 00 00
        }

        // Address-independent 9-entry Go itab type-hash chain (all 64-bit and 32-bit builds)
        $itab_64 = {
            f2 fc 35 cf [60] 8c 61 05 0f [60] d3 49 f1 52 [60]
            b3 86 99 e1 [60] 26 11 de 27 [60] 0d 34 0f 33 [60]
            d1 c3 f6 37 [60] 8f f5 fa 2c [60] 71 e8 d6 09
        }
        $itab_32 = {
            f2 fc 35 cf [28] 8c 61 05 0f [28] d3 49 f1 52 [28]
            b3 86 99 e1 [28] 26 11 de 27 [28] 0d 34 0f 33 [28]
            d1 c3 f6 37 [28] 8f f5 fa 2c [28] 71 e8 d6 09
        }

        // Controller protocol and runtime markers
        $c2_dl   = "%s/download?os=%s&arch=%s" ascii
        $c2_pull = "%s/pull?client_id=%s" ascii
        $c2_rep  = "/report-batch" ascii
        $c2_dep  = "%s/deployed?rev=%d" ascii
        $env_sup = "SAFENET_SUPERVISOR" ascii
        $env_aut = "SAFENET_AUTH" ascii
        $art_pid = ".safenet-client.pid" ascii
        $art_spl = "safenet-spool.jsonl" ascii
        $art_mod = "safenet/client" ascii
    condition:
        uint32(0) == 0x464c457f and
        (
            (1 of ($reg_*, $itab_*) and 2 of ($c2_*, $env_*, $art_*)) or
            5 of ($c2_*, $env_*, $art_*)
        )
}

Posts using this rule

  • Linux filesystems · artifact & malware scanning

    Matches all six captured `safenet/client` ELF builds. `$reg_amd64` matches the build-specific 9-entry `scanner.Scan` interface array on `amd64`; `$itab_64`, `$itab_32`, and the controller/runtime strings cover recompilations of this source revision (packed or obfuscated rebuilds are not covered).

SafeNetv2 Go client ELF binary · YARA rule · cyfar.ca