stitch-extract-static-html
Pass
Audited by Gen Agent Trust Hub on Oct 7, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill uses
spawnSyncinscripts/run.mjsto execute its internal TypeScript components using thetsxruntime resolved from the target project. This is a standard execution pattern for project-local tooling. - [EXTERNAL_DOWNLOADS]: The
snapshot.tsandextract_inline_html.tsscripts fetch remote images and stylesheets to inline them into the static output. The implementation includes a robust SSRF protection layer inscripts/extract_inline_html.tsthat validates DNS answers and blocks requests to non-public (local, reserved, or private) IP addresses. - [DYNAMIC_EXECUTION]: The skill employs dynamic loading techniques in several places:
scripts/project_dependencies.mjsresolves and requires dependencies likepuppeteerand@babel/parserfrom the target project at runtime.scripts/snapshot.tsallows users to provide an optional authentication script via the--auth-scriptflag, which is loaded using dynamicimport()to perform interactions before page capture.- [INDIRECT_PROMPT_INJECTION]: The skill processes potentially untrusted data from local JSX files and external URLs. While this presents an indirect prompt injection surface, the risk is mitigated by:
- Ingestion points:
snapshot.ts(external URLs) andextract_inline_html.ts(local source files). - Boundary markers: Explicit instructions in
SKILL.mdand theRulessection that emphasize evidence-based reporting and prohibit data fabrication. - Capability inventory: The skill possesses file writing, network access (specifically for asset fetching), and subprocess execution capabilities.
- Sanitization: Implementation of
escapeHtmlandescapeAttributeinscripts/extract_inline_html.tsand log sanitization viascripts/safe_diagnostics.tsto prevent credential leakage and injection.
Audit Metadata