hwc-media-content
Pass
Audited by Gen Agent Trust Hub on Nov 1, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill demonstrates patterns for ingesting and displaying untrusted data that could be exploited for malicious input.
- Ingestion points:
event.target.filesinreferences/2024-09-17-stimulus-image-upload-previews.md(file names) andregion.content.innerTextinreferences/2024-07-02-stimulus-wavesurfer-add-markers.md(audio marker text). - Boundary markers: Absent. Data is interpolated directly into templates without explicit separators or instructions to ignore embedded content.
- Capability inventory: The skill snippets perform DOM manipulation via
this.previewsTarget.appendChildinreferences/2024-09-17-stimulus-image-upload-previews.mdandthis.listTarget.insertAdjacentHTMLinreferences/2024-07-02-stimulus-wavesurfer-add-markers.md. - Sanitization: Absent. The implementation relies on simple string replacement or external library behavior without explicit escaping or sanitization of external input.
- [DYNAMIC_EXECUTION]: Multiple reference files demonstrate runtime HTML construction using manual string manipulation, which is an unsafe practice when handling external data.
- In
references/2024-09-17-stimulus-image-upload-previews.md, theappendPreviewsmethod replaces placeholders in a template withfile.nameand assigns the result toinnerHTML. This pattern is vulnerable to XSS if a user selects a file with a maliciously crafted name. - In
references/2024-07-02-stimulus-wavesurfer-add-markers.mdandreferences/2024-07-30-stimulus-wavesurfer-remove-markers.md, the code uses.replace()to inject library-provided content into HTML strings before callinginsertAdjacentHTML. Without proper escaping, this allows for the injection of arbitrary HTML/JS if the input content is controlled by an attacker.
Audit Metadata