effect-arbitrary
Warn
Audited by Gen Agent Trust Hub on Sep 2, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill provides a CLI wrapper
scripts/generate.js(compiled fromscripts/generate.ts) meant to be executed viabun. While the primary intent is generating test data, it facilitates the execution of local scripts. - [DYNAMIC_EXECUTION]: In
scripts/generate.ts, the skill usesimport()with a dynamic URL constructed from a user-supplied module path:import(pathToFileURL(resolve(module)).href). This behavior allows the execution of arbitrary JavaScript/TypeScript code contained in the targeted file. While this is the core functionality of the skill (loading a schema definition), it presents a risk if an attacker can influence themoduleargument to point to a malicious file, leading to arbitrary code execution within the agent's context.
Audit Metadata