HA Integration Dev
Pass
Audited by Gen Agent Trust Hub on Nov 6, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The
conversation-agenttemplate enables the creation of an LLM-powered assistant that reads Home Assistant device states and executes services. This creates a surface for indirect prompt injection where data from external devices could influence the LLM to perform unauthorized actions. - Ingestion points: The
_get_entities_contextmethod intemplates/conversation-agent/conversation_agent.pypulls state information from all controllable entities into the LLM context. - Boundary markers: The system prompt uses specific rules and JSON code blocks to define capabilities, but does not implement cryptographic or hard-wall separation for untrusted device data.
- Capability inventory: The agent has the ability to call services for various domains (light, switch, climate, cover, etc.) via
self.hass.services.async_callinconversation_agent.py. - Sanitization: The integration uses regex and JSON parsing to extract commands from LLM responses, relying on the LLM's adherence to the system prompt for safety.
- [EXTERNAL_DOWNLOADS]: The documentation for the LLM template in
templates/conversation-agent/README.mddescribes fetching an installation script for the Ollama service from its official website. - [REMOTE_CODE_EXECUTION]: The skill's documentation for local LLM setup includes instructions for using the
curl | shpattern to install Ollama from its official domain.
Audit Metadata