{% extends "base.html" %} {% from "_ui.html" import icon, sev, lic, lic_class, eng, when, token, copy_btn, age_chart, spark, composition %} {% block title %}Overview{% endblock %} {% block content %} {% set e0 = engines[0] if engines else none %}

Overview

Free Suricata rules from your sources: test-loaded{% if engines %} in {% for e in engines %}{{ e.name|eng_label }}{% if not loop.last %} and {% endif %}{% endfor %}{% endif %}, duplicates merged, sid clashes fixed. One entry per rule, with every copy and its licence.

{{ token() }}
{{ icon('export') }}Export a ruleset
{% if run %} {% set ch = run.changes or {} %}{% set top = cards[0] if cards else none %} {% set n_fail = st.failing|length %}{% set n_ok = st.n_sources - n_fail %} {% if run.status == 'failed' and not run.accepted %} {% else %}
{{ icon('changes') }}

{% if run.status == 'running' %}Update running{% else %}Updated {{ when(run.started_at) }}{% endif %}·{% if n_fail %}{{ n_ok|num }} of {{ st.n_sources|num }} sources up to date·{{ n_fail|num }} skipped — details{% else %}{{ st.n_sources|num }} source{{ 's' if st.n_sources != 1 }} up to date{% endif %} {%- if ch %}·{{ ch.get('new_logic', 0)|num }} new, {{ ch.get('gone_logic', 0)|num }} removed{% endif %} {%- if top and top.b %}·{{ top.t.name }}: {{ top.b.rules|num }} rules ready{% endif %}

{% endif %} {% endif %}

Unique rules

{{ total|num }}

One entry per rule logic, from {{ occ|num }} rule lines.{% if run and run.changes and run.changes.get('new_logic') and run.changes.get('new_logic') < total %} +{{ run.changes.get('new_logic', 0)|num }} in the last update.{% endif %}

{{ composition(severity, 'By signature severity') }} {{ spark(trend, ('unchanged' if not trend.delta else '{:+,}'.format(trend.delta)) ~ ' over the last ' ~ trend.n ~ ' updates') if trend }}
{{ age_chart(ages) }}
{% if e0 %}{% set checked = e0.loads + e0.fails %}
Load in {{ e0.name|eng_label }}
{% if checked %}{{ '%.1f'|format(100 * e0.loads / checked) }}%{% else %}–{% endif %}
{{ e0.loads|num }} rules{% for e in engines[1:] %}{% set c = e.loads + e.fails %}; {% if c %}{{ '%.1f'|format(100 * e.loads / c) }}%{% else %}not checked{% endif %} in {{ e.name|eng_label }}{% endfor %}{% if e0.unchecked %}; {{ e0.unchecked|num }} not checked{% endif %}
{% else %}
Suricata check
–
no engine in suriharvest.yaml
{% endif %}
Duplicates merged
{{ (occ - total if occ > total else 0)|num }}
rule lines whose logic another rule already has
Sid clashes fixed
{{ remapped|num }}
remapped once, stable in every build

By protocol app-layer of each rule

{% for a, n in apps %}{% endfor %}

{{ rep.get('behaviour_groups', 0)|num }} behaviour rules, {{ rep.get('ioc_groups', 0)|num }} single-indicator (IOC) rules{% if iocs %}: {% for t, n in iocs[:5] %}{{ n|num }} {{ {'domain': 'domains', 'ip': 'IPs', 'url': 'URLs', 'ja3': 'JA3', 'ja3s': 'JA3S', 'cert_fingerprint': 'TLS certificates', 'cert_serial': 'certificate serials', 'dataset': 'dataset lists'}.get(t, t) }}{% if not loop.last %}, {% endif %}{% endfor %}{% endif %}. Click a protocol to search it.

{% set nfail = engines|sum(attribute='fails') %}

Suricata check every rule through suricata -T, cached by rule text

{% if nfail %}See the {{ e0.fails|num }} failures{% endif %}
{% if engines %}
{% for e in engines %}{% set all_ = e.loads + e.fails + e.unchecked %}
{{ e.name|eng_label }}{{ e.version or 'not run yet' }}{% if e.checked %} · checked {{ e.checked|reltime }}{% endif %} {% if e.loads %}{% endif %}{% if e.fails %}{% endif %}{% if e.unchecked %}{% endif %} {% if e.loads + e.fails %}{{ '%.1f'|format(100 * e.loads / (e.loads + e.fails)) }}% {{ e.fails|num }} fail{% else %}not checked{% endif %}
{% endfor %}
{% for e in engines if e.reasons %}

Why rules fail in {{ e.name|eng_label }} (top {{ [3, e.reasons|length]|min }} of {{ e.reasons|length }} reason{{ 's' if e.reasons|length != 1 }})

    {% for cat, words, n in e.reasons[:3] %}
  • {{ words }}{{ n|num }}
  • {% endfor %}
{% else %}

Every checked rule loads. Rules that fail would be listed here with the reason.

{% endfor %}

A rule that does not load in an engine is left out of that engine's exports automatically, with the reason in excluded.jsonl.

{% else %}

No Suricata engine is configured: add engines: to suriharvest.yaml to check every rule.

{% endif %}

Recent changes {% if run %}last update, {{ run.started_at.strftime('%d %b %Y %H:%M') }} UTC{% endif %}

{% if run and run.changes %}{% set n_changes = run.changes.get('new_logic', 0) + run.changes.get('gone_logic', 0) %}{% if n_changes %}All {{ n_changes|num }} changes{% else %}Builds & changes{% endif %}{% endif %}
{% if changes %}
    {% for kind, r, g in changes %}
  • {{ kind }}{% if g %}{{ r.msg or g.msg }}{% else %}{{ r.msg }}{% endif %}sid {{ r.sid }}{% if g %} · {{ g.app_layer }} · {{ g.canonical_source }}{% endif %}{% if g %}{{ sev(g.severity) }}{% else %}{% endif %}
  • {% endfor %}
{% elif run %}

The last update changed nothing.

{% else %}

No suriharvest update yet: changes show up after the second download.

{% endif %}

Licences in your index

What they mean
{% for cls, words in [('permissive', 'BSD, MIT, CC0, CC-BY, Apache'), ('copyleft', 'GPL, CC-BY-SA'), ('restricted', 'NC licences: your sensors, never shared'), ('none', 'no licence stated')] if lic_counts.get(cls) %} {% endfor %}
{{ lic_class(cls) }}{{ lic_names.get(cls, [])|join(', ') or words }}{{ lic_counts[cls]|num }}

Your rulesets

Manage profiles
{% if cards %}
    {% for c in cards %}{% set t, b = c.t, c.b %}
  • {{ t.name }}{% if t.engine %} {{ t.engine|eng_label }} only{% endif %} {% if (t.options or {}).get('redistributable_only') %}{{ lic('shareable', 'permissive') }}{% elif t.engine %}{{ eng(t.engine, [t.engine], []) }}{% else %}{% for e in engines %}{{ e.short }}✓{% endfor %}{% endif %} {% if b %} {{ b.rules|num }} rulesbuild #{{ b.id }} · {{ when(b.created_at) }}{{ c.n_excl }} exclusion{{ 's' if c.n_excl != 1 }}{% if b.summary.previous_build %}+{{ b.summary.added|num }} −{{ b.summary.removed|num }} since #{{ b.summary.previous_build }}{% endif %} {{ icon('export') }}suricata.rules {% if c.new %}Review {{ c.new|num }} new{% elif b.summary.previous_build %}Diff with #{{ b.summary.previous_build }}{% endif %} {% else %} No build yet{{ c.n_excl }} exclusions
    {{ token() }}
    {% endif %}
  • {% endfor %}
{% else %}

No profile yet. A profile is a named ruleset (which rules, which engine, what to leave out):

suriharvest profile create default{{ copy_btn('#c-prof') }}
{% endif %}
    {% for name, n in canon %}{% set src = srcs.get(name) %}
  • {{ name }} {% set l = src_lic(src) %}{{ lic(l[0], l[1]) }}{{ n|num }} unique
  • {% endfor %}
Unique = rules counted once, under the highest-priority source that carries them.{% if st.failing %} {{ st.failing|length }} failing: {% for name, err in st.failing %}{{ name }}{% if not loop.last %}, {% endif %}{% endfor %} (old rules kept).{% endif %}
{% if starts %}

Common starting points

    {% for label, q, n in starts %}
  • {{ label }}{{ n|num }}
  • {% endfor %}
{% endif %}
{% endblock %}