khe-demo
Pass
Audited by Gen Agent Trust Hub on Nov 10, 2026
Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/record.mjsandscripts/post.mjsscripts usenode:child_process.spawnSyncto executeffmpegandffprobefor video processing and metadata extraction. Additionally,scripts/record.mjsincludes an optional capability to execute shell commands defined within theresetblock of a demo script, which is restricted by a mandatory--allow-commandsflag. - [DYNAMIC_EXECUTION]: The skill performs dynamic loading of the
playwright-coredependency inscripts/record.mjsusing dynamicimport(). It also executes JavaScript in the browser context via Playwright'spage.evaluateandcontext.addInitScriptto handle UI overlays, clock synchronization, and state resets. - [EXTERNAL_DOWNLOADS]: The skill relies on several external tools and libraries, including
playwright-core,ffmpeg, andffprobe. It also references external drivers such asagent-browserandagent-desktopfrom Vercel Labs for specific recording scenarios. - [INDIRECT_PROMPT_INJECTION]: The skill processes user-provided or project-specific
.demo.jsonfiles to drive automation. - Ingestion points:
scripts/record.mjsreads and parses JSON demo scripts to execute actions. - Boundary markers: The skill does not use explicit prompt delimiters but relies on the
scripts/demo-check.mjsutility to validate script safety. - Capability inventory: Capabilities include arbitrary shell command execution (gated), browser automation (allowing file and network access), and video file generation.
- Sanitization: The
demo-check.mjsgate provides comprehensive sanitization by scanning scripts for secrets (API keys, card numbers, private tokens), real email addresses, and brittle selectors before execution.
Audit Metadata