frappe-bench-cli
Warn
Audited by Gen Agent Trust Hub on Jun 14, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTIONCREDENTIALS_UNSAFE
Full Analysis
- [COMMAND_EXECUTION]: The skill enables high-privilege system and application management through the
benchCLI. bench consoleprovides an interactive Python shell with the Frappe environment loaded.bench mariadbprovides direct access to the database shell.bench executeallows the execution of arbitrary Python functions within the context of an app.- [EXTERNAL_DOWNLOADS]: The
bench get-appcommand is used to download source code from remote repositories. While the example uses GitHub, the command supports arbitrary URLs. - [REMOTE_CODE_EXECUTION]: The workflow of downloading external code (
get-app) followed by installation (install-app) or execution (migrate,execute) allows for the execution of unverified remote code. - [CREDENTIALS_UNSAFE]: Several administrative tasks involve sensitive data handling.
bench set-admin-password <pwd>accepts passwords as plain-text command-line arguments, which typically remain in the user's shell history.bench set-configis used to write secrets directly to configuration files.- [PROMPT_INJECTION]: The skill exhibits an attack surface for indirect prompt injection (Category 8).
- Ingestion points: Site hostnames, application names, and Git URLs provided to commands like
new-siteorget-app(SKILL.md). - Boundary markers: None identified; untrusted inputs are interpolated directly into shell commands.
- Capability inventory: Subprocess execution via
bench, database access viamariadb, and arbitrary Python execution viaconsole/execute(SKILL.md). - Sanitization: No evidence of input validation or escaping for the parameters passed to the bench CLI.
Audit Metadata