Skip to main content

Malicious code in dynstrg-howto (npm)

0
High
Published: 08/05/2026 (08/05/2026, 13:15:13 UTC)
Source: GCVE Database
Product: dynstrg-howto

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (800fab99d95f1a2cef6ebf269ca240bf60518735cfb58c7c24b6a8474c72ee77) package.json declares a preinstall hook that runs index.js on npm install. index.js collects the installer's hostname, username, home directory, DNS server list, and reads /etc/passwd and /etc/hosts, then HTTPS-POSTs the collected JSON to the hardcoded out-of-band endpoint idzskk7dl8mrfoqx6thyhegqbhha50tp.oastify.com (Burp Collaborator subdomain). Execution is automatic on default install; the destination is attacker-controlled and unrelated to any declared package purpose. ## Source: ghsa-malware (687ddbe581731d5da84cb2a0e04508c31995cbc7fdd378b53090ac8b9a51a0d2) 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.

Affected software

npmghsa
dynstrg-howto
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:56:02 UTC

Technical Analysis

The dynstrg-howto npm package version 1.0.1 includes a preinstall hook that executes index.js upon installation. This script harvests sensitive environment and system information such as the installer's hostname, username, home directory, DNS configuration, and reads critical system files (/etc/passwd and /etc/hosts). The collected data is exfiltrated to a hardcoded external domain controlled by an attacker. This behavior occurs automatically during a default npm install, representing a supply chain compromise through a malicious package.

Potential Impact

Sensitive system and user information is exposed to an attacker-controlled server during package installation, potentially leading to privacy breaches or further targeted attacks. The compromise occurs without user interaction beyond installing the package, increasing risk of unnoticed data exfiltration.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should avoid installing dynstrg-howto version 1.0.1. Verify package integrity and source before installation. Monitor for updates or advisories from the package maintainer or npm registry regarding remediation. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for current remediation guidance.

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

Threat ID: 6a735740bf8831d539153742

Added to database: 08/05/2026, 15:31:12 UTC

Last enriched: 08/05/2026, 16:56:02 UTC

Last updated: 09/08/2026, 04:37:17 UTC

Views: 18

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