VeilNet

Security

What conflux adds to anchor's threat model, how it protects the machine's identity and binaries, what anchord runs as, and what to do when a manifest is stolen.

What the Manifest Holds

Conflux stores the machine's identity in one file, manifest.b64, in the state directory. The file holds the 32-byte identity seed. Whoever holds the seed can act as that anchor.

A manifest from a guardian also carries the renewal secret, a bearer token for the machine's renewals. Whoever holds that manifest can also keep the credential current.

  • Backups. A backup, VM snapshot or container image of /var/lib/conflux holds the identity. If you restore it onto a second machine while the first runs, the anchor exists twice and anchor reports an address conflict. Keep the directory out of shared backups, or treat those backups as secrets, as you would an SSH host key.
  • Moving a machine. Copying the manifest moves the machine, because there is no account to transfer. If you keep the original as well, the anchor exists twice. If you do not need to keep the address, run sudo conflux uninstall on the old machine and give the new machine a new identity.

An ephemeral run writes no files at all. It keeps the identity in memory, from the enrolment response or the manifest you pass in, and hands it straight to anchord. Core dumps are off for the run and its anchord. When the run stops, nothing of the identity is left.

0 of 1 done
  1. On Linux, list the directories and the manifest:

    $ sudo ls -ld /etc/conflux /var/lib/conflux
    $ sudo ls -l /var/lib/conflux/manifest.b64

    You should see drwx------ for /etc/conflux, and drwx--x--- with the group conflux for /var/lib/conflux, where anchord runs as its own account. The manifest shows -rw-------. All three are owned by root. For the directories on other platforms, see the CLI Reference.

Stolen Manifests

You cannot withdraw a copy of the manifest once it has left the machine. The thief can act as that anchor until the identity is no longer admitted. What you can do depends on the network:

The instance VeilNet hostsA sovereign network
Who recorded the machineNobody. Enrolment is anonymous and stores nothing.The operator who commissioned it, in the guardian.
Can the copy be cut offNo. Renewal is unauthenticated, so the thief can renew the credential indefinitely, despite its thirty-day validity window.Yes. The guardian stops renewing the credential, and it lapses at the end of the validity window that the operator chose. A block cuts the copy off sooner.
The remedyStop using the identity. If the thief must not reach your other machines, move them all to a new taint.Revoke the machine in the guardian, and commission a new identity for it.

On the instance VeilNet hosts

0 of 4 done
  1. On the machine whose manifest leaked, run:

    $ sudo conflux uninstall --yes

On a sovereign network

0 of 3 done
  1. Ask the guardian's operator to stop renewing the machine's credential and to block the machine. The block cuts the machine off before the credential lapses. See Revocation and Blocks.

Protecting the Manifest

Conflux keeps the manifest in one file that only root can read, and passes it on only through standard input.

Fig. 01 — Where the manifest goes
STATE DIRECTORY · 0700 · ROOTMANIFEST.B64 · 0600The machineSEED · REALM ROOT · CHAINTAINTS · BOOTSTRAPEXPIRY · RENEWAL URL+ BEARER, FROM A GUARDIANSTDININLINEANCHORCTL START-manifest -ANCHORDThe anchorAN ARGUMENT LISTNOT IN PS OR /PROCA LOG LINEPRINTS AS REDACTEDA SECOND FILEONE COPY, ON DISK

The manifest is stored in one file that only root can read, in a directory that only root can read. Conflux passes it to anchorctl on standard input, and anchorctl passes it to anchord inline, never as a path. On Windows, a protected access list for SYSTEM and Administrators gives the same protection.

  • File modes. The file has mode 0600, and conflux sets the mode before it writes any content, so the file never has the umask's mode, even briefly.
  • Directory mode. The directory has mode 0700, so no other user can replace the file by renaming another file over it. Where anchord's own account must pass through, the mode is 0710, which lets that account pass through without listing, reading or creating anything. On every platform, conflux narrows the permissions of its own directories if they are wider, and refuses a directory that another account owns.
  • Atomic writes. A crash or a full disk leaves the previous manifest, never a truncated one.
  • Windows. A protected access list restricts %ProgramData%\conflux to SYSTEM and Administrators. Conflux refuses a directory that another account created first. See Windows Problems.
  • No argument lists. The manifest passes on standard input to anchorctl start -manifest -, so it never shows in ps or /proc/*/cmdline.
  • Renewal. A renewed chain passes to anchorctl renew -cred - on standard input too, so a renewal writes only the manifest.
  • No logs. Any value that holds the manifest prints as <anchor manifest, redacted>, in every format. The renewal secret prints as node-secret <bearer, redacted>.
  • Telemetry headers. The headers in an export block are credentials too, so conflux.json and the generated anchord.json also have mode 0600. An export block prints as <export to HOST:PORT, headers and key material redacted>, and inline TLS material as <inline, redacted>.

To install a credential without first saving it with the shell's default file mode, pipe it to sudo conflux enrol --manifest -, which reads standard input.

What Anchord Runs As

anchord parses what the network sends, so conflux confines it. It runs as root, or with a capability, only where the host or the mode needs it. The supervisor, conflux serve, stays root (SYSTEM on Windows), and gives anchord exactly what its mode needs at every start.

conflux proxyconflux upconflux observe
LinuxThe account conflux, no capabilities, no_new_privsconflux with CAP_NET_ADMINconflux with CAP_NET_RAW, no_new_privs
macOSThe account _confluxRoot, since only root gets a utun_conflux, its group given read access to /dev/bpf*
FreeBSD, OpenBSDThe account conflux or _confluxRoot, since only root gets a tun—
WindowsLOCAL SERVICE, with every privilege except SeChangeNotify removedSYSTEM, for WintunLOCAL SERVICE, as in proxy mode

With --observe next to an anchor, anchord also gets the capture access from the observe column. On Linux, that is CAP_NET_RAW in addition to CAP_NET_ADMIN. On macOS in proxy mode, it is read access to /dev/bpf*. To check, read the anchord row of sudo conflux status:

  anchord      conflux, with no privilege
  anchord      conflux, with CAP_NET_ADMIN for its interface
  anchord      conflux, with CAP_NET_RAW to copy what the host's interfaces carry, for the observer
  anchord      root — firewalld takes changes only from root, and anchord lets its port in through it

Where the host needs more, anchord keeps the extra privilege, and the row says why:

  • The host firewall. Where firewalld runs, or iptables uses its legacy backend, anchord stays root in TUN mode.
  • UDP buffers. In proxy mode on Linux, the account gets CAP_NET_ADMIN for its socket buffers. To avoid this, raise net.core.rmem_max and net.core.wmem_max to 3670016 or more.
  • A port below 1024. On Linux, the account gets CAP_NET_BIND_SERVICE.
  • An uplink. The account joins the device's group, such as dialout.
  • The observer. The observer gets its capture access and nothing more. On macOS, the supervisor gives the account's group read access to the BPF devices at every start, and uninstall gives them back to root.

An ephemeral run started as root runs anchord as conflux-ephemeral, an account of its own, under the same rules. When an ordinary user starts the run, anchord runs as that user. See Ephemeral Runs.

A compromised anchord can reach its own directories, its socket, the identity it holds and the network. Where it observes, it also sees a copy of what the host's interfaces carry. That copy is all the observer can reach, and it is why the observer is off until you turn it on.

Extracted Binaries

Conflux writes anchord and anchorctl to disk and runs them. Malware droppers do the same, so conflux limits where and how it does this:

  • Location. The binaries go to bin/<setID>/, a directory named after their content, inside the root-owned state directory, which no other account can write. They never go to /tmp.
  • Source. The binaries come from inside the conflux binary, and nothing is downloaded. Verifying conflux therefore also verifies them.
  • Ownership on Windows. Anyone can work out a set's directory name, so conflux runs a set only if Administrators, SYSTEM or the account running conflux owns it. Otherwise, it extracts the set again.
  • Boot service. The service runs as root (SYSTEM on Windows) and starts a copy of conflux in the state directory, which only root can change. It never starts the file you ran, which another account might be able to replace.
  • Downloads. Conflux downloads two things. On Windows in TUN mode, it fetches wintun.dll and checks it against a pinned SHA-256 digest before using it. See Windows Problems. On conflux update, it fetches its own latest release, checks it against the SHA-256 digest that the release lists, and runs it once before replacing anything. It sends no token, because the repository is public.
Where the service's copy of conflux lives
PlatformPath
Linux/var/lib/conflux/conflux
macOS/Library/Application Support/conflux/conflux
Windows%ProgramData%\conflux\conflux.exe
FreeBSD, OpenBSD/var/db/conflux/conflux
0 of 2 done
  1. The install script and conflux update check each download against the release's digests themselves. To check a file that you downloaded by hand, compare it with the release's checksums:

    $ sha256sum -c SHA256SUMS --ignore-missing
    conflux-linux-amd64: OK

    Each release also carries a build-provenance attestation.

FIPS 140-3 Mode

Conflux is built against the Go Cryptographic Module v1.26.0, and runs in FIPS 140-3 mode. Every cryptographic service that conflux's own code uses is an approved service of the module, used as the module's Security Policy approves it. Its TLS offers and accepts only approved parameters. Anchord runs the same module.

0 of 1 done
  1. Run conflux version. The second line shows the mode and the module:

    $ conflux version
    conflux 1.1.0 (1a570eb3831ac4d5450d38d6a7dfdb46c66656bd) linux/amd64
    fips140 on, Go Cryptographic Module v1.26.0
    …

    conflux status shows the same on its fips140 row. To see the module's self-tests and integrity check, run GODEBUG=fips140=debug conflux version. It prints fips140: verified.

If GODEBUG switches FIPS 140-3 mode off, conflux refuses every command, version included, with exit code 70. Anchord refuses to start in the same way.

The services conflux uses, and what for
ServiceStandardUsed for
SHA-256FIPS 180-4The digests of the embedded anchor binaries, of a release that conflux update installs, and of the Wintun archive
CTR_DRBGSP 800-90AEvery random byte, such as the bearer token anchord starts with and a minted taint
TLS 1.3 and 1.2, with ML-KEM in the hybrid groupsSP 800-52r2, FIPS 203HTTPS to the enrolment API, to GitHub and to wintun.net, and conflux cert probe and serve
ECDSA, RSA and EdDSAFIPS 186-5Server certificate chains, and the classical keys and signatures of conflux cert
ML-DSAFIPS 204The keys of conflux cert, and everything it signs and checks with them
SHA-384, SHA-512, SHA3 and SHAKE256FIPS 180-4, FIPS 202Signature hashes, conflux cert fingerprint, and checking an ML-DSA key against its seed
PBKDF2 and HMAC-SHA-2SP 800-132, FIPS 198-1Encrypted private keys, and PKCS#12 bundles and their MAC
AES-CBCSP 800-38AEncrypting a private key, or a PKCS#12 bundle's contents, under PBES2

To make and check post-quantum certificates in this mode, see the Certificate Toolkit.

Threats Out of Scope

Conflux does not defend against these threats:

  • A local attacker with root. Root can read the manifest and take the identity.
  • A compromised release channel. The checksums, the digests in conflux version and the release attestation are the only checks against one.
  • Traffic analysis. This is anchor's concern, and anchor's documentation covers it.
  • A taint as a tenant boundary. A taint limits the damage inside a realm that has already admitted all its members.
  • Guessed taint names. Taint names are not secret, and on the instance VeilNet hosts anyone may ask for a credential with any taint name. A generated taint of about 128 bits cannot be guessed, but a name such as prod can.
  • A member with the taint power. A member whose credential grants the taint power can move a machine to other taints while it runs. Credentials from the instance VeilNet hosts grant that power to nobody, but a guardian may grant it.

A badly wrong clock is not an attack, but it can stop a machine from starting or connecting in ways that look like one. See Clock Skew.

Reporting an Issue

Report security issues through Report a problem on the Get started page. Say whether the issue concerns conflux itself (its files, binaries or service) or anchor's protocol, handshake or credential format.