cve.bz

CAPEC-693

StarJacking

High severityMedium likelihoodDetailed pattern

An adversary spoofs software popularity metadata to deceive users into believing that a maliciously provided package is widely used and originates from a trusted source.

On this page

Many open-source software packages are hosted via third-party package managers (e.g., Node Package Manager, PyPi, Yarn, etc.) that allow for easy integration of software components into existing development environments. A package manager will typically include various metadata about the software and often include a link to the package's source code repository, to assist developers in determining the trustworthiness of the software. One common statistic used in this decision-making process is the popularity of the package. This entails checking the amount of "Stars" the package has received, which the package manager displays based on the provided source code repository URL. However, many package managers do not validate the connection between the package and source code repository being provided. Adversaries can thus spoof the popularity statistic of a malicious package by associating a popular source code repository URL with the package. This can ultimately trick developers into unintentionally incorporating the malicious package into their development environment.

Ask an AI about this attack pattern

Show the promptExplain the attack pattern CAPEC-693: StarJacking: how it unfolds, what it needs and how to prevent and detect it in my systems. Use https://capec.mitre.org/data/definitions/693.html and https://cve.bz/cve/capec/693?via=ask-ai-copy, which lists recent CVEs with the weaknesses it exploits. Cite the sources.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this attack pattern's id and public links.

How the attack unfolds

  1. Explore

    The attacker looks for a way in.

    1. [Identify target] The adversary must first identify a target package whose popularity statistics will be leveraged. This will be a popular and widely used package, as to increase the perceived pedigree of the malicious package.

  2. Experiment

    They probe what they found.

    1. [Spoof package popularity] The adversary provides their malicious package to a package manager and uses the source code repository URL identified in Step 1 to spoof the popularity of the package. This malicious package may also closely resemble the legitimate package whose statistics are being utilized.

  3. Exploit

    They carry out the attack.

    1. [Exploit victims] The adversary infiltrates development environments with the goal of conducting additional attacks.

      2 techniques
      • Active: The adversary attempts to trick victims into downloading the malicious package by means such as phishing and social engineering.
      • Passive: The adversary waits for victims to download and leverage the malicious package.

Prerequisites

  • Identification of a popular open-source package whose popularity metadata is to be used for the malicious package.

Skills required

  • Low skill

    Ability to provide a package to a package manager and associate a popular package's source code repository URL.

Consequences

What a successful attack can lead to
ImpactAffectsNote
Modify DataIntegrity
Hide ActivitiesAccountability
Execute Unauthorized Commands, Alter Execution Logic, Gain PrivilegesAccess Control, Authorization

Mitigations

  • Before downloading open-source packages, 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.

  • 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 packages from reputable package managers.

  • After downloading open-source packages, ensure integrity values have not changed.

  • Before executing or incorporating the package, leverage automated testing techniques (e.g., static and dynamic analysis) to determine if the software behaves maliciously.

Weaknesses it exploits

  • CWE-494 Download of Code Without Integrity Check

Recent CVEs with these weaknesses

  1. 7.8CVE-2026-137191

    Vite+ is a unified toolchain and entry point for web development. From 0.2.9 until 1.5.1, the global vp setup path downloads the pinned pnpm package manager through download_package_manager and executes it without comparing the bytes to a …

  2. 8.4CVE-2026-80453

    Dell Secure Connect Gateway - Virtual Edition, versions prior to 5.36.00.16, contains a Download of Code Without Integrity Check vulnerability. An unauthenticated local attacker could potentially exploit this vulnerability, leading to Unau…

  3. 7.8CVE-2026-80364

    Dell Secure Connect Gateway (SCG) Virtual Edition, versions prior to 5.36.00.16, contains a Download of Code Without Integrity Check vulnerability. A low privileged local attacker could potentially exploit this vulnerability, leading to fu…

  4. 7.7CVE-2026-134638

    Webmin through 2.670 contains a missing integrity verification vulnerability in usermin/upgrade.cgi that downloads Usermin upgrade packages over plaintext HTTP without signature or digest checks. On-path network attackers or DNS spoofers c…

  5. 7.7CVE-2026-134630

    Webmin through 2.670 contains a remote code execution vulnerability in the Perl Modules (cpan) module, which downloads CPAN indexes and module archives over plaintext HTTP without checksum or signature verification. On-path network attacke…

  6. 7.7CVE-2026-134438

    Webmin through 2.670 contains an insecure download vulnerability in webmin/upgrade.cgi, cluster-webmin/upgrade.cgi and cluster-usermin/upgrade.cgi that fetches upgrade packages over plaintext HTTP with GnuPG signature verification disabled…

  7. 7.6CVE-2026-49963

    DreameHome for Android (com.dreame.smartlife) before 2.6.4.0 contains a download of code without integrity check vulnerability in RnPluginDownloadManager.java that allows network-positioned attackers to execute arbitrary JavaScript within …

  8. 6.3CVE-2026-133988

    A security vulnerability has been detected in Chaterm up to 0.12.2 on Windows. The affected element is an unknown function of the file resources/app-update.yml of the component Auto-Update Mechanism. Such manipulation leads to download of …

The newest records naming one of them. Each weakness's page lists them all.

Part of
  • CAPEC-691 Spoof Open-Source Software Metadata

Examples

In April 2022, Checkmarx reported that packages hosted on NPM, PyPi, and Yarn do not properly validate that t…

In April 2022, Checkmarx reported that packages hosted on NPM, PyPi, and Yarn do not properly validate that the provided GitHub repository URL actually pertains to the package being provided. Combined with additional attacks such as TypoSquatting, this allows adversaries to spoof popularity metadata by associating popular GitHub repository URLs with the malicious package. This can further lead to developers unintentionally including the malicious package within their development environments [REF-721].

MITRE's words, unchanged: CAPEC-693 at MITRE. CAPEC is Copyright © 2007–2026, The MITRE Corporation, used under the CAPEC terms of use: “The MITRE Corporation (MITRE) hereby grants you a non-exclusive, royalty-free license to use Common Attack Pattern Enumeration and Classification (CAPEC™) for research, development, and commercial purposes. Any copy you make for such purposes is authorized provided that you reproduce MITRE’s copyright designation and this license in any such copy.” CAPEC and the CAPEC logo are trademarks of The MITRE Corporation. Credits. All attack patterns.