Skip to main content
Turen’s 15 secret detection rules prevent API keys, credentials, and sensitive files from being exposed in AI agent conversations.
Turen Agent Security dashboard on the Secret Rules tab, showing 15 of 15 rules in a table with category, ID, rule, severity, and status columns. Example rows include SEC-01 PEM Private Key, SEC-02 AWS Access Key, SEC-03 GitHub PAT, SEC-05 Stripe Secret Key, and SEC-06 JWT Token.

The Secret Rules tab of the Agent Security page, showing 15 of 15 rules including SEC-01 PEM Private Key, SEC-02 AWS Access Key, SEC-03 GitHub PAT, SEC-05 Stripe Secret Key, and SEC-06 JWT Token.

Where to Find These Rules

Go to Agentic Security > Agent Security (/security/prompt) and select the Secret Rules tab. You can filter rules using the search bar above the table.

What’s Detected

API Keys and Tokens

Private Keys and Certificates

Connection Strings

How It Works

Secret detection runs as agent hooks on both requests (what’s sent to the LLM) and responses (what the agent outputs). This two-way scanning catches:
  1. Secrets in tool output: If Claude Code reads a file containing API keys, the secret pattern is detected and flagged
  2. Secrets in responses: If the agent attempts to include credentials in its output, they are caught
When a secret is detected, the rule blocks or warns depending on severity, and logs a security event.

Advanced Settings

From Agentic Security > Security Settings (/security/settings), expand the Secret Detection Settings section to configure: You can also toggle the entire secret detection module on or off from the Detection Modules section.

Example

Tuning

If your workflow triggers false positives:
  • Disable individual rules: Click the rule row in the Secret Rules tab to toggle it off
  • Adjust entropy settings: Raise the entropy threshold or minimum token length to reduce noise
  • Create custom rules: Add patterns specific to your organization’s credential formats
See Custom Rules for instructions.