Malicious Ruby Gem Steals 51 Types of Credentials and Plants Backdoors in AI Coding Tools
A fake Ruby package installed a credential-stealing worm and planted backdoors in AI coding tools when developers added it.
Overview
A fake Ruby package named strutil-core was uploaded to RubyGems and disguised itself as a harmless text helper. The package contained a credential-stealingStealing usernames, passwords, login tokens, or keys so an attacker can sign in as a real user worm that activated immediately when a developer installed it. The malwareSoftware built to steal data, spy on users, lock files, or take control of a computer targeted 51 types of credential stores, including AWS, npm, PyPI, Docker, Kubernetes, Claude and Codex files. It also planted backdoorsA hidden way into a computer or program that skips the normal login check in AI coding tools and could delete a victim's home folder if they tried to cancel a stolen GitHub tokenA short-lived digital pass that a server gives a logged-in user or app. The gem was live on RubyGems for only about five hours before researchers flagged it and the platform removed both versions. No public projects depended on the gem, and researchers have not confirmed any victims, though the incident highlights the risk to developer laptops and build serversA computer or program on a network that stores data and responds to requests from client devices.
Terms in this story
- credential-stealing
- Stealing usernames, passwords, login tokens, or keys so an attacker can sign in as a real user. Attackers use phishing pages, keyloggers, and memory dumps for credential theft because logging in with a real employee's password triggers fewer alarms than a noisy software exploit. Security+ objective 2.4 lists the term
- malware
- Software built to steal data, spy on users, lock files, or take control of a computer. News reports use malware as the umbrella term for viruses, ransomware, spyware, and trojans that criminals install on phones, laptops, or servers without permission. Security+ objective 2.4 lists the term
- Backdoors
- A hidden way into a computer or program that skips the normal login check. Attackers plant a backdoor on a compromised server so they can return later even if the administrator changes passwords or fixes the original flaw. Security+ objective 2.4 lists the term
- token
- A short-lived digital pass that a server gives a logged-in user or app. After you sign in once, your browser or app presents a token on each request, and if malware steals that token the attacker can act as you without knowing your password. Security+ objective 4.6 lists the term
- servers
- A computer or program on a network that stores data and responds to requests from client devices. Online stores, email systems, and multiplayer games all run on servers in data centers or the cloud, making unpatched servers a primary target for intruders.
- Credentials
- The login details, such as a username and password or key, that prove who an account belongs to. Many breaches begin when attackers steal an employee's login credentials through a fake website and sign in to the company network as if they belonged there. Security+ objective 4.6 lists the term
- payload
- The part of an attack or malware file that carries out the harmful action on the target. A phishing email and an exploit are only the delivery steps, while the payload is the ransomware or spyware that actually runs once the computer is compromised.
- sandbox
- An isolated test environment where a program can run without touching the rest of the computer. Web browsers run each tab inside a sandbox so a malicious page cannot read your personal files, and analysts detonate suspicious attachments in a sandbox to watch what they do. Security+ objective 4.1 lists the term
- scanner
- Using automated tools to probe computers, networks, or code for known security flaws and missing patches. Both defenders and attackers run vulnerability scanning across internet-facing servers to find out which machines are still running outdated software versions. Security+ objective 4.3 lists the term
- extension
- A small add-on program installed inside a web browser to add features like ad blocking. Because a browser extension can often read and change every web page you visit, attackers buy or hijack legitimate extensions to steal session cookies and passwords.
- script
- A short program written in an interpreted language to automate tasks in a browser, shell, or application. System administrators write scripts to automate daily maintenance, while attackers often use a script to download malware and disable security settings without dropping a compiled file.
- JavaScript
- The programming language that web browsers run to make web pages interactive, and that also runs on servers. Because every browser runs JavaScript automatically when loading a page, attackers use malicious JavaScript in cross-site scripting, fake browser updates, and compromised software packages.
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the Cyber Security News website. Cite the article, not this page.
Read the full article on Cyber Security News (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Research and reports
"Researchers at Socket.dev noted that their AI scanner..." Found by reading the article; these exact words are in it - Who is affected: "...a developer..."
Copied word for word from the article - Security+ 2.4 Given a scenario, analyze indicators of malicious activity.
"......Steals 51 Types of Credentials and Plants Backdoors in AI Coding Tools..." Found in the headline - Security+ 4.6 Given a scenario, implement and maintain identity and access management.
"Malicious Ruby Gem Steals 51 Types of Credentials and Plants Backdoors in AI Coding Tools..." Found in the headline - CYBR 101 week 6: AI, how it is attacked, and what it does for attackers and defenders
"......Types of Credentials and Plants Backdoors in AI Coding Tools..." Found in the headline - CYBR 101 week 9: malware, indicators and how detection works
"......Steals 51 Types of Credentials and Plants Backdoors in AI Coding Tools..." Found in the headline
How a story is connected to the course, and every objective, week and job role