# ArtiPACKED artifact token leakage

incident, `incident:artipacked`. Page: https://ghtier.com/incidents/artipacked

Public workflow artifacts in projects of Red Hat, Google, AWS, Microsoft, OWASP and others contained the job's own GitHub token, and Unit 42 showed it could download one and push with it before the job ended, or use a six-hour runtime token to swap an artifact.

**Abused:** [Contents: Write (repository)](https://ghtier.com/tier/permissions/contents-write.md) (Tier 2)

**Used:** [Push directly, without review](https://ghtier.com/attack-paths/technique-no-review.md) (Tier 2), [Read secrets from the runner](https://ghtier.com/attack-paths/technique-runner-memory.md) (Tier 2), [Take the workflow token from a runner](https://ghtier.com/attack-paths/escalation-runner-code-to-token.md) (Tier 2)

**Sources:**
- [ArtiPACKED: hacking giants through a race condition in Actions artifacts](https://unit42.paloaltonetworks.com/github-repo-artifacts-leak-tokens/)
- [GitHub Actions artifacts found leaking auth tokens in popular projects](https://www.bleepingcomputer.com/news/security/github-actions-artifacts-found-leaking-auth-tokens-in-popular-projects/)
- [GitHub Actions security: a guide to common risks](https://orca.security/resources/blog/github-actions-security-risks/)
- [GitHub Actions hardening](https://orca.security/resources/blog/github-actions-hardening/)

From ghtier (https://ghtier.com). Every entry and link: https://ghtier.com/data/graph.json. Tiers: https://ghtier.com/tier.
