T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:31- Finding
Remote Installer Is Downloaded and Executed Without Verification
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill is coherent Bright Data onboarding, but its install and credential steps place substantial trust in mutable external code and persistent agent-skill changes without enough safeguards.
Install only if you trust Bright Data and are comfortable with persistent CLI and agent-skill changes. Prefer a pinned, reviewable install path over curl-to-bash or unpinned npx/npm commands, inspect any skill bundle before it is placed in an active agent directory, avoid putting API keys in shell history or URL query strings, keep .env files out of version control, and rotate any key that may have been exposed.
SKILL.md:31Remote Installer Is Downloaded and Executed Without Verification
SKILL.md:34Unpinned Third-Party Packages Are Installed or Executed
SKILL.md:84Mutable Agent Skills Are Installed Into the Agent Instruction Directory
SKILL.md:237Bright Data API Token Is Embedded in an MCP URL Query String
SKILL.md:53API Keys May Be Exposed Through Command Arguments and Shell History
curl -fsSL https://cli.brightdata.com/install.sh | bash is a classic arbitrary-code-execution pattern. If the script source or delivery path is compromised, users will run attacker-controlled code immediately, making this especially dangerous in a skill intended for developer onboarding.
# macOS / Linux — fastest install
curl -fsSL https://cli.brightdata.com/install.sh | bash
# Cross-platform (or if you don't want the install script)
npm install -g @brightdata/cli
The shell pipe chaining of downloaded content directly into bash removes opportunities for inspection and compounds the remote-script execution risk. In an onboarding skill, this increases the chance that users blindly execute unreviewed network-supplied code, making exploitation straightforward if the upstream content is tampered with.
# macOS / Linux — fastest install
curl -fsSL https://cli.brightdata.com/install.sh | bash
# Cross-platform (or if you don't want the install script)
npm install -g @brightdata/cli
The skill instructs users to append secrets directly into .env without warning about file permissions, accidental source control inclusion, local leakage, or secret scanning. In onboarding content, this is risky because users frequently copy such commands into repositories where .env may later be exposed.
echo "BRIGHTDATA_API_KEY=..." >> .env
echo "BRIGHTDATA_UNLOCKER_ZONE=<zone-name>" >> .env
The zone value itself is less sensitive than the API key, but this finding is part of a credential-handling pattern that normalizes writing service configuration into local .env files without safeguards. In context, the dangerous part is the insecure secret-management guidance surrounding adjacent credentials.
echo "BRIGHTDATA_API_KEY=..." >> .env
echo "BRIGHTDATA_UNLOCKER_ZONE=<zone-name>" >> .env
Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.
## Path D — Use Bright Data without installing anything
Use this when the environment can't run `npm` / `curl | bash`, or
when you only need one or two requests and don't want the CLI / SDK.
Works for both live agent work and app integration.
The skill instructs users to execute a remote script via curl ... | bash with no warning, review step, checksum, or signature verification. That pattern is dangerous because compromise of the remote host, CDN, or install script would immediately yield arbitrary code execution on the user's machine.
npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
The skill encourages passing API keys via command line and environment configuration without warning about exposure in shell history, process listings, logs, or accidentally committed .env files. It also later places tokens in URL query parameters for MCP, which further increases leakage risk through logs and referrers.
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
# Web Unlocker via REST
curl -sS https://api.brightdata.com/request \
-H "Authorization: Bearer $BRIGHTDATA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
# Web Unlocker via REST
curl -sS https://api.brightdata.com/request \
-H "Authorization: Bearer $BRIGHTDATA_API_KEY" \
-H "Content-Type: application/json" \
-d '{