kol-discovery
Pass
Audited by Gen Agent Trust Hub on Oct 2, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDATA_EXFILTRATIONEXTERNAL_DOWNLOADS
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The script
scripts/kol_discovery.pyingests untrusted data from external LinkedIn posts via the Apify API. This content, including post text and previews, is stored in a CSV and presented to the AI agent for review. If a LinkedIn post contains malicious instructions, it could potentially influence the agent's behavior during Phase 3 (Review & Refine). - Ingestion points: LinkedIn post content (text and content fields) retrieved from the
harvestapi/linkedin-post-searchactor inscripts/kol_discovery.py. - Boundary markers: The results are written to a CSV file and presented to the agent without specific delimiters or instructions to ignore embedded commands.
- Capability inventory: The script performs file system writes (CSV) and makes network requests to the Apify API.
- Sanitization: Untrusted post content is truncated but not escaped or sanitized for prompt safety.
- [DATA_EXFILTRATION]: The
scripts/kol_discovery.pyscript is vulnerable to a path traversal attack in its output logic. Theclient_nameparameter, read from thekol-discovery.jsonconfiguration file, is used to construct the output CSV path:f"{config['client_name']}-kols-{timestamp}.csv". If theclient_namecontains directory traversal sequences like../../, the script could write files to locations outside the intendedleadsdirectory. - [DATA_EXFILTRATION]: The
load_envfunction inscripts/kol_discovery.pyrecursively searches for.envfiles in the current directory and up to five levels of parent directories. This behavior could lead to the unintentional loading and potential exposure of sensitive environment variables or credentials from outside the skill's immediate workspace if executed in a hierarchical directory structure. - [EXTERNAL_DOWNLOADS]: The skill fetches data from Apify's official API (
api.apify.com) to retrieve LinkedIn post data using theharvestapi/linkedin-post-searchactor. This is standard functionality for interacting with this well-known service.
Audit Metadata