Skip to content

Ada binaries are being misidentified as C binaries #331

@qqzero0

Description

@qqzero0

Ada binaries are not being correctly detected and are instead being identified as C binaries.

I have a YARA rule for my use case that may help. It works with both stripped and non-stripped x64 Windows binaries:

import "pe"

rule Ada_binary
{
    meta:
        description = "Detects ADA binaries"
        author = "qqzero0"
        confidence = "high"

    strings:
        $a1 = "GNAT_FILE_NAME_CASE_SENSITIVE" ascii wide
        $a2 = "for Ada/dwarf" ascii wide
        $a3 = "Ada Core Technologies" ascii wide
        $a4 = "ADA.IO_EXCEPTIONS.LAYOUT_ERROR" ascii wide
        $a5 = "ADA.STRINGS" ascii wide

    condition:
        pe.is_pe and 2 of ($a*)
}
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    suggestionSuggestion to add something new

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions