Malicious code in lines-columns (npm)
The 'lines-columns' npm package is a malicious package that closely mimics the legitimate 'lines-and-columns' package. It contains unused random-looking strings and no legitimate functionality beyond reimplementing the referenced library. Installing or running this package results in full compromise of the affected computer, requiring immediate secret and key rotation. Removal of the package does not guarantee elimination of all malicious software introduced.
AI Analysis
Technical Summary
The 'lines-columns' package on npm is a malicious package designed to impersonate the popular 'lines-and-columns' library. While it reimplements the legitimate functionality, it also contains suspicious unused exports with random strings. According to the GHSA malware advisory, any system with this package installed or running should be considered fully compromised. Attackers may have gained full control, and all secrets and keys stored on the system must be rotated from a different, clean machine. The package itself does not include install scripts, network I/O, or direct system access code, but the compromise risk is severe and complete.
Potential Impact
Systems with the 'lines-columns' package installed or running are considered fully compromised. Attackers may have gained full control over the affected computer, risking exposure of all stored secrets and keys. Immediate rotation of all credentials is required. Removing the package alone does not guarantee removal of all malicious artifacts or backdoors introduced by the attacker.
Mitigation Recommendations
Remove the 'lines-columns' package immediately. Rotate all secrets and keys stored on the affected computer from a separate, uncompromised machine. Because the system is considered fully compromised, further forensic analysis and remediation may be necessary. No official patch or fix is available; the package itself is malicious and should be avoided.
Malicious code in lines-columns (npm)
Description
The 'lines-columns' npm package is a malicious package that closely mimics the legitimate 'lines-and-columns' package. It contains unused random-looking strings and no legitimate functionality beyond reimplementing the referenced library. Installing or running this package results in full compromise of the affected computer, requiring immediate secret and key rotation. Removal of the package does not guarantee elimination of all malicious software introduced.
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 'lines-columns' package on npm is a malicious package designed to impersonate the popular 'lines-and-columns' library. While it reimplements the legitimate functionality, it also contains suspicious unused exports with random strings. According to the GHSA malware advisory, any system with this package installed or running should be considered fully compromised. Attackers may have gained full control, and all secrets and keys stored on the system must be rotated from a different, clean machine. The package itself does not include install scripts, network I/O, or direct system access code, but the compromise risk is severe and complete.
Potential Impact
Systems with the 'lines-columns' package installed or running are considered fully compromised. Attackers may have gained full control over the affected computer, risking exposure of all stored secrets and keys. Immediate rotation of all credentials is required. Removing the package alone does not guarantee removal of all malicious artifacts or backdoors introduced by the attacker.
Defensive Guidance
Remove the 'lines-columns' package immediately. Rotate all secrets and keys stored on the affected computer from a separate, uncompromised machine. Because the system is considered fully compromised, further forensic analysis and remediation may be necessary. No official patch or fix is available; the package itself is malicious and should be avoided.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-13765
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-572q-x4v9-m474"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a7c9b45bf8831d539cdd0d9
Added to database: 08/12/2026, 16:11:49 UTC
Last enriched: 08/12/2026, 16:44:23 UTC
Last updated: 08/12/2026, 16:44:23 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.
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.