Scan agent input and output for API keys and tokens using TealSecrets’ pattern library. Critical and high-confidence findings are denied outright; medium-confidence findings are redacted to prevent false-positive blocking.
Policy JSON
What It Does
- Scans for API keys and tokens across 500+ patterns covering OpenAI, Anthropic, AWS, GCP, Azure, Stripe, GitHub, and more
- Scores each finding by confidence (0.0–1.0) and severity (critical, high, medium, low)
- Denies requests containing critical or high-confidence secrets
- Redacts medium-confidence findings to avoid blocking on false positives
- Deterministic pattern matching — no LLM calls in the detection path
Example
User input:
Decision object:
Install
Customize
Setting all severity levels to DENY may cause false-positive blocks on code snippets that resemble API key patterns. Use REDACT for medium-confidence findings in development environments.