Why "send us your prompts" stopped being acceptable

AAPT started as SaaS. You pointed app.aapt.online at your agent, we scanned it from our side, and you read the findings in the dashboard. That model is still right for a lot of teams. But for regulated financial institutions, public-sector bodies, defence-adjacent industry, and the data-residency-bound enterprises that are now the norm in India, Indonesia, the Gulf and the EU, it ran into three walls at once.

  • Data residency. A red-team run is, by construction, a record of an agent being pushed to misbehave. The attack prompts, the agent's replies, the tool payloads and the judge's reasoning are all in the transcript. If any of that contains customer records, internal documents or credentials the agent could reach, it is regulated data, and in many sectors it is not allowed to leave the jurisdiction or the network.
  • Reachability. The agents that matter most often sit on internal-only endpoints. A SaaS scanner cannot reach them without a tunnel the security team will not approve.
  • Model and IP confidentiality — on both sides. The customer does not want their agent's system prompt, tool schema or behaviour catalogued on a vendor's servers. We, in turn, do not want our probe library — the accumulated attack corpus that is the product — sitting in plaintext on a box we do not control. Any design that solves one and ignores the other is a half-answer.

The sovereign appliance flips the data flow. The data plane (scan, judge, evidence) becomes the customer's. The control plane (licence ledger, dashboard, reports, compliance mapping) stays ours. And what crosses between them is narrowed to the minimum that still makes the hosted dashboard useful.

What Sovereign is, in one picture

Two sides. On the left, the customer's cloud, VPC or on-premises rack. On the right, the AAPT control plane. The appliance never needs inbound connectivity; it makes outbound HTTPS calls to the control plane, and even those are optional in air-gap mode.

The Sovereign boundary The customer boundary holds the appliance, the target agents, a local judge and the evidence store. The vendor control plane holds the licence ledger, the ingestion API and the console. Only a signed results-only bundle and a signed heartbeat go out; a licence token and policy come in. Transcripts, payloads and the judge key never cross. CUSTOMER BOUNDARY — CLOUD, VPC OR ON-PREM AAPT Sovereign appliance in-process engine · no Redis · no inbound offline licence verify (Ed25519) encrypted probe library → memory only signs bundles + heartbeats Your agents chat · MCP · REST · GraphQL probes Judge your key, or local laya / Ollama Local evidence store transcripts · payloads · responses judge reasoning · target URLs NEVER CROSSES THE LINE attack prompts · agent replies · judge reasoning · judge key · raw target URLs AAPT CONTROL PLANE app.aapt.online Ingestion API tenant-scoped · idempotent Licence ledger + appliance registry Consoles super-admin · tenant-admin Dashboard & reports findings · remediation compliance mapping stores public keys only evidence "retained on appliance" signed bundle results only heartbeat signed · seats · version licence token + policy (revoked?) nothing else (air-gap: carry the bundle file by hand)
Figure 1 — The Sovereign boundary. Everything that touches your agents' behaviour stays inside your boundary. Three things cross: a signed results-only bundle and a signed heartbeat out, a licence token and revocation policy in. In air-gap mode, the outbound calls are replaced by a bundle file carried across by hand.

"What crosses" is a data-classification decision we made early and treat as a must-hold invariant. A finding has two halves: metadata (safe to share) and evidence (sensitive). The appliance's telemetry_level decides which half leaves, and the default is the strict one.

Data classExamplesCrosses the boundary?
Finding metadataprobe id and name, category, verdict, severity, CVSS-A score, OWASP and MITRE ATLAS references, detection method, cost band, latency, timestamps, run and engagement ids, a target labelYes — in the signed bundle
Appliance statusappliance id, version, seat usage, a timestamp and nonceYes — in the signed heartbeat
Licence and policythe Ed25519 licence token; revocation, minimum-version and telemetry policyInbound only
Attack evidenceraw_payload (the prompt we sent), raw_response (what your agent said), judge reasoningNo, under results_only (default)
Target identityraw endpoint URLs of your agentsNo — a label is sent instead
Judge credentialsyour LLM API key, or local judge weightsNever, at any telemetry level
Probe libraryAAPT's attack corpusInbound, encrypted; decrypted into memory only under a valid licence

Two other levels exist. redacted uploads evidence after a local scrubbing pass; it is defined and phased, not yet shipped. full uploads everything, for customers who want the complete hosted report and accept what that means. The customer picks the level on their own box, per run if they like. We advertise a telemetry policy from the control plane; we cannot raise the level remotely.

The five guarantees

Everything below is shipped and merged to main (appliance design Phases 0–4), and each one is exercised by an automated test and by the demo lifecycle described further down.

1. The scan runs inside your boundary

The appliance is the full AAPT engine — the same orchestrator and probe library the SaaS uses — running in-process on your box: no Redis, no queue, no API server listening, no inbound port. It reaches your agents over your network through the same adapters (chat completions, MCP, REST, GraphQL) and persists results to a local SQLite or Postgres store that you own.

2. The judge runs inside your boundary, with your key or no key at all

Many probes need an LLM judge to decide whether the agent did the unsafe thing. On the appliance the judge is configured locally: either your own provider key, which lives only on the box and is never written into any bundle, or a fully local judge. We ship an opt-in provider for laya, a non-autoregressive yes/no classifier that answers judge questions in a single forward pass on a local GPU, and the assistant can be pointed at any OpenAI-compatible local endpoint such as Ollama. That configuration is zero-egress: no token ever leaves the box to be judged. We rejected the convenient option of typing the judge key into app.aapt.online, because a key typed there has already left your environment. Non-secret judge config (provider, model, endpoint) can be managed centrally; the secret stays local.

3. Only a signed, results-only bundle leaves

When a run completes, the appliance builds a versioned bundle honouring telemetry_level, hashes it, and signs it with the appliance's own Ed25519 evidence key. Under results_only, the evidence fields are not blanked or redacted — they are absent from the file. Each finding carries evidence_on_appliance: true and a local reference id, so you can investigate on the box with the full transcript while the hosted dashboard shows scores, mappings and a pointer. Anyone with the appliance's public key — your auditor, with no AAPT account — can verify the bundle's integrity and authenticity.

4. The licence is an offline token, with no call-home

AAPT licences are Ed25519-signed tokens (RFC 8032): a base64url payload of claims and a signature the appliance verifies against our embedded public key. There is no licence server to contact, so an air-gapped site licenses exactly like a connected one. The v2 claims bind the token to a tenant, a plan, a feature set, a seat cap (protected agents), an expiry and a grace window. The teeth are not the 402 you get when you try to start a run without one; they are the probe library, which ships encrypted and is decrypted into memory only while a valid licence is present. A lapsed licence leaves zero probes at the next restart.

5. Ingestion is tenant-scoped, and revocation is enforced where we are

When a bundle reaches the control plane, ingestion verifies the signature, writes an appliance-origin run and its findings under the authenticated tenant, and is idempotent by run id; a run id already claimed by another tenant is refused. Heartbeats are signed with a per-appliance ingest key generated at pairing — we keep only the public half — and return the current policy. If a super-admin revokes a licence, the next heartbeat reports it and the next upload is refused with a 403. Note the shape of that guarantee: the box can still scan until its token expires, deliberately — an outage at our end must never switch off your security testing. Revocation stops results being accepted and the licence being renewed.

How it deploys

Sovereign is one codebase in three roles, selected purely by environment variables. A given box is never more than one role.

  • Control plane (vendor-hosted, app.aapt.online, or shipped in-boundary for the fully air-gapped variety). The ordinary SaaS stack plus the licence-minting private key, the ledger and registry tables, and the super-admin console. Its env adds the LICENSE_SIGNING_* and EVIDENCE_SIGNING_* key groups, an optional APPLIANCE_MIN_VERSION, and must keep APPLIANCE_MODE and APPLIANCE_TEE_REQUIRED false; startup refuses otherwise.
  • Appliance (customer-hosted). The same engine, run in-process by the aapt appliance CLI or as a full stack behind your firewall. Its env has four groups: the APPLIANCE_* identity and ingest key from pairing; the LICENSE_* token, public key and enforcement switch; the appliance's own EVIDENCE_SIGNING_* keypair; and the JUDGE_* / LAYA_* / CHATBOT_* group for a local judge and assistant. Hardened builds add the PROBE_* encryption settings.
  • Confidential appliance (Phase 6, see below). The appliance role with APPLIANCE_SECRET_SOURCE=cdh and APPLIANCE_TEE_REQUIRED=true, plus the CDH_* group; the five secrets are removed from env and released by a key broker after attestation.

Two network postures. Results-egress: the appliance uploads bundles and heartbeats over outbound HTTPS to AAPT_API_URL. Air-gapped: no outbound at all; the appliance writes the signed bundle file, and a tenant admin carries it across and imports it at /appliance-import, which runs the same ingestion validation. Same format, manual transport.

A reference appliance environment, with values elided, is exactly what our pairing script writes:

APPLIANCE_MODE=true
APPLIANCE_ID=<from pairing>
APPLIANCE_INGEST_KEY=<private_key from pairing — shown once>
LICENSE_ENFORCEMENT_ENABLED=true
LICENSE_KEY=<token>            # or LICENSE_FILE=/opt/aapt/license.key
LICENSE_PUBLIC_KEY=<vendor public key>
EVIDENCE_SIGNING_PRIVATE_KEY=<appliance keypair>
EVIDENCE_SIGNING_PUBLIC_KEY=<appliance keypair>
TELEMETRY_LEVEL=results_only
DATABASE_URL=sqlite+aiosqlite:////data/appliance.db
REDIS_URL=redis://127.0.0.1:1/0
AAPT_API_URL=https://app.aapt.online/api
JUDGE_API_KEY=<customer's own key, optional>

The lifecycle, as the validated demo runs it end to end:

The Sovereign lifecycle Eight steps: issue a licence, pair the appliance, scan in-process, build a results-only bundle, verify it, ingest it, heartbeat, and revoke. Steps on the control plane are navy; steps on the customer box are cream. control plane (us) customer box 1 · Issue Ed25519 token, v2 claims tenant · plan · seats · grace 2 · Pair appliance keypair private half shown once 3 · Scan in-process, no egress judge on the box 4 · Bundle results_only, signed payload/response: ABSENT 5 · Verify hash + signature no AAPT account needed 6 · Ingest upload or air-gap import tenant-scoped · idempotent 7 · Heartbeat signed: alive, version, seats receives policy 8 · Revoke next heartbeat: revoked next upload: HTTP 403
Figure 2 — The lifecycle the demo runs end to end. Against the bundled mock agent, three probes run in about three seconds and produce two CRITICAL findings (CVSS-A 10.0 and 9.5); the bundle shows payload/response: ABSENT on every finding, verifies as VALID, ingests with three evidence fields withheld, and the fresh upload after revocation is refused with HTTP 403.
  1. Issue. A super-admin issues the licence from the console or offline by CLI; the claims (licensee, plan, seats, expiry, grace, features) are decoded on screen.
  2. Pair. The console generates the appliance's keypair and returns the private half once; it goes into the appliance env and is never persisted on our side.
  3. Scan. aapt appliance run executes the probes in-process against your target and writes a bundle file.
  4. Show and verify. aapt appliance show lists findings with scores, probe ids and mappings and no evidence; aapt appliance verify checks hash and signature against the appliance's public key.
  5. Ingest. aapt appliance upload, or the air-gap import page. The run appears in the tenant's dashboard with a "via appliance" badge.
  6. Heartbeat. aapt appliance heartbeat reports version and seat usage and receives the policy.
  7. Revoke. Flip the licence in the console; the next heartbeat says revoked, the next upload returns 403.

What the control plane sees

What we do hold matters as much as what we do not.

  • The licence ledger. A record of every issued licence: id, organisation, plan, features, seat cap, dates, status (active, suspended, revoked), who issued it. This is the revocation source. It is additive: a licence issued offline by CLI and never recorded is not blocked.
  • The appliance registry. One row per paired appliance: its public ingest key, version, last heartbeat, seat usage, and status. Private keys are never stored.
  • Heartbeats. Signed, periodic: "I am alive, this version, protecting this many agents." Nothing about targets or findings.
  • Policy. What the control plane pushes back: revocation, an advisory minimum version, the telemetry policy.
  • Ingested results. Finding metadata under your tenant, with evidence marked "retained on appliance" and linked by reference.
  • The consoles. A super-admin console for AAPT staff (issue, renew, revoke, pair, appliance health, seats; every action audit-logged) and a tenant-admin console for your own organisation: licence status, members and roles (tenant-admin, member, viewer), and non-secret appliance configuration.

That is the whole list; the judge key, transcripts and raw target URLs are not on it.

The next step: Confidential Sovereign

Everything above is honest about one limit: the customer owns the box. An offline licence cannot cryptographically enforce a clock or a hardware lock; the encrypted probe library is decrypted by a secret that, in a hardened build, is compiled in and obfuscated rather than absent. We describe that as commercial control, not DRM. And from the customer's side, "the judge runs on your server" still means an infrastructure admin with root on that server could read the judge's memory.

Confidential computing removes both limits with the same mechanism, and it is the direction we have designed and committed to as Phase 6. To be clear about status: this is a design. The first software step has shipped; the hardware-dependent steps have not.

The building block is CNCF Confidential Containers (CoCo), which runs each Kubernetes pod inside a lightweight confidential VM via Kata Containers, with memory encrypted and isolated from the host by a hardware trusted execution environment — Intel TDX or AMD SEV-SNP on the CPU side. The open-source relying party is Trustee: a Key Broker Service that releases secrets only after the Attestation Service has verified the hardware evidence against reference values from the RVPS (CoCo attestation docs). Inside the guest, the Confidential Data Hub fetches the released secrets. For the judge, NVIDIA's confidential-containers reference architecture extends the same model to confidential GPUs, and composite CPU-plus-GPU attestation — a single token carrying claims from both — is the pattern Intel Trust Authority documents for GPU workloads.

Confidential Sovereign layering (design) Four layers from bottom to top: hardware TEE (Intel TDX, AMD SEV-SNP, NVIDIA confidential GPU); attestation by Trustee (KBS, AS, RVPS) against AAPT reference measurements; key release through the Confidential Data Hub inside the guest; and the five appliance secrets, which are removed from the image and environment. Marked as a design, with step 6.1a shipped. DESIGN · PHASE 6 4 · Appliance secrets probe master secret · evidence signing key · ingest key · JWT secret · judge key — out of image and env 3 · Key release — Confidential Data Hub (in-guest) fetches kbs:///<tenant>/aapt/<name> at startup · fail-closed when APPLIANCE_TEE_REQUIRED=true 2 · Attestation — Trustee (KBS + AS + RVPS) evidence vs AAPT reference measurements + policy · tenant/licence claims · GPU evidence (judge) 1 · Hardware TEE Intel TDX / AMD SEV-SNP confidential VM (Kata) · NVIDIA confidential GPU for the judge · host-blind memory trust flows up: no attestation, no key release, no probes, no judge shipped today: layer 3 seam (secret_source, env | cdh backends, fail-closed, step 6.1a)
Figure 3 — Confidential Sovereign layering (design). Each appliance secret moves from the image or environment to a key broker that releases it only to a measured, attested pod. Layers 1 and 2 require TDX or SEV-SNP hardware and a CoCo cluster; the layer-3 seam — the secret-source abstraction with a fail-closed rule — is merged and tested against a fake data hub.

What changes for the five guarantees when this lands:

  • Licensing gains hardware teeth. The probe master secret is removed from the image. It is released by the key broker only to a pod whose kernel, rootfs and image measurements match AAPT's published reference values and whose licence claims are valid. The box owner cannot extract it. Node-lock stops being a warning and becomes a measurement binding; a legitimately migrated appliance simply re-attests on the new node.
  • The judge becomes operator-blind. The judge key or local judge weights are released only into the attested judge pod, on a confidential-GPU node. Root on the host cannot read its memory. For regulated buyers this is a materially stronger answer than "it is on your server".
  • Evidence is signed inside hardware. The evidence-signing key never leaves the TEE, so a results bundle's signature is provenance an auditor can tie to a measured image, not merely to a file on a disk.
  • "AAPT cannot see your data" becomes "nobody can". Not us, not the cloud operator, not a host administrator.

There are two customer varieties, and the air-gapped one taught us something. For a results-egress customer, an AAPT-hosted key broker is enough: we control release, so our IP is protected, and their data never leaves because of the results-only design. For a fully air-gapped customer there is no network path out at all, not even for attestation, so the control plane (ingestion, licence ledger, RBAC) and the Trustee all ship in-boundary. That collides with IP protection: a customer who administers the key broker can re-policy it to release our secrets to a pod they control, and we are back to "raised bar, not DRM". The resolution we chose is that AAPT owns the trust anchor inside the box: certified reference hardware with TPM-sealed measured boot of the Trustee host, and a commodity HSM or secure element holding AAPT's policy-signing key, optionally with a quorum so neither party can change what runs in the data centre unilaterally. Attestation collateral, reference values, licence renewals and probe updates then ride signed physical-media update bundles, extending the bundle export and import that already exists.

The honest dependency: none of this is demonstrable without TDX or SEV-SNP hardware and, for the judge, a confidential-capable GPU. Step 6.1a is merged (the secret-source seam, env and CDH backends, fail-closed when a TEE is required — the test proves an unattested pod cannot open the probe library). The next step is a hardware spike that runs the existing appliance image unchanged as a confidential pod and proves one key release end to end. Confidential VMs and GPU confidential mode carry a performance cost; we will publish the overhead measured in that spike rather than quote a number now.

Why this is the right step

Three reasons, only one of them regulatory.

Regulatory tailwinds. As we read the European Commission's own summary of the AI Act, high-risk AI systems must meet requirements including risk management, activity logging, documentation, human oversight and robustness before reaching the market. The Act's general application date is 2 August 2026, and the implementation timeline maintained by the Future of Life Institute, together with the Commission page, now places the Annex III high-risk obligations on 2 December 2027 under the Omnibus amendments; check the text and the current dates for your own case. In India, the Digital Personal Data Protection Act 2023, per PRS Legislative Research's summary, lets the central government restrict transfers of personal data to notified countries; a test run that keeps transcripts in-country does not have to reason about that power at all. Sector regulators in banking, telecoms and critical infrastructure already impose residency and outsourcing rules a SaaS-only scanner cannot satisfy. And the frameworks buyers map to — the OWASP Top 10 for LLM Applications 2025 (prompt injection and sensitive information disclosure at the top), the NIST AI RMF with its Govern, Map, Measure and Manage functions, and ISO/IEC 42001's AI management system — all ask for measurement and documented evidence. Sovereign produces that evidence without creating a new data-transfer problem in the process.

Sovereign AI is where the budgets are going. Governments and large enterprises are building national and in-house AI capacity precisely so that models, prompts and data stay under their control. A testing tool that insists the data come to it swims against that current. One that runs inside the boundary, with a local judge on the GPU the customer already bought, fits the shape of the deployment it is testing.

It protects both sides' IP, and it is auditable. The design that keeps your transcripts in keeps our probe library encrypted, licence-gated and — in the confidential tier — released only to attested hardware. And because every bundle is signed by a key you hold, every ingestion is tenant-scoped and every console action is audit-logged, the evidence chain is one an auditor can verify independently of us. The point of security testing is to be able to prove what you found and when.

What we won't claim

  • The licence is commercial control, not DRM — until the TEE tier. A customer who owns the box can, with effort, extract the probe library from a hardened build; encryption and compilation raise the bar, and the licensing agreement is the real backstop today. Attestation changes this, and it is a design.
  • Node-lock warns; it does not enforce. We chose that deliberately so a legitimately migrated appliance is never bricked. Attestation is the enforceable replacement.
  • Redacted telemetry is phased. results_only and full ship; the local redaction pass behind redacted is defined and scheduled, not delivered.
  • Revocation is eventual. It takes effect at the next heartbeat or upload, never instantly on an offline box; an offline appliance keeps scanning until its token expires, by design.
  • Phase 6 needs hardware. Confidential Sovereign requires TDX or SEV-SNP nodes, a CoCo-capable cluster and, for the judge, a confidential-capable GPU. The trust anchor is a bar, not magic — physical access and unlimited time can still defeat a commodity HSM — and TEE side channels exist; attestation protects against the host, not against bugs in the application.
  • Testing is not prevention. Same line as every post: Sovereign finds the weakness before production; runtime containment and least privilege are what stop a live attack.

The takeaway

The scan runs on your box. Only results leave, signed, never the transcripts. The licence is a token your box verifies offline, so there is no call-home — and no product without it.

Every clause of that sentence is something you can check: run the scan with the network cable out, open the bundle and look for the evidence fields, verify the signature with no account, revoke the licence and watch the upload fail. The confidential tier is the same sentence with "your box" replaced by "a measured, attested enclave", and it is the right next step because it turns the parts we currently ask you to trust into parts you can verify.