---
updatedAt: 2026-11-12T11:49:49.000Z
agentTools:
  projectIndex: https://docs.superwise.ai/llms.txt
---

# Secret & credential detection

Which secrets and credentials Sentinel detects, and how they are redacted

The SUPERWISE® Sentinel secret and credential detection guardrail finds API keys, cloud credentials, and private tokens in a prompt and replaces each one with a placeholder before the request reaches the model provider. It works like secret scanning for code, applied to every prompt before it leaves: it matches known key and token formats, for example OpenAI, Anthropic, and Google API keys, AWS access keys, GitHub and Slack tokens, Stripe keys, JWTs, and bearer tokens.

**Action:** By default this guardrail **remediates**: each matched credential is replaced with the guardrail's replacement text, `REDACTED` by default, which appears in the prompt as `{{REDACTED}}`, and the request proceeds to the model without exposing the secret. You can change the replacement text, switch the guardrail to **block** matching requests, or **flag** them to record a finding and forward the request unchanged. See [Manage guardrails](https://docs.superwise.ai/docs/manage-guardrails).

## Example interception

**Inbound prompt from application:**

```
"Hey, can you help me write a quick bash script to upload files to our S3 bucket? Here are my local env variables to test with: AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE"
```

**What the upstream LLM actually sees:**

```
"Hey, can you help me write a quick bash script to upload files to our S3 bucket? Here are my local env variables to test with: AWS_ACCESS_KEY_ID={{REDACTED}}"
```

**Get Sentinel:** [Sentinel on superwise.ai](https://superwise.ai/sentinel/?utm_source=docs\&utm_medium=referral\&utm_campaign=docs-secret-credential-detection).

## See also

* [PII redaction](https://docs.superwise.ai/docs/pii-redaction): keep personal data out of prompts.
* [Rudeness & toxicity](https://docs.superwise.ai/docs/rudeness-toxicity): catch hostile language.
* [Manage guardrails](https://docs.superwise.ai/docs/manage-guardrails): choose remediate or block.