Skip to main content

Malicious code in ghazaly (npm)

0
Critical
Published: 08/11/2026 (08/11/2026, 11:29:37 UTC)
Source: GCVE Database
Product: ghazaly

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (d2054792481618ddf941c251fc0793ec8c1b85fe14107567b5c29cac9330d5be) package.json declares a postinstall hook that executes index.js on npm install. index.js requires os, https, and child_process, runs `whoami` via execSync, and reads os.hostname(), process.cwd(), and non-internal IPv4 addresses from os.networkInterfaces(). The collected host and identity data is sent as query-string parameters via https.get to a hardcoded Burp Collaborator subdomain (xghhv5sajm33m7krgi4n8my0mrsig84x.oastify.com). Package metadata is consistent with a dependency-confusion lure: version 99.9.0, empty author/description/keywords, and a nonsense dependency name `dependencyfsdsfdsfg` pinned to ^99.9.0. ## Source: ghsa-malware (30b6f1747cf452fcc6c383a05d4c901dd7da71fcae0757210cb361e408a73d6a) 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
ghazaly
Affected versions
=99.9.0

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/12/2026, 01:00:11 UTC

Technical Analysis

The 'ghazaly' npm package version 99.9.0 includes a postinstall script that runs index.js, which executes system commands and gathers host information such as the current user, hostname, working directory, and network interfaces. This data is exfiltrated via HTTPS GET requests to a hardcoded Burp Collaborator subdomain, indicating malicious intent. The package metadata suggests it is a dependency confusion lure with suspicious versioning and dependency naming. The presence of this package on a system implies a full compromise, with potential persistent malicious control beyond just the package itself.

Potential Impact

Any system with 'ghazaly' version 99.9.0 installed is considered fully compromised. The attacker gains access to sensitive host information and potentially full control over the system. All secrets and keys stored on the compromised system should be considered exposed and must be rotated immediately from a secure environment. Simply removing the package does not guarantee removal of all malicious components or backdoors.

Mitigation Recommendations

Remove the 'ghazaly' package version 99.9.0 immediately from affected systems. Rotate all secrets, keys, and credentials that were stored or used on the compromised system from a different, secure computer. Conduct a thorough investigation for any persistent malicious activity or backdoors, as removal of the package alone may not fully remediate the compromise. Monitor for any unusual activity and consider rebuilding the system if full trust cannot be restored.

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-13755
Osv Schema Version
1.7.4
Aliases
["GHSA-g62q-mq3x-765x"]
Ecosystems
["npm"]

Threat ID: 6a7bc14ebf8831d539b1562d

Added to database: 08/12/2026, 00:41:50 UTC

Last enriched: 08/12/2026, 01:00:11 UTC

Last updated: 09/26/2026, 00:35:11 UTC

Views: 57

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