Skip to main content

Inspect and apply install-time cooldown (min-release-age / exclude-newer) for npm 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

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> [--force] Write DAYS-day cooldown to every selected tool
pmsec unset Remove only the cooldown key from each config (other keys preserved)

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.1.0.tar.gz (7.8 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.1.0-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pmsec-0.1.0.tar.gz
Algorithm Hash digest
SHA256 00ce76ff0dbd4c07a52fc489149d1c014e4f032c489b47e5541063cc93909453
MD5 229f9b54d482a8a84b466c5701ff67b6
BLAKE2b-256 5cc407f1f7e1be84abb87ccb25910550f351a00025597ce23b75e6006bc49ba8

See more details on using hashes here.

Provenance

The following attestation bundles were made for pmsec-0.1.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.1.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for pmsec-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 66886b72cb6095ea06544d10774e96e669e1550f430e831bca3853ade726673e
MD5 2c35be5b62fd6afea2abc46149a9a3e4
BLAKE2b-256 6b1ea4b3ca46c313ea31acb96513c64d7ed5b99efd29a37d2cadf64e7cdb0829

See more details on using hashes here.

Provenance

The following attestation bundles were made for pmsec-0.1.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