Skip to content

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

Merged
dbutts29 merged 1 commit into
masterfrom
darrenbutts/PLA-1580/ignore-scripts-npmrc
Jun 11, 2026
Merged

Add .npmrc ignore-scripts=true (Miasma install-hook mitigation)#29
dbutts29 merged 1 commit into
masterfrom
darrenbutts/PLA-1580/ignore-scripts-npmrc

Conversation

@dbutts29

@dbutts29 dbutts29 commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Description of the change

Adds a repo-local .npmrc containing ignore-scripts=true so npm does not auto-execute dependency lifecycle scripts (preinstall/install/postinstall) on npm install. This blocks the execution mechanism used by the Miasma / Shai-Hulud npm supply-chain worm.

Config-only change. Explicit npm run <script> invocations are unaffected; only automatic install-time lifecycle scripts are suppressed.

Part of a fleet-wide rollout tracked in Linear PLA-1580 (one PR per repo).

Type of change

  • Maintenance

Related issues

Checklists

Development

  • N/A — configuration-only change, no code or tests affected
  • If CI install relies on a dependency's build/postinstall step, that surfaces here — triage by allow-listing the specific build

Code review

  • This pull request has a descriptive title and information useful to a reviewer
  • Issue from task tracker has a link to this pull request

Prevents npm from auto-running dependency lifecycle scripts
(preinstall/install/postinstall) on install, mitigating the
Miasma/Shai-Hulud npm supply-chain worm class.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dbutts29 dbutts29 self-assigned this Jun 9, 2026
@linear-code

linear-code Bot commented Jun 9, 2026

Copy link
Copy Markdown

PLA-1580

@dbutts29 dbutts29 merged commit b28b7fe into master Jun 11, 2026
5 checks passed
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.

2 participants