Security in NEX
A NEX cluster is several computers that work as one: they share files, users and programs over the network. This page explains how NEX protects that traffic and those data, what the cluster password is for, and how NEX helps those who must meet the European Cyber Resilience Act.
Encrypted between the nodes, always
Everything that travels between the nodes is encrypted and authenticated, with no option to turn on and none to forget:
- One certificate authority per cluster. When the first node is created, the cluster makes its own certificate authority (CA). Every node that joins receives a certificate signed by it. Nothing to buy, no outside service involved.
- Mutual TLS 1.3. The files of
/nex(NEXFS: clients, metadata nodes, data nodes) and the messages between the NEX agents travel over TLS 1.3, and both sides show their certificate. A computer without a certificate of the cluster cannot read the traffic and cannot join the conversation, even if it is on the same network. - Encrypted disks. The blocks of the files are written to the storage nodes' disks encrypted with AES-256-XTS. The key is created by the setup and is kept outside the disks it protects: a disk taken out of a server, or a server sent away, reveals nothing of what it held.
- One command to check:
sudo nexctl encryption statustells, on every node, that the traffic and the disks are encrypted.
The cluster password
On the NEX Live USB stick and on the VM images with a desktop, NEX Setup asks for a cluster password when the cluster is created and when a computer joins. What it does:
- It is the password of the administrator user
nexon the nodes of that cluster, and it switches on ssh with a password, so that a new computer can reach the others. - It is used once, when a computer joins: with it the new computer copies its ssh key to the other nodes and receives its certificate. From then on the nodes recognize each other through keys and certificates, not through the password.
- It does not encrypt the data: encryption uses the cluster certificates and the disk keys, which are random and never typed by anyone.
- Whoever knows it can administer the nodes: choose a long one (NEX Setup asks for at least 8 characters; longer is better) and keep it like any administrator password.
- It is not the password of the people who use the cluster: each user has their own, the same on
every node, changed with
nex passwd.
No default password. The stick and the VM images have no known password: until one is chosen,
on the first page of NEX Setup, nobody can log in as nex, from the keyboard or from the network.
On the image without a desktop the password is chosen at the first boot, and the same one is used
on every node.
sudo with a password. Once the computer has created the cluster or joined it, sudo asks for
the password of nex: a program running in the session cannot become administrator without it.
On computers installed from the packages, NEX Setup asks instead for the password of your user on the cluster nodes (Installation).
What else protects the cluster
- Users and permissions. The same users and groups on every node; a program started on another node runs as its user, with the same rights. The administrator sets space, CPU and memory limits per user.
- Who may use a port.
nex port allowlimits a cluster port to some users or groups. - Secrets for programs.
nex secretkeeps passwords and tokens encrypted (AES-256-GCM); the value is never written in the audit log, only the name. - Dashboard and API. HTTPS with the cluster certificate; API tokens are stored only as a hash, can be read-only and expire; repeated wrong logins are blocked; the browser session can only read.
- Samba for Windows and Mac. SMB 2.1 or newer, no anonymous or guest access, no NetBIOS; the password files are readable only by root.
- Audit.
nex auditrecords every job (who, where, what, how it ended) and every change to services, scheduled tasks, tokens, snapshots and backups.nex alarmwarns about full disks, stopped nodes and storage problems. - Data that survive. Up to three copies of every file on different nodes, hourly snapshots to recover a deleted or changed file, and a backup to another machine.
- Signed updates. The packages come from an APT repository signed with the key of Arato
Ingegneria, and
nexctl upgradeupdates the whole cluster one node at a time, without stopping it.
Reporting a vulnerability
If you find a security problem in NEX or in NEXFS, write to info@aratoingegneria.it, with "NEX security" in the subject. It helps to know:
- the version (
nex --version,dpkg -l nex-cluster nexfs) and the system; - what happens and how to repeat it, even roughly;
- what someone exploiting it could do, if you already know.
We answer within 5 working days and keep the reporter informed until the fix. We ask not to publish the details until the fix is out (at most 90 days from the report, unless agreed otherwise): the fix comes as a signed update of the APT repository, with an advisory in the release notes, and the reporter is thanked, if they wish.
Versions with security fixes. Fixes always come on the latest version; the previous version
still receives them for 12 months after the new one is out. A cluster moves to the latest
version one node at a time, without stopping: sudo nexctl upgrade --apt.
Security advisories are in the notes of every release, on the Download page, with the version that fixes the problem and what to do.
The list of components. Every release has its list of components (SBOM, in the CycloneDX format): all the NEX and NEXFS packages for every system, with their fingerprints and the system packages they depend on. It sits next to the packages, on the Download page.
Exploited vulnerabilities. An actively exploited vulnerability or a severe incident is reported to ENISA and to the national CSIRT as the Cyber Resilience Act requires: an early warning within 24 hours of becoming aware of it, the notification within 72 hours, the final report within 14 days of the fix.
NEX and the Cyber Resilience Act
The Cyber Resilience Act (EU Regulation 2024/2847) sets security requirements for products with digital elements sold in the European Union, software included. It has applied since December 2024 in stages: the reporting of actively exploited vulnerabilities and severe incidents is required from 11 September 2026, the other obligations from 11 December 2027.
Its essential requirements ask, among other things, for products that are secure by default, protect the confidentiality and integrity of data, control access, limit the attack surface, record security-relevant events, stay available and can be fixed with security updates. In NEX:
| What the CRA asks | What NEX does |
|---|---|
| Secure by default | encryption always on, nothing to switch on; no default password on the stick and the VM images, ssh opens only after the administrator password has been chosen, sudo asks for the password; Samba without guest access |
| Confidentiality | mutual TLS 1.3 between all nodes, encrypted disks, encrypted secrets, tokens kept only as a hash |
| Integrity | certificates signed by the cluster CA, signed packages, a periodic check of the copies of the data |
| Access control | cluster users and groups, quotas and limits, rules on ports, read-only tokens, blocking of repeated wrong logins |
| Availability and resilience | up to three copies of the data, snapshots, backups, a cluster that keeps working while a node is updated or stopped |
| Logging and monitoring | the audit log, usage accounting, alarms |
| Security updates | a signed APT repository and updates of the whole cluster one node at a time, without downtime |
| Vulnerability handling | an address for reports, coordinated disclosure, 12 months of fixes for the previous version, advisories in the release notes, the list of components of every release |
What this means in practice. Those who build a product or a service on NEX start from a base
that already covers many of these requirements, and can show them with simple commands
(nexctl encryption status, nex audit, nex alarm). The CRA, however, asks every manufacturer
for its own risk assessment, technical documentation, vulnerability handling and declaration of
conformity: NEX helps, but it does not replace them. This page describes the features of NEX and
is not legal advice; for the obligations of your product, consult an expert.
The technical details (keys, certificates, how the copies are checked) are in the guides Installation and, for the storage, in the NEXFS security guide.