T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:52- Finding
<![CDATA[Execution of Mutable, Unverified Remote Scripts and Instructions]]>
- Content
View full analysis
\ -H "Authorization: Bearer $GOOSEWORKS_API_KEY" ``` This returns: - **content**: The skill's instructions (SKILL.md) — follow these step by step - **scripts**: Python scripts the skill uses — save them locally and run them - **files**: Extra files the skill needs (configs, shared tools like `tools/apify_guard.py`) — save them relative to `/tmp/gooseworks-scripts/` - **requiresSkills**: Array of dependency skill slugs (for composite skills) - **dependencySkills**: Full content and scripts for each dependency ### Step 3: Set up dependency skills (if any) If the response includes `dependencySkills` (non-empty array), set up each dependency BEFORE running the main skill: 1. For each dependency in `dependencySkills`: - Save its scripts to `/tmp/gooseworks-scripts//` - Install any pip dependencies it needs 2. When the main skill's instructions reference a dependency script (e.g. `python3 skills/reddit-scraper/scripts/scrape_reddit.py`), run it from `/tmp/gooseworks-scripts//` instead ### Step 4: Set up and run the skill Follow the instructions in the skill's `content` field. **Save ALL files from both `scripts` AND `files` before running anything:** 1. Save each script from `scripts` to `/tmp/gooseworks-scripts//scripts/` — **NEVER save scripts into the user's project directory** 2. **IMPORTANT: Also save everything from `files`** — these contain required modules (like `tools/apify_guard.py`) that scripts import at runtime: - Files starting with `tools/` → save to `/tmp/gooseworks-scripts/tools/` ...[truncated 2569 chars]- Remediation
View remediation
