Skip to content

Produce a NIS2 report and use the audit log

What you'll learn:

  • What the NIS2 indicator in Repod measures, and how its colour is decided
  • How to read the NIS2 banner and export the data as JSON
  • How to generate the PDF report for an auditor, and what the [À VALIDER] blocks mean
  • How to search the audit log and export it as evidence

Time: ~20 minutes
Prerequisites: At least one scanned machine (see Add your first client machine) and an account with the auditor role or higher. The PDF export and the audit export also need an API token (see Manage users, roles and groups, Step 6).


What the report covers, and what it does not

NIS2 (directive (EU) 2022/2555, Article 21) asks organisations to manage the vulnerabilities of their systems. Repod measures that part only: how long known vulnerabilities stay unfixed on your machines, and how many of them have a fix available in your depot. It does not cover governance, incident notification or training.

The report is therefore a technical evidence document, not a certificate of compliance. Whatever Repod cannot know is left as an explicit [À VALIDER: ...] block for your compliance team to complete.


Step 1 — Read the NIS2 banner

Open Sécurité → Conformité parc. The first line is the NIS2 banner. Click it to unfold the details.

The NIS2 banner unfolded: status, four indicators, the detected gap and the JSON export button

Figure 1 — The NIS2 banner.

  1. The status. Conforme NIS2 (green), Attention NIS2 (amber) or Non-conforme NIS2 (red).
  2. The four indicators. The mean exposure delay (MTTP, in days, with its 30-day threshold), the coverage rate (the share of fixable CVE that already have a patch in your depot, threshold 80%), and the number of Critical and High CVE unfixed for more than 30 days.
  3. The detected gaps. In plain words, why the status is not green. Here: only 41.5% of the fixable CVE have a patch in the depot.
  4. Exporter rapport NIS2 (JSON). Downloads the same data as a file.

The colour follows fixed rules:

Status Condition (any one is enough)
Red A Critical CVE unfixed for more than 30 days, or coverage below 50%, or mean exposure above 90 days
Amber A High CVE unfixed for more than 30 days, or coverage below 80%, or mean exposure above 30 days
Green None of the above

A red status is not always an emergency

Here the machines carry no old Critical or High CVE and the mean delay is 0 days. The status is red only because the depot holds a patch for 41.5% of the fixable CVE. The cure is to import the missing fixes, which the orange button at the top of the page does (see Fix a vulnerability on your machines).


Step 2 — Generate the PDF

The PDF is meant to leave Repod: you hand it to an auditor, a manager or a compliance officer. It is produced by the API, there is no button for it in the interface yet.

curl -s https://repod.example.com/api/v1/compliance/nis2-report.pdf \
  -H "Authorization: Bearer $TOKEN" \
  -o nis2_compliance_report.pdf

Replace the address and $TOKEN with your own. The nis2_report feature must be part of your licence.

You can narrow it down:

  • period_start and period_end (for example 2026-01-01) limit only the decisions history (section 8).
  • tags and client_ids limit the machines covered. A scope that matches no machine is refused instead of producing an empty report.

The full list, with examples, is in Generate a NIS2 compliance report.

The posture is a snapshot

The indicators are computed at the moment you generate the report. Repod keeps no history from which to rebuild last January's posture. A report asked for period_start=2026-01-01 shows today's posture next to January's decisions. Keep each report you generate if you want to show a trend.


Step 3 — Read the report

The report has five pages. The cover first.

The report cover: title, period, generation date, NIS2 score and a disclaimer to validate

Figure 2 — The cover.

  1. Title and reference. The directive and article covered.
  2. Period, date and score. "Instantané" means a snapshot taken at the generation date. The score is the same as the banner's (RED, AMBER or GREEN).
  3. A disclaimer to validate. See below.

Executive summary, scope, key indicators and the inventory of covered machines

Figure 3 — Summary, scope and indicators.

  1. The score and the problems identified. The same sentences as in the banner.
  2. The scope. Here the whole enabled fleet, two machines.
  3. A block to validate. See below.
  4. The key indicators. Mean exposure, patch coverage, Critical and High CVE over 30 days, entries over their SLA, CVE listed in the CISA KEV catalogue.
  5. The covered machines. Each with its distribution, its last scan and the status of that scan. rocky-rpm shows error because it could not be reached: a machine that is not scanned is not measured, so look at this column before trusting the figures.

The next pages give the remediation policy applied (the delay in days per severity, and the automatic action at import) and the decisions history.

The security decisions history and the last block to validate

Figure 4 — Decisions and the last placeholder.

  1. Historique des décisions de sécurité. Each accepted risk, exception, rejection or required upgrade, with who decided, when and why. Justifications written in the decision form end up here, so write them for a reader who was not there.
  2. Section 9. Left for you to complete.

The [À VALIDER: ...] blocks

Some content depends on judgement that Repod cannot make for you: which articles of the directive you consider covered, organisational measures, the incident notification procedure (Article 23), training. The report does not invent any of it. Each gap appears as an orange [À VALIDER: ...] block.

Do not send the PDF with these blocks still in it

A block means "not yet reviewed", not "not applicable". Have your compliance team complete or remove each one before the document goes to an external auditor.


Step 4 — Search the audit log

The decisions in the report come from the audit log, where every important action is recorded. Open Sécurité → Journal d'audit (auditor role or higher).

The audit log filtered on security decisions, with the filters and the columns

Figure 5 — The audit log.

  1. Search box. Looks in the package, user and detail fields.
  2. Filters. By action, by result (Succès, Échec, Attention) and by package, then Actualiser.
  3. The counter. Entries shown and total for the current filter.
  4. Sort. Click Horodatage to flip between newest and oldest first.
  5. The detail. Here, a decision: the action taken, the justification and the expiry date.

Each line says who did what, when, to which package, with what outcome. Logins, imports, installs, scans, setting changes and decisions are all there. The log is append-only: nothing in the interface edits or deletes an entry.

The action list comes from the log itself

The Toutes les actions list is built from the actions actually present in your log, so every entry matches something. Names are the technical ones: for security decisions pick SECURITY_DECISION, for installations PACKAGE_INSTALL. You can also open a pre-filtered view directly, for example /audit?action=SECURITY_DECISION (Figure 5).

Keep it as evidence

Two API calls turn the log into evidence you can hand over:

# Export as CSV (or json), optionally compressed and signed
curl -s "https://repod.example.com/api/v1/artifacts/audit/export?format=csv&start=2026-01-01&compress=true&sign=true" \
  -H "Authorization: Bearer $TOKEN" -o audit.csv.gz

# Checksum of every daily file, to prove nothing was altered afterwards (admin)
curl -s https://repod.example.com/api/v1/artifacts/audit/integrity \
  -H "Authorization: Bearer $TOKEN"

sign=true adds a detached GPG signature in the X-GPG-Signature header. integrity returns the SHA-256, size and line count of each daily file: keep the output next to your exports, and compare it later.

Mind the retention

The audit files are purged after 90 days by default (Administration → Paramètres, section Rétention & nettoyage). If your obligations ask for more, raise that value or export regularly.


Checklist

  • Import the missing fixes before generating the report, and check that every machine's last scan is ok.
  • Generate the PDF, complete every [À VALIDER] block, and store the final version.
  • Write real justifications on every security decision: they are the report's evidence.
  • Export and sign the audit log at the end of each period, and keep the integrity output.

What's next