T08 · Insecure Dependencies
- Location
SKILL.md:13- Finding
Unpinned Third-Party SDK Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:13
Vulnerability Type: Unpinned third-party dependency
Risk Level: MediumVulnerable Code
bash pip install brightdata-sdkTechnical Analysis
The Skill instructs users or agents to install
brightdata-sdkfrom pip without specifying a reviewed version, package hash, lockfile, constraints file, or verified package source. Consequently, the installed code may differ from the version assessed when this Skill was audited.Python package installation can execute package-controlled build or installation logic. The installed package also executes code when imported. If the package distribution or its publishing account is compromised, or a future release becomes malicious, following this instruction could introduce attacker-controlled code into the environment.
The audit did not find evidence that the named package is currently malicious. The issue is the absence of controls ensuring that installation resolves to a known and reviewed artifact.
Attack Path
- An attacker compromises the package publisher, distribution account, package index, or release process.
- The attacker publishes a malicious or compromised version under the expected package name.
- A user or coding agent follows
SKILL.md:13. - pip resolves the latest version available from its configured index.
- Malicious package logic executes during installation, import, or SDK use.
- The package operates with the privileges of the installing or executing process and can access resources available to that process.
Impact Assessment
Successful exploitation could permit arbitrary code execution with the user's process privileges. Depending on the environment, exposed resources could include project files, environment variables, the documented
BRIGHTDATA_API_TOKEN, Browser API credentials, network access, and Bright Data account capabilities authorized by those credentials.The impact is limited by the priv ...[truncated 211 chars]
- Remediation
View remediation
Remediation Suggestions
-
Pin the dependency to a reviewed exact version, for example:
bash python -m pip install brightdata-sdk==<reviewed-version> -
Record and verify distribution hashes using a requirements file and
--require-hashes. -
Provide a lockfile or constraints file covering both direct and transitive dependencies.
-
Identify the official package index page and source repository so users can verify provenance.
-
Install in an isolated virtual environment or container under a non-privileged account.
-
Avoid exposing unrelated secrets to the installation and runtime process.
-
Review new SDK versions before updating the pin, including package ownership, release provenance, dependency changes, and published artifacts.
-
