baoyu-electron-extract
Pass
Audited by Gen Agent Trust Hub on Sep 9, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/main.tsfile useschild_process.spawnandspawnSyncto execute shell commands. Specifically, it invokesnpxto run utility packages for ASAR extraction and code formatting. - [EXTERNAL_DOWNLOADS]: The skill relies on
npxto download and execute external packages@electron/asarandprettierfrom the npm registry at runtime if they are not already cached. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and process untrusted external data, which presents an indirect prompt injection surface.
- Ingestion points: The
scripts/main.tsscript reads user-provided.asarfiles and parses the content of embedded.js.mapfiles. - Boundary markers: No explicit boundary markers or instructions are used to separate untrusted data from agent instructions during processing.
- Capability inventory: The skill has the capability to write files to the local system (
writeFileSync,mkdirSync) and execute commands viaspawn. - Sanitization: The script implements path sanitization in
normalizeSourcePathandisSafeRelativePathto ensure that restored source files do not use malicious relative paths (e.g.,../../../) to escape the designatedrestored/output directory.
Audit Metadata