xfetch
Pass
Audited by Gen Agent Trust Hub on Oct 2, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCREDENTIALS_UNSAFECOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill fetches untrusted data from X (Twitter) via the
scripts/xfetch.pyscript, which presents a surface for indirect prompt injection attacks. - Ingestion points: The
gql()function inscripts/xfetch.pyretrieves tweet and user data from the X GraphQL API. - Boundary markers: No specific delimiters or warnings are used to wrap the retrieved tweet text.
- Capability inventory: The script can output data to
stdoutin various formats, write to a local SQLite database file, and the agent is instructed to process this data. - Sanitization: While structured data formats (JSON, CSV) are used, the actual text content of tweets is not sanitized or filtered for instructions.
- [CREDENTIALS_UNSAFE]: The skill interacts with sensitive local credential storage to authenticate requests to X.
- The
auth extractcommand uses thebrowser_cookie3library to read session cookies directly from browser databases (e.g., Chrome, Firefox). - The script stores and retrieves session tokens (
auth_token,ct0) from a local configuration file at~/.config/xfetch/cookies.json. - A public X bearer token is included in the script; this is a standard non-secret token used for web-based requests.
- [COMMAND_EXECUTION]: The script performs dynamic SQL operations when exporting data to SQLite. It implements a protection mechanism (
_sql_identfunction) that uses a regular expression to sanitize table and column identifiers, ensuring they only contain alphanumeric characters and underscores to prevent SQL injection.
Audit Metadata