At the end of November we ran a security review of NetDefense. Today’s release fixes what it found, and hardens the areas around those fixes.
This post explains what changed and what you need to do. Most of it takes effect without any action from you. The main actions are agent 1.33.0 on every firewall, ndcli 1.52.0 on every workstation, and one registration-token rotation if your organization had read-only members; the table below lists every action.
TL;DR
- Upgrade every firewall to agent 1.33.0 by 2026-12-30. After that date, older agents can no longer connect. From today, the dashboard stops updating an older agent’s version and facts.
- Upgrade ndcli and netdefense-mcp to 1.52.0. Older versions show a “no longer compatible” notice and can’t delete an organization.
- Rotate your registration token once if your organization had read-only members, then copy your install commands again. Read-only members no longer see the token.
- New devices wait outside every OU until you approve them.
- netdefense-mcp asks you before it acts on high-impact tools, returns results in two blocks, uploads files only from folders you name, and offers a read-only mode.
- Only a Superuser on an interactive login can add custom package repositories or external packages. Each firewall can also refuse every custom source with the new Refuse Custom Software Sources switch.
What you need to do
| Who | Action | When |
|---|---|---|
| Every organization | Upgrade every firewall to agent 1.33.0 | By 2026-12-30 |
| Everyone who uses ndcli or netdefense-mcp | Upgrade to 1.52.0 | Now |
| Organizations that had read-only members | A Superuser rotates the registration token once, then copies the install commands again | Now |
| netdefense-mcp users who attach or download files | Set mcp.attachment_dirs and mcp.download_dir |
Before you next attach a file |
| Programs that parse netdefense-mcp results | Read the second result block | Before you upgrade |
| Automation that adds package repositories or external packages | Move those changes to a Superuser on an interactive login | Now |
The agent proves its device key to the hub
Each firewall’s agent has its own device key. The key is generated on the firewall and never leaves it. NetDefense signs every command, and the agent signs every response with that key. Until now, the hub did not ask the connecting agent to prove that it holds that key.
From agent 1.33.0, the agent proves that it holds the device key each time it connects: the hub sends a fresh challenge, and the agent signs it with the device’s private key. A connection that proves its key always takes the device’s slot from one that doesn’t. Only a connection that proved its key updates the device’s agent version and facts.
Upgrade before 2026-12-30
Agents older than 1.33.0 can’t prove their key. Until 2026-12-30 the hub still admits them, so your firewalls stay managed while you upgrade. After that date the hub requires the proof, and an older agent can no longer connect.
From today, the dashboard no longer updates an older agent’s version and facts. A firewall still listed with an older version has not connected on 1.33.0 since the release.
The full protection starts when the hub requires the proof, and the sooner your firewalls run 1.33.0, the sooner each one can take its connection back from a session that can’t prove the key. Upgrade early rather than at the deadline. Firewalls installed from the NetDefense repository get 1.33.0 with their next OPNsense update, scheduled updates included. To upgrade a firewall now, use System > Firmware > Updates on the firewall, Install plugin on the web app’s Run page, or:
A firewall that is still on an agent older than 1.31.0 also crosses two earlier changes on the way to 1.33.0. Read Agent 1.31.0: check SSL verification before you upgrade and Agent 1.30.2: what you leave out first. More on updates: Updating the agent and Plugin install.
The registration token
The registration token lets a new firewall ask to join your organization. These changes affect who can see it and what it can do:
- Only read-write members and Superusers see the token, in the web app and in
ndcli org describe. Read-only members see a note instead. - A new device waits outside every OU until it is approved. A device that registers is PENDING and receives no OU’s policies. At approval it joins the default OU.
- A Superuser can rotate the token with Rotate token on the organization’s page in the web app, or with
ndcli org token rotate <org>. Rotation needs an interactive login: a personal access token can’t do it. Firewalls already installed keep connecting.
If your organization had read-only members before today, a Superuser should rotate the token once, because those members could read it.
Copy your install commands again after a rotation
After a rotation, an install command, script or saved unattended-setup configuration that carries the old token can no longer register a new firewall. Copy the install command again from the web app or from ndcli org describe.
Rotation stops an old token from enrolling new devices. It does not protect the firewalls already installed: that comes from agent 1.33.0 and the device-key proof, which the hub requires from 2026-12-30.
netdefense-mcp asks before it acts
An AI assistant that uses netdefense-mcp reads text that other people wrote: device names, ticket messages, variable values. Some of that text can be written by a member with fewer rights than you, or by whoever registers a device. netdefense-mcp 1.52.0 treats that text as data, and keeps high-impact actions under your control:
- Results arrive as two text blocks. The first is a header. The second holds the response JSON between two
<ndcli-data-…>lines. A program that read the first block as the whole response must read the second block and drop its first and last line. - High-impact tools ask you first. Approving or removing devices, power off and restart, attaching configuration, roles, invites, console sessions and local files run only after you approve the exact call, in a prompt that your MCP client shows. The assistant can’t answer that prompt for you. A client that can’t show the prompt gets
APPROVAL_UNAVAILABLEand thendclicommand to run yourself. NDCLI_MCP_APPROVAL=offturns the prompts off. We don’t recommend it: an assistant steered by text in a device name, a ticket or a variable can then run those tools too.- A read-only mode. Start
netdefense-mcp --read-only, or setNDCLI_MCP_READ_ONLY=true, and it offers only the tools that change nothing. - Files stay in folders you name. The attachment tools upload only from the folders in
mcp.attachment_dirs, and are off while that list is empty. Downloads go tomcp.download_dir, or to the server’s working directory when it is unset. Some clients start the server in/, so setmcp.download_dir. ndcli.org.describeno longer returns the organization’s registration token. Read it withndcli org describe.
Both settings go in ndcli’s config.yaml:
In ndcli, an attachment upload refuses ndcli’s own configuration and credential files. On the server, NetDefense strips leading dots from attachment names, including names already stored.
More on the MCP server: MCP server.
Custom software sources need a Superuser
A software policy’s custom package repositories and external packages decide what code your firewalls install as root. They now need a Superuser’s approval:
- Only a Superuser on an interactive login can add or change custom package repositories and external packages. A personal access token can’t, whatever its scope. Automation that adds repositories or external packages needs a Superuser to make those changes interactively.
- NetDefense checks the approval again when it builds each firewall’s configuration, and agent 1.33.0 refuses an entry that a Superuser did not approve.
- Changing Allow Unverified Repositories makes the organization’s firewalls re-check their software at once.
Agent 1.33.0 also adds a switch on the firewall itself. Refuse Custom Software Sources, under Services > NetDefense > Settings (advanced), is off by default. When on, that firewall refuses every custom repository and external package a software policy sends, even one a Superuser approved, and removes the repositories NetDefense configured. Packages from the OPNsense repositories are still installed and removed.
More on software policies: Software policies.
WebAdmin stays bound to its firewall
In the web app, a WebAdmin session and a popped-out terminal now stay bound to the firewall and organization they were opened for. Opening another device’s Connect page starts a new session for that device in a new frame. Switching organization closes a popped-out terminal, and only one terminal is popped out at a time.
Names and organizations
- Names follow one rule. Organization, OU, device, snippet, template, software policy and VPN network names are 1 to 255 letters, digits,
.,_and-, and start with a letter or a digit. Schedule and personal access token names stay free text, but can’t be only dots or contain/ \ % ? #. The rule applies when you create or rename an object, so existing names keep working and can still be deleted. - Deleting an organization asks for its name. ndcli 1.52.0 and the web app send the name as a confirmation. Older ndcli versions get
CONFIRMATION_REQUIREDand must be upgraded. - Organization names are unique across all organizations, ignoring case and accents. A taken name is refused with
ALREADY_EXISTS. - Device names are unique within their organization only. Renaming a device to a taken name answers the same refusal whoever holds the name, and says nothing about other organizations’ devices.
- Accepting or declining an invite gives one answer for every miss, so it no longer tells whether an organization exists.
ndcli 1.52.0 is the minimum
ndcli 1.52.0 carries the MCP changes, the organization-delete confirmation, ndcli org token rotate and the software-policy rules. Older versions keep working for most commands, but print a “no longer compatible” notice and can’t delete an organization. Upgrade with:
or scoop update ndcli on Windows. If you installed netdefense-mcp some other way, update it there too, then restart your MCP client.
Questions
Questions or feedback? Reply to the announcement in our Community discussions.