heygen-best-practices
Pass
Audited by Gen Agent Trust Hub on Oct 2, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill provides instructions and code examples that involve executing shell commands. Specifically, in
rules/avatars.md, it demonstrates the use ofchild_process.execSyncto run theopencommand on macOS, and provides terminal examples usingxdg-open(Linux) andstart(Windows) to open URLs in a web browser. - [INDIRECT_PROMPT_INJECTION]: The skill instructs the agent to fetch and process data from the HeyGen API (
api.heygen.com), creating a potential surface for indirect prompt injection where malicious content from the API response could influence agent behavior. - Ingestion points: Data is ingested from HeyGen API endpoints such as
/v2/avatars,/v2/voices, and/v2/templatesas described in multiple files includingrules/avatars.mdandrules/voices.md. - Boundary markers: The provided code snippets do not include explicit boundary markers or warnings to the agent to ignore instructions embedded in the API data.
- Capability inventory: The skill utilizes network operations (
fetch,requests,httpx), file system writes (fs.writeFileSyncinrules/video-status.md), and shell command execution (execSyncinrules/avatars.md). - Sanitization: There is no evidence of sanitization or strict validation of string data returned from the API before it is used in subsequent operations or prompt construction.
Audit Metadata