Skip to content

Add .npmrc ignore-scripts=true (Miasma install-hook mitigation)#3

Open
dbutts29 wants to merge 1 commit into
masterfrom
darrenbutts/PLA-1595/ignore-scripts-npmrc
Open

Add .npmrc ignore-scripts=true (Miasma install-hook mitigation)#3
dbutts29 wants to merge 1 commit into
masterfrom
darrenbutts/PLA-1595/ignore-scripts-npmrc

Conversation

@dbutts29

Copy link
Copy Markdown

Part of PLA-1595 (phase 2 of PLA-1580 — Miasma install-hook mitigation).

Adds a repo-local .npmrc with ignore-scripts=true so dependency lifecycle scripts (preinstall/install/postinstall) do not auto-execute on npm install — the execution vector the Miasma / Shai-Hulud worm relies on.

This is the blunt, immediate mitigation applied across the repo fleet. It does not stop malware that runs at runtime via normal import/require. If this repo has a dependency that needs a real build step (native/node-gyp), install/CI may go red — that is expected; triage per repo (allow-list the build, or move to pnpm's default-deny + allow-list model).

PLA-1595

Blocks dependency lifecycle scripts (preinstall/install/postinstall) from
auto-executing on npm install — the Miasma / Shai-Hulud install-hook vector.
Blunt fleet-wide mitigation; does not stop runtime import/require malware.

PLA-1595

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@dbutts29 dbutts29 self-assigned this Jun 12, 2026
@linear-code

linear-code Bot commented Jun 12, 2026

Copy link
Copy Markdown

PLA-1595

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