{# SPDX-License-Identifier: AGPL-3.0-only Copyright 2026 Mouad Lyaazale. Additional terms (author attribution, names): see NOTICE. -#} {{ project }} security assessment{% if organization %} · {{ organization }}{% endif %}{% if scope %} · {{ scope }}{% endif %} · {{ generated[:10] }}
{{ project }} · {{ project_long }}

Network switch security assessment

Read-only assessment of the switch fleet against the {{ project }} specification (vendor-neutral security controls, conformance Levels 1 and 2).

{% if organization %}
Organization
{{ organization }}
{% endif %} {% if scope %}
Site
{{ scope }}
{% endif %}
Generated
{{ generated }}
Specification
{{ project }} spec {{ fleet.spec_version }}
Scope
{{ rows|length }} switches
Method
SSH "show" commands only, no configuration change; secrets redacted from all evidence
{{ maroc_svg|safe }}

1. Executive summary

Switches assessed{{ rows|length }}
Level 1 reached{{ rows|selectattr("result.summary.achieved_level", "ge", 1)|list|length }}
Failed controls{{ fleet.totals.fail }}
Unknown{{ fleet.totals.unknown }}

Conformance: {% for lvl, n in fleet.levels.items() %}{{ n }} switch{{ "es" if n > 1 }} at Level {{ lvl }}{{ ", " if not loop.last }}{% endfor %}. A switch reaches Level N only when every control of Levels 1 to N passes.

Most frequent issues

{% for t in fleet.top %} {% endfor %}
ControlLevelSwitches failingISO 27001:2022
{{ t.control.id }}
{{ t.control.title }}
{{ t.control.level }} {{ t.count }} / {{ rows|length }}
{{ t.devices|join(", ") }}
{% for m in t.control.mappings.iso27001_2022 or [] %}{{ m }}{% endfor %}

2. Control matrix

{% for r in rows %}{% endfor %} {% for c in fleet.controls %} {% for r in rows %}{% set v = fleet.verdicts[r.device.id].get(c.id, "not_applicable") %} {% endfor %} {% endfor %}
Control{{ r.device.id }}
{{ c.id }} L{{ c.level }}
{{ c.title }}
{{ symbol[v] }}

✓ pass · ✗ fail · ? unknown (evidence insufficient; never guessed) · – not applicable

3. Switch details

{% for r in rows %}{% set res = r.result %}

{{ r.device.id }} Level {{ res.summary.achieved_level }}

Address{{ r.device.host }}Platform{{ r.device.vendor }}
Model{{ res.model or "—" }}Firmware{{ res.firmware or "—" }}
Scanned{{ res.scanned_at.replace("T", " ") }}Result {{ res.summary.pass }} pass · {{ res.summary.fail }} fail · {{ res.summary.unknown }} unknown
{% for f in res.findings if f.verdict in ("fail", "unknown") %}

{{ f.verdict|upper }} {{ f.control_id }} · {{ f.title }}

{% if f.evidence %}
Evidence
{% for e in f.evidence %}{{ e }}
{% endfor %}
{% endif %} {% if f.note %}
{{ f.note }}
{% endif %} {% if f.remediation %}
Recommended fix (review before applying)
{{ f.remediation }}
{% endif %} {% if f.mappings.iso27001_2022 %}
ISO 27001:2022: {{ f.mappings.iso27001_2022|join(", ") }}
{% endif %}
{% endfor %}

Passed: {% for f in res.findings if f.verdict == "pass" %}{{ f.control_id }}{{ ", " if not loop.last }}{% endfor %}

{% endfor %}