> For clean Markdown of this page, append .md to its URL. For the complete documentation index, see https://www.superagent.sh/llms.txt.


Review whether application artifacts or diagnostics expose credentials or other secrets.

# Secrets in artifacts and diagnostics


[← Back to attack scenarios](https://www.superagent.sh/docs/products/red-teaming/attack-scenarios)

Credentials can appear in places with a wider audience than intended, including build artifacts and diagnostic output. This scenario examines what the repository produces and where sensitive values could become visible.

It applies to projects that ship artifacts or expose diagnostics. A finding identifies the source of the disclosure and where the sensitive value was accessible.

The app lists this scenario as **Recover secrets from shipped artifacts or exposed diagnostics** (`REPO-15`) in [Repository Red Teaming](https://www.superagent.sh/docs/products/red-teaming/repositories).

## Standards and guidance

For disclosures in diagnostic logs, see [CWE-532 Insertion of Sensitive Information into Log File](https://cwe.mitre.org/data/definitions/532.html).

---
Source: https://www.superagent.sh/docs/products/red-teaming/attack-scenarios/repository-secret-exposure
Index: https://www.superagent.sh/llms.txt
