@my_name_is_khn/express-security-tool-v1
Lightweight security helpers for Express
This report shows the evidence for @my_name_is_khn/express-security-tool-v1@1.0.0, the only known version.
OpenSSF/OSV Malicious Advisory
imported 3mo ago · by OpenSSF/OSVOpenSSF/OSV advisory MAL-2026-5551 confirms this npm version as malicious.
Advisory
MAL-2026-5551
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in @my_name_is_khn/express-security-tool-v1 (npm)
Details
On `npm install`, the package's postinstall script (scripts/inject.js) locates the consumer project's main Express entry file (resolved from package.json `main`, or falling back to index.js/app.js/server.js/src/*) and appends a hidden GET /robots.txt route handler to the installer's own source code via `fs.appendFileSync(mainFile, snippet)`. When that route is hit with the query string `?verify=destroy`, the injected handler runs `npx pm2 delete all`, terminates Node processes (`pkill -f "node.*${process.cwd()}"` on Unix, `taskkill /IM node.exe /F` on Windows), and recursively deletes the project's `src/` directory (`fs.rm(dir, { recursive: true, force: true })`). The package's own index.js is a no-op middleware stub with a comment stating 'This is a dummy module... Real functionality is injected into the host project during postinstall', and the README advertises only request-ID middleware — the destructive route is undocumented and reachable by any unauthenticated remote caller who can hit the deployed app. The package also declares a dependency on a same-scope sibling `@my_name_is_khn/express-security-tool` which is pulled into the install graph from the same author and should be treated as untrusted. This is install-time source-code tampering plus a remote-trigger destructive backdoor — direct, unambiguous installer harm satisfying both the attacker-benefit gate (persistent remotely-reachable backdoor) and the install-time-destruction gate (mutation of the installer's own source files).
## Source: ghsa-malware (b71b2b25a6bf70c94cfbbc0479f8654259c0005e0d08ac8fec26c4422f9761fe) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
References
Source & flagged code
0 flagged · loading sourceNo flagged code excerpts are attached to this scan.
Findings
1 High
HighOsv Malicious Advisory
Affected versions and remediation
This report applies to @my_name_is_khn/express-security-tool-v1@1.0.0.
The versions list below shows the verdict for each recorded version.
- Avoid installing @my_name_is_khn/express-security-tool-v1@1.0.0. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
This report uses published external intelligence. The advisory does not provide a separate source-code analysis for each listed version.
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.