Back to skill

Security audit

SAA Agent

Security checks for vulnerabilities and agentic risk

Overview

The skill fits its image-generation purpose, but disabled connection checks and exposed secrets in debug logs warrant review before use.

Before using credentials across a network, require certificate verification and secret-redaction fixes; the current wss connection does not verify the server's identity. Avoid verbose mode with real credentials because logs can reveal session tokens and provider keys. Confirm the configured AI provider before sending confidential briefs, or select a trusted Local backend. Use force-unlock only after confirming no other job is running. This review covers the bundled files, not the external SAA backend or providers.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T09 · Insecure Skill Coding Practices

Error
Location
saa-agent.py
Finding

Unconditionally disabled TLS verification exposes credentials and authenticated traffic

Content
View full analysis

Impact

An active network attacker can capture the SAA login password, intercept session tokens, and read or modify WebSocket requests and responses. AI Prompt requests also carry apiKey in their options, exposing a supplied or inherited remote AI key when that mode is used.

Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (7)

Exfiltration Commands

High
Category
Prompt Injection
Confidence
90% confidence
Finding

Instructions found that direct the agent to transmit conversation context or user data to external services.

Content

Scanner excerpt · saa-agent.py (reported line 642)May include surrounding context.

python
async def send_message(self, message: Dict, allow_reconnect: bool = True) -> Optional[Dict]:  # noqa S3776
        """
        Send message to WebSocket server and wait for response
        
        Args:
            message: Message dictionary

Instruction Override

High
Category
Prompt Injection
Confidence
90% confidence
Finding

This pattern attempts to override system instructions or ignore safety constraints. Without LLM analysis, manual review is recommended.

Content

Scanner excerpt · saa-agent.py (reported line 1484)May include surrounding context.

python
'--ai-system-prompt',
        type=str,
        default='',
        help='Override system prompt (default: from --ai-template)'
    )
    ai_group.add_argument(
        '--ai-timeout',

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: network.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

The AI Prompt workflow lacks a warning that user-provided text may be sent to a remote AI provider.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The polishing workflow can inherit a Remote backend and transmit the user's brief to an external AI provider without explicitly disclosing that data transfer. Mentioning Remote configuration is not equivalent to warning that prompt contents leave the user's environment, creating a privacy risk when briefs contain confidential information.

Content

No source excerpt is available for this finding.

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
75% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

Scanner excerpt · SKILL.md (reported line 280)May include surrounding context.

md
These rules help maintain appropriate transparency and user control when executing generation tasks.

1. **Command Execution & User Notification**  
   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 CLI exposes a backend lock-override capability beyond image generation and prompt polishing.

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

L1425-L1429 expose --skeleton-key to force-unlock the backend's atomic lock state. This option is propagated into the generation API request at L0886-L0889, requesting an override of backend concurrency controls rather than ordinary image generation or prompt polishing. Backend lock administration is not declared in the skill manifest.

Content

No source excerpt is available for this finding.

The default scene-polishing workflow specifies English output without user opt-in.

Low
Category
Output Handling
Confidence
99% confidence
Finding

The default template guidance explicitly maps scenes to an English paragraph. This specifies an output language without offering a language choice or documenting a technical requirement that justifies English-only output.

Content

No source excerpt is available for this finding.