Skip to content

Engineering note

8DB | A Prompt Can Ask for Your Secrets. Can the Agent Open Them?

Put your AI agent’s protected data access behind encryption. With 8DB, test which records open, which stay sealed and what happens when authority changes, independently of the model’s response to a prompt.

Published
Updated
Reading time4 minutes
Prompt injection defenceAI agent securityAgent least privilegeAI data access controlZero trust dataAgentic AI governancePost-quantum databaseCryptographic access control

Your support agent needs a customer's order history. It also has a search tool connected to internal documents. A message arrives saying the refund can only be processed after the agent retrieves an unrelated payroll file.

The useful security question is concrete: can that request obtain the payroll bytes?

8DB gives teams a protected data path they can test below the model. In the inspected clearance-boundary test, the matching cryptographic context recovers the original record; the mismatched context fails to decrypt it. That makes a data-access requirement observable independently of whether the model follows a malicious instruction.

For a security lead moving an agent into production, this is a practical advantage: define the records the agent needs, keep other records outside its decryption authority, and exercise both outcomes through the integration you intend to deploy.

Turn an access policy into a test

Start with a small, representative fixture. Give the agent a permitted order record and place a payroll record outside its assigned access context. Try the ordinary support request, then a request designed to cross that boundary.

The successful result has two parts. The agent can retrieve the order information needed to help the customer. The payroll request receives no usable plaintext through the protected path. A refusal is useful only if the legitimate task still works.

8DB's clearance test provides a specific foundation for this exercise: changing the tested clearance input changes the derived key, and authenticated decryption fails under the mismatched context. The application's trusted services must issue those contexts correctly and protect the root material. The test does not establish every possible clearance relationship or certify an entire deployment.

8DB · Define the acceptance boundary

Four requests. Four things to verify.

Illustrative support agent: useful access, protected records and controlled delivery.

01
Allowed dataRead the customer's order

Return the information needed for the support task.

Protected read + assigned context
02
Restricted dataRetrieve unrelated payroll

Return no usable plaintext through the protected path.

Cryptographic context + key custody
03
Current authorityRead after access changes

Apply the new authority and inspect retained copies.

Authorization + cache lifecycle
04
Approved destinationSend the order to a stranger

Prevent delivery outside the permitted recipient set.

Application output controls
Evaluation design, not four reported test results. 8DB’s inspected clearance test supports the protected-read boundary; the complete application must be tested through its own tool and delivery paths.

Keep each control responsible for its job

The data boundary works alongside tool permissions and output controls. OWASP recommends limiting agent functionality and permissions, using the end user's security context, and enforcing authorization in downstream systems. Those controls help prevent an agent from reaching beyond its task even when its instructions are manipulated. OWASP: Excessive Agency

Apply that separation to the support example. The store controls protected retrieval. The tool layer controls whether the agent may issue a refund. The delivery layer controls who receives the reply. Reading an order legitimately does not authorize sending it to an arbitrary address.

Keep root secrets and privileged context issuance outside the agent's reach. An agent host that has those secrets has a different security boundary from one that can only request narrowly authorized reads. The deployment should make that distinction explicit.

Test the day after access changes

An agent can remain active while a customer relationship, employee role or policy changes. Include that transition in the acceptance plan.

8DB's evaluation material includes stale-authority and unknown-policy refusal cases. For your integration, exercise a previously allowed read after authority changes, then inspect caches, exported data and retained credentials. Previously disclosed plaintext needs its own lifecycle controls; updating policy cannot make an external copy disappear.

This gives the policy change a testable finish line: the next protected read follows current authority, and the application handles information it already received according to its retention rules. The agent-memory article covers that lifecycle in more detail.

Put the boundary on your acceptance plan

The protected store is one part of the system you are evaluating. Run the allowed request, the forbidden request, the changed-authority request and the wrong-recipient request through your real tool path. Preserve the request identity, observed outcome and configuration with each result.

That is how a cryptographic mechanism becomes useful assurance: a reviewer can see what it protects, while the application retains the access it needs to do its job. Our evaluation guide explains the evidence to request; a bundle being available is separate from a completed independent assessment.

Send hello@8braid.com one allowed read and one read your agent must never receive. We can use that pair to scope an 8DB data-boundary evaluation around your application.

Evidence scope Implementation-reviewed · Scoped evaluation paths · Conceptual visual. Explore the evidence.

Continue reading

The next layer of the argument.

Engineering note

Trustworthy AI Data

8DB | Your AI Remembers. Who Controls What It Keeps?

Persistent memory becomes more useful when its origin, access rules and dependencies survive with it. 8DB combines those building blocks with a checkable structural-erasure path for isolated contributions.

4 min readImplemented mechanisms · Scoped erasure tests · Deployment guidanceRead article ↗
Research

Trustworthy AI Data

Give Your AI the Evidence Behind the Answer

A useful retrieval result carries its source, uncertainty and coverage as well as its content. 8DB gives AI builders those distinctions in the data layer, so applications can decide when to answer, qualify or investigate.

4 min readImplemented data types · Source review · Illustrative retrieval exampleRead article ↗
Idea

Trustworthy AI Data

Your AI Found the Right Passage. Can It Tell Whether to Trust It?

A relevant answer can come from an expired policy or hide a conflicting source. We propose testing the evidence a retrieval system hands to an agent, so teams can see what survives the journey from stored record to answer.

6 min readEvaluation proposal · Illustrative fixture · No system scores reportedRead article ↗