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)
- Anthropic: evaluation connectivity limits failed
- Axios: malicious releases through publisher compromise
- CAMPFIRE: leaked GitHub credentials and cloud access
- Codecov: leaked image credential and CI script tampering
- イノベーション: unauthorized access and impact
- 杏林学園: unauthorized access and impact
- Okta: support attachments enabled session hijacking
- OpenAI / Hugging Face: evaluation agent reached external systems
- 大田区文化振興協会: unauthorized access and impact
- Postman: poisoned dependencies exposed CI publishing authority
- Rust: malicious build code in legitimate crate updates
- Sakura Internet: separate billing-database intrusion
- Toyota: access key in a public repository
- Trivy: residual credentials used to tamper with releases and actions
- Unit 42: AI-assisted intrusion abusing repository secrets
- ビジュアルアーツ: unauthorized access and impact
Where to look first
- Visibility settings, Git history, distribution artifacts
- Dockerfiles, image layers, CI logs, attachment procedures
Inspection steps
- Use authorized scanners; record only location and type, never secret values or whole environments.
- 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
Review secret handling without opening values
Map exposure paths and the process for invalidating old credentials after replacement.