twitterapi-io
Pass
Audited by Gen Agent Trust Hub on Oct 7, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCREDENTIALS_UNSAFECOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill fetches user-generated content from the Twitter platform through the third-party
twitterapi.ioAPI. This content, such as tweet text and user biographies, is passed to the agent, creating a surface for indirect prompt injection attacks where malicious instructions hidden in social media posts could attempt to influence the agent's behavior. - Ingestion points: Data is fetched via
curl_jsoncalls toapi.twitterapi.ioinscripts/twitterapi_io.py. - Capability inventory: The skill is restricted to read-only API access and does not provide tools for writing files or executing shell commands based on the external content.
- Boundary markers: Instructions in
SKILL.mdtell the agent to parse the returned JSON instead of interpreting human text, which helps prevent accidental execution of embedded commands. - Sanitization: The script uses
minimal_tweetandminimal_userfunctions to filter and restrict the specific data fields exposed to the agent. - [CREDENTIALS_UNSAFE]: The skill provides an
authcommand that accepts an API key as a command-line argument (--api-key). This pattern can lead to the exposure of sensitive credentials in the system's process list or shell history files. Thesetup-api-key.shscript also passes the API key as a positional argument to an internal Python call during configuration. - [COMMAND_EXECUTION]: The skill uses
subprocess.check_outputto execute thecurlbinary for API communication. The command is constructed as a list, and all parameters are URL-encoded, which effectively prevents shell injection vulnerabilities despite handling external input.
Audit Metadata