Description
A package (not a version: the package name itself) that first appeared on its registry less than {{ min_package_age_days }} days ago cannot be added as a new dependency without explicit review.
Rationale
Typosquats and fake packages are, by nature, young. A package with no history has no reputation to evaluate. This rule catches what the release-age rule misses: a first release that is malicious from day one and is then left alone.
Impact
Brand-new legitimate packages need a review before use.
Parameters
| Parameter | Baseline | Hardened | Bounds | Description |
|---|---|---|---|---|
min_package_age_daysinteger | 30 days | 30 days | 7 to 365 | Minimum age of a package, counted from its first published version. |
The value used is your override, else the profile's, else the default. Bounds limit what an override may set.
Audit
- Check that new dependency review (CB-DEP-VET-001) or an automated rule flags packages younger than {{ min_package_age_days }} days.
- Review recent additions for packages that were young when added.
Automated: every check must pass. Scanners report each check by its id.
postmortem
first-publish date of every package
command: postmortem harden --json
control: CB-DEP-AGE-002
coverage: online
flags:
- --online
Remediation
- Add package age to the new dependency criteria and, where possible, to an automated check on manifest changes.
References
- Concise Guide for Evaluating Open Source Software OpenSSF, guide, accessed 2026-10-16
- Secure Supply Chain Consumption Framework (S2C2F) OpenSSF, guide, accessed 2026-10-16
Mappings
| Framework | ID | Relation | Note |
|---|---|---|---|
| NIST SP 800-53 Rev. 55.1.1 | SR-3 | related |
How this control relates to the other framework's: equivalent, stricter, looser, partial or related.
Threats mitigated
| Taxonomy | ID | Note |
|---|---|---|
| MITRE ATT&CK | T1195.001 | |
| Common Weakness Enumeration | CWE-1357 |
Related controls
- related
CB-DEP-AGE-001Wait a minimum age before installing a new package version - related
CB-DEP-VET-002Evaluate new dependencies against written criteria
People and lifecycle
| Authors | Alice |
| Introduced in | v1.0.0 |
| Created, updated | 2026-10-16, 2026-10-16 |