{% extends "base.html" %} {% from "_ui.html" import icon, sev, lic, lic_class, engs, eng, token %} {% block title %}{{ q ~ ' - ' if q }}Search{% endblock %} {% block content %} {% macro facet_link(tok, label_html, n) -%} {%- set on = tok in tokens -%}
  • {{ label_html }}{% if n is not none %}{{ n|num }}{% endif %}
  • {%- endmacro %}

    Search

    {% if error %}{% endif %}
    {% if tokens %} {% endif %} {% if total %}
    {{ token() }}

    {{ total|num }} rule{{ 's' if total != 1 }} match{{ 'es' if total == 1 }} · {{ lines|num }} rule line{{ 's' if lines != 1 }}{% if lines > total %}, {{ (lines - total)|num }} {{ 'was a copy' if lines - total == 1 else 'were copies' }}{% endif %}

    {% if all %}{% endif %}{% if view == 'table' %}{% endif %} {{ icon('list') }}Cards{{ icon('table') }}Table {{ icon('export') }}Export all {{ total|num }}
    {% if view == 'table' %}
    {% for g in rows %}{% set l = lics[g.logic_hash] %} {% endfor %}
    SelectsidRuleAppSeverityCheckSourceLicence
    {{ g.sid }}{{ g.msg|mark(words) if g.msg else '(no msg)' }}{{ g.app_layer }}{{ sev(g.severity) }}{{ engs(engines, g.loads_in, g.fails_in) }} {{ g.canonical_source }}{% if g.n_sources > 1 %} +{{ g.n_sources - 1 }}{% endif %}{{ lic(l[0], l[1]) }}
    {% else %} {% endif %}
    0 selected {% if first_profile %}{% endif %}
    {% if pages > 1 %} {% endif %} {% elif not error %}
    {% if q %}

    No rules match "{{ q }}"

    {% for h in hints or [] %}

    {{ h }}

    {% endfor %} {% if alone and alone[1] %}

    {{ alone[0] }} alone matches {{ alone[1]|num }} rules. Remove a filter to see them:

      {% for tk in tokens if ':' in tk %}
    • {{ tk.partition(':')[0] }} {{ tk.partition(':')[2] }} {{ icon('x') }}
    • {% endfor %}
    {% else %}

    Try fewer words, or one filter at a time. Words search the rule name, contents, metadata and references.

    {% endif %} {% else %}

    Search every rule in the index

    Type words, or start from an example above.

    {% endif %}
    {% endif %}
    {% endblock %}