mirror of
https://github.com/hanzoai/postcss.git
synced 2026-09-24 17:01:56 +00:00
1.2 KiB
1.2 KiB
Threat Model
What threats we think of when we design our tool and process.
Stealing maintainer credentials
Attacker put malware to PostCSS
devDependenciesso maintainer will be injected and their credentials will be stolen to put malware now in this package.
Solutions:
- We are working only in Dev Container. Attacker will have very limited access to host.
npm2FA is on hardware token, so even maintainer machine compromising will not lead to leaking full-time credentials.
Malware in nested dependencies
The tool’s dependencies will be hijacked and malware will be installed to all tool’s users.
Solutions:
- We use only dependencies without own dependencies.
- We try to reduce dependencies as much as possible.
Malware from development dependencies
Malware in tool’s dependencies can write some script into the tool’s source code. A maintainer releases it unnoticed.
Solutions:
- For development we use
pnpmwithout apostinstallscript. - We use
pnpmwithminimumReleaseAgewith 1 day cool down. - We are using lockfile for pnpm and also for GitHub Actions.