AGENTFORCE-SEC-01: Committed Credential
๐จ Critical ยท Credential Exposure
Detects credentials committed to the repository in any file: connected-app consumer keys and secrets (Custom Metadata, XML), private keys, AWS/GitHub/Slack/Stripe/Google/OpenAI tokens, Salesforce access tokens and high-entropy values assigned to secret-named keys. Placeholders, encrypted values (Mule ![...], {cipher}, ENC(...), ServiceNow instance-encrypted Password2 exports), tests, fixtures, lockfiles and example files are excluded; values are redacted in the report.
Detailsโ
| Field | Value |
|---|---|
| Rule ID | AGENTFORCE-SEC-01 |
| Severity | Critical |
| Category | Credential Exposure |
| Compliance | SOC2_CC6, PCI_DSS |
Remediationโ
Rotate the credential first: it stays in git history even after you delete the line. Then remove it and load it at runtime from an environment variable or a secret manager (AWS Secrets Manager, HashiCorp Vault, Azure Key Vault, GitHub Actions secrets). Then add secret scanning (for example gitleaks) to CI so it does not come back.