How should I evaluate DLP controls for AI coding agents?
Updated
Short answer
Evaluate a coding-agent DLP control against a specific data path: the sensitive source, executing identity, operation, recipient and enforcing boundary. Check what the deployed control can inspect, change or block, and what it records. Use synthetic data and a controlled recipient to verify legitimate work and a prohibited transfer separately. A domain allowlist, scanner or local decision label alone does not establish whole-workflow coverage.
Choose a data path before choosing a product#
Start with one legitimate engineering task. A coding agent might read a private repository, diagnose a failed test and send a small diagnostic request to an approved service. Those operations involve different content, identities and recipients. A control that inspects a commit can miss an earlier tool argument; a network restriction can permit a host without deciding whether the recipient should receive a particular file.
Define the protected information and the operation that could disclose it. Our secrets guide covers implementation steps. This guide addresses the buying decision: which control boundary answers the demonstrated gap?
Use a source-to-recipient coverage worksheet#
For each relevant path, retain the following fields. This is a proposed evaluation worksheet, not a report of product test results.
| Field | Question to answer |
|---|---|
| Source | Which file, record, environment value or tool response contains the sensitive information? |
| Identity | Which agent, helper or remote service can read and transmit it? |
| Operation | Is this a file write, tool argument, network request, Git push or package publication? |
| Recipient | Which account, project, resource and destination should receive the result? |
| Boundary | Where can the deployed control inspect or constrain this operation? |
| Decision | Can it observe, redact, block or require another approved process? |
| Effect | What actually reaches the destination? |
| Evidence | Which minimized records can an authorized investigator inspect? |
NIST's zero-trust architecture treats resource access as an authorization decision rather than an entitlement conferred by network location. Apply that distinction to agent transfers: reaching an approved service does not grant permission to send every private value to it.
Compare the deployed enforcement points#
Code and secret scanning inspect their supported artifacts. Identity restrictions limit the resources and operations a credential permits. Process isolation constrains the execution environment. Destination restrictions constrain the traffic they actually mediate. Content inspection and supported pending-action checks may add a decision at a particular transfer point.
Ask which inputs each deployed control receives and when it acts. Does it see a filename, actual content, the selected account, the developer's task, or only the destination hostname? What can happen before its decision? Which alternate paths remain available?
An MCP service adds another boundary. Review its configured transport, operator and downstream identity using the MCP authorization guide. Valid authentication at the connection does not establish that a particular export or recipient matches the task.
Test useful work and a prohibited transfer separately#
Use a disposable fixture with synthetic information and a controlled receiving endpoint. Define the permitted outcome first. For example, the legitimate task may send a public diagnostic identifier while keeping a synthetic private field local. The prohibited variation changes the content or recipient while preserving the ordinary tool operation.
Inspect both the control decision and delivered content. A block message can coexist with an earlier transfer; a clean final diff can coexist with sensitive diagnostic output. Record incomplete evidence as a gap rather than treating missing observations as a successful block.
Repeat only across the routes the evaluation is meant to cover. File-tool reads, shell helpers, MCP arguments and independently executing package scripts can have different paths. A successful case on one route is evidence about that case and configuration, not all possible disclosure methods.
Evaluate operational fit without relaxing the required boundary#
Measure whether permitted work completes and where unnecessary interventions occur. Give exceptions an owner, resource, permitted operation and expiry. A recurring false block needs investigation; permanently widening a recipient or credential merely to remove friction can change the security requirement itself.
Review evidence access and retention alongside the decision path. Redacted records must still let responders identify the relevant task, target and decision without becoming another uncontrolled store of sensitive payloads.
Where Harden fits#
Harden evaluates supported pending coding-agent calls using relevant task context and policy. For a DLP evaluation, follow a synthetic sensitive field into a proposed transfer, then inspect the configured integration, decision and actual delivered content. Keep unsupported routes explicit.
Our research and evidence explains the stated evaluation methods. A supported action check does not replace secret storage, downstream authorization, network restrictions or incident response. Bring the completed coverage worksheet to Control to evaluate the relevant boundary.
FAQ
Related questions
Is secret scanning the same as DLP for coding agents?
Secret scanning identifies supported patterns in the artifacts it inspects. A transfer control governs a particular data path and recipient. Check when each control runs and which inputs it receives; a clean repository scan does not establish that earlier tool arguments or logs contained no sensitive content.
Does an approved domain make every upload acceptable?
No. A permitted destination can host different organizations, projects and operations. Verify the intended account, recipient, resource and content alongside the domain. Apply the relevant downstream authorization rather than treating connectivity as permission to disclose.
Can I test this with a real production credential?
Use synthetic markers and controlled endpoints instead. Define the expected allowed and prohibited effects before the test, inspect delivered content, and retain a minimized record. A real credential creates unnecessary exposure and does not make the test more informative.
Does local checking mean the workflow sends no data away?
No. The coding agent's model provider, remote tools, diagnostics and evidence exports can have their own data paths. Trace each configured recipient and distinguish local evaluation from the handling of the entire workflow.
How should I compare two DLP products?
Use the same owned workflow, synthetic content, identities and controlled recipients. Compare verified coverage, prohibited effects, useful completion, missing evidence and operational cost. Keep untested routes explicit; a feature name is not a result.