nanobanana-image-gen
Fail
Audited by Gen Agent Trust Hub on Oct 9, 2026
Risk Level: HIGHDATA_EXFILTRATIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [DATA_EXFILTRATION]: The
scripts/generate_image.pyscript allows for the reading and external transmission of arbitrary local files. Theupload_image_to_replicatefunction accepts a file path, opens it in binary mode, and uploads it to Replicate's infrastructure. This provides a direct path for exfiltrating sensitive information such as environment variables (.env), SSH keys (~/.ssh/id_rsa), or cloud provider credentials (~/.aws/credentials) if an attacker can influence the agent's input. - [EXTERNAL_DOWNLOADS]: The skill is vulnerable to Server-Side Request Forgery (SSRF). The generation script uses the
requestslibrary to fetch content from user-provided URLs in theimage_inputsparameter. This can be abused to make the agent scan internal networks, access metadata services, or retrieve data from restricted endpoints, which is then exfiltrated to the Replicate service. - [INDIRECT_PROMPT_INJECTION]: The skill exhibits a significant attack surface for indirect prompt injection.
- Ingestion points: User-provided text in the
promptand file paths/URLs inimage_inputswithinSKILL.mdandscripts/generate_image.py. - Boundary markers: The instructions do not define delimiters or provide warnings to the agent to ignore instructions embedded within the user-supplied data.
- Capability inventory:
scripts/generate_image.pyhas the capability to read local files, write to the filesystem, and perform arbitrary network requests. - Sanitization: There is no evidence of sanitization or validation for prompts, URLs, or file paths before they are used in operations.
- [COMMAND_EXECUTION]: The skill relies on the agent executing
scripts/generate_image.pyvia the command line with arguments derived from natural language prompts. Without strict argument sanitization, this pattern presents a risk of command injection, where a crafted prompt could cause the agent to execute unintended shell commands alongside or instead of the intended script.
Recommendations
- AI detected serious security threats
Audit Metadata