CAPEC-691: Spoof Open-Source Software Metadata
An adversary spoofs open-source software metadata in an attempt to masquerade malicious software as popular, maintained, and trusted.
Last updated
Overview
Due to open-source software's popularity, it serves as a desirable attack-vector for adversaries since a single malicious component may result in the exploitation of numerous systems/applications. Adversaries may, therefore, spoof the metadata pertaining to the open-source software in order to trick victims into downloading and using their malicious software. Examples of metadata that may be spoofed include: Owner of the software (e.g., repository or package owner) Author(s) of repository commits Frequency of repository commits Date/Time of repository commits Package or Repository "stars" Once the malicious software component has been integrated into an underlying application or executed on a system, the adversary is ultimately able to achieve numerous negative technical impacts within the system/application. This often occurs without any indication of compromise.
What the attacker needs
Prerequisites
- Identification of a popular open-source component whose metadata is to be spoofed.
Skills required
- Medium skill: Ability to spoof a variety of software metadata to convince victims the source is trusted.
Consequences
What a successful CAPEC-691 attack can achieve.
Modify Data
Affects: Integrity
Hide Activities
Affects: Accountability
Execute Unauthorized Commands, Alter Execution Logic, Gain Privileges
Affects: Access Control, Authorization
How to mitigate it
Defenses that reduce the risk of CAPEC-691.
- Before downloading open-source software, perform precursory metadata checks to determine the author(s), frequency of updates, when the software was last updated, and if the software is widely leveraged.
- Within package managers, look for conflicting or non-unique repository references to determine if multiple packages share the same repository reference.
- Reference vulnerability databases to determine if the software contains known vulnerabilities.
- Only download open-source software from reputable hosting sites or package managers.
- Only download open-source software that has been adequately signed by the developer(s). For repository commits/tags, look for the "Verified" status and for developers leveraging "Vigilant Mode" (GitHub) or similar modes.
- After downloading open-source software, ensure integrity values have not changed.
- Before executing or incorporating the software, leverage automated testing techniques (e.g., static and dynamic analysis) to determine if the software behaves maliciously.
Examples
An adversary provides a malicious open-source library, claiming to provide extended logging features and functionality, and spoofs the metadata with that of a widely used legitimate library. The adversary then tricks victims into including this library in their underlying application. Once the malicious software is incorporated into the application, the adversary is able to manipulate and exfiltrate log data.
Terminology & mappings
Mapped taxonomies
- ATTACK: Supply Chain Compromise: Compromise Software Dependencies and Development Tools (1195.001)
- ATTACK: Supply Chain Compromise: Compromise Software Supply Chain (1195.002)
Frequently asked questions
Common questions about CAPEC-691.
- What is CAPEC-691?
- An adversary spoofs open-source software metadata in an attempt to masquerade malicious software as popular, maintained, and trusted.
- How do you prevent CAPEC-691?
- Before downloading open-source software, perform precursory metadata checks to determine the author(s), frequency of updates, when the software was last updated, and if the software is widely leveraged.
- What weaknesses does CAPEC-691 target?
- CAPEC-691 exploits one CWE weakness: CWE-494 (Download of Code Without Integrity Check).
- How severe is CAPEC-691?
- MITRE rates CAPEC-691 as High severity with medium likelihood of attack.
References
Attack-pattern data is sourced from the MITRE CAPEC catalog (v3.9). Weakness associations link to the corresponding CWE entries on RadicalNotion.AI.
Defend against CAPEC-691
Track the CVEs and weaknesses this technique exploits, with AI-written analysis and remediation steps.