codex-image-gallery
Pass
Audited by Gen Agent Trust Hub on Sep 7, 2026
Risk Level: SAFECOMMAND_EXECUTIONDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill instructs the agent to run a local Node.js server and perform health checks using the command line.
- Evidence:
node scripts/server.mjsandnode -e 'fetch(...)'commands documented inSKILL.md. - [DATA_EXPOSURE]: The skill indexes and serves files from the local filesystem, specifically targeting the
~/.codex/generated_imagesdirectory. - Evidence: The
scripts/server.mjsfile usesnode:fsmodules to read directory contents and stream image files to the local web interface. - Mitigation: The server implementation includes a
safePathfunction that usespath.resolveand prefix checking to prevent directory traversal attacks, ensuring the server cannot serve files outside the intended gallery root. - [INDIRECT_PROMPT_INJECTION]: The web interface processes and displays metadata (such as filenames) originating from the local filesystem, which could theoretically contain malicious scripts if the filenames were attacker-controlled.
- Evidence: Filenames and session IDs are rendered in
assets/index.html. - Mitigation: The frontend includes an
escapeHtmlutility function that is consistently applied to image metadata before rendering, mitigating potential Cross-Site Scripting (XSS) vulnerabilities.
Audit Metadata