Attackers compromised 42 GitHub repositories by using files too large to be searched
Attackers compromised 42 GitHub repositories using oversized files that evaded search, deploying hidden payloads for AI coding assistants.
Overview
Attackers compromised 42 third-party GitHub repositoriesA central storage place where a software project's source code, change history, and configuration files are kept by deploying large files that evaded standard search and APIA structured interface that lets one software program request data or actions from another program detection methods. These repositories contained execution hooks for AI coding assistants and polymorphic wrappers up to 13.7MB that decoded into a hidden CI-publisher payloadThe part of an attack or malware file that carries out the harmful action on the target. The campaign also involved account hijacks, forged commit timelines, and exposed npm credentialsThe login details, such as a username and password or key, that prove who an account belongs to. A compiled native addon was used to decrypt a file named .napi_cache at runtimeThe environment in which a program executes, or the period of time while the program is actively running to reveal the real payload. The malicious npm packagesA reusable web code library published to the public npm registry for developers to install used a binding.gyp command expansion to execute code during installation without declaring a conventional install scriptA short program written in an interpreted language to automate tasks in a browser, shell, or application. The full npm payload collected credentials and linked to previously reported GitHub Actions exploitationA piece of code or technique that uses a software flaw to break into or crash a system of internet-facingReachable directly from the public internet without first logging in to a private internal network cPanel systems.
Terms in this story
- API
- A structured interface that lets one software program request data or actions from another program. Mobile apps, websites, and cloud services talk to backend servers through an API, and a poorly protected API can let attackers pull customer records in bulk. Security+ objective 4.7 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.
- 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
- runtime
- The environment in which a program executes, or the period of time while the program is actively running. A flaw in a container or language runtime can let a program escape its isolation, and runtime security tools watch what a program actually does in memory while it runs.
- 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.
- exploitation
- A piece of code or technique that uses a software flaw to break into or crash a system. Finding a vulnerability is only the discovery of a weakness, whereas an exploit is the working code or sequence of inputs that triggers that weakness in practice. Security+ objective 2.4 lists the term
- internet-facing
- Reachable directly from the public internet without first logging in to a private internal network. Because automated scanners probe every public IP address within minutes, an unpatched flaw on an internet-facing VPN or web server is far riskier than one on an internal machine.
- repository
- A central storage place where a software project's source code, change history, and configuration files are kept. Software teams collaborate by pushing code to a shared repository, and attackers scan public repositories for accidentally committed API keys or try to poison popular projects.
- encrypted
- Turn plaintext into ciphertext with a key. News stories use this verb when a defense scrambles sensitive records before storing them, or when ransomware locks a company's files so staff cannot open them without paying for the key. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 2); Security+ objective 1.4 lists the term
- decrypts
- Turn ciphertext back into plaintext with the key. Authorized users decrypt protected messages or drives with their secret key, while ransomware victims must either restore from backups or obtain the attacker's key to decrypt their files. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 2)
- scanners
- 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
- npm/package
- A reusable web code library published to the public npm registry for developers to install. Web developers pull in dozens of npm packages when building a site, and attackers frequently publish malicious packages with lookalike names to steal developer credentials during installation. Security+ objective 2.2 lists the term
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 CSO Online website. Cite the article, not this page.
Read the full article on CSO Online (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: Breach or attack
"...identified breaches of 42 third-party GitHub repositories..." Found by reading the article; these exact words are in it - Who is affected: "42 third-party GitHub repositories..." Organizations using the product
Copied word for word from the article - Security+ 3.3 Compare and contrast concepts and strategies to protect data.
"......firm reported Monday that it had identified breaches of 42 third-party GitHub repositories in which..." Found in the opening sentences - Security+ 4.8 Explain appropriate incident response activities.
"......JFrog Security Research said the victimized repositories contained execution hooks for AI coding assistants and..." Found in the opening sentences - Security+ 5.3 Explain the processes associated with third-party risk assessment and management.
"......that it had identified breaches of 42 third-party GitHub repositories in which attackers had deployed..." Found in the opening sentences - CYBR 101 week 6: AI, how it is attacked, and what it does for attackers and defenders
"......the victimized repositories contained execution hooks for AI coding assistants and IDEs, along with polymorphic..." Found in the opening sentences
How a story is connected to the course, and every objective, week and job role