Inspect artifacts and attachments for secret inclusion

SEC-004 / v1.1.0 / 2026-10-09

Editorial inspection guidance. Start with read-only permissions; fixes, credential revocation, and production changes follow the owner’s authorization.

Read-only review example

For this kind of environment

A team publishes build artifacts and sends diagnostic attachments to support.

First read
Review the file inventory and generation paths without opening secret values.
Where to look
  • The inventory of public artifacts, containers, and source maps.
  • Configuration embedding steps and exclusion rules.
  • Pre-attachment checks and redaction results.
Evidence to retain
Record artifact identities, exclusion coverage, and files not examined.
What this does not establish
Absence in the repository does not establish absence from built or attached material.

Applicability

Environments storing or distributing code, artifacts, containers, or support material.

Read the incidents behind this rule (16)
Rule on GitHub ↗

Where to look first

  • Visibility settings, Git history, distribution artifacts
  • Dockerfiles, image layers, CI logs, attachment procedures

Inspection steps

  1. Use authorized scanners; record only location and type, never secret values or whole environments.
  2. Check Git history and image layers as well as the final filesystem.

Remediation direction

  • Use build-time secret mechanisms and sanitization. Verify revocation of leaked keys with SEC-005.

Evidence required for completion

  • Record synthetic-secret test results and the coverage of artifact inspection.

Limits and unverified scope

  • Secret-file access follows owner permissions. Deletion of all external copies cannot be established.

Read this in context