T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:38- Finding
Mutable Remote Installer Is Executed Directly by the Shell
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:38,SKILL.md:360, andreferences/troubleshooting.md:9
Vulnerability Type: Remote payload retrieval and execution
Risk Level: HighComplete vulnerable snippets:
SKILL.md:36-41bash # macOS / Linux (recommended) curl -fsSL https://cli.brightdata.com/install.sh | bash # Any platform with Node.js >= 20 npm install -g @brightdata/cliSKILL.md:358-362markdown | Error | Fix | |-------|-----| | CLI not found | `curl -fsSL https://cli.brightdata.com/install.sh \| bash` | | "No Web Unlocker zone" | `bdata login` (re-run to auto-create zones) |references/troubleshooting.md:7-10markdown | Problem | Solution | |---------|----------| | `bdata: command not found` | Install: `curl -fsSL https://cli.brightdata.com/install.sh \| bash` or `npm i -g @brightdata/cli` | | `npm ERR! engine` | Node.js >= 20 required. Update Node.js first. |Technical Analysis
The instructions retrieve a mutable shell script from an external server and immediately pass its contents to
bash. There is no version pinning, cryptographic checksum, package signature, local review step, or restriction on what the downloaded script may execute.HTTPS protects the connection under normal conditions but does not establish that every future version of the remote script is trustworthy. Compromise of the vendor endpoint, hosting infrastructure, DNS/TLS trust path, or deployment process could cause arbitrary commands to be delivered after this Skill has already passed review.
The behavior is not required at this privilege level for the declared web-access functionality. A verified, pinned package installed under an unprivileged account would provide the CLI without granting a mutable remote response an immediate code-execution channel.
Attack Path
- The agent follows the Skill's prerequisite check and runs
bdata version. 2 ...[truncated 1044 chars]
- The agent follows the Skill's prerequisite check and runs
- Remediation
View remediation
Remediation Suggestions
- Remove every
curl | bashrecommendation, including troubleshooting copies. - Publish versioned installation artifacts and pin the documentation to a reviewed release.
- Download the artifact to disk before execution so it can be inspected.
- Publish and verify a cryptographic checksum or signature using a trusted, separately distributed key.
- Abort installation if signature or checksum validation fails.
- Run installation under an unprivileged account and document all files, configuration, and network endpoints affected.
- Prefer a package-manager installation with a pinned version and integrity metadata.
- Require explicit user approval before installing software; an agent should not automatically execute installation instructions merely because
bdatais absent.
- Remove every
