hap-api-website
Pass
Audited by Gen Agent Trust Hub on Aug 25, 2026
Risk Level: SAFEPROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [PROMPT_INJECTION]: The skill's code generation logic (in
assets/main.js.template) is susceptible to indirect prompt injection (Cross-Site Scripting). The generated frontend code reads records from the external HAP database and renders them directly into the web page usinginnerHTMLwithout performing any HTML escaping or sanitization. - Ingestion points: Business data (products, news, etc.) fetched from the HAP platform at runtime (identified in
SKILL.mdPhase 7 andmain.js.template). - Boundary markers: Absent; the generated application does not use techniques to differentiate between data and HTML instructions during rendering.
- Capability inventory: The generated code possesses full access to the browser DOM and performs network requests via fetch.
- Sanitization: Absent; the template literals in
main.js.templatedirectly insert raw field values into HTML strings. - [COMMAND_EXECUTION]: In
SKILL.mdPhase 8, the skill instructs the agent to execute shell commands to start a local development server, includingpython -m http.server 8000,npx serve, andphp -S localhost:8000. These commands run in the background to provide a preview of the generated project. Although these are legitimate development tools, they represent direct shell command execution initiated by the agent instructions.
Audit Metadata