saudi-opendata
Fail
Audited by Gen Agent Trust Hub on Jun 26, 2026
Risk Level: HIGHEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONPROMPT_INJECTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The skill fetches data from several official Saudi government domains, including
od.data.gov.sa,opendata.cma.org.sa, andwww.tdf.gov.sa. These are well-known services for public data access in the region. - [COMMAND_EXECUTION]: The skill utilizes
curlandpython3to interact with APIs and process responses. Specifically, it employspython3 -m json.toolfor safe formatting of JSON data. - [REMOTE_CODE_EXECUTION]: Automated scanners flagged the pattern of piping
curloutput directly intopython3. Analysis confirms that these commands are used for structural parsing (e.g., extracting resource URLs) and formatting of API responses rather than executing arbitrary remote code or scripts. - [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection as it ingests untrusted data from external sources and processes it within the agent's execution environment.
- Ingestion points: Data is fetched from various API endpoints on the Saudi Open Data Portal and other government sources via
curland Python'surlliblibrary. - Boundary markers: The skill does not implement delimiters or specific instructions to help the agent distinguish between external data and its own system instructions.
- Capability inventory: The skill provides access to powerful tools including
curl(supporting network requests and file writes via-o) andpython3. If a malicious API response provided a crafted URL or payload, it could potentially exploit these tools for server-side request forgery (SSRF) or writing malicious files. - Sanitization: There is no evidence of input validation or output escaping for the data fields (like
RESOURCE_URL) retrieved from external APIs before they are used in shell commands.
Recommendations
- HIGH: Downloads and executes remote code from: https://od.data.gov.sa/api/3/action/package_search?q=السكان&rows=10, https://od.data.gov.sa/api/3/action/package_list, https://od.data.gov.sa/api/3/action/package_show?id=DATASET_ID - DO NOT USE without thorough review
Audit Metadata