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.py allows writing to arbitrary file paths via the --env-file argument. Since the --api-key parameter is not sanitized for newline characters, an attacker can inject arbitrary lines into shell configuration files (such as ~/.bashrc or ~/.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.py can 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 answer field in results generated by scripts/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 --output parameter in scripts/perplexity_search.py and the --env-file parameter in scripts/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
Risk Level
HIGH
Analyzed
Oct 14, 2026, 03:51 AM