Skip to main content

Malicious code in api-rs-tuils (npm)

0
Critical
Published: 08/19/2026 (08/19/2026, 05:02:58 UTC)
Source: GCVE Database
Product: api-rs-tuils

Description

The npm package api-rs-tuils version 2.1.6 contains malicious code executed via a postinstall hook. This code fetches an attacker SSH public key and appends it to the victim's authorized_keys file, enabling persistent remote SSH access by modifying firewall rules. It also exfiltrates sensitive configuration files and environment data from the victim's machine to attacker-controlled servers. The package uses obfuscation techniques to hide its malicious behavior and resembles a typosquat with no legitimate functionality.

Affected software

npmghsa
api-rs-tuils
Affected versions
=2.1.6

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:25:15 UTC

Technical Analysis

The [email protected] npm package executes a malicious postinstall hook running obfuscated code that performs multiple malicious actions: (1) retrieves an attacker SSH public key from a remote server and appends it to ~/.ssh/authorized_keys, then enables and configures the firewall to allow SSH access, establishing persistent remote access; (2) recursively searches the current working directory for files named id.json, config.toml, Config.toml, env, and .env, sending their contents along with the username to an attacker server; (3) downloads attacker-supplied scan patterns and crawls the user's home directory on Unix or all drives on Windows, uploading matching files with system metadata to attacker endpoints. The package metadata is empty or suspicious, and the code is heavily obfuscated with unicode escapes, reversed strings, and dead code. The package appears to be a malicious typosquat with no legitimate functionality.

Potential Impact

Successful installation of [email protected] results in unauthorized persistent remote SSH access to the victim machine, enabling attackers to maintain control. Sensitive configuration and environment files are exfiltrated to attacker-controlled servers, potentially exposing credentials, secrets, or other confidential data. The malicious modifications to firewall settings increase the attack surface by allowing inbound SSH connections. This compromises system confidentiality, integrity, and potentially availability.

Defensive Guidance

No official patch or remediation is currently documented for this malicious package. The best mitigation is to avoid installing [email protected] and remove it if already installed. Users should verify package authenticity before installation, prefer official and well-maintained packages, and monitor for suspicious postinstall scripts. Since this is a malicious package, removal and investigation of affected systems for unauthorized SSH keys and firewall changes are recommended.

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

Threat ID: 6a85b4c0acd9273b49252410

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

Last enriched: 08/19/2026, 14:25:15 UTC

Last updated: 10/03/2026, 16:45:36 UTC

Views: 28

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