Security

Security by construction for agent-written software

Coding agents now produce and deploy application code faster than any engineering team can read it line by line, while attackers use the same models to locate and exploit weaknesses within days of disclosure. Traditional clouds amplify that asymmetry because every running service inherits ambient authority: a shell, a host file system, environment variables holding long-lived credentials, transitive dependency trees with build-time execution, and unrestricted outbound networking. Under that model, a single flawed parser, forgotten access rule or poisoned package turns a local application bug into credential theft, lateral movement or silent exfiltration.

Ferrite removes ambient authority at the platform boundary. Every application is safe by construction, by default, with nothing to assemble. It compiles from safe Rust against a single platform SDK, declares every storage resource, ingress route, secret name and external URL prefix in one readable manifest, and executes inside fail-closed kernel confinement. A compromised handler has no shell to spawn, no credential file to inspect and no network path to any host outside its declaration.

A document parser is exploited.

It still cannot survey the internal network.
The bug remains serious. Ferrite limits what it can reach.

Why agent-written software breaks ambient-authority infrastructure

Empirical findings across agent-generated software show why line-by-line review no longer holds as a primary control. When Veracode evaluated more than a hundred models on standard programming tasks, 45 per cent of the outputs carried security flaws, and a scan of 5,600 prompted applications uncovered more than 2,000 vulnerabilities and more than 400 exposed secrets. Offensive automation moves on the same curve: Anthropic documented a state-backed espionage campaign in which an AI model executed 80 to 90 per cent of the intrusion workflow.

Remediation throughput cannot keep pace with discovery. Mozilla described triaging and fixing 271 security bugs surfaced by Claude Mythos Preview in a single Firefox release, each still demanding human patch engineering and rollout. Across the wider industry, Verizon's 2026 Data Breach Investigations Report recorded full remediation of CISA's known exploited vulnerabilities dropping from 38 per cent to 26 per cent, while median time to full remediation stretched from 32 days to 43 (Verizon, 2026). The UK National Cyber Security Centre projects AI will make intrusion stages more effective through 2027 as disclosure-to-exploitation windows compress further (NCSC).

Those economics explain why six national cyber security agencies called for secure-by-design and secure-by-default architectures to become standard practice (joint statement), and why the NCSC asked which hosting platforms can protect an organisation and its data "even if the code running is of poor quality". Putting security on every individual founder or application team multiplies the patching queue with every service deployed. Putting capability confinement in the platform closes those failure modes once across every application and propagates every runtime hardening pass to every workload automatically.

Attack classes eliminated by architecture

Most production compromises rely on operating-system or cloud capabilities that an ordinary web application never required in the first place. Removing those ambient capabilities from the runtime collapses seven recurring breach paths before application code ever executes.

Command execution and post-exploitation

An application running on Ferrite has no shell, no host binaries and no system call path to spawn a child process. On general-purpose servers, remote code execution turns an application defect into full machine takeover: the React server vulnerability exposed roughly 77,000 endpoints and led to breaches across more than 30 organisations because attackers immediately gained a shell to stage tooling and pivot laterally. Without process execution or a writable host environment, post-exploitation tooling has nowhere to land or run.

Credential harvesting from files and environments

Credentials on conventional hosts usually live in environment variables or mounted configuration files where every library in the process address space can read them. Ferrite provides neither environment variables nor a host file system. Secrets are write-only, stored sealed, absent from source and manifests, and delivered either directly at the outbound gateway or through a tightly scoped runtime context whose outbound traffic can leave only for declared URL prefixes. The secrets section traces the full credential lifecycle.

Data exfiltration and server-side request forgery

A Ferrite application owns no raw sockets and opens no listening ports. Every outbound HTTP call traverses a single egress gateway that validates the target against literal URL prefixes in the manifest, resolves DNS at connect time to refuse loopback, private network and cloud metadata addresses, and logs every request. Inbound public traffic reaches the application solely through routes named in the declaration, stripped to the exact headers each route forwards.

Supply-chain poisoning through transitive dependencies

Modern web services routinely pull hundreds of third-party packages whose install scripts and build hooks execute with developer or CI privileges. The Shai-Hulud worm compromised more than 500 npm packages in a single campaign. A Ferrite application admits exactly one compile-time dependency, the platform-vendored Ferrite SDK, while rejecting build.rs scripts, procedural macros and install-time execution. Ferrite packages vendor directly as inspectable source inside the application and run inside the same capability envelope.

Memory corruption

Application logic compiles exclusively as safe Rust. Source admission rejects unsafe blocks and attributes before compilation starts, and the platform builder passes compiler-level directives that forbid unsafe code across the entire crate graph, closing buffer overflows, use-after-free bugs and memory-corrupting parser exploits.

Misconfigured databases and exposed storage

A study of 1,645 applications created on a popular prompt-driven builder found 170 exposing customer records because row-level security policies had been omitted. Ferrite exposes no public database port, no cloud bucket access policy and no unauthenticated admin interface to forget. Every state read and write runs through application code bearing a signed capability token restricted exclusively to that application's own storage engine.

Cross-tenant lateral movement

Compromise of a single application ends at the capabilities declared in its manifest. Every instance runs under its own unprivileged user in private Linux kernel namespaces with no network route, constrained by a system-call filter and hard cgroup CPU and memory quotas, so a compromised service cannot probe neighbours, inspect host interfaces or starve co-located workloads.

What an application receives

The right security question for any line of agent-written code is what authority it holds if an attacker controls its execution path. A business application storing records, running background work and serving HTTP or MCP traffic has no legitimate need for a shell, a host file system, ambient environment credentials or unrestricted internet egress, and Ferrite grants none of them.

Every Ferrite application is assembled from six primitives: record stores, streams, queues, transactions, object storage and functions. Its declaration (ferrite.json) enumerates the exact instances of those primitives the application owns, the public routes and forwarded headers that reach it, the outbound URL prefixes it may call, the secret names it requires, and its per-instance memory and CPU ceilings. At runtime the process obtains typed capability handles for those declared objects through its execution context and holds zero authority outside them.

Expanding an application's reach requires editing ferrite.json and redeploying through admission and platform compilation. Every new storage volume, forwarded header or outbound host therefore enters version control as a concise diff that human reviewers and automated policy checks inspect before reading implementation code.

Bounded blast radius when application code fails

Consider a defect inside an application's own document parser where crafted input gives an attacker control over request handling. Even with full control inside the handler, the attacker inherits only the capability handles granted to that application: its own declared stores and its declared outbound prefixes. Attempts to scan internal subnets, query the cloud metadata service, read another tenant's storage engine or post stolen records to an attacker-controlled domain fail before leaving the host, with every refused egress call logged. Fixing the parser is a routine source deployment.

The same boundary blocks hostile or accidental agent-written code regardless of how it reaches for authority:

  • Calls to open raw sockets, inspect the host file system, read environment variables or spawn subprocesses are rejected by name at source admission and blocked again by compiler enforcement against unsafe code.
  • Obfuscated attempts that evade static source inspection hit a running process with no network route, no host file system, dropped privileges and a seccomp filter, leaving declared relays as the only communication path.
  • Attempts to introduce compromised third-party crates or build-time execution fail admission because only the platform-vendored SDK is permitted and build scripts and procedural macros are refused.
  • Cross-tenant data access fails at the storage tier because every operation presents a signed capability token scoped exclusively to the owning application's resources.
  • Runaway allocations or tight loops hit hard per-instance cgroup limits, terminating or throttling that instance alone without degrading neighbouring workloads.

Five independent enforcement layers

Security boundaries hold under adversarial pressure when each layer fails closed on its own and assumes the layer ahead of it could be bypassed.

Source and manifest admission

Every deployment passes fail-closed static admission before a build starts. Manifest admission rejects references to undeclared resources, outbound URLs targeting private, loopback, metadata or platform-owned domains, forbidden request headers and rights outside the platform's closed capability vocabulary. Source admission admits only the Ferrite SDK as a dependency, forbids unsafe code, rejects build.rs scripts, procedural macros and ambient standard-library paths to networking, files, environment and processes, and refuses source that fails to parse. Each rejection returns a structured diagnostic code and remediation guidance so coding agents correct violations locally before invoking a remote build.

Offline platform compilation and provenance attestation

Ferrite refuses uploaded binaries and compiles admitted source itself on isolated, sandboxed builder machines. The builder substitutes its own vendored SDK and toolchain, ignores submitter lockfiles, compiles strictly offline and instructs the Rust compiler to forbid unsafe code across the entire build. Once compilation succeeds, the platform seals the artifact's SHA-256 digest into a signed provenance record that the target runtime host verifies again before starting the binary, so production executes only the exact source admitted at check time.

Signed capability tokens for storage and state

Every read, write and queue operation against platform storage carries a cryptographically signed capability token expressing rights from a closed vocabulary and scoped strictly to the owning application's resources. Delegated tokens can only narrow existing rights, never widen them. Tokens bind to the transport connection they arrive on so an intercepted token cannot be replayed elsewhere, and advancing a capability epoch revokes an entire cohort immediately.

Literal-prefix egress gateway

Outbound HTTP traffic passes exclusively through one central egress gateway. Target URLs must match a declared prefix literally, character for character, which blocks alternate schemes, non-standard ports and hostname-suffix tricks. When the gateway opens the connection, it inspects the resolved IP addresses to stop DNS rebinding at connect time, refuses any public domain resolving to loopback, RFC 1918 private ranges, link-local addresses or cloud metadata endpoints, and logs every call.

Kernel process containment

Source admission filters out obvious violations before compilation; kernel containment enforces the hard boundary even if malicious or malformed code reaches execution, as detailed in the containment section below.

Containment

Kernel containment encloses every other layer so compromise inside one workload cannot cross into another tenant or the underlying host. Every application instance runs under a dedicated unprivileged user with privilege escalation disabled (no_new_privs), inside private user, mount, PID, IPC, UTS and network namespaces with no default network route. Its root file system exposes only its own verified binary and execution context, a seccomp filter blocks high-risk system calls including mounting, process tracing, raw sockets and nested namespace creation, and cgroup ceilings enforce hard memory and CPU quotas.

The instance communicates solely through dedicated relays wired to its declared destinations and reaches persistent state solely through signed capability tokens scoped to its own storage engine. Between platform nodes, mutual TLS authenticated against the fleet root certificate authority guards every frame. Startup fails closed if any isolation primitive cannot be established, and Ferrite's containment test suite validates every refusal against an identical uncontained control probe that must succeed, proving the host environment could not mask a broken sandbox (evidence page).

Where secrets live

Secrets on Ferrite are write-only from the moment they are configured. A founder or coding agent writes a credential once by name through the CLI or MCP tools; the platform stores it sealed and returns only secret names on listing. No CLI output, tool response, log stream or dashboard screen ever displays a secret value again, and no file or environment variable exposes it inside the running workload.

For external API calls, the egress gateway attaches declared credentials directly at the outbound boundary so third-party tokens stay out of application memory altogether. Where application logic needs a secret directly inside its execution context, such as verifying signed webhooks, egress confinement guarantees that value can leave the platform solely toward URL prefixes declared in ferrite.json, with every outbound request logged.

Model-provider credentials follow two explicit patterns recorded in the manifest. Applications routing inference through Ferrite's AI gateway hold a revocable Ferrite gateway credential bounded by spend caps while the upstream provider credential stays sealed in the gateway; applications calling a model provider directly store their own sealed credential and declare the provider's exact URL prefix. Both patterns keep credential reach visible in the declaration.

Verifying application rules inside the boundary

Capability confinement closes off infrastructure compromise and unauthorised reach, so application engineering focuses squarely on product rules: which authenticated user can read or modify a record, which external destination receives which payload, how duplicate requests reconcile and when multi-step workflows commit.

Ferrite equips coding agents and engineers to prove those invariants against the exact runtime primitives that serve customers. The auth package ships with attack-named test suites covering replayed callbacks, session fixation and missing CSRF validation, and application test suites execute directly against real stores, queues and routes under concurrent writes, request replays, malformed inputs, mid-flight disconnects and cross-user access probes.

Who has checked

Ferrite pairs architectural confinement with continuous verification across its runtime, control plane, SDK, packages and hosted service. Automated security-review tooling and security-specialised models from multiple vendors review the codebase continuously, alongside independent internal code reviews conducted outside the authoring team. Every finding is tracked in dated remediation records and locked under permanent regression tests.

Every enforcement boundary described on this page is exercised by adversarial test suites injecting hostile source, malformed manifests, undeclared egress calls and kernel escape probes, structured so any boundary regression fails verification immediately. Security teams and technical diligence reviewers can inspect those tests and reproduce the admission and egress checks directly on the evidence page.

Report a security issue

To report a suspected vulnerability in Ferrite, write privately to the security team with "Ferrite security report" in the subject line. Include the affected endpoint, application or CLI release, concrete reproduction steps and observation timestamps, and omit customer data from the report.