speak-reference-architecture
Pass
Audited by Gen Agent Trust Hub on Sep 9, 2026
Risk Level: SAFEDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The configuration loader in
references/implementation-guide.mduses dynamicrequirecalls to load environment-specific configuration files. - The code
require(./speak.${env}.json)loads modules from a path computed using theNODE_ENVenvironment variable. While a standard pattern for managing development, staging, and production settings, it involves dynamic loading from computed paths. - [INDIRECT_PROMPT_INJECTION]: The architecture is designed to process untrusted external data (audio recordings and text) which serves as an entry point for potential indirect prompt injection attacks.
- Ingestion points: Untrusted data enters the agent context through the
SpeakClient.speech.recognizeandSpeakClient.speech.scoremethods defined insrc/speak/client.ts. - Boundary markers: The provided implementation snippets do not include explicit delimiter markers or specific instructions to the agent to ignore embedded commands within the processed data.
- Capability inventory: The skill environment is granted significant tool access, including
Read,Write,Edit,Bash, andGrep. - Sanitization: The reference code does not demonstrate sanitization or validation of the external content before it is interpolated or processed by the SDK.
Audit Metadata