contract-deployer
Warn
Audited by Gen Agent Trust Hub on Aug 3, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSCREDENTIALS_UNSAFEDATA_EXFILTRATION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/deploy.pyfeatures a functioninstall_dependenciesthat usessubprocess.check_callto executepip installcommands at runtime if required packages are missing. - [EXTERNAL_DOWNLOADS]: The skill automatically fetches external components at runtime:
- It uses
pipto download and installweb3andpy-solc-xfrom the Python Package Index (PyPI). - It utilizes the
install_solc()function frompy-solc-xto download Solidity compiler binaries from remote sources (GitHub) based on a user-provided version string. - [DATA_EXPOSURE]: The
deploy_contracttool accepts afile_pathparameter which is passed directly tocompile_files. This allows the agent to read arbitrary files from the filesystem. If a non-Solidity file (like.envor~/.ssh/id_rsa) is provided, the resulting error messages or compilation output could leak sensitive file content. - [CREDENTIALS_UNSAFE]: The skill is designed to handle a blockchain
private_keyas both an environment variable (PRIVATE_KEY) and a tool parameter. While necessary for smart contract deployment, this pattern involves the handling of highly sensitive cryptographic secrets within the agent context. - [DYNAMIC_EXECUTION]: The script employs
__import__for dynamic module checking and loading inscripts/deploy.pyduring its dependency verification phase.
Audit Metadata