NIS2 compliance with open source. No licences, no lock-in

NIS2 · Cybersecurity · Open source

NIS2 compliance with open source.
No licences, no lock-in.

The NIS2 Directive (EU 2022/2555) raises the bar for cybersecurity across critical sectors. Tools like Wazuh, Ansible and OpenVAS cover most of Article 21's technical requirements — for free. This guide explains what they cover, what they don't, and what the organisational gap looks like.

13 min read●NIS2 · Security · Open source● · updated

NIS2 is not optional for EU essential and important entities — or for their technology suppliers. Fines reach €10 million or 2% of global turnover. The directive mandates risk management, incident reporting, supply chain security and board-level accountability. And yet many organisations are paying six-figure licence fees for tools that open source alternatives replicate at zero cost.

At SIXE we deploy Wazuh, Ansible, OpenVAS and Keycloak in production environments for clients that operate in NIS2-regulated sectors. This guide is a distillation of what we've learned: which controls open source tools genuinely cover, which they don't, and what separates an organisation that passes an audit from one that installs the same tools and fails.

01 · Scope

Does NIS2 apply to your organisation?

NIS2 applies to essential entities (energy, transport, banking, health, water, digital infrastructure, public administration, space) and important entities (manufacturing, food, postal and courier services, waste management, chemical production, digital providers). If you supply technology or services to any of these sectors, supply chain security provisions under Article 21.2.d may pull you into scope.

NIS2 entity calculator

Three questions to identify your category and the technical priorities that follow:

~/nis2-entity-classifier
Question 1 of 3
$ nis2-classifier --question 1
Which sector best describes your organisation?
$ nis2-classifier --output
Recommended technical kit

This result is indicative. Your exact classification under NIS2 depends on your national transposition law and, in some cases, explicit designation by your national competent authority. Check ENISA's NIS2 guidance and your national authority's register.

02 · Coverage map

Which NIS2 Article 21 measures does each tool address?

Select a tool to see its NIS2 coverage and which specific Article 21 measures it supports. The percentage reflects its share of Article 21's technical controls — not total compliance, which always includes an organisational layer no tool replaces.

⬡
Wazuh (SIEM / XDR / HIDS)
Open source unified security platform: centralised log management, intrusion detection, file integrity monitoring, vulnerability detection and active response. Zero licence cost, unlimited agents.
NIS2 Art. 21 technical coverage
72%
Art. 21.2.bIncident detection and handling✓
Art. 21.2.bActive response — automated containment✓
Art. 21.2.eVulnerability detection and prioritisation✓
Art. 21.2.gCentralised log management and retention✓
Art. 21.2.gContinuous 24/7 system monitoring✓
Art. 21.2.aFile integrity monitoring (FIM)✓
Art. 21.2.aSecurity configuration assessment (CIS)✓
Art. 21.2.iIdentity and access management (IAM)—
SIXE Wazuh services →
⚙
Ansible + OpenSCAP + Lynis
Infrastructure-as-code hardening: define your security baseline once, apply it across your entire fleet, and produce reproducible audit evidence. Essential for demonstrating systematic security configuration to auditors.
NIS2 Art. 21 technical coverage
55%
Art. 21.2.aSecurity hardening and configuration management✓
Art. 21.2.aReproducible infrastructure-as-code baseline✓
Art. 21.2.ePatch management — automated and tracked✓
Art. 21.2.fCryptography policy enforcement✓
Art. 21.2.hSecure software acquisition and deployment✓
Art. 21.2.bReal-time incident detection and alerting—
Linux training — LPIC-1 and LPIC-2 →
⬦
OpenVAS / GVM (Greenbone Community)
Open source vulnerability scanner. NIS2 Article 21.2.e requires systematic vulnerability handling. GVM Community Edition provides scheduled scans, CVE prioritisation by CVSS score and audit-ready reports — free of charge.
NIS2 Art. 21 technical coverage
30%
Art. 21.2.eVulnerability identification and management✓
Art. 21.2.eCVE disclosure and prioritisation (CVSS)✓
Art. 21.2.hSecure software acceptance scanning✓
Art. 21.2.bReal-time threat detection and response—
Vulnerability management consultancy →
⬗
Keycloak / FreeIPA + privacyIDEA
Open source identity and access management (IAM) with SSO, RBAC and MFA. NIS2 Article 21.2.i requires multi-factor authentication for all privileged and remote access. Keycloak delivers this without per-seat licensing.
NIS2 Art. 21 technical coverage
40%
Art. 21.2.iMulti-factor authentication (MFA)✓
Art. 21.2.iSingle sign-on and centralised IAM✓
Art. 21.2.iRole-based access control (RBAC)✓
Art. 21.2.iEncrypted remote access and session management✓
Art. 21.2.bSecurity event monitoring and correlation—
Identity and access management solutions →
⬒
pfSense / OPNsense + Suricata
Open source firewall and network segmentation. With Suricata as network IDS/IPS. NIS2 requires network security and access control measures — perimeter segmentation and traffic inspection without per-device licensing.
NIS2 Art. 21 technical coverage
38%
Art. 21.2.aNetwork segmentation and perimeter security✓
Art. 21.2.fEncrypted communications — TLS enforcement✓
Art. 21.2.iEncrypted remote access (VPN)✓
Art. 21.2.dSupply chain network access controlpartial
Art. 21.2.bCorrelated event detection across systems—
Secure network architecture →
⬛
BorgBackup / Restic + LUKS
Encrypted, deduplicated, verifiable backups. NIS2 Article 21.2.c requires business continuity and backup management. LUKS for full-disk encryption. Auditors want tested, documented recovery — not assumed recovery.
NIS2 Art. 21 technical coverage
28%
Art. 21.2.cBackup management and recovery procedures✓
Art. 21.2.cBusiness continuity and disaster recoverypartial
Art. 21.2.fEncryption at rest (LUKS, VeraCrypt)✓
Art. 21.2.cHigh-availability failover (essential entities)—
Debian support and backup management →
Coverage ≠ compliance

No single tool — open source or commercial — covers 100% of NIS2's Article 21 measures. The technical stack is necessary but not sufficient. Risk management policy, incident response procedures, supply chain contracts and board accountability are organisational — no product delivers them.

03 · The organisational gap

Installing tools is not being NIS2-compliant

This is the mistake most organisations make, and it's the most expensive. Arriving at an audit with Wazuh freshly deployed but without a documented risk management process, an incident response plan or board-level security governance means the tools won't save you.

Open source covers the technical what. NIS2 also demands the organisational how:

  • Risk management policy — formal, reviewed annually, approved by senior management
  • Incident response procedure — who gets the alert, how it's triaged, how the 24h/72h/1-month reporting timeline is met
  • Supply chain security — contractual security requirements for all technology suppliers (Article 21.2.d)
  • Board accountability — Article 20 makes senior management personally liable for NIS2 compliance failures
  • Business continuity plan — with tested, documented recovery, not assumed recovery
  • Staff security training — with attendance records. Our LPIC-1 and LPIC-2 courses cover the Linux administration competencies auditors expect from teams operating the security stack
NIS2 is not a project

Certification or self-assessment is only the first milestone. NIS2 is a continuous management system: regular risk reviews, incident register updates, supply chain re-assessments, tool tuning. If your tools aren't generating evidence someone is actively reading and acting on, they're a camera with the screen off.

04 · Readiness assessment

How ready are you, honestly?

Tick only what you have operational and documented — not what's in progress or planned:

NIS2 readiness self-assessment
Tick only what is live and documented. The score updates in real time.
Governance and risk management
Formal risk management policy documented and approved by senior management
Risk assessment completed and updated within the last 12 months
Board/senior management formally accountable for cybersecurity (Art. 20)
Designated security officer or equivalent responsible for NIS2 compliance
Technical measures (Art. 21)
SIEM/XDR deployed and tuned to your environment — not a default installation
Hardening documented and reproducible (Ansible + OpenSCAP or equivalent)
Vulnerability management: scheduled scans with CVE tracking and remediation SLAs
MFA enforced for all privileged accounts and remote access (Art. 21.2.i)
Incident response procedure with 24h/72h/1-month reporting timeline defined
Continuity and supply chain
Encrypted backups with tested, documented recovery (not assumed recovery)
Encryption at rest on all devices handling sensitive data (LUKS or equivalent)
Supply chain security clauses in contracts with all technology suppliers (Art. 21.2.d)
Staff security training delivered and recorded with attendance evidence
05 · The platform underneath

Linux is the foundation of your NIS2 stack. Master it.

Wazuh runs on Linux. OpenVAS runs on Linux. Ansible manages Linux servers. Keycloak deploys on Linux. The entire open source security stack sits on Linux — and a poorly administered OS invalidates every tool running on top of it.

At SIXE we offer two services that map directly onto NIS2 requirements:

  • Debian support — proactive maintenance, security patch application, CIS hardening and change documentation. Everything NIS2 requires for OS lifecycle management and evidence of patch cadence.
  • LPIC-1 and LPIC-2 training — internationally recognised Linux certification covering administration, security, networking and automation. Auditors expect the team operating the security stack to hold demonstrable, accredited competencies. Credly badges serve as evidence.

For automated hardening: our Ansible deployment service applies CIS security profiles across your entire fleet, generates compliance evidence and leaves the configuration as versioned code in Git — precisely what an auditor wants to see for systematic risk management.

Summary

The essentials, for those short on time

Six points

→ Wazuh covers the operational framework: log management, intrusion detection, FIM, vulnerability scanning.

→ Ansible + OpenSCAP automates hardening and makes it reproducible and audit-ready.

→ OpenVAS/GVM handles vulnerability management with scheduled, traceable scans.

→ Keycloak centralises identity and enforces MFA for privileged and remote access.

→ BorgBackup + LUKS covers business continuity and encryption at rest.

→ All of this without a risk management policy, incident response plan and governance framework: it won't pass an audit.

FAQ

Frequently asked questions about NIS2 and open source

NIS2 (Directive EU 2022/2555) is the EU's updated network and information security framework. It mandates risk management, incident reporting and supply chain security for essential and important entities. Penalties reach €10 million or 2% of global turnover for essential entities.

Yes. NIS2 mandates outcomes, not specific products. Wazuh, Ansible, OpenVAS, Keycloak and pfSense collectively cover the vast majority of Article 21's technical measures — at zero licence cost.

No. Wazuh addresses a significant portion of the operational framework — log management, intrusion detection, FIM and vulnerability detection. But NIS2 also requires IAM, encrypted backups, network segmentation, documented risk management and board-level accountability that no single tool provides.

Both share the same Article 21 technical obligations. Essential entities face proactive supervision and fines up to €10M or 2% of global turnover. Important entities face reactive supervision and fines up to €7M or 1.4% of global turnover.

With a basic security baseline already in place, 4–6 months is realistic for important entities. Essential entities typically need 8–14 months. Technical deployment is the shorter phase — tuning tools, producing documentation and embedding governance processes take the most time.

Three stages: early warning within 24 hours, full notification within 72 hours, final report within one month. Wazuh provides the detection and logging capabilities to support this, but the reporting itself is an organisational process.

References

Regulation and resources cited

Directive (EU) 2022/2555 (NIS2). EUR-Lex

ENISA — NIS2 implementation guidance. enisa.europa.eu

Wazuh — Ensuring NIS2 compliance. wazuh.com

Greenbone — GVM Community Edition. greenbone.net

ISO/IEC 27001:2022 — information security management. iso.org

Wazuh — official documentation. documentation.wazuh.com

Published: · Last updated:


NIS2 · Open source · SIXE

We've been deploying open source NIS2 stacks in production

Tell us your NIS2 category, what you have in place, and where your gaps are. We'll come back with an architecture sketch and concrete next steps.