{% extends 'generic/object.html' %} {% load i18n l10n %} {% block content %}
JSON
{% blocktrans with site=object generated=overview.generated|date:"Y-m-d H:i" version=overview.version %}OT overview of {{ site }}, generated {{ generated }} by netbox-ot {{ version }}. Everything here is derived from the zones, conduits, risk assessments and requirement statuses; nothing is entered on this page.{% endblocktrans %}
{% if overview.start %} {# A site without zones: say where to start instead of a page of empty panels #}

{% trans "Where to start" %}

{% blocktrans count n=overview.start.assets %}This site has no OT zones yet, and {{ n }} device or VM with an address or a Purdue level that belongs in one.{% plural %}This site has no OT zones yet, and {{ n }} devices and VMs with an address or a Purdue level that belong in one.{% endblocktrans %}

  1. 1
    {% trans "From a network capture (Zeek logs)" %}
    {% trans "List the networks the capture holds and write a zone map to edit, then import with it:" %}
    manage.py ot_import <logs> --site {{ object.slug }} --suggest-zone-map zones.csv
    manage.py ot_import <logs> --site {{ object.slug }} --zone-map zones.csv --dry-run
  2. 2
    {% trans "Or by hand" %}
    {% trans "Add the zones (one per cell, the control room, the DMZ, suppliers as external zones), give each its Purdue level and put the devices in them." %} {% trans "Add a zone" %}
  3. 3
    {% trans "Then the checks" %}
    {% trans "They list what is missing or contradicts itself, starting with the paths into the controllers." %} {% trans "Open the checks" %}
{% else %} {# Exposure and next steps: there from the first import on, before any level or assessment is recorded #}

{% trans "Exposure of the controllers" %}

{% with e=overview.exposure %} {% if e.undecided %}
{% blocktrans count n=e.undecided %}{{ n }} flow into a control zone changes it, is remote access or comes from outside, and nobody decided whether it may.{% plural %}{{ n }} flows into control zones change them, are remote access or come from outside, and nobody decided whether they may.{% endblocktrans %} {% trans "Decide them" %}
{% elif e.into_control %}

{% trans "Every flow into a control zone that changes it, is remote access or comes from outside has a verdict." %}

{% endif %}
{% trans "Control zones (level 0-1 or safety)" %}
{{ e.control_zones }}
{% trans "Flows into control zones" %} {% trans "access map" %}
{{ e.into_control }}
{% trans "that write, control or program" %}
{{ e.changes }}
{% trans "remote access" %}
{{ e.remote }}
{% trans "from a DMZ, enterprise or external zone" %}
{{ e.from_outside }}
{% trans "allowed straight from outside" %}
{{ e.outside_allowed }}
{% trans "External zones (suppliers, MSP, internet)" %}
{{ e.external_zones|length }}
{% if not e.control_zones %}

{% trans "No zone is at Purdue level 0 or 1 or a safety zone, so nothing counts as a control zone yet: give the zones of the controllers their level." %}

{% endif %} {% endwith %}

{% trans "Next steps" %}

    {% for step in overview.next_steps %}
  1. {% if step.done %}{% else %}{{ forloop.counter }}{% endif %}
    {{ step.title }}{% if step.now %} {% trans "now" %}{% endif %}
    {% if not step.done %}{% endif %}
  2. {% endfor %}
{# Headline numbers #}
{% trans "Zones at their target level" %}
{% if overview.zones.with_target %}{{ overview.zones.at_target }} {% trans "of" %} {{ overview.zones.with_target }}{% else %}{{ ''|placeholder }}{% endif %}
{% if overview.zones.below_target %}{% blocktrans count n=overview.zones.below_target %}{{ n }} below target{% plural %}{{ n }} below target{% endblocktrans %}{% endif %}{% if overview.zones.below_target and overview.zones.not_assessed %}, {% endif %}{% if overview.zones.not_assessed %}{% blocktrans count n=overview.zones.not_assessed %}{{ n }} without an achieved level{% plural %}{{ n }} without an achieved level{% endblocktrans %}{% endif %} {% if not overview.zones.with_target %}{% trans "No zone has a target level yet" %}{% endif %}
{% trans "Requirements satisfied" %}
{% if overview.requirements.percent is not None %}{{ overview.requirements.percent }}%{% else %}{{ ''|placeholder }}{% endif %}
{% if overview.requirements.total %}{% blocktrans with satisfied=overview.requirements.satisfied total=overview.requirements.total %}{{ satisfied }} of {{ total }} requirement statuses recorded{% endblocktrans %}{% if overview.requirements.not_met %}, {% blocktrans with n=overview.requirements.not_met %}{{ n }} not met{% endblocktrans %}{% endif %}{% if overview.requirements.open %}, {% blocktrans with n=overview.requirements.open %}{{ n }} without a status{% endblocktrans %}{% endif %}{% else %}{% trans "No requirement statuses yet" %}{% endif %}
{% trans "Residual risk above tolerable" %}
{% if overview.risk.assessed %}{{ overview.risk.above_tolerable|length }}{% else %}{{ ''|placeholder }}{% endif %}
{% blocktrans with assessed=overview.risk.assessed subjects=overview.risk.subjects %}{{ assessed }} of {{ subjects }} zones and conduits have an approved assessment{% endblocktrans %}
{% trans "Check findings" %}
{{ overview.findings.total }}
{% blocktrans with errors=overview.findings.error warnings=overview.findings.warning %}{{ errors }} errors, {{ warnings }} warnings{% endblocktrans %} {% trans "Open the checks" %}
{# Security levels #}

{% trans "Security levels per foundational requirement" %}

{% if overview.chart %}
{% if overview.focus %} {% blocktrans with zone=overview.focus.name %}Zone {{ zone }}.{% endblocktrans %} {% trans "Show the whole site" %} {% else %} {% blocktrans count n=overview.axes.0.measured %}Per foundational requirement, the weakest of {{ n }} zone with a target and an achieved level: the one furthest below its target sets the site's level.{% plural %}Per foundational requirement, the weakest of {{ n }} zones with a target and an achieved level: the one furthest below its target sets the site's level.{% endblocktrans %} {% trans "Pick a zone in the table for its own chart." %} {% endif %}
{{ overview.chart }}
{% trans "Achieved (SL-A)" %} {% trans "Target (SL-T)" %} ▼ {% trans "below target" %}
{% if overview.weakest and not overview.focus %}
{% trans "Weakest zone" %}: {% for zone, frs in overview.weakest %}{{ zone }} ({{ frs|join:", " }}){% if not forloop.last %} · {% endif %}{% endfor %}
{% endif %}

{% if overview.furthest %} {% if overview.furthest.zone %}{% blocktrans with label=overview.furthest.label zone=overview.furthest.zone %}Furthest from target: {{ label }}, in zone {{ zone }}.{% endblocktrans %}{% else %}{% blocktrans with label=overview.furthest.label %}Furthest from target: {{ label }}.{% endblocktrans %}{% endif %} {% if not overview.focus %}{% blocktrans count n=overview.furthest.below with measured=overview.furthest.measured %}{{ n }} of {{ measured }} zones is below target there.{% plural %}{{ n }} of {{ measured }} zones are below target there.{% endblocktrans %}{% endif %} {% elif overview.axes.0.achieved is not None %} {% trans "No foundational requirement is below its target." %} {% else %} {% trans "No achieved level recorded yet." %} {% endif %} {% trans "These are security levels 0 to 4 (IEC 62443-3-3), not maturity levels." %}

{% else %}

{% trans "Nothing to draw yet: give a zone a target security level (SL-T), and an achieved level (SL-A) once it is assessed." %}

{% endif %}

{% trans "Achieved / target per zone and conduit" %} {{ overview.levels|length }}

{% for a in overview.axes %}{% endfor %} {% for row in overview.levels %} {% if row.state == 'no-target' %} {% else %} {% for cell in row.cells %} {% endfor %} {% endif %} {% empty %} {% endfor %}
{% trans "Zone or conduit" %}{{ a.fr }}{% trans "Short" %}
{% if row.kind == 'zone' %}{{ row.name }} {% else %} {{ row.name }}{% endif %} {% trans "No target level (SL-T)" %} {{ ''|placeholder }}{% if cell.gap %}{{ cell.achieved }}/{{ cell.target }}{% elif cell.achieved is None %}?/{{ cell.target }}{% else %}{{ cell.achieved }}/{{ cell.target }}{% endif %}{% if row.state == 'gap' %}{{ row.gap }}{% elif row.state == 'met' %}{% else %}?{% endif %}
{% trans "No zones or conduits at this site." %}
{# Requirements #}

{% trans "Requirement statuses per foundational requirement" %}

{% if overview.requirements.total %}
{% for state, label in requirement_states %}{% endfor %} {% for fr in overview.requirements.per_fr %} {% for n in fr.cells %}{% endfor %} {% endfor %}
{% trans "Foundational requirement" %} {{ label }}{% trans "Satisfied" %}
{{ fr.fr }} {% if fr.total %}
{% for part in fr.bar %}{% endfor %}
{% endif %}
{% if n %}{{ n }}{% else %}0{% endif %}{% if fr.percent is not None %}{{ fr.percent }}%{% else %}{{ ''|placeholder }}{% endif %}
{% for state, label in requirement_states %}{{ label }} {% endfor %}
{% else %}
{% trans "No requirement statuses yet. Record per zone or conduit where it stands against a system requirement, and they are counted here." %}
{% endif %}
{# Risk #}

{% trans "Risk, before and after countermeasures" %}

{% if overview.risk.assessed %}
{% for level in overview.risk.levels %} {% endfor %}
{% trans "Risk level" %}{% trans "Unmitigated" %}{% trans "Residual" %}
{{ level.label }}
{{ level.unmitigated }}{% if level.unmitigated %}{% endif %}
{{ level.residual }}{% if level.residual %}{% endif %}
{% endif %}
{% if not overview.risk.assessed %}

{% trans "No approved risk assessment yet." %}

{% endif %} {% if overview.risk.above_tolerable %}
{% trans "Residual risk above tolerable" %}
    {% for item in overview.risk.above_tolerable %}
  • {{ item.name }}: {{ item.residual_risk }} {% blocktrans with tolerable=item.tolerable_risk %}tolerable: {{ tolerable }}{% endblocktrans %}
  • {% endfor %}
{% elif overview.risk.assessed %}

{% trans "No residual risk above the tolerable risk." %}

{% endif %} {% if overview.risk.without_assessment %}
{% trans "Without an approved assessment" %} {{ overview.risk.without_assessment|length }}
{% for item in overview.risk.without_shown %}{{ item.name }}{% if not forloop.last %}, {% endif %}{% endfor %}{% if overview.risk.without_more %} {% blocktrans with n=overview.risk.without_more %}and {{ n }} more{% endblocktrans %}{% endif %}
{% endif %}
{% endif %} {% endblock %}