T03 · Remote Payload Retrieval and Execution
- Location
skill.md:16- Finding
Unverified Remote Script Executed Directly by the Shell
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill is a coherent Fly.io deployment guide, but it includes unsafe authentication and recovery shortcuts that could expose access or approve the wrong device.
Review before installing. Prefer the package-manager Fly CLI install, avoid putting gateway tokens in URLs, rotate any token already used that way, verify the exact pending device identity and requested permissions before pairing, and avoid the app-destroy command unless you have confirmed the target app and backed up any persistent state.
skill.md:16Unverified Remote Script Executed Directly by the Shell
skill.md:173Gateway Authentication Token Placed in a URL Query String
skill.md:188First Pending Device Is Approved Without Identity or Scope Verification
Piping a remotely fetched script directly into sh executes unreviewed code with the user's privileges and removes the opportunity to inspect integrity or provenance. If the server, CDN, DNS, TLS termination, or installation script is compromised, users can be silently infected during setup.
## Prerequisites
Before starting:
- Fly.io CLI installed (`brew install flyctl` or `curl -L https://fly.io/install.sh | sh`)
- Fly.io account and logged in (`fly auth login`)
- Anthropic API key (and optionally OpenAI API key)
- Git installed
Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.
macOS:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
Linux:
Code enumerates, copies, or searches environment variables for secrets. Bulk environment access can collect credentials unrelated to the skill's stated purpose.
# Check env var token
fly ssh console -a your-app-name -C "printenv CLAWDBOT_GATEWAY_TOKEN"
# Update config file to match
fly ssh console -a your-app-name
Code enumerates, copies, or searches environment variables for secrets. Bulk environment access can collect credentials unrelated to the skill's stated purpose.
# Check env var token
fly ssh console -a your-app-name -C "printenv CLAWDBOT_GATEWAY_TOKEN"
# Update config file to match
fly ssh console -a your-app-name
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
macOS:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
Linux:
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
macOS:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
Linux:
The guide instructs users to authenticate by placing a long-lived token directly in the browser URL query string. Query-string tokens are commonly exposed via browser history, screenshots, copied links, crash reports, proxy logs, analytics, and Referer headers, which can lead to unauthorized access if the token is reused.
The skill includes a forceful app-destruction command as a troubleshooting shortcut without a strong warning that it can cause service outage and potentially irreversible loss if the wrong app or attached state is removed. In operational guides, destructive commands materially increase the chance of accidental self-inflicted damage.
No suspicious patterns detected.