Skip to main content

Inspect and apply install-time cooldown for npm, pnpm, yarn, bun, cargo, mise, and uv.

Project description

pmsec (Python)

pmsec is a cross-platform CLI that inspects and applies install-time cooldown settings (e.g. npm min-release-age, uv exclude-newer) to mitigate supply-chain attacks where malicious packages are typically detected and removed within hours to days of publication.

Install

uvx pmsec check --min 7
uvx pmsec set 7
uvx pmsec unset
npx pmsec check --min 7
npx pmsec set 7
npx pmsec unset

If your environment already enforces cooldown (or routes through a proxy index), bootstrap pmsec by overriding just for that call:

uvx --index https://pypi.org/simple --exclude-newer-package pmsec=2099-01-01 pmsec check
npx --registry=https://registry.npmjs.org/ --min-release-age=0 pmsec check

Supported tools

npm, pnpm, yarn 4+, bun, cargo (RFC #3801), mise, uv

Commands

Command Description
pmsec check [--min N] Read each tool's config; exit 1 if any tool is below N days or unset
pmsec set <DAYS> Write DAYS-day cooldown to every selected tool
pmsec unset Remove only the cooldown key from each config (other keys preserved)
pmsec --version Print the installed pmsec version

Options: --tool npm,pnpm,yarn,bun,cargo,mise,uv, --json.

See the project README for the full table of keys, units, paths, and overrides.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pmsec-0.4.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pmsec-0.4.0-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file pmsec-0.4.0.tar.gz.

File metadata

  • Download URL: pmsec-0.4.0.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for pmsec-0.4.0.tar.gz
Algorithm Hash digest
SHA256 4089073a4c280182539752753e653021e8860857233722fbff49ee6909f4df0c
MD5 a089e19ac1bfefe366ea2089a4d1ff4c
BLAKE2b-256 58100a0d57a305192c3657d35bcd49fdd1964b96a45a02aec9e7a2fecf77413d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pmsec-0.4.0.tar.gz:

Publisher: pmsec-release-pypi.yml on HikaruEgashira/pmsec

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pmsec-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: pmsec-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for pmsec-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b8ab9b120c026a308501375d0f06933f7209cb72c1a1764f6d01e9d3632617d2
MD5 d68e6e6b6157efbb1ca9825bb4420de4
BLAKE2b-256 b2a1c5e4a93f91466b9eb03f4e01925c64b9b10c76e8e135408acda4bf749808

See more details on using hashes here.

Provenance

The following attestation bundles were made for pmsec-0.4.0-py3-none-any.whl:

Publisher: pmsec-release-pypi.yml on HikaruEgashira/pmsec

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page