fitness-nutrition
Fail
Audited by Gen Agent Trust Hub on Sep 18, 2026
Risk Level: HIGHEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The skill performs network requests to external APIs to retrieve exercise and nutrition data.
- Targets include the wger open database (wger.de) and the official USDA FoodData Central API (api.nal.usda.gov).
- These requests are directed to well-known and reputable services for health and nutrition information.
- [REMOTE_CODE_EXECUTION]: Automated scanners flagged several patterns involving
curlpiped topythonas potential remote code execution. - Review of the code in
SKILL.mdshows that these are pipes to inline Python scripts (usingpython -c) defined within the skill itself to process JSON data from the APIs. - This pattern executes local logic on remote data and does not constitute the execution of untrusted remote code.
- [COMMAND_EXECUTION]: The skill uses shell commands (
curl,python) to interact with APIs and run utility scripts. - User-provided search queries (e.g.,
$QUERY,$FOOD) are correctly sanitized usingurllib.parse.quotevia a Python subshell to prevent command injection in URLs. - Some procedural examples in
SKILL.md(e.g., using$EXERCISE_IDor$FILTER) do not explicitly apply this encoding, which could potentially allow for argument injection if an agent interpolates malicious input into the shell command. - [INDIRECT_PROMPT_INJECTION]: The skill processes data from external APIs, which represents a potential surface for indirect prompt injection if those sources were compromised.
- Ingestion points:
SKILL.mdfetches and displays exercise and food descriptions from wger and USDA APIs. - Boundary markers: Delimiters or explicit instructions to ignore embedded commands are absent.
- Capability inventory: The skill possesses network and shell command execution capabilities via
curlandpythonsubprocesses. - Sanitization: The skill employs
re.sub('<[^>]+>','',html.unescape(...))to strip HTML tags from exercise descriptions, providing a basic defense against malicious scripts or markup in the API responses.
Recommendations
- HIGH: Downloads and executes remote code from: https://wger.de/api/v2/exercise/?${FILTER}&language=2&status=2&limit=20&format=json, https://wger.de/api/v2/exercise/search/?term=${ENCODED}&language=english&format=json, https://wger.de/api/v2/exerciseinfo/${EXERCISE_ID}/?format=json - DO NOT USE without thorough review
Audit Metadata