Skip to main content
Detect AWS-specific credentials in agent input and output with high-confidence pattern matching. This policy targets the three primary AWS credential types and blocks them at critical and high severity.

Policy JSON

What It Does

  • Detects AWS Access Key IDs matching the AKIA* and ASIA* patterns
  • Detects AWS Secret Access Keys (40-character base64 strings in AWS context)
  • Detects AWS Session Tokens from STS temporary credentials
  • High confidence threshold (0.9) reduces false positives on strings that resemble but aren’t AWS credentials
  • Denies requests containing confirmed AWS credentials

Example

User input:
Decision object:

Install

Customize

For GCP and Azure credential detection, combine this policy with additional patterns: gcp_service_account_key, azure_client_secret, azure_storage_key. A multi-cloud secrets policy is on the roadmap.