---
title: "trufflehog secret scan"
description: "Runs trufflehog over the working tree for hardcoded secrets. Credentials are NOT verified by default (--no-verification), so nothing leaves the machine; set settings[\"code.trufflehog\"].verify = true to let trufflehog send each found secret to its provider's API to confirm it is live (verified secrets are reported as critical)."
url: https://openaudit.se/auditors/code.trufflehog/
---

# trufflehog secret scan

`code.trufflehog`

Runs trufflehog over the working tree for hardcoded secrets. Credentials are NOT verified by default (--no-verification), so nothing leaves the machine; set settings["code.trufflehog"].verify = true to let trufflehog send each found secret to its provider's API to confirm it is live (verified secrets are reported as critical).

- **Engine:** Wrapped scanner
- **Wraps:** `trufflehog`
- **Targets:** Codebase
- **Areas:** Security
- **Runs:** By default, when the target applies
- **Network:** Only the target itself

## Run only this auditor

```sh
bunx @openaudit/cli . --only code.trufflehog
```

Wraps trufflehog. When it isn't installed, the auditor is skipped with an install hint and the rest of the audit runs.

## More security auditors

- [Secrets in source](https://openaudit.se/auditors/code.secrets/) (`code.secrets`)
- [Static security analysis](https://openaudit.se/auditors/code.security/) (`code.security`)
- [Hidden Unicode](https://openaudit.se/auditors/code.unicode/) (`code.unicode`)
- [API definition and server configuration](https://openaudit.se/auditors/code.api/) (`code.api`)
- [AI agent configuration](https://openaudit.se/auditors/code.agent-config/) (`code.agent-config`)
- [gitleaks secret scan](https://openaudit.se/auditors/code.gitleaks/) (`code.gitleaks`)
- [Semgrep SAST](https://openaudit.se/auditors/code.semgrep/) (`code.semgrep`)
- [Trivy filesystem scan](https://openaudit.se/auditors/code.trivy-fs/) (`code.trivy-fs`)
