Zero-config install-time supply-chain hardening 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pmsec-0.4.1.tar.gz.
File metadata
- Download URL: pmsec-0.4.1.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f47713922a44db5f50ad10d064f226923b11c1623fcb5173132a520f68207a33
|
|
| MD5 |
6bc2f265ca43931587b21eaeb603ee6d
|
|
| BLAKE2b-256 |
40d3fd0a77f0c525c6ab305bdae8280fb71e5de3de3fdaaa17ed66a970150f18
|
Provenance
The following attestation bundles were made for pmsec-0.4.1.tar.gz:
Publisher:
pmsec-release-pypi.yml on HikaruEgashira/pmsec
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pmsec-0.4.1.tar.gz -
Subject digest:
f47713922a44db5f50ad10d064f226923b11c1623fcb5173132a520f68207a33 - Sigstore transparency entry: 1436905992
- Sigstore integration time:
-
Permalink:
HikaruEgashira/pmsec@75aed0a50976cdf85625bc9d73fccf6cef97a707 -
Branch / Tag:
refs/tags/pmsec-py-v0.4.1 - Owner: https://github.com/HikaruEgashira
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pmsec-release-pypi.yml@75aed0a50976cdf85625bc9d73fccf6cef97a707 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pmsec-0.4.1-py3-none-any.whl.
File metadata
- Download URL: pmsec-0.4.1-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d459688fe9f5cc84d40e0b243a95cb5a442ba06a083667732f6300e458063c5
|
|
| MD5 |
371a7cfdd18b88bea52457e91b89a17a
|
|
| BLAKE2b-256 |
0da568a61caaa918cc982d064420882f158fa632c63c2a73125c04d6111b1e05
|
Provenance
The following attestation bundles were made for pmsec-0.4.1-py3-none-any.whl:
Publisher:
pmsec-release-pypi.yml on HikaruEgashira/pmsec
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pmsec-0.4.1-py3-none-any.whl -
Subject digest:
7d459688fe9f5cc84d40e0b243a95cb5a442ba06a083667732f6300e458063c5 - Sigstore transparency entry: 1436905996
- Sigstore integration time:
-
Permalink:
HikaruEgashira/pmsec@75aed0a50976cdf85625bc9d73fccf6cef97a707 -
Branch / Tag:
refs/tags/pmsec-py-v0.4.1 - Owner: https://github.com/HikaruEgashira
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pmsec-release-pypi.yml@75aed0a50976cdf85625bc9d73fccf6cef97a707 -
Trigger Event:
push
-
Statement type: