Malicious code in no-for-of-loops (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (08feaf6617a902e503390720b41d226364ba3bc125d298eb296a2d3e30d5b6d5) package.json declares no-for-of-loops as its own dependency and devDependency, with the source pointed at http://pack.nppacks.com/npm/no-for-of-loops instead of the npm registry. On `npm install`, npm fetches a tarball from this host over unauthenticated plain HTTP with no integrity hash, and installs its contents into the consumer's node_modules. The domain operator can serve arbitrary, mutable bytes on each fetch, meaning any code shipped from that host runs inside the installer's dependency tree. The main module's header additionally self-identifies the package as a 'Security Research Testing Purpose' artifact, and the package description is a bare 'NPM', consistent with a hijack-vector proof-of-concept rather than a functional utility. The auto-execute condition is satisfied: any default `npm install` of this package resolves and installs the attacker-controlled tarball without user opt-in. ## Source: ghsa-malware (5b1bef8caf5ddc16dd3678dd285bba97e31d6b6ec8844b04c441a430c163f621) 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
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 'no-for-of-loops' npm package version 1.0.1 declares itself as a dependency and devDependency but points its source to an unauthenticated HTTP URL (http://pack.nppacks.com/npm/no-for-of-loops) instead of the official npm registry. During 'npm install', the package manager fetches a tarball from this insecure host without integrity verification, allowing the domain operator to serve arbitrary, mutable code. This code is installed into the consumer's node_modules directory and runs automatically. The package header identifies it as a 'Security Research Testing Purpose' artifact, consistent with a hijack vector proof-of-concept rather than a legitimate utility. This behavior enables arbitrary code execution during installation without user opt-in.
Potential Impact
Consumers installing version 1.0.1 of the 'no-for-of-loops' package risk executing arbitrary, attacker-controlled code during npm install. This can lead to compromise of the development environment, potential supply chain attacks, and unauthorized actions performed with the installer's privileges. There are no known exploits in the wild at this time.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing version 1.0.1 of the 'no-for-of-loops' package, especially from untrusted or non-standard sources. Verify package sources and prefer packages hosted on the official npm registry with integrity checks. Monitor vendor advisories for updates or official fixes.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14268
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a85b4bfacd9273b49252357
Added to database: 08/19/2026, 13:50:55 UTC
Last enriched: 08/19/2026, 14:23:34 UTC
Last updated: 10/02/2026, 13:52:00 UTC
Views: 26
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.
External Links
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.