perplexity-search
Fail
Audited by Gen Agent Trust Hub on Oct 14, 2026
Risk Level: HIGHPERSISTENCEPRIVILEGE_ESCALATIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [PERSISTENCE]: The script
scripts/setup_env.pyallows writing to arbitrary file paths via the--env-fileargument. Since the--api-keyparameter is not sanitized for newline characters, an attacker can inject arbitrary lines into shell configuration files (such as~/.bashrcor~/.zshrc). This could be used to execute malicious commands persistently whenever a new shell session is started. - [PRIVILEGE_ESCALATION]: The insecure file-writing capability in
scripts/setup_env.pycan be exploited to overwrite or append to critical configuration files that the user has write access to, potentially leading to unauthorized system changes or elevated execution context. - [INDIRECT_PROMPT_INJECTION]: The skill's core functionality involves fetching real-time data from the web, which introduces a risk of indirect prompt injection. Maliciously crafted content on searched web pages could attempt to override the agent's instructions or influence its subsequent actions.
- Ingestion points: External data is ingested into the agent context via the
answerfield in results generated byscripts/perplexity_search.py. - Boundary markers: No delimiters, structural markers, or explicit isolation instructions are used to separate the untrusted web content from the agent's internal logic or the system prompt.
- Capability inventory: The skill possesses file-writing capabilities through the
--outputparameter inscripts/perplexity_search.pyand the--env-fileparameter inscripts/setup_env.py. - Sanitization: The results retrieved from the web are returned without any form of sanitization, filtering, or escaping to mitigate the risk of embedded instructions.
Recommendations
- AI detected serious security threats
Audit Metadata