Security model
This page is published from the agent repository. Edit on GitHub View source
This page covers how the agent protects itself and the host it runs on: which privileges it holds on each OS, what it trusts, where untrusted bytes come in, what an attacker can and cannot do to it, and how the code enforces each of these. It is written for contributors. When a code comment needs to explain why a security control exists, it should link the matching section here.
The adversary we design for has administrator or root on the host, but not kernel execution. Above the kernel, we do not try to make the agent impossible to tamper with, because an adversary with the same privilege can always try. The goal is that nobody can tamper with it silently. Every way of stopping, blinding or cutting off the agent should end in a restart, a local alert, or a gap the server can see. An adversary who already runs code in the kernel defeats every user-mode control described here. That is the limit of this design, stated plainly below in What is not defended.
Contents
- Trust boundaries
- Privileges per OS
- Signing keys and the test-key guard
- Secret handling
- Attack surface
- Never-panic parsers and fuzzing
- Self-protection
- Response actions: fail-closed guards
- What is not defended
- Supply chain hygiene
- How it is tested
Trust boundaries
flowchart LR
subgraph Host
K[Kernel telemetry<br/>eBPF / ETW / ES / netlink / audit] -->|trusted source,<br/>bytes still parsed defensively| A[agent]
L[Log files, network payloads,<br/>process-chosen argv] -->|untrusted| A
CLI[cli / ui] -->|IPC, root or elevated only| A
W[watchdog] <-->|spawn, heartbeat file| A
SM[service manager] -->|restarts| W
NE[macOS network extension] -->|Unix socket NDJSON| A
end
A <-->|mTLS, server CA or public roots| S[control plane]
S -->|manifests: verified against keys<br/>embedded in the agent| A
RT[release-tool, offline<br/>PKCS#11 token] -.signs.-> S| Boundary | What is trusted | What is not | Enforcement |
|---|---|---|---|
| Agent and control plane | The TLS server certificate (private CA bundle, or public roots) | The network; the server's content | mTLS transport; every release, content, snapshot and rotation manifest is verified on the agent against embedded Ed25519 keys, so a compromised server cannot push code or rules |
| Agent and local callers | Root on Unix, elevated token on Windows | Every other local user | Peer credentials checked on every IPC connection |
| Agent and installed files | The signed release manifest persisted at promote time | The live filesystem | Periodic re-hash of the active release; the watchdog pins the agent binary hash |
| Agent and watchdog | Each other | — | Two processes plus the OS service manager; neither is a single point of failure |
| Agent and telemetry bytes | Kernel as the writer | Content of every field (paths, argv, log lines, network payloads) | Bounded, never-panic parsers; fuzzing |
The server is deliberately not a root of trust for code. It distributes manifests that it did not sign and cannot sign. The signing keys are held offline (see release-tool), and the agent verifies every manifest itself.
Privileges per OS
| OS | Process identity | How it is granted | Notes |
|---|---|---|---|
| Linux (packaged) | Unprivileged synthaea user plus an explicit ambient capability set | synthaea-agent.service, synthaea.sysusers; OpenRC equivalent in synthaea-agent.initd | NoNewPrivileges=true, ProtectSystem=strict, writable paths limited to state, log, runtime and the bpffs pin directory |
Linux (watchdog install, dev/manual) | root | Fallback unit generated by cmd_install when no packaged unit exists | No capability scoping or sandboxing: use the package for real deployments |
| Windows | LocalSystem (the watchdog service; the agent inherits its token) | sc create in cmd_install | sc sidtype unrestricted puts the service SID NT SERVICE\SynthaEDR in the token. The minifilter port only accepts clients that hold it (AGENT_SERVICE_SID) |
| macOS | root (launchd daemon) | Plist written by cmd_install | Endpoint Security needs the Apple-granted entitlement and Full Disk Access. See packaging/macos |
Linux capability set
Each capability is granted for one feature. Everything else is removed from the bounding set, so a bug in a sensor does not become a root bug.
| Capability | Why |
|---|---|
CAP_BPF, CAP_PERFMON | Load eBPF programs and attach tracepoints and kprobes |
CAP_SYS_RESOURCE | Raise RLIMIT_MEMLOCK for BPF maps |
CAP_DAC_READ_SEARCH | Read /proc/<pid>/* and other users' files (hashing, command lines, YARA) |
CAP_NET_ADMIN | Conntrack netlink (network flows) |
CAP_KILL | Signal other users' processes. Used only by the kill response, which is off by default |
CAP_AUDIT_READ | Multicast-subscribe to NETLINK_AUDIT for SELinux AVC denials |
The following capabilities are deliberately not granted: CAP_SYS_PTRACE (so
/proc/<pid>/exe of other users is not readable) and
CAP_CHOWN/CAP_FOWNER/CAP_DAC_OVERRIDE (so the agent cannot quarantine files it does
not own). Each would be added only after a check on a real host shows a feature needs it.
The unit sets PrivateTmp=false and ProtectHome=read-only on purpose. Events carry host
paths, and the agent opens them by path to hash or scan them. Hiding /tmp or /home
would mean payloads dropped there are never scanned.
The eBPF preflight accepts a capability-scoped process as well as root.
has_bpf_capabilities checks the effective set, so
agent status does not report a correctly scoped service as failing.
Signing keys and the test-key guard
The updater embeds four Ed25519 public keys. Each key has exactly one job
(crates/updater/src/key.rs):
| Key | Verifies | Static |
|---|---|---|
release | Binary release manifests (ReleaseManifest::verify_signature_with) | RELEASE_PUBLIC_KEY |
content | Content (rules) manifests (ContentManifest) | CONTENT_PUBLIC_KEY |
snapshot | The common-set snapshot manifest only (snapshot.rs) | SNAPSHOT_PUBLIC_KEY |
recovery | Key rotations only (KeyRotationManifest); held offline and never rotated itself | RECOVERY_PUBLIC_KEY |
Keeping the roles separate limits the damage a stolen key can do. A content signer cannot
sign a release, and a snapshot can never verify as content. The unit test
committed_keys_are_distinct_per_role_and_not_all_zero makes sure the four committed key
files hold four different keys.
Three build states
flowchart TD
B{How was the updater built?} -->|cfg test or feature test-key| T[Test set: keys derived<br/>from public seeds in the source]
B -->|no test-key, a keys/*.pub says unprovisioned| U[No key for that role: static is None]
B -->|no test-key, keys/*.pub = hex| P[Production keys]
T --> TA[Commands that act on a manifest refuse<br/>unless --allow-test-key is passed]
U --> UA[Every verify returns SigningKeyUnprovisioned:<br/>fail closed]
P --> PA[Normal verification]- Test set. The seeds (
[0x42; 32],[0x43; 32],[0x44; 32]) are public and committed to the repository. They are compiled in only undercfg(test)or thetest-keycargo feature. A build without either cannot ship them by accident. In the test set,releaseandcontentshare one key, whilerecoveryandsnapshoteach have their own. - Temporary keys (2026-11-12).
crates/updater/keys/*.pubhold three temporary keys (release,content,recovery), generated on a developer machine outside the ADR-0027 ceremony. They have no custody and no named holders; the private halves are plain files on that machine, andrelease-tool --key-filerefuses them (it takes only the public test keys), so signing with them needs a PKCS#11 token holding the key. They are replaced when the real keys exist (#43); do not ship a build that embeds them to a customer.snapshot.pubstaysunprovisionedon purpose: a snapshot key turns the agent's snapshot fetch loop on (ADR-0033), which waits on tenant binding and on a custody decision. - Unprovisioned. A key file that says
unprovisionedmakes its staticNone, so a build embeds no key for that role and every verify returnsUpdaterError::SigningKeyUnprovisioned. The agent does not fall back to anything. This is how a file is put back to the fail-closed state. - Provisioned. Each key file holds 64 hex characters after optional
#comments (parse_key_file). A typo or a truncated key parses toNone. The testevery_committed_key_file_is_unprovisioned_or_a_valid_keycatches it at commit time (anda_committed_key_file_is_a_valid_key_and_never_the_public_test_keythat no file holds a public test key), so it never shows up later as a confusing "no key" error at run time.
SYNTHAEA_UPDATER_TEST_KEY follows the feature flag (cfg!(any(test, feature = "test-key"))), so nobody can set it by hand.
Runtime refusal
ensure_key_trusted runs before apply-release,
apply-content-manifest and key rotations act on a manifest:
- If no key is embedded for this kind of manifest, the command refuses and says why.
- If the key in force is the public test key, the command refuses unless the operator
passes
--allow-test-key. That flag exists only in atest-keybuild. The error message spells out the consequence: whoever can serve the release routes could run code as root. - Once a rotation has replaced the test key, the install is no longer treated as
test-keyed.
trust::loadreplays the applied rotations fromTrustState. If that record is corrupt, the command refuses. It does not fall back to the embedded keys, because those may already have been rotated away.
The self-integrity monitor treats SigningKeyUnprovisioned differently from a bad
signature (signature_failure_is_tamper). A build with no
key would otherwise raise a false tamper alert on every pass.
Keeping the test key out of packages
Cargo feature unification is the main way the test key could leak into a package: if any
crate in the build enables updater/test-key, every crate gets it. The guards are:
| Guard | What it proves |
|---|---|
tools/check-no-test-key.sh (CI) | cargo tree for the packaged set (agent, watchdog, cli, --no-default-features) on Linux, Windows and macOS targets does not enable test-key, and the default build still does (positive control). The packaging scripts still build without default features and still scan their output. The updater rlib built without the feature lacks the marker, and with the feature has it |
tools/assert-no-test-key.sh | Scans a built binary for the marker SYNTHAEA-PUBLIC-TEST-KEY-SET-V1, which the test-key build links in deliberately (TEST_KEY_MARKER in key.rs). Run by the deb/rpm build scripts, the Windows build.ps1, and the static-agent workflows |
tests/unprovisioned_build.rs (cargo test -p updater --no-default-features) | What a packaged build really embeds (exactly the committed keys; the public test seed is refused). Unit tests cannot show this because they always compile with cfg(test), which turns the test set on |
tests/test_key_build.rs | The lab variant embeds the test set and reports it |
Each check also proves it can fail: it confirms the marker is found in a test-key build. Without that, a check that silently looked at nothing would also pass.
Offline signing
Signing happens only in release-tool. It never runs on an
endpoint or on the control plane. Production keys sign from a PKCS#11 token
(pkcs11.rs), so the private key never leaves the device.
--key-file and --test-key exist for lab use only. If a key can be read from a file, it
is not a production key.
What a valid signature does not prove
A signature proves who signed a manifest, not that its contents are safe. The updater also checks:
- Paths.
validate_entry_pathsandis_safe_content_pathreject the whole manifest if any path is absolute, contains.., a backslash, NUL or:, or uses a Windows device name. - Anti-rollback.
release_versionmust be strictly greater than the installed one (check_release_version). Rotations share that counter and have a bounded validity window (check_window). - Bounded downloads. A declared size over the cap is refused before anything is
fetched, and the HTTP read is capped as well
(
TransportClient::get_bytes). Caps:MAX_RELEASE_ARTIFACT_BYTES(256 MiB) inrelease.rs,MAX_CONTENT_ARTIFACT_BYTES(100 MiB) incontent.rs, and the snapshot cap insnapshot_fetch.rs.
Secret handling
| Secret | Where it lives | Rule |
|---|---|---|
| mTLS client key | PEM file at server.mtls_key (absolute path, checked by config::load) | Read once when the transport is built. It is never logged and never sent anywhere |
| Key passphrase | server.mtls_passphrase, a SecretRef | The config file holds a reference only: envvar:NAME or file:/path. A bare literal is rejected at load with ConfigError::SecretInvalid, and so is an unknown provider such as vault: |
| Release signing keys | Offline PKCS#11 token | Never on a host or on the server |
| Credentials inside telemetry | Command lines, URLs, script text | Redacted at output boundaries. See below |
Current gap. server.mtls_passphrase is parsed and validated, but the transport does
not use it yet. build_tls_config refuses an
encrypted PEM key with an explicit error and asks for an unencrypted one. So today the key
file's protection comes from file permissions only.
Credentials in telemetry. Detection needs raw command text, but every copy that
leaves the process should be scrubbed. RedactingSink applies
that split. Live detection pipelines see Exec, ReadlineInput, ScriptBlock,
AmsiContent and WmiActivity raw, while capture and output sinks get them redacted.
URL secrets in download provenance, BITS jobs and HTTP evidence are always redacted. The
pure functions (redact_command_line,
redact_command_text,
redact_url_secrets) keep the line's formatting, are
idempotent, and are property-tested. Positional and encoded credential forms are not
recognized.
Logging. Event payloads are never logged at info level (a workspace convention).
Attack surface
Local IPC (cli and ui to agent)
Implemented in crates/ipc, served by
ipc_handler.
- Transport. A Unix domain socket at
ipc.endpoint(default/var/run/synthaea/agent.sock), or a named pipe\\.\pipe\...on Windows. The config loader checks the endpoint's shape for each OS. The Windows listener usesfirst_pipe_instance(true), so the agent fails to bind if another process already owns the pipe name. It does not silently share it. - Authorization.
PeerCreds::check_authorizedallowsuid == 0(read withSO_PEERCREDorLOCAL_PEERCRED) orTokenIsElevatedon Windows. Any other caller gets oneUnauthorizedreply and the connection closes (server.rs). If no credential is available, access is denied. On Unix the check is the peer's uid, not the socket file's mode. - Bounds. One message is one JSON line, capped at
MAX_MESSAGE_BYTES(1 MiB). The server closes the connection when a line reaches the cap.RecentDetections.limitis clamped toRECENT_DETECTIONS_HARD_LIMIT(256). Every request and payload type usesdeny_unknown_fields. - Mutations. Almost every request is read-only. There are three exceptions:
ReloadContentre-reads content that was already verified and written to disk;SuppressVerdictandUnsuppressVerdictchange only the agent's own fused-verdict view, are reversible, and write an audit line for every real change. Kill, quarantine and isolation are not available over IPC. They wait for a per-capability authorization model. - Known gaps. There is no cap on concurrent connections and no idle timeout. The client does not authenticate the server endpoint, so a process that binds the socket or pipe first could answer the CLI. Both matter only to a caller that already holds the required privilege.
macOS network-extension socket
The NE system extension connects to a Unix socket in the shared app-group container and
writes NDJSON records (receiver.rs).
Unknown wire versions and lines that fail to parse are counted (skew_skipped) and
skipped, never treated as fatal. The receiver does not check the peer's identity and
reads lines without a length cap. Access depends only on the app-group container's
filesystem permissions. Follow-ups for this sensor are tracked in
#35 and
#21.
Windows minifilter port
The driver's communication port accepts only a client whose token holds the agent service
SID (crates/sensors/windows/minifilter).
Messages are decoded by wire.rs.
Property tests check that arbitrary bytes, and headers with consistent lengths, never
cause a panic.
Network
- Outbound only. The agent opens no network listener. Its only network traffic is
outbound HTTPS to the control plane through
TransportClient, which usesureqoverrustlswith a 30 s global timeout by default (TransportConfig).control_plane_urlmust behttps://. - Server verification. If
server.ca_certis set, only that bundle is trusted, not the public roots. An unreadable bundle, or one with no certificates, is an error, never a silent fallback (load_ca_roots). Tests:tests/private_ca.rs. - Identity. The client certificate is the agent's identity, and the server derives the
agent from that certificate. The
agent_idfield in request bodies is informational. - Enrollment is not built. No code issues, stores or renews the client certificate. An operator places the cert and key on the host by hand. See #56 (operator guide) and #79 (install-to-enroll acceptance run).
- Peer-to-peer mesh. The
meshcrate is a design stub with no code (#29).
Parsers of untrusted bytes
Kernel sockets carry bytes the kernel writes, but many fields describe things an attacker controls: argv and its lengths, file paths, log lines, TLS ClientHellos, event-log XML. Every such parser has to treat its input as hostile. See the next section.
Never-panic parsers and fuzzing
Contract. A byte parser may return an error on any input and must never panic. A panic on a sensor's drain path kills that sensor or the whole agent. A malformed input an attacker can reproduce becomes a way to switch the agent off. The watchdog restarts it, with backoff, but a reliable crash loop is still a gap in protection.
How it is enforced:
- Convention, reviewed but not linted. No
unwraporexpectoutside tests and provably infallible cases. The workspace lints denytodo,unimplementedanddbg_macro, and require a// SAFETY:comment on everyunsafeblock (Cargo.toml[workspace.lints.clippy]).unwrap_usedis not linted. - Deterministic robustness suites in each parser crate's
tests/directory. They use a seeded PRNG corpus plus splices of valid records, so failures reproduce:
| Parser | Suite |
|---|---|
| Audit netlink | audit/tests/robustness.rs |
| sock_diag, proc connector, conntrack | netlink/tests/robustness.rs |
| eBPF exec record (variable-length argv) | wire/tests/exec_record.rs |
| TLS ClientHello | tls_client_hello.rs tests in userspace |
| ETW (BITS, Zone.Identifier) | etw/tests/robustness.rs |
| Event-log XML and per-event decoders | eventlog/tests/xml_parser_robustness.rs and siblings |
| Minifilter wire | proptests in wire.rs |
| Intel feeds | intel/tests/robustness.rs |
- Coverage-guided fuzzing in
tests/fuzz/. It needs libFuzzer and a nightly toolchain, so it is excluded from the workspace:
| Target | Exercises | In scheduled CI |
|---|---|---|
audit_parse | sensor_linux_audit::parse_audit_message | yes |
netlink_parse | DiagMsg, ProcEvent, ConntrackFlow | yes |
exec_record_parse | parse_exec_record. It also checks that an accepted record stays within ARGV_WINDOW_BYTES and within the input | no (manual only) |
logs_parse | Access-log (common and combined) and MySQL error-log parsers | no (manual only) |
The scheduled workflow (.github/workflows/fuzz.yml) runs Monday and Thursday for 10
minutes per target. Each run resumes from the corpus cached by the previous run, so
coverage accumulates. It is not a PR gate. When it finds a crash: minimize the input with
cargo +nightly fuzz tmin --fuzz-dir tests/fuzz, pin it as a named regression test in the owning crate's
robustness suite, then fix the parser. The corpus is not tracked in the repository.
A new parser of kernel-socket or attacker-influenced bytes must come with a robustness suite. If it is high-value, it also gets a fuzz target.
Self-protection
The mechanisms behind each row are explained in Self-protection.
These controls make tampering loud. They do not hide the agent. The agent never uses concealment techniques: no unlinking from process lists, no hidden files, no API hooking. A defensive agent has to stay visible to the person who installed it, and other security products rightly flag hiding behavior whatever the intent.
| Attack on the agent | Defense | Code |
|---|---|---|
| Kill the agent | The watchdog respawns it, with exponential backoff for fast crash loops | supervise.rs |
| Kill the watchdog | The service manager restarts it: systemd Restart=always, SCM sc failure, launchd KeepAlive | apps/watchdog/src/service |
Catchable signal (SIGTERM, SIGHUP, SIGQUIT) | Records who sent it with sigwaitinfo before exiting, after a bounded flush | kill_loudness.rs |
SIGKILL | Cannot be attributed by the dying process. The eBPF sensor records the sender in a map pinned under /sys/fs/bpf/synthaea, and the restarted agent reports it | ebpf.rs |
| Freeze or wedge the agent | The agent writes a progress-backed heartbeat file. The watchdog kills the agent after repeated checks see no progress | heartbeat.rs, supervise.rs |
| Detach a sensor and leave the process running | Per-sensor heartbeat: the silence becomes an alert | silence.rs, tamper::heartbeat |
| Swap the agent binary on disk | The watchdog pins its hash at startup and refuses to launch a mismatch. Every 300 s the agent re-hashes the active release against its signed manifest | tamper.rs, integrity.rs |
| Write, delete or rename the agent's own files | Any process other than the agent doing so raises a high-severity detection | protected.rs |
| Edit the service definition | Linux: drift against an install-time snapshot is reported | service/linux.rs |
sc stop / sc delete as a non-SYSTEM admin | A hardened service DACL removes stop, pause and delete from Administrators. Admins keep WRITE_DAC, so this is friction, not a boundary | service/windows.rs |
| Install into a world-writable directory | Refused on Unix, and installed binaries are set to root-owned 0755 | tamper.rs, service/mod.rs |
| Firewall the agent off the server | The agent sends a periodic health beacon. The server treats an agent that stops sending it as suspicious. The spool keeps events until the link returns | health.rs, TransportClient::send_heartbeat |
| Unhook userland APIs, direct syscalls, patch ETW in a process | Nothing to unhook: telemetry comes from the kernel (eBPF, kernel ETW, ES), not inline hooks | — |
Response actions: fail-closed guards
Response actions run with the agent's privilege, and their targets come from telemetry. They must fail closed when the target is wrong.
- Kill.
kill_processrefuses pid 0, pids that do not fitpid_t(they would wrap to a process group, or to every process), pid 1, and the agent's own pid. It refuses even when policy enables kill. When policy disables kill, the outcome isObserveOnly. Separately, the correlator refuses to kill a system service's main process. That refusal currently misses services started before the agent (#52). - Quarantine.
quarantine_fileopens the source once withO_NOFOLLOW, checks it withfstat, and hashes and moves it through that descriptor, so a swap to a symlink is not followed. The copy is bounded by the file's size at open time. The module documents its limits: a symlinked parent directory is still followed, and the check and the unlink are not atomic. Windows does not wire automated quarantine yet. - Isolation. The host firewall plan always keeps the control-plane endpoints
reachable and caps their number (
isolation.rs).
What is not defended
- A kernel-mode adversary (a loaded malicious or vulnerable signed driver, a rootkit) defeats every user-mode control on this page. Closing that gap needs a kernel component per OS: Windows driver and PPL (#27), and the macOS Endpoint Security system extension for tamper resistance (#42). Until then, the defense is making the move into the kernel loud, plus the server's check for silent agents.
- The kill-both-fast race. An adversary at the same privilege level who kills the agent and the watchdog in a tight loop gets a short window, bounded by the restart interval. User-mode restarts cannot close it.
- Admin or root uninstall. A legitimate uninstall and a malicious one look the same. What tells them apart is the recorded actor and the timing, not the act.
- A kernel stop through resource limits (prlimit CPU limit,
memory.maxOOM kill,cgroup.freeze) aimed at a security tool is only partly covered on Linux (#49). The rules read the command that sets the limit:systemctl set-property(a memory or task limit, or aCPUQuotabelow 10 %),systemctl freeze, andprlimit --pidon a listed tool, and a write to a limit file (memory.max,memory.high,pids.max,cpu.max,cgroup.freeze, and the cgroup v1 equivalents) in the cgroup of a listed unit. The OOM kill that follows raises no alert on its own: the kernel sendsSIGKILLasSEND_SIG_PRIV, so there is no sending process to attribute, and the signal probes drop it by design. Reporting it would take a new probe on the OOM victim, which is not built. Not verified: whether such a probe is usable on every supported kernel. A command line the rules cannot read (an option cluster such asprlimit -tp, an empty argv) and a limit set by a means no rule reads (a process that writes the file through a path the rule cannot map to a unit, or a binary that callsprlimit64(2)/setrlimitdirectly: there is noprlimit64tracepoint) are not seen either. The path case includes a bare file name after acdinto the unit's cgroup (cd <cgroup> && echo 1 > cgroup.freeze): the open reaches the event stream but carries no unit, and the event has no working directory (lab-run on kernels 5.14 and 7.2). These limits stay documented rather than built away: closing the path case means capturing the working directory or the resolved path in the probe, a wire-format and verifier change (a field insensor-linux-wire'sFileOpenEvent, so aWIRE_VERSIONbump) for a tripwire that reads how a limit is set, not a barrier. A userspace fallback that reads/proc/<pid>/cwdon the drain task, asresolve_dirfd_pathdoes for relative rename paths, was rejected: the open event has nodfd, so anopenatrelative to a directory fd would resolve against the cwd into a wrong absolute path, which is worse than a relative one by that function's own rule, and a short-livedshexits before the readlink. The kernel's own kill (OOM or CPU rlimit) has no sender to attribute, and a probe on its victim is unverified across the supported kernels. A lab capture that shows either is usable on all supported kernels is the reason to reopen them. - Local-only deployments have no server-side silence detection, and their evidence never leaves the host.
- Unsigned updates on Windows and macOS. Self-update is Linux-only today (#60). Packaged binaries are not yet Authenticode-signed (#55) or notarized (#26).
- Windows install-directory check. The Unix world-writable-directory refusal has no Windows equivalent (a DACL audit). The MSI's Program Files default is the only mitigation.
Supply chain hygiene
deny.toml: RUSTSEC advisories and yanked crates fail the build. Ignored advisories must still match something in the dependency tree, or CI fails, so an ignore cannot go stale. Licenses come from an allow-list, and wildcard version requirements are denied.- Dependency direction is enforced by
tools/check-deps.py. Sensor crates depend only onschemaand their platform's shared crates, so a sensor cannot reach the transport or the updater. - Platform-specific code is confined to sensors, the updater, and the narrow quarantine descriptor helpers.
- GitHub Actions are pinned by commit SHA, and checkout does not persist credentials.
How it is tested
| Property | Test |
|---|---|
| Packaged build has no test key | tools/check-no-test-key.sh (CI), unprovisioned_build.rs |
| Unprovisioned key fails closed for every manifest kind | unprovisioned_build.rs |
| Key roles distinct, key files well-formed | unit tests in key.rs |
| Test-key refusal and its messages | unit tests in trust.rs and release.rs |
| Cleartext secret rejected | cleartext_secret_is_rejected_as_secret_invalid in load.rs; secret.rs tests |
| Private CA pinning | transport/tests/private_ca.rs |
| IPC authorization and framing cap | unit tests in stream.rs and frame.rs. tests/e2e.rs skips when it runs unprivileged |
| Never-panic parsers | robustness suites and fuzz targets above |
| Kill guard | unit tests in kill.rs |
| Hardened Windows service DACL | unit tests in service/windows.rs |
| Kill-loudness end to end | Not unit-tested (the flow terminates the process). Validated by hand on a lab VM |