{% extends "base.html" %} {% set active_page = "Database" %} {% block body %}

Binary Pattern Search



{% if error %}
{{ error }}
{% endif %}

Example queries:

HEX-Pattern:
rule a_hex_string_rule
{
    strings:
        $a = { 0A1B }
    condition:
        $a
}
Matches firmware files including 0x0A1B.
ASCII:
rule a_ascii_string_rule
{
    strings:
        $a = "backdoor" ascii wide nocase
        $b = "roodkcab" ascii wide nocase
    condition:
        $a or $b
}
Matches firmware files including the string "backdoor" or "roodkcab" in 8bit (ascii) or 16bit (wide) representation and not case sensitive.
RegEx:
rule a_regex_rule
{
    strings:
        $a = /vxworks 5\.\d+(\.\d+)?/ nocase
    condition:
        $a 
}
Matches firmware files including "vxworks 5.X.Y" with "X" and "Y" are arbitrary numbers, ".Y" is optional and the whole string is not case sensitive.

Do you need more advanced rules? Have a look at the official yara documentation!

{% endblock %}