Real-time supply-chain malware scanner and antivirus daemon for developers.
Monitors local projects (npm, pypi, lockfiles, node_modules, virtualenvs), cross-references dependencies against Google's OSV vulnerability database, runs static heuristic analysis for malicious install hooks (curl | sh, token stealers, obfuscated reverse shells), and automatically quarantines infected packages before they run.
- Dual-Layer Threat Detection:
- Google OSV Database: Real-time querying of known CVEs and malicious package registries (MAL-IDs).
- Heuristic Static Scanner: Catches zero-day stealers,
.env/SSH key exfiltration, Discord webhooks, and base64 eval payloads insidepostinstallhooks.
- Auto-Quarantine & Kill Switch: Automatically isolates infected package folders into
~/.deparmor/quarantine/and neutralizes executable scripts. - Background Watcher Daemon: Watches
node_modulesand virtualenvs in real-time, scanning automatically whennpm installorpip installexecutes. - Native Desktop Notifications: Alerts you via Windows desktop toast notifications whenever a malicious install is blocked.
npm install -g deparmorOr run without installing:
npx deparmor scanScan the current directory:
deparmor scanScan a specific project and automatically quarantine all critical malware:
deparmor scan ./my-project --quarantineKeep deparmor running in the background while you work. It will automatically intercept and scan whenever npm i or pip install is executed:
deparmor watch ./projectsList isolated malicious packages:
deparmor quarantine listPermanently purge all quarantined files from disk:
deparmor quarantine purge| Attack Pattern | Detected Vector | Action |
|---|---|---|
| Piped Shell Execution | curl ... | bash, wget ... | sh in postinstall |
Auto-Quarantine |
| Credential Stealers | Reading ~/.ssh/id_rsa, .env, .aws/credentials |
Auto-Quarantine |
| Exfiltration Beacons | Outbound calls to Discord Webhooks, Telegram bot API | Auto-Quarantine |
| Obfuscated Payloads | eval(Buffer.from(..., 'base64')), Python exec(b64decode(...)) |
Auto-Quarantine |
| Known CVEs / MAL-IDs | Batch lookup against Google OSV database | Alert & Log |
# Clone
git clone https://github.com/yanzyuyu/deparmor.git
cd deparmor
# Install dependencies
npm install
# Build
npm run build
# Run unit tests
npm testApache-2.0