Cybersecurity news

Jessica Doner

Back to the list

Hackers Use AI-Generated Scripts to Hijack Linux Sudo Commands and Steal Passwords

Cyber Security News,

Hackers used AI-generated scripts to alter Linux shell files, stealing passwords when users ran the sudo command on government and state infrastructure.

AI and securityPasswords and sign-inVulnerabilities and patches

Overview

A group of attackers used AI-assisted scriptsA short program written in an interpreted language to automate tasks in a browser, shell, or application to steal credentialsThe login details, such as a username and password or key, that prove who an account belongs to from government organizations and state-linked infrastructure. The attackers modified a file called .bashrc to intercept the sudo command, which is used to run programs with elevated permissions. When a user typed their password, the malicious script copied it to a file and then passed it to the real command so the user would not notice the theft. This method is different from exploiting a software flaw because it relies on changing a user's configuration file rather than breaking the software itself. Unit 42 identified the activity and tracked the group of related operations as CL-UNK-1211. The operation targeted government entities and state-affiliated infrastructure from October 2025 to April 2026.

Terms in this story

Scripts
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.
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
Hackers
A person who explores and manipulates computer systems, either as a criminal intruder or a security researcher. In news headlines, the word hacker usually means an unauthorized intruder, though the security community also uses it for researchers who find and fix flaws.
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.
shell
The command-line interpreter program that accepts text commands and runs them on an operating system. When an attacker exploits a web server and pops a shell, they can type operating system commands directly as if they were sitting at the server's keyboard.
web shells
A small malicious script uploaded to a web server that lets an attacker run commands through a browser. After exploiting a flaw in a website, attackers often drop a hidden web shell in a public folder so they can upload tools and browse the server's files at will. 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
patch
A software update released by a developer to fix a bug or close a security flaw. When a software flaw is discovered, the vendor ships a patch so administrators and ordinary users can update their systems before attackers exploit the bug. Security+ objective 4.3 lists the term
vulnerability
A flaw in software or hardware that lets an attacker do something the maker did not intend. Security advisories report a vulnerability when researchers or attackers find a coding mistake in an app or server that allows someone to break in or crash it. Security+ objective 2.3 lists the term
Base64-encoded
An encoding over A to Z, a to z, 0 to 9, + and /, padded with =. Because this text encoding is easy to reverse without a key, malware authors often use it to disguise command strings inside scripts so casual readers do not spot them. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
PHP
A widely used server-side scripting language that builds dynamic web pages before sending them to browsers. Because millions of websites and content management systems run on PHP, a newly discovered vulnerability in the PHP engine can put a huge portion of the web at risk.
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.

How a story is connected to the course, and every objective, week and job role

Related