jules-config
Fail
Audited by Gen Agent Trust Hub on Sep 4, 2026
Risk Level: HIGHCOMMAND_EXECUTIONPRIVILEGE_ESCALATIONCREDENTIALS_UNSAFEINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
jules-init.pygenerates and executes shell commands to detect project structure, readpackage.json,mise.toml, and docker-compose files. It also programmatically writes and sets execution permissions (chmod 755) for a new shell scriptscripts/jules-setup.sh. - [PRIVILEGE_ESCALATION]: The generated
scripts/jules-setup.shcontains multiplesudocommands for installing system packages (apt-get install), managing services (systemctl start), and performing administrative database operations (sudo -u postgres psql). This assumes the environment allows passwordless sudo or requires the user to grant elevated privileges to an automated script. - [CREDENTIALS_UNSAFE]: The
jules-init.pyutility generates hardcoded database credentials based on the repository name and writes them directly into the generatedjules-setup.shfile. Specifically, it creates roles and users with passwords identical to the username (e.g.,CREATE ROLE tiller WITH LOGIN PASSWORD 'tiller'). - [INDIRECT_PROMPT_INJECTION]: The skill automatically appends setup instructions to
AGENTS.mdorREADME.md. These instructions direct future AI agents to execute the generatedscripts/jules-setup.shscript. This creates a surface where a malicious repository could include a pre-existingjules-setup.shor trigger the generation of one that performs unauthorized actions when the next agent follows these instructions. - [COMMAND_EXECUTION]: The script modifies
mise.tomlby searching for and replacing shell command strings with more complex logic. This involves regex-based patching of configuration files that define execution hooks for themisetool.
Recommendations
- AI detected serious security threats
Audit Metadata