Attackers Target Developer Credentials to Expand Supply Chain Intrusions Beyond Source Code
Attackers use trusted software packages to steal developer credentials, gaining access to cloud accounts and production resources before applications are executed.
Overview
Attackers are using malicious software packages to steal credentialsThe login details, such as a username and password or key, that prove who an account belongs to from developer workstations and automated build environments before any application is executed. When a developer installs a dependencyAn external code library or package that a software project relies on to do part of its work or a build runner retrieves a new version, malicious scriptsA short program written in an interpreted language to automate tasks in a browser, shell, or application can run during the installation process to search for sensitive data. These scripts look for cloud access keysThe secret value that locks or opens a message, source codeThe human-readable programming instructions written by developers before they are compiled into a runnable program repository tokens, and other secretsPrivate credentials used by software, such as API keys, database passwords, and encryption keys stored in predictable file locations on the machine. Microsoft analyzed the Mini Shai-Hulud campaign, which used malicious @antv npm packagesA reusable web code library published to the public npm registry for developers to install to execute an obfuscatedScrambling or tangling code on purpose so humans and security scanners have a hard time reading it payloadThe part of an attack or malware file that carries out the harmful action on the target during the installation step. Qualys researchers noted that the malwareSoftware built to steal data, spy on users, lock files, or take control of a computer targeted credentials from GitHub Actions, AWS, Kubernetes, HashiCorp Vault, npm, and 1Password environments. Because the code runs before the application launches, cancelling the installation or avoiding runtimeThe environment in which a program executes, or the period of time while the program is actively running execution does not prevent the theft of these credentials.
Terms in this story
- 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
- dependency
- An external code library or package that a software project relies on to do part of its work. When a popular open-source dependency has a security bug or gets hijacked by an attacker, every application that imports that package inherits the risk.
- 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.
- keys
- The secret value that locks or opens a message. Many breach and ransomware stories come down to who holds the cryptographic key, since strong encryption protects data only as long as the key stays secret. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
- Source Code
- The human-readable programming instructions written by developers before they are compiled into a runnable program. When attackers steal a company's private source code from a repository, they can study it to find hidden vulnerabilities or leaked API keys.
- secrets
- Private credentials used by software, such as API keys, database passwords, and encryption keys. Software teams use vault tools to keep secrets out of source code because anyone who finds a leaked secret in a public repository can log right in to the company's cloud services.
- npm packages
- 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
- obfuscated
- Scrambling or tangling code on purpose so humans and security scanners have a hard time reading it. Attackers use obfuscation by renaming variables to gibberish, splitting strings, and wrapping scripts in layers of encoding so analysts cannot easily see what the program does. Security+ objective 1.4 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.
- 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
- 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.
- Software supply chain
- All the open-source libraries, build tools, code repositories, and update servers that go into making a program. Protecting the software supply chain means making sure no attacker has tampered with the third-party packages, build pipelines, or signing keys used to ship an application.
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 GBHackers website. Cite the article, not this page.
Read the full article on GBHackers (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
"...attackers weaponize trusted packages to steal credentials..." Found by reading the article; these exact words are in it - Security+ 2.1 Compare and contrast common threat actors and motivations.
"......pivot: a routine dependency installation can give threat actors access to cloud accounts, source-code repositories, container..." Found in the opening sentences - Security+ 2.2 Explain common threat vectors and attack surfaces.
"Attackers Target Developer Credentials to Expand Supply Chain Intrusions Beyond Source Code..." Found in the headline - Security+ 2.3 Explain various types of vulnerabilities.
"Attackers Target Developer Credentials to Expand Supply Chain Intrusions Beyond Source Code..." Found in the headline - Security+ 3.3 Compare and contrast concepts and strategies to protect data.
"......attacks are increasingly evolving into cloud identity breaches, as attackers weaponize trusted packages to..." Found in the opening sentences - Security+ 4.6 Given a scenario, implement and maintain identity and access management.
"Attackers Target Developer Credentials to Expand Supply Chain Intrusions Beyond Source..." Found in the headline - Security+ 4.7 Explain the importance of automation and orchestration related to secure operations.
"......to steal credentials from developer workstations and CI/CD environments before an application is ever executed...." Found in the opening sentences - Security+ 5.3 Explain the processes associated with third-party risk assessment and management.
"Attackers Target Developer Credentials to Expand Supply Chain Intrusions Beyond Source Code..." Found in the headline - CYBR 101 week 2: the CIA triad, threat actors, risk and CVEs
"......pivot: a routine dependency installation can give threat actors access to cloud accounts, source-code repositories, container..." Found in the opening sentences - CYBR 101 week 8: networks, ports, DNS and packets
"......developer workstations and CI/CD environments before an application is ever executed. The result is a..." Found in the opening sentences - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Knowledge of threats to OPSEC when installing, using, modifying, and uninstalling tools.
"...attackers weaponize trusted packages to steal credentials..." Found by reading the article; these exact words are in it - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Identify security implications and apply methodologies within centralized and decentralized environments across the enterprises computer systems in software development.
"...malicious lifecycle scripts can execute during installation..." Found by reading the article; these exact words are in it
How a story is connected to the course, and every objective, week and job role