oathe / scan / reports / caution
Is mirabarukaso/saa-agent safe?
Use with caution. mirabarukaso/saa-agent is not clearly unsafe, but the audit flagged risks to review before you install it. Oathe's behavioral security audit gave the saa-agent skill by mirabarukaso a trust score of 79/100 with 10 findings, none critical or high.
https://github.com/openclaw/skills/tree/main/skills/mirabarukaso/saa-agent
Is mirabarukaso/saa-agent safe to install?
SAA Agent is a legitimate AI image generation skill connecting to a self-hosted ComfyUI/WebUI backend via WebSocket, with no evidence of malicious intent, data exfiltration to attacker infrastructure, or supply-chain compromise during installation. Two moderate security concerns warrant caution: SKILL.md instructs the agent to execute commands without user confirmation by default (reducing oversight), and the Python client disables SSL certificate verification for WSS connections (enabling credential theft via MITM). The install was clean with filesystem changes limited to the four skill files and network activity confined to the expected github.com clone.
What security issues were found in mirabarukaso/saa-agent?
Category Scores
Findings (10)
MEDIUM Default Execute-Without-Confirmation Instruction -20 ▶
SKILL.md explicitly instructs the agent to 'execute the command directly without asking for confirmation' by default. While the skill provides conditions under which to show the command first, making silent execution the default lowers the agent's natural caution threshold for shell command invocation. This is an attempt by skill content to shape agent behavior toward reduced oversight — a soft but real prompt-injection pattern.
Evidence: SKILL.md AI Agent Guidelines section 1: 'By default, execute the command directly without asking for confirmation. Show the full command and ask for approval only when: The user explicitly requests to review it first / The operation involves sensitive or high-impact parameters / The agent judges that showing the command is prudent in context'
MEDIUM SSL Certificate Verification Disabled -15 ▶
saa-agent.py disables both hostname verification and peer certificate validation for WSS connections. This is applied in the HTTP login() method (which POSTs credentials) and in the WebSocket connect() method. An attacker with MITM capability on the network path — e.g., on the same LAN as the user's SAA backend — can silently intercept authentication credentials and all WebSocket traffic without triggering any error.
Evidence: saa-agent.py login() (~line 193): 'ssl_context.check_hostname = False; ssl_context.verify_mode = ssl.CERT_NONE'; same pattern in connect() (~line 218); both paths use the bypassed context for all WSS communication
LOW Authentication Credentials Exposed on Command Line -12 ▶
The --username and --password parameters are passed as plaintext command-line arguments. On Linux, command-line arguments of running processes are readable via /proc/PID/cmdline by any process sharing the same user. This means other processes running as the same user (or root) can read the SAA backend credentials without any privilege escalation.
Evidence: SKILL.md example command: 'python3 saa-agent.py --ws-address "wss://..." --username "..." --password "..."'; argparse definitions in saa-agent.py create_parser()
LOW Unrestricted Filesystem Write Path via --output -10 ▶
The --output parameter accepts an arbitrary filesystem path. The ProgressCallback writes binary-decoded image data directly to this path without any sanitization, restriction to a working directory, or path traversal prevention. If an LLM agent is prompted to generate an image and a malicious actor influences the output path parameter, files can be written to sensitive locations accessible to the running user.
Evidence: saa-agent.py ProgressCallback.__call__: 'with open(self.output_file, "wb") as f: f.write(base64.b64decode(image_base64))'; no path validation before open()
LOW Inconsistent Retry Policy Creates Ambiguity -10 ▶
SKILL.md instructs agents never to auto-retry on backend busy errors, but the Error Handling section separately says 'consider one retry with --verbose to capture diagnostic information' for general failures. These two policies conflict and create ambiguity about when retry is acceptable. A confused agent might retry busy-state errors, worsening backend congestion or submitting duplicate generation requests.
Evidence: SKILL.md Backend Busy State: '1. DO NOT automatically retry the generation'; SKILL.md AI Agent Guidelines section 4: 'On failure: consider one retry with --verbose to capture diagnostic information'
LOW Credential Theft Risk via SSL MITM on WSS Connections -15 ▶
The combination of disabled SSL verification and plaintext credentials sent over the 'encrypted' WSS connection creates a practical credential theft scenario. An attacker in a position to intercept traffic (e.g., same network segment, compromised router, or DNS poisoning) can silently harvest SAA backend credentials. The user receives no warning because SSL errors are suppressed by design.
Evidence: saa-agent.py login() posts JSON with username/password to HTTPS endpoint using ssl.CERT_NONE; connect() uses same bypassed context for WebSocket that receives sensitive backend data
LOW Backend Lock Force-Override via --skeleton-key -10 ▶
The --skeleton-key parameter forcefully terminates remote backend atomic locks, potentially disrupting concurrent legitimate generation operations by other users sharing the same SAA instance. SKILL.md requires explicit user confirmation before use, which appropriately gates this capability, but the feature remains a privileged disruption tool that could cause data loss or corruption on the remote backend.
Evidence: SKILL.md: 'The --skeleton-key parameter forcefully unlocks the backend\'s atomic lock'; saa-agent.py transmits skeleton_key as third element in API params list to python_runComfyUI/python_runWebUI
INFO Base64 Stdout Output Channel -5 ▶
The --base64 flag dumps the entire generated image as base64 to stdout with explicit delimiters. This is documented and intentional for programmatic use. However, if the WebSocket backend were attacker-controlled, it could return arbitrary base64-encoded data (not just PNG image data) through this channel, potentially smuggling exfiltrated content through an apparent image generation workflow.
Evidence: saa-agent.py generate_image(): 'print(client.generated_image_base64)' between 'BASE64_IMAGE_DATA_START' and 'BASE64_IMAGE_DATA_END' delimiters; SKILL.md: 'This outputs base64-encoded image data(huge!!!) to stdout'
INFO Expected GitHub Network Connection During Install -8 ▶
The install process made outbound HTTPS connections to github.com (140.82.121.3:443) to perform the git sparse-checkout of the skill from the openclaw/skills monorepo. This is the expected, legitimate installation mechanism. No other unexpected outbound connections were observed, and the connection diff shows no new persistent listeners or established connections after install.
Evidence: auditd EXECVE: 'git clone --depth 1 --no-checkout --branch main -- https://github.com/openclaw/skills.git /tmp/monorepo-clone'; network: 140.82.121.3:443 (confirmed github.com IP)
INFO Canary Files Accessed Only by Audit Framework -3 ▶
Canary files (.env, .ssh/id_rsa, .aws/credentials, .npmrc, .docker/config.json, GCP credentials) were opened and read at audit timestamps 1771923310 (before git clone at 1771923315) and 1771923327 (post-install final check). Both access windows are attributable to the Oathe audit framework's baseline and post-install checks, not any code from the skill itself. All files were opened CLOSE_NOWRITE and the integrity check confirms no modification.
Evidence: inotifywait events at 08:55:10 (pre-clone); auditd PATH records audit(1771923310.163:253-258) and audit(1771923327.732:1410-1415); Monitoring: Canary File Integrity: '✅ All canary files intact'
Should I install mirabarukaso/saa-agent?
Oathe's verdict for mirabarukaso/saa-agent is CAUTION with a trust score of 79/100. Recommendation: Install with caution.