NIS2 does not contain a list of Linux commands, but its risk-management measures map directly onto everyday server work: patching, access control, logging, backups, encryption and incident handling. If your organisation is an essential or important entity, you need to show that those measures exist on your servers and that you can report significant incidents within 24 hours, 72 hours and one month. This checklist translates the Directive into concrete server tasks and the evidence you should keep.
Who is in scope of NIS2
The NIS2 Directive, Directive (EU) 2022/2555, applies to public and private entities operating in the sectors listed in its Annex I (sectors of high criticality, such as energy, transport, banking, health, drinking water, digital infrastructure, ICT service management and public administration) and Annex II (other critical sectors, such as postal services, waste management, chemicals, food, manufacturing of certain products, digital providers and research).
As a general rule, the Directive covers organisations in those sectors that are at least medium-sized under the EU definition: 50 or more employees, or an annual turnover and balance sheet above EUR 10 million. Some entities are covered regardless of size, for example providers of public electronic communications networks, trust service providers, top-level domain name registries and DNS service providers.
Entities are then split into two categories:
- Essential entities: generally large entities in Annex I sectors, plus some specific categories named in the Directive. They face proactive supervision.
- Important entities: the other in-scope entities. They face mainly reactive (ex post) supervision.
Both categories must apply the same Article 21 measures and the same Article 23 reporting obligations; the difference lies mainly in supervision and the level of fines. Because NIS2 is a directive, each Member State transposes it into national law, and national rules may add details or registration duties. Check your national transposition and, if you are unsure whether you are in scope, confirm it with a legal or compliance advisor.
Even if you are not directly in scope, your clients may be. NIS2 asks entities to address supply chain security, so hosting providers, agencies and software vendors often receive NIS2-style questionnaires from in-scope customers.
Article 21 measures translated into server tasks
Article 21(2) lists the minimum areas that cybersecurity risk-management measures must cover. They must be appropriate and proportionate to the risks, and Article 20 makes the management body responsible for approving and overseeing them. Here is how each area typically becomes work on a Linux server.
(a) Risk analysis and information system security policies
- Keep an inventory of servers: hostname, role, owner, OS and kernel version, internet exposure.
- Document a baseline configuration (SSH settings, firewall, automatic updates, kernel parameters) and compare servers against it.
(b) Incident handling
- Collect and retain authentication logs (
/var/log/auth.logor/var/log/secure), sudo usage and web server access logs. - Define who is alerted, how, and what counts as an incident. Write a short playbook for common cases: malware, intrusion, attack on a public service.
(c) Business continuity, backups and disaster recovery
- Back up data and configuration off the server, with at least one copy that the server itself cannot delete.
- Test restores on a schedule and record the result. An untested backup is a hope, not a control.
(d) Supply chain security
- Know which third-party images, repositories and providers your servers depend on.
- Prefer official distribution repositories and pinned, trusted container images.
(e) Security in acquisition, development and maintenance, including vulnerability handling
- Apply security updates regularly; enable unattended security updates where it is safe.
- Track packages with known vulnerabilities and pending reboots after kernel or library updates.
- Watch for services listening on all interfaces that should only listen locally, such as databases.
(f) Assessing the effectiveness of measures
- Re-check configurations periodically instead of assuming they stay as configured.
- Keep dated reports showing open and resolved findings over time.
(g) Basic cyber hygiene and training
- Disable SSH root login and password authentication; use keys.
- Remove unused accounts and SSH keys; review sudo rules, especially
NOPASSWDentries. - Keep the clock synchronised so that logs are reliable.
(h) Cryptography and encryption
- Use TLS with current protocols on public services and monitor certificate expiry.
- Encrypt backups and sensitive data at rest where appropriate.
(i) Human resources security, access control and asset management
- Give each administrator a named account; avoid shared logins.
- Review who has shell and sudo access when people join, change role or leave.
(j) Multi-factor authentication and secured communications
- Require MFA for control panels, cloud consoles and any tool that can reach your servers.
- Use a secured channel for incident communication that does not depend on the systems under attack.
Article 23 reporting: 24 hours, 72 hours, one month
Article 23 requires entities to notify their CSIRT or competent authority of any significant incident, meaning one that has caused or can cause severe operational disruption or financial loss, or that affects other people by causing considerable damage. The stages are:
| Stage | Deadline | Content in short |
|---|---|---|
| Early warning | Within 24 hours of becoming aware | Whether malicious or unlawful action is suspected; possible cross-border impact |
| Incident notification | Within 72 hours of becoming aware | Initial assessment, severity, impact, indicators of compromise |
| Intermediate report | On request of the CSIRT or authority | Relevant status updates |
| Final report | Within one month of the incident notification | Detailed description, root cause, mitigation, cross-border impact |
If the incident is still ongoing when the final report is due, a progress report is submitted instead, and the final report follows within one month of handling the incident. Where appropriate, you may also need to inform recipients of your services. National authorities can set the practical channels and forms, so prepare them before you need them.
The hard part is rarely writing the report. It is knowing when you became aware and having enough technical facts to fill in the early warning within 24 hours. That depends on monitoring and logs being in place beforehand.
Evidence to keep
Auditors and supervisors want to see that measures are applied, not just written down. For Linux servers, useful evidence includes:
- Asset inventory with OS versions and exposure.
- Patch records: when security updates were available and when they were installed.
- Vulnerability findings with status (open, in progress, resolved, accepted) and dates.
- Configuration snapshots: SSH, firewall, sudoers, users and keys, at known dates.
- Log retention settings and samples showing logs actually exist.
- Backup and restore test results.
- Incident records: timeline, actions taken, notifications sent and their timestamps.
- Management approval of the measures, as required by Article 20.
Keep evidence dated and reproducible. A screenshot from last year proves little; a series of dated reports shows a process.
How Avanguard helps
Avanguard is a technical aid for the server part of this work. It does not make you NIS2 compliant and is not a certification.
- The agent runs a full scan every hour (packages, pending updates, users, SSH keys, sudo rules, SSH and firewall configuration, certificates, time sync) and turns each problem into a suggestion with severity and fix commands.
- The compliance page maps findings onto NIS2 controls with a status of fail, partial, pass, not assessed or manual. See NIS2 for Linux servers.
- The incident kit tracks deadlines from awareness for the NIS2 early warning (24 h), notification (72 h) and final report (1 month), with a timeline and evidence snapshots collected by the agent.
- PDF reports per server or company give you dated evidence for audits. More in compliance.
Summary
- Confirm whether you are an essential or important entity under your national NIS2 law, or whether your clients are.
- Turn each Article 21(2) area into concrete server tasks: inventory, hardening, patching, logging, backups, encryption, access control, MFA.
- Prepare Article 23 reporting in advance: who decides an incident is significant, who reports, which channel, and where the technical facts come from.
- Keep dated, reproducible evidence of every measure.
- Review the whole list periodically, and involve a legal or compliance advisor for scope and national requirements.