Malicious code in json-validator-utils (npm)
The json-validator-utils npm package contains malicious code that acts as a multi-stage dropper. When its public API (validateJson/validateXml) is called, it decodes a hardcoded command-and-control URL and downloads a platform-specific payload. This payload is executed on the host system and establishes persistence by creating and enabling systemd units on Linux or LaunchAgents plists on macOS. The execution is delayed by checking the system uptime to evade short-lived sandbox analysis.
AI Analysis
Technical Summary
The json-validator-utils package versions 1.0.0, 1.0.1, 1.1.0, and 1.1.2 include a malicious multi-stage dropper embedded in lib/core.js. The dropper triggers on calls to validateJson or validateXml functions, decoding an XOR-encrypted C2 URL that points to a GitHub-hosted manifest. This manifest provides platform- and architecture-specific payload URLs, which are downloaded to temporary directories and executed (using cscript on Windows, shell scripts on Linux/macOS). The malware delays execution until the system uptime exceeds 300 seconds to avoid detection in ephemeral environments. On Linux, it achieves persistence by writing a randomly named systemd user unit and enabling it; on macOS, it writes a LaunchAgents plist and loads it, ensuring the attacker-controlled code runs on startup.
Potential Impact
This malicious package can execute arbitrary attacker-controlled code on the host system with persistence mechanisms, potentially leading to full system compromise. The delayed execution evades sandbox detection, increasing the risk of undetected infection. The persistence methods allow the malware to survive reboots on Linux and macOS systems. There is no indication of known exploits in the wild at this time.
Mitigation Recommendations
No official patch or remediation is currently documented for this malicious package. Users should immediately remove json-validator-utils versions 1.0.0, 1.0.1, 1.1.0, and 1.1.2 from their environments. Avoid using this package and audit systems for any signs of the described persistence mechanisms (random systemd user units or LaunchAgents plists). Monitor for unexpected network connections to the indicated C2 domains. Consider using trusted package sources and verifying package integrity before installation.
Malicious code in json-validator-utils (npm)
Description
The json-validator-utils npm package contains malicious code that acts as a multi-stage dropper. When its public API (validateJson/validateXml) is called, it decodes a hardcoded command-and-control URL and downloads a platform-specific payload. This payload is executed on the host system and establishes persistence by creating and enabling systemd units on Linux or LaunchAgents plists on macOS. The execution is delayed by checking the system uptime to evade short-lived sandbox analysis.
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 json-validator-utils package versions 1.0.0, 1.0.1, 1.1.0, and 1.1.2 include a malicious multi-stage dropper embedded in lib/core.js. The dropper triggers on calls to validateJson or validateXml functions, decoding an XOR-encrypted C2 URL that points to a GitHub-hosted manifest. This manifest provides platform- and architecture-specific payload URLs, which are downloaded to temporary directories and executed (using cscript on Windows, shell scripts on Linux/macOS). The malware delays execution until the system uptime exceeds 300 seconds to avoid detection in ephemeral environments. On Linux, it achieves persistence by writing a randomly named systemd user unit and enabling it; on macOS, it writes a LaunchAgents plist and loads it, ensuring the attacker-controlled code runs on startup.
Potential Impact
This malicious package can execute arbitrary attacker-controlled code on the host system with persistence mechanisms, potentially leading to full system compromise. The delayed execution evades sandbox detection, increasing the risk of undetected infection. The persistence methods allow the malware to survive reboots on Linux and macOS systems. There is no indication of known exploits in the wild at this time.
Mitigation Recommendations
No official patch or remediation is currently documented for this malicious package. Users should immediately remove json-validator-utils versions 1.0.0, 1.0.1, 1.1.0, and 1.1.2 from their environments. Avoid using this package and audit systems for any signs of the described persistence mechanisms (random systemd user units or LaunchAgents plists). Monitor for unexpected network connections to the indicated C2 domains. Consider using trusted package sources and verifying package integrity before installation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12182
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a735741bf8831d539157606
Added to database: 08/05/2026, 15:31:13 UTC
Last enriched: 08/05/2026, 17:04:58 UTC
Last updated: 08/05/2026, 17:04:58 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.
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.