T09 · Insecure Skill Coding Practices
- Location
protocol.py:162- Finding
Gemini API Key Exposed in Request URL Query String
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This appears to be a real multi-model debate tool, but it should be reviewed because it reads local AI credentials and identity data, sends rich context to external providers, and handles some secrets unsafely.
Review before installing. Use only scoped API keys you are comfortable using with this tool, avoid sensitive identity data or private debate content, and assume identity summaries and transcripts may be stored locally and sent to Google or xAI when automated rounds or synthesis run.
protocol.py:162Gemini API Key Exposed in Request URL Query String
protocol.py:177xAI Bearer Token and Sensitive Debate Payload Exposed Through Process Arguments
Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.
YOUR RESPONSE (as {my_info['name']}, Round {round_num}):"""
return prompt
def call_gemini(prompt, api_key, max_tokens=2000):
The skill advertises multi-provider debates and identity-aware context, but it does not clearly warn users that debate prompts, thread history, and identity snapshots may be transmitted to third-party AI providers. This creates a real privacy and data-governance risk because users may supply sensitive personal or organizational information without informed consent, especially given the persistent thread/history design.
subprocess module calls execute external commands. Without careful input validation, this enables command injection.
"max_tokens": max_tokens,
"temperature": 0.8,
})
proc = subprocess.run(
["curl", "-s", "--max-time", "120",
"https://api.x.ai/v1/chat/completions",
"-H", "Content-Type: application/json",
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
})
proc = subprocess.run(
["curl", "-s", "--max-time", "120",
"https://api.x.ai/v1/chat/completions",
"-H", "Content-Type: application/json",
"-H", f"Authorization: Bearer {api_key}",
"-d", payload],
The skill builds prompts containing identity graph data and full transcript history, then sends that material to external model providers without any explicit consent, warning, or minimization step. Because identity data may contain sensitive beliefs, traits, contradictions, or profile metadata, this creates a real privacy and data-governance exposure.