Skip to main content

Malicious code in log-res (npm)

0
Critical
Published: 08/19/2026 (08/19/2026, 08:23:09 UTC)
Source: GCVE Database
Product: log-res

Description

The log-res npm package version 1.0.3 contains malicious code embedded in an obfuscated JavaScript blob disguised as a database file (des.db). This code creates a temporary directory, installs additional dependencies, and runs a staged payload that connects to an attacker-controlled remote agent via socket.io-client. The package's advertised functionality does not require this embedded executable, indicating intentional malicious behavior.

Affected software

npmghsa
log-res
Affected versions
=1.0.3

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/19/2026, 14:14:58 UTC

Technical Analysis

The log-res npm package version 1.0.3 includes a heavily obfuscated JavaScript payload embedded in a file named des.db, which is read and evaluated at runtime. This payload creates a directory under the OS temporary folder, writes a synthetic package.json declaring dependencies on axios, better-sqlite3, node-machine-id, and socket.io-client, then runs npm install and executes a staged index.js. The staged code establishes a socket.io-client connection to a remote attacker-controlled endpoint, allowing command execution. The malicious payload is disguised as a database file rather than shipped as source code, and the package's stated purpose does not justify this behavior.

Potential Impact

This malicious code enables remote command execution by connecting to an attacker-controlled server, potentially allowing full compromise of the host running the package. It installs additional dependencies and executes arbitrary code, which can lead to data theft, system manipulation, or further malware deployment. Since the payload is obfuscated and disguised, it may evade detection by standard code reviews or automated tools.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should avoid using log-res version 1.0.3 and remove it from their environments. Verify dependencies and source integrity before installation. Monitor for any suspicious network connections or unexpected npm install activity originating from this package. Check vendor or repository advisories for updates or official fixes.

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-14292
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a85b4b4acd9273b49251534

Added to database: 08/19/2026, 13:50:44 UTC

Last enriched: 08/19/2026, 14:14:58 UTC

Last updated: 10/02/2026, 13:51:42 UTC

Views: 26

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