Skip to content

feat: add post - PHP supply chain attack hiding postinstall in package.json (May 22 2026)#1296

Merged
bobbyonmagic merged 1 commit into
mainfrom
post/packagist-postinstall-hidden-in-package-json-may-2026
May 23, 2026
Merged

feat: add post - PHP supply chain attack hiding postinstall in package.json (May 22 2026)#1296
bobbyonmagic merged 1 commit into
mainfrom
post/packagist-postinstall-hidden-in-package-json-may-2026

Conversation

@bobbyonmagic
Copy link
Copy Markdown
Collaborator

Post on the Socket disclosure from yesterday: 700+ GitHub repos and 8 Packagist packages compromised by hiding an npm postinstall hook in package.json on PHP/Composer projects. The PHP review never saw it because the team only audits composer.json.

Angle: ecosystem-boundary blindness as the recurring pattern across the last six weeks of supply chain campaigns. Concrete defenses: cross-manifest scanning in CI, CODEOWNERS on install-script changes, pinning Composer deps to tags rather than dev-branches. Also covers the "Dependency Cache Sync" GitHub Actions step that survives the package cleanup as a re-infection vector.

OG image generated.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 23, 2026

Deploying devops-daily with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5d7d3ad
Status: ✅  Deploy successful!
Preview URL: https://49e0c76c.devops-daily.pages.dev
Branch Preview URL: https://post-packagist-postinstall-h.devops-daily.pages.dev

View logs

@bobbyonmagic bobbyonmagic merged commit b737a31 into main May 23, 2026
4 checks passed
@bobbyonmagic bobbyonmagic deleted the post/packagist-postinstall-hidden-in-package-json-may-2026 branch May 23, 2026 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant