{% extends "base.html" %} {% from "_ui.html" import icon, lvl, st as status_badge, lic, val, tech, copy_btn, crumbs, logsource, strip, cmd %} {% block title %}{{ g.title or '(untitled)' }}{% endblock %} {% block section %}search{% endblock %} {% block content %} {% set here = '/rule/' ~ g.logic_hash[:16] %} {% set ls = [g.product, g.category, g.service]|select|list %} {% macro src_row(c) -%}
  • {{ c.source }}{% if c.canonical %} canonical{% endif %}{{ lic(c.licence) }} {% if c.link %}{{ c.path }}{% if c.short %} @ {{ c.short }}{% endif %} {{ icon('external') }} {% else %}{{ c.path }}{% endif %} {% if c.note %}{{ c.note }}{% endif %}
  • {%- endmacro %} {{ crumbs([('Search', '/search')] + ([(g.product, '/search?' ~ {'product': g.product}|qs)] if g.product else []) + ([(g.category or g.service, '/search?' ~ {'product': g.product or '', 'category': g.category or '', 'service': '' if g.category else g.service or ''}|qs)] if (g.category or g.service) else []) + [(g.title or '(untitled)', '')]) }}

    {{ g.title or '(untitled)' }}

    {{ lvl(g.level) }}{{ status_badge(g.status) }}{{ lic(licence) }}{{ val(g.validation, true) }} {%- if g.family_size > 1 %}{{ icon('family') }}{{ g.family_size - 1 }} variant{{ 's' if g.family_size - 1 != 1 }}{% endif %} {{ n_copies }} {{ 'copy' if n_copies == 1 else 'copies' }} · {{ g.n_sources }} {{ 'source' if g.n_sources == 1 else 'sources' }}
    {{ copy_btn('#yaml', 'Copy YAML', 'btn') }} {{ icon('file') }}Download .yml {{ icon('export') }}Export…

    Summary

    {% if summary.kind == 'plain' %}

    {% for kind, part in summary.parts %}{% if kind == 'b' %}{{ part }}{% elif kind == 'code' %}{{ part }}{% elif kind == 'field' %}{{ part }}{% else %}{{ part }}{% endif %}{% endfor %}

    {% elif summary.kind == 'author' %}

    Author's description{{ summary.parts[0][1] }}

    {% else %}

    This rule has no description and its detection is too complex to summarise. Read the Sigma rule below.

    {% endif %}
    Detects
    {% for t in techniques[:4] %}{{ tech(t.original_id, t.name) }} {% endfor %} {%- if techniques %}{{ techniques[0].name or techniques[0].label }}{% if tactics %} · {{ tactics[0].replace('-', ' ')|title }}{% endif %} {%- elif tactics %}{{ tactics|map('replace', '-', ' ')|map('title')|join(', ') }}{% else %}no ATT&CK tags{% endif %}
    Log source
    {{ ls|join(' / ') or 'any' }}{{ events }} events
    Known false positives
    {% if context.falsepositives %}{{ context.falsepositives[:2]|join('; ') }}{% if context.falsepositives|length > 2 %} (+{{ context.falsepositives|length - 2 }}){% endif %}{% else %}none listed{% endif %}
    Author · licence
    {{ g.author or 'unknown author' }}{{ licence.label }}: {{ licence.meaning }}
    {{ icon('about') }}

    You need: {{ needs }}.{% if needs_known %} Without it the events are never written and this rule cannot fire.{% endif %}

    Sigma rule canonical copy from {{ g.canonical_source }}{% if rule_date(v) %} · dated {{ rule_date(v) }}{% endif %}

    Raw{{ copy_btn('#yaml') }}{{ icon('file') }}.yml
    {{ v.raw|yaml_html }}

    Use it in your SIEM ready-to-paste queries

    {% if tabs %}More targets and pipelines{% endif %}
    {% if tabs %}
    {% for t in tabs %}{% endfor %} {% for t in tabs %}
    {% if t.stored %}Converted with pySigma · {{ t.status_label }}{% if t.pipeline %} · pipeline {{ t.pipeline }}{% else %} · no pipeline, Sigma field names{% endif %} · check field names against your data{% else %}Not converted yet{% endif %} {% if t.blocks %}{{ copy_btn('#q-' ~ t.target) }}{{ icon('export') }}.txt{% endif %}
    {% if t.blocks %}
    {% for b in t.blocks %}{% if b.label %}# {{ b.label }}
    {% endif %}{{ b.text }}{% if not loop.last %}
    
    {% endif %}{% endfor %}
    {% elif t.error %}

    {{ t.target }} cannot convert this rule: {{ t.error }}

    {% elif t.stored %}

    {{ t.status_label|capitalize }}{% if t.reason %}: {{ t.reason }}{% endif %}

    {% else %}
    Converting…
    {% endif %} {% if t.notes and t.blocks %}
      {% for n in t.notes[:4] %}
    • {{ n }}
    • {% endfor %}
    {% endif %}
    {% endfor %}
      {% for w in conv_warnings %}
    • {{ w }}
    • {% endfor %}
    {% else %}

    Query conversion needs the optional pySigma backends, which are not installed here. Install them to see Splunk, Elastic, KQL, OpenSearch and Loki queries for every rule:

    {{ cmd('c-convert', install_command()) }}

    Then open a query tab: each rule is converted when you look at it.

    {% endif %}
    {% if variants %}

    Variants in this family same rule id or a related: link; the detection differs

    {% if variants|length > 5 %}All {{ variants|length }}{% endif %}
      {% for x in variants[:8] %}
    • {{ x.title or '(untitled)' }}{{ x.canonical_source }} · {{ logsource(x) }} · {{ variant_diffs.get(x.id, '') }} · compare{{ x.copies }} {{ 'copy' if x.copies == 1 else 'copies' }}
    • {% endfor %}
    {% endif %} {% if similar or related_rules %}

    Similar rules a different rule with nearly the same detection values, or the same intent on other telemetry

    {% endif %} {% if history|length > 1 %}
    History of this rule id {{ history|length - 1 }} earlier version{{ 's' if history|length - 1 != 1 }}
    {% for h in history %}{% endfor %}
    ContentRule dateFirst seen
    {{ h.content_hash[:10] }}{{ rule_date(h) or '-' }}{{ h.first_seen.strftime('%Y-%m-%d') }} {% if h.logic_hash == g.logic_hash %}this rule{% else %}other logic{% endif %}
    {% endif %}

    Export this rule

    Need other formats or options? Open the full export page.

    {% endblock %}