{# R84.4d+e (Hani #1 2026-11-17, plan approved): a rule the local AI's analysis drafted waits here, switched off. Review it: what the AI said, the attackers, the 30-day check, then Approve (with the password; the check runs again), Edit before approving, or Reject. `drafts`, `defence` #}

AI defence {{ 'On' if defence.on else 'Off' }} {{ fresh_tag("rules:ai-drafts") }}{{ fresh_tag("rules:ai-drafts-retry") }}{{ fresh_tag("rules:ai-drafts-repeat") }}{{ fresh_tag("rules:ai-drafts-web") }}{{ fresh_tag("rules:ai-drafts-inbound") }} When an attack is analysed by the local AI and no rule drops it, NEXXVU drafts a firewall rule from the attacker's own lines and files it here, switched off. You get an e-mail every time and an SMS for exploit attempts. Nothing is blocked until you approve. Off stops automatic analysis and drafting at once; active rules stay.

Guide {% if admin %}{% endif %}
{% if admin %}

{{ 'Switch AI defence off' if defence.on else 'Switch AI defence on' }}

{{ 'Automatic analysis and drafting stop at once. Rules already active stay; drafts waiting here stay until you decide.' if defence.on else 'New high-risk attackers are analysed again, and attacks no rule drops get a drafted rule here.' }}

{% endif %} {% for p in drafts %}{% set t = p.test or {} %}

{{ p.name }}

{% if p.source == 'attack' %}

The local AI judged it {{ p.attack_type or 'an attack' }}, {{ p.risk }} risk{% if p.exploit %} (an exploit attempt){% endif %}.{% if p.reason %} “{{ p.reason }}”{% endif %} No rule dropped it, so NEXXVU drafted this rule from the attacker's own lines.

{% endif %}
If
{{ p.describe.get('if', '') }}
Then
{{ p.describe.get('then', '') }}
{% if p.addresses %}
Attackers
{{ p.addresses|length }}: {% for a in p.addresses[:5] %}{{ a }}{{ ', ' if not loop.last }}{% endfor %}{% if p.addresses|length > 5 %} …{% endif %}
{% endif %}
Check, {{ t.period or '30 days' }}
{% if t.kind == 'repeat' %}Repeat visitor: {{ t.addresses or 0 }} address(es) reached {{ t.threshold }} lines within {{ t.window }} min · {{ t.own or 0 }} of your own or trusted addresses · {{ t.expected or 0 }} normal The attacker's lines share only text that normal traffic has too (for example a router rule's own label), so this rule counts per address: it acts only on an address that sends {{ t.threshold }} such lines within {{ t.window }} minutes. NEXXVU set the count above anything your own, trusted or normal addresses reached in 30 days.{% else %}{{ t.lines or 0 }} line(s) from {{ t.addresses or 0 }} address(es){% if t.share is defined %} · {{ t.share }} % of all lines{% endif %} · {{ t.own or 0 }} from your own or trusted addresses · {{ t.expected or 0 }} normal{% endif %}
{% if p.notified %}
You were told
{{ 'bell notice' if p.notified.notice }}{% if p.notified.email %} · e-mail to {{ p.notified.email }}{% endif %}{% if p.notified.sms %} · SMS to {{ p.notified.sms }}{% endif %}
{% endif %}
Drafted
{{ (p.created_at or '')[:16]|replace('T', ' ') }} UTC{% if p.updated_at and p.updated_at != p.created_at %} · last attacker {{ p.updated_at[:16]|replace('T', ' ') }} UTC{% endif %}
{% if not t.approvable %}

{{ fresh_tag("rules:inbound-reach-500") }}It cannot be approved as it is: {{ t.why_not or 'not checked yet' }} Edit it below or check again.

{% endif %} {% if admin %}
Edit before approving

Approve moves it to Firewall, switched on.

It is checked again on {{ t.period or '30 days' }} first. Each block it makes still waits for your approval; switch the rule to “by itself” in its editor once you trust it. Its blocks last 7 days, and become permanent when the address comes back.
{% else %}
{% endif %}
{% endfor %}