Code audit
Secret Handling
Enji Guard finds secrets exposed in Git, builds or logs and the code paths that can leak them.
Did the latest audit find exposed secrets?
Connecting to Enji Guard via MCP…
Reading the latest secrets audit…
Worked 4 s · Enji Guard via MCP ›
Score 68/100 — needs attention. 2 findings:
- CriticalSession signing key ships in browser code
- Medium riskSync errors write a partner key to logs
Fix them.
Moving the key to the server…
Scanning the build and test logs…
Worked 38 s ›
Done. Both fixed in code:
- Signing key now stays on the server only
- Sync errors mask the partner key
Build is clean. Rotate the key, then review.
What the audit checks
Six areas, from Git history to logs and leftover copies.
Accessible Git history
Secrets in commits and deleted files, with accepted exceptions applied.
Current code and builds
Whether code, examples and shipped builds contain secrets.
Acquisition, storage and access
How secrets are obtained and stored, and who can read them.
Delivery, use and isolation
Who gets secrets and whether user, project and job boundaries hold.
Logs, errors and responses
Whether final log, error and API outputs actually mask secrets.
Replacement and removal
What is left of a secret after a key change or a service is disconnected.
The audit follows the secret
What a report can find at each step
Git history
Secrets in accessible commits and deleted files, with exceptions.
Code and builds
Secrets in current code, build archives and shipped builds.
Storage and access
How secrets are obtained and stored, and who can read them.
Delivery and logs
Who gets secrets at runtime and whether logs and errors mask them.
Replacement and removal
What remains after a key change or a disconnected service.
What's in the report
- A 0–100 score
- Findings with severity, confidence and location in the code
- Scope — what was checked and what wasn't
What the audit is not
- Does not check whether a found secret still works
- Does not check sign-in, access rights or log quality
- Does not flag storage in environment variables by itself
Connect a repository
GitHub or GitLab. The audit doesn't change your code.
Enji Guard