SECURITY

Built so your firewalls check every command.

Every command is signed and checked by the firewall before it runs, the agent only ever dials out, and each firewall signs its answers with a key of its own. The agent and the CLI are also open source, so your team can review their code before installing them.

The security pillars

Ten design decisions behind how NetDefense handles your fleet.

Every command is signed

The firewall rejects anything unsigned or altered, and no setting turns that check off.

Commands can’t be replayed, reordered or run late

Each one carries a sequence number and an expiry under its signature, so a copy does nothing and a stale command fails.

Eleven operations, and nothing else

The agent rejects any command outside its fixed list, and the control plane can’t add a twelfth. One of the eleven is a remote shell.

The agent listens on no ports

It only dials out over TLS, so there’s nothing on it for an attacker to scan or connect to.

Platform keys are pinned on first contact

The firewall obeys only the keys it pinned. A device’s own key is replaced only with a one-time token an operator issues, and an operator must approve the device afterward.

Synced users and groups can never touch root or the agent’s own accounts

A local policy on the firewall can also refuse pushes that carry administrator privileges or SSH keys.

Remote sessions are one-to-one and never inspected

The relay forwards each session without interpreting or recording it, and your browser never receives the firewall’s credentials.

Every organization is isolated

Every resource is bound to one organization. Automation tokens can be pinned to one, revoked one by one, and never reach Superuser rights.

Agent packages are signed and checked before install

The firewall’s package manager verifies each one against our published fingerprint before installing it.

Session tokens live only in browser memory

Login is standard OAuth2/OIDC with PKCE, and the app is served behind strict transport and content-security policies.

What if our platform is compromised — or gone?

The honest answer to the worst case, not just the best case.

A compromised dispatch tier

cannot forge commands. It holds no signing key — only the ability to verify and forward what the control plane already signed.

A compromised control plane

cannot invent an operation type outside the fixed set, and cannot forge or replay a command — every one is Ed25519-signed and independently verified by the device. It can mint a fully valid, correctly-signed remote session for any credential with write access, and a remote session is a shell. That’s the honest edge of this guarantee — see below.

An unreachable platform

does not stop your firewall from filtering. Your device keeps enforcing its policy exactly as configured, with or without us.

The honest limit

Signing protects the channel, not the credential. Any account with write access — a stolen login session, a compromised control plane, or a prompt-injected AI agent driving the API — can request a remote session, and a remote session is a shell. The fixed operation set, the signatures, and the sequence numbers stop forgery, tampering, and replay; none of them stop an authorized-looking request for an operation the caller is entitled to ask for. Treat anything capable of opening a remote session with the same caution you’d give an SSH key. Configuration sync is a separate surface from remote sessions altogether: it can install packages, and a package’s post-install scripts run as root.

The clean-exit point

NDAgent only touches the firewall objects it created — identified by an ownership marker and a documented convention in the public agent source. The one exception: it may raise the sequence numbers of your own firewall rules to keep the rules NetDefense places ahead of yours in front, and changes no other setting of them. So uninstalling the plugin leaves your own configuration in place, your rules in the same order. No lock-in.

The agent and the CLI are also open source.

NDAgent, the daemon running on the firewall, and NDCLI, the CLI and MCP server on your workstation, are on GitHub for your team to review.

Source is mirrored on every release tag and builds on its own, so a security review can read exactly the code you install, compare it between releases, and build it from source.

Open source covers the edge: the agent on your device and the CLI on your desk. The control plane behind them is closed source, and its key guarantees are designed to be behaviorally testable from the outside. The checks below are a place to start.

Check it in your own review

Your security team can confirm each of these on its own.

  • Read and build NDAgent and NDCLI from the public repos.
  • Search the agent’s production code for a listening socket, leaving out its tests and test helpers. There isn’t one.
  • Scan our web app’s security headers with any public header-scanning tool.
  • Watch your browser’s dev tools during login: standard OAuth2 PKCE parameters, a bearer token on every API call, and no token in local storage.
  • Try sending an operation type outside the fixed set of eleven through the API and watch it get rejected — that’s a closed vocabulary, not a privilege check.
  • Compare the key IDs your device pinned on first contact, in /var/db/ndagent/ndm-keys.json, with the ones the platform publishes at https://hub.netdefense.io/api/v1/.well-known/keys

What we don’t claim

We don’t claim our signing keys are unbreakable, and we don’t claim that breaching our hosted platform is harmless — a write-scoped credential can open a remote session, and a remote session is a shell. What we do claim is narrower: the command channel itself resists forgery, tampering, and replay, and the dispatch tier that relays commands holds no signing key of its own. And we don’t claim perfection: the codebase went through a systematic adversarial security review in 2026, with dozens of hardening fixes shipped across every component, and that work is ongoing rather than a one-time pass.

Data handling

The platform handles firewall configuration data and device backups on your behalf. Backups are encrypted. For the specifics of what’s collected and why, see our Privacy Policy.

Found a vulnerability?

We’d rather hear about it from you first. Report privately through any of these channels and we’ll respond promptly.

Prefer to encrypt your report? Use our published PGP key.

Ready to take control?

Start on the Free plan with your lab firewalls, or talk to us about your production fleet.

Prefer the terminal? Install the CLI Star us on GitHub

NetDefense is an independent project and is not affiliated with, endorsed by, or connected to OPNsense or Deciso B.V. OPNsense is a registered trademark of Deciso B.V.