Malicious code in knowledge-grader (npm)
The knowledge-grader npm package version 1.0.1 contains malicious code that executes during the preinstall phase. This code collects sensitive system information including hostname, username, home directory, DNS servers, package path, and contents of /etc/passwd and /etc/hosts. It then sends this data via HTTPS POST to a hardcoded external server. This occurs automatically upon npm install without user interaction.
AI Analysis
Technical Summary
The knowledge-grader package (npm ecosystem) version 1.0.1 has a malicious preinstall hook that runs index.js. This script harvests sensitive environment and system information such as hostname, username, home directory, DNS configuration, package path, and critical system files (/etc/passwd and /etc/hosts). The collected data is exfiltrated via HTTPS POST to a Burp Collaborator subdomain controlled by the attacker. This behavior triggers automatically during the npm install process without requiring any user action.
Potential Impact
Sensitive system and environment information is collected and exfiltrated to an attacker-controlled server. This can lead to privacy violations and potentially facilitate further attacks based on the harvested data. The compromise occurs silently during package installation, increasing the risk of unnoticed data leakage.
Mitigation Recommendations
No official patch or remediation is indicated in the provided data. Users should avoid installing knowledge-grader version 1.0.1. Verify package integrity and source before installation. Monitor for updates or advisories from the package maintainers or npm registry for remediation. Consider using package auditing tools to detect malicious code in dependencies.
Malicious code in knowledge-grader (npm)
Description
The knowledge-grader npm package version 1.0.1 contains malicious code that executes during the preinstall phase. This code collects sensitive system information including hostname, username, home directory, DNS servers, package path, and contents of /etc/passwd and /etc/hosts. It then sends this data via HTTPS POST to a hardcoded external server. This occurs automatically upon npm install without user interaction.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The knowledge-grader package (npm ecosystem) version 1.0.1 has a malicious preinstall hook that runs index.js. This script harvests sensitive environment and system information such as hostname, username, home directory, DNS configuration, package path, and critical system files (/etc/passwd and /etc/hosts). The collected data is exfiltrated via HTTPS POST to a Burp Collaborator subdomain controlled by the attacker. This behavior triggers automatically during the npm install process without requiring any user action.
Potential Impact
Sensitive system and environment information is collected and exfiltrated to an attacker-controlled server. This can lead to privacy violations and potentially facilitate further attacks based on the harvested data. The compromise occurs silently during package installation, increasing the risk of unnoticed data leakage.
Mitigation Recommendations
No official patch or remediation is indicated in the provided data. Users should avoid installing knowledge-grader version 1.0.1. Verify package integrity and source before installation. Monitor for updates or advisories from the package maintainers or npm registry for remediation. Consider using package auditing tools to detect malicious code in dependencies.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12795
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a735740bf8831d53915373b
Added to database: 08/05/2026, 15:31:12 UTC
Last enriched: 08/05/2026, 16:55:52 UTC
Last updated: 08/05/2026, 16:55:52 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.