DET-093 · human · confidence High

Packages Published Without Provenance

Catch package or image versions pushed outside CI, or tags overwritten in a registry.

Internal registries log publishes. AWS CodeArtifact records PublishPackageVersion in CloudTrail, container registries log pushes, and npm and PyPI show whether a version carries build provenance. A version published from a personal token or a laptop IP, or an existing tag that now points at a new digest, is the main sign of registry poisoning.

During an investigation, diff the suspicious version against the previous one and check who held the token used. Personal tokens with publish rights should be rare enough that every use can be reviewed.

Data sources
AWS CloudTrailContainer registry audit logsArtifactory or Nexus access logsnpm or PyPI provenance metadata
Platforms
AWSSaaSLinux

Logic

1. CloudTrail: eventName IN ("PublishPackageVersion", "PutImage") where userIdentity is not the CI role.
2. ECR: PutImage where requestParameters.imageTag already existed with a different digest.
3. npm: `npm view <pkg> --json` and alert on versions missing `dist.attestations`.
4. Alert on new `preinstall`, `install` or `postinstall` scripts in a version diff.

False positives

Emergency hotfixes published by maintainers, and legacy packages that predate provenance.

Catches 2 techniques