Secret & Credential Leak Scan
dcl_evaluate_secretsScans agent responses for exposed API keys, tokens, private keys, and other credentials, then blocks commits if any secrets are detected.
Instructions
POST-ACTION Secret & Credential Leak Scan ($0.02). Regex-based scan across 8 categories (API keys, cloud credentials, tokens/JWTs, private keys, DB URLs, connection strings, env assignments, webhook secrets, internal endpoints with auth). Any finding results in NO_COMMIT.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | Identifier of the agent that produced the response. | |
| response | Yes | The text to scan for exposed API keys, tokens, private keys, DB URLs, and other credentials. | |
| payment_id | No | Optional payment identifier returned by a previous call when payment is required |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tx_hash | Yes | Hash of this record in the tamper-evident audit chain. | |
| verdict | Yes | COMMIT if nothing was found, otherwise NO_COMMIT. | |
| findings | Yes | All matches found. Empty list if verdict is COMMIT. | |
| seal_text | Yes | Human-readable Leibniz Layer verification seal. | |
| timestamp | Yes | Unix timestamp when this record was sealed. | |
| input_hash | Yes | Hash of the scanned text (raw content is never stored). | |
| risk_score | Yes | 0.0-1.0 risk score based on number and severity of findings. | |
| verify_url | Yes | Public URL to independently verify this seal. | |
| chain_index | Yes | Sequential index of this record in the audit chain. | |
| detection_count | Yes | Number of findings. | |
| categories_clear | Yes | Categories with no findings. | |
| categories_checked | Yes | All checklist categories that were scanned. |