Skip to content

Instantly share code, notes, and snippets.

@getmolty
getmolty / instructions.md
Created May 16, 2026 20:12 — forked from altryne/instructions.md
Setting minimum age on package manager configs to prevent supply chain attacks

Minimum-Age Gates for Package Managers

Use this as a baseline across all Macs to reduce exposure to fast-moving supply-chain attacks, where a malicious package version is published, installed by early updaters, then removed hours later.

The default policy I would use is:

  • Personal/dev machines: 3 days.
  • CI and production lock refresh jobs: 3 to 7 days.
  • Emergency security fixes: bypass deliberately, one package at a time, with a reviewed lockfile diff.