Audits
How the secret handling audit works
Understand where credentials could be exposed and what the audit can establish about their handling.
Audit page Secret handling auditWhat this audit answers
Secret Handling asks where sensitive values were exposed in Git, shipped artifacts or other outputs, and which product paths could disclose them. It follows the handling of credentials from acquisition to use and cleanup, even when a scan of the current tree finds no exposed values.
What Enji Guard inspects
Enji Guard checks six diagnostic areas.
- Git history and containment covers the scanned history, affected refs and any recorded disposition. When only a shallow checkout is available, Enji Guard skips the history scan and still inspects current files.
- Current source and delivered artifacts covers tracked files and available build or delivery artifacts.
- Acquisition, storage and access traces where credentials come from, where they are kept and who can read them.
- Delivery, use and isolation traces how intended consumers receive credentials and how access stays scoped.
- Logs, errors and other outputs follows values through redaction and serialization to their actual destination.
- Residual copies and lifecycle code covers copies left in files, caches or other stores and the cleanup behavior implemented in code.
How evidence becomes findings
A finding needs an observed occurrence or supported disclosure path, the recipient or destination, the effective safeguards and the practical consequence. Severity follows the scope and authority of the credential and the supported effect. Critical is reserved for exceptionally broad, severe compromise. High covers material disclosure of or access to sensitive or high-authority secrets. Medium covers bounded exposure or a meaningful handling defect. Low covers a small, concrete gap.
A historical occurrence establishes exposure at that point in history. Current validity may be unknown. A matching suppression or accepted explanation carries no deduction.
What the report includes
The report identifies the revision, history ranges and current-tree scope checked, methods used, and paths or artifacts that could not be inspected. When counts are available, it distinguishes available history from the history actually processed. Findings cite redacted evidence and describe their effect and recommended next step. Reports omit credential values.
How the score works
Enji Guard calculates scores the same way across audits. The score starts at 100. Each distinct, evidence-supported finding deducts 25 points for Critical, 14 for High, 7 for Medium, or 3 for Low. Info deducts zero. The result stays within 0–100 and cannot exceed 69 when there is at least one Critical or at least two High findings. Diagnostic criteria do not contribute points to this calculation.
Limitations and boundaries
The audit is read-only. It can use isolated checks with synthetic values to examine handling behavior. Production logs, external stores and provider-side credential validity can remain unverified. Missing access limits coverage. Absence of a rotation record carries no deduction. A synthetic check describes the tested path and cannot establish that production leakage occurred.
Review and rerun
Use the redacted evidence to locate the exposure and fix the handling path. Where the value may still be in use, review replacement or revocation with its owner. After the change, rerun on the updated revision and check both the original path and any history or artifact coverage limits.
Enji Guard