Skip to content

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

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

Add .npmrc ignore-scripts=true (Miasma install-hook mitigation)#134
dbutts29 merged 1 commit into
mainfrom
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

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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a repository-local npm configuration to disable automatic execution of dependency lifecycle scripts during installs, mitigating the install-hook mechanism used by the Miasma / Shai-Hulud npm supply-chain worm (PLA-1580 fleet rollout).

Changes:

  • Add .npmrc with ignore-scripts=true to suppress preinstall/install/postinstall lifecycle scripts during npm install/npm ci.
  • Preserve the ability to run explicit scripts via npm run <script> (no change to package scripts).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dbutts29 dbutts29 merged commit ad60d11 into main 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.

3 participants