Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in knowledge-grader (npm)

0
High
Published: 08/05/2026 (08/05/2026, 13:15:58 UTC)
Source: GCVE Database
Product: knowledge-grader

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

npmghsa
knowledge-grader
Affected versions
=1.0.1

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

AILast updated: 08/05/2026, 16:55:52 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses