Use case 02 · sensitive data

Prevent Sensitive Data from Leaving the Approved Boundary

Evaluate the destination, data classification, tool privilege, and policy red lines before an agent uploads, emails, or exposes sensitive material.

Primary question
How can a runtime stop a proposed action from sending sensitive data to a prohibited destination?
Type
Use case
Verified
2026-10-04
Public package
fivedrisk 0.7.0
Source
c22213b
Expected outcome

What this path changes

Known prohibited data-and-destination combinations can be blocked before the external tool receives the request.

Deployment brief

The action, boundary, and evidence

Buyer

Who owns the risk

CISOs, privacy leads, security engineers, and regulated product owners responsible for data movement.

Trigger

When the gate runs

An agent proposes uploading, emailing, copying, posting, or otherwise exposing information outside an approved boundary.

Composition

How to configure assurance

Use deterministic destination, data-classification, and red-line policy. Add a semantic observer only when sensitivity or intent depends on context supplied by the host.

Actions to govern
  • Send personal or employee records to an external model or service.
  • Attach a confidential file to an outbound message.
  • Post secrets or transfer regulated data across an unapproved region.
Evidence to demand
  • Allow and block examples covering known destinations and data classes.
  • A receipt identifying the controlling rule, plus tests for missing or inaccurate host context.

Next: Inspect a data-egress policy and test it with sample data.

Relevant deployment example

Follow a matching proposed action through the gate.

Synthetic tested action under the pinned 5D 0.7.0 illustrative policy.

Analytics agent

Export account-holder records to an external workspace

A broad query and external destination exceed the declared data boundary. Under the pinned illustrative policy, the expected result is that the action is ineligible for execution.

D4T3R4E4A3
Do not execute · Score 2.75
Tool
storage.upload
Target
external workspace
Purpose
produce analysis

5D suppliesA RED decision before external transfer.

Host ownsData classification, destination truth, and enforcement across every egress path.

Coverage limitUnclassified data or an uncovered uploader can bypass the intended boundary.

Framework references

Where this control fits in the governance lifecycle.

These references identify possible technical-evidence contributions. They do not mean every framework applies to every deployment.

This mapping identifies possible technical-evidence contributions. It is not legal advice, certification, conformity assessment, readiness scoring, a compliance conclusion, or proof that an AI deployment is safe. Applicability, governance, integration coverage, and deployment outcomes remain the organisation's responsibility.

Design layer

Define

What may this agent do?

EU AI Act Partial mapping

Article 9(2)(a)–(b)Identification and evaluation of known and foreseeable risks

What 5D helps with: The action envelope can make intended actions, authority and foreseeable misuse conditions explicit as technical inputs.

What 5D does not establish: Applies only where the EU AI Act and Article 9 duties apply to the relevant actor and high-risk AI system; 5D does not perform the required risk-management system.

Official source ↗
NIST AI RMF Partial mapping

MAP 1.1, 1.5–1.6 and MAP 3.3Context, impacts, requirements and intended-use mapping

What 5D helps with: A normalized action envelope can expose selected context, requirements and intended-use constraints to policy.

What 5D does not establish: 5D supplies action-level inputs; it does not complete system-wide context, stakeholder or impact mapping.

Official source ↗
Organisation retains: Use-case and legal classification, impact assessment, risk appetite, accountable ownership, and prohibited-outcome decisions.
Deployment contract

Bind and deploy

Which approved control covers each execution path?

Singapore Agentic AI Partial mapping

Dimension 3 — Implement technical controls and processesControl access to approved tools and services

What 5D helps with: Gateways and adapters can attach action policy to documented tool-call paths.

What 5D does not establish: The host must prove complete interception, authenticate identity, secure configuration and operate the surrounding controls.

Official source ↗
OWASP Agentic Partial mapping

ASI02 Tool Misuse and Exploitation — mitigation 1; ASI03 Identity and Privilege AbuseLeast agency, tool boundaries and privilege context

What 5D helps with: 5D can enforce one declared tool-policy boundary using caller-supplied identity and authority context.

What 5D does not establish: 5D does not mitigate the complete ASI risks, authenticate identity, validate grants or guarantee complete action-path interception.

Official source ↗
Organisation retains: Identity authentication, topology, complete interception coverage, secure configuration, availability, rollback, and change management.
Public interface

Gate an outbound function

python
from fivedrisk.hooks import gate

@gate(tool_name="send_to_api", autonomy_context=3)
async def send_payload(destination: str, payload: dict) -> None:
    ...

Written for fivedrisk==0.7.0. Verify against the immutable source and public documentation before use.

Describe the proposed transfer

Provide the tool, normalized destination, relevant data classification, acting identity, and autonomy context. The action envelope should reflect what the tool would actually transmit, not only the agent's description of its intent.

Apply explicit red lines

Use policy rules for destinations, tools, patterns, and data classes that are not permitted together. Explicit prohibitions remain distinct from probabilistic observations about ambiguous content.

Record the blocked path

Preserve the normalized destination, rule reference, scores, disposition, and non-execution status so a reviewer can distinguish a policy block from a downstream failure.

Limits

What this page does not establish

  • 5D is not a complete data-loss-prevention system and does not discover every sensitive value.
  • Destination control depends on accurate extraction, normalization, and application-supplied context.
  • Encrypted, indirect, or previously copied data paths may require controls outside the action gate.