tronbox
Pass
Audited by Gen Agent Trust Hub on Oct 2, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONREMOTE_CODE_EXECUTIONDYNAMIC_EXECUTIONCREDENTIALS_UNSAFE
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill instructs the agent to process and execute content from project files, which creates an attack surface for indirect prompt injection if those files originate from untrusted sources.\n
- Ingestion points: The agent is guided to read and process contract sources in
contracts/, migration scripts inmigrations/, and test files intest/(refer tocore-compile.md,core-migrations.md, andcore-testing.md).\n - Boundary markers: There are no explicit boundary markers or warnings defined to distinguish between trusted instructions and potentially malicious data within these project files.\n
- Capability inventory: The
tronbox migrateandtronbox testcommands execute arbitrary JavaScript, whiletronbox compileprocesses Solidity code, all of which could be manipulated by malicious inputs.\n - Sanitization: No sanitization or validation of the content within the project files is mentioned before execution by the tool.\n- [REMOTE_CODE_EXECUTION]: Several documented CLI commands involve fetching and executing code from external or remote sources.\n
- The
tronbox unboxcommand allows for the download and extraction of project templates from remote URLs or registries, which could lead to the execution of untrusted code if the source is compromised (features-init-unbox.md).\n - The
tronbox initcommand automatically executesnpm installwhen apackage.jsonfile is present in a sample project, potentially installing and running scripts from third-party packages (features-init-unbox.md).\n- [DYNAMIC_EXECUTION]: The migration system uses dynamic execution to manage the deployment of smart contracts.\n - Migration scripts (JavaScript) are executed within a virtual machine (VM) context, enabling the execution of logic defined within the
migrations/directory at runtime (core-migrations.md).\n- [CREDENTIALS_UNSAFE]: The documentation addresses the handling of private keys for network deployment.\n - While example placeholders are used, the documentation correctly identifies and promotes the security best practice of using environment variables (e.g.,
process.env.PRIVATE_KEY) and.envfiles to manage secrets securely (core-config.md,core-cli.md).
Audit Metadata