home-assistant-best-practices

Warn

Audited by Gen Agent Trust Hub on Nov 29, 2026

Risk Level: MEDIUMPROMPT_INJECTIONCOMMAND_EXECUTIONPRIVILEGE_ESCALATIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
  • [PROMPT_INJECTION]: Instructions in SKILL.md advise the agent not to stop for permission if the HA API tools fail, but instead to use the browser interface to make changes while requesting user confirmation.
  • [PRIVILEGE_ESCALATION]: The automation-actions.md reference provides a method for bypassing Home Assistant's administrative permission model, allowing non-admin users to execute restricted actions by wrapping them in automations that the agent is encouraged to create.
  • [COMMAND_EXECUTION]: The skill provides guidance on using command_line and shell_command integrations, which grant the agent the capability to run shell commands on the host system.
  • [DYNAMIC_EXECUTION]: The skill encourages the creation and execution of AppDaemon Python apps and complex Jinja2 templates, which involves runtime code generation and execution to manage home automation logic.
  • [INDIRECT_PROMPT_INJECTION]: The skill presents an attack surface for indirect prompt injection as it processes untrusted data from various sources and translates it into system actions.
  • Ingestion points: Processes data from the HA API, entity states, and external payloads (MQTT, REST) as documented in SKILL.md and template-guidelines.md.
  • Boundary markers: Recommends showing the user the exact change and waiting for confirmation before saving changes in SKILL.md.
  • Capability inventory: Capable of making HA API calls, executing shell commands via command_line, and running Python scripts via AppDaemon as described in appdaemon.md and yaml-only-integrations.md.
  • Sanitization: No explicit sanitization or filtering of external content before processing is described in the instructions.
  • [EXTERNAL_DOWNLOADS]: Fetches documentation and configuration guidelines from Home Assistant's official GitHub repository.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Nov 29, 2026, 09:33 PM