/iblai-vibe:iblai-vibe-security-prompt-injectionfrom ibl.ai vibe
Audits AI-integrated applications for prompt injection, LLM privilege escalation, and agent security vulnerabilities. Maps attack surface across direct, indirect, and cross-privilege injection vectors.
Ships in ibl.ai vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Audit applications that use AI features, LLM integrations, or AI agents for prompt injection, privilege escalation, and authorization bypass.
Do NOT craft attack payloads against production systems without explicit authorization. CTF and authorized red-team contexts are fine — anything else is not.
Prompt injection is LLM01 in the OWASP Top 10 for LLMs — the #1 vulnerability in LLM-integrated apps. Untrusted input influences the instructions an LLM follows, causing it to ignore its system prompt, leak secrets, or take unauthorized actions.
Three attack classes:
Multi-organization ibl.ai-style platforms are especially exposed to cross-privilege and cross-organization leakage variants — audit those paths first.
Find every place the app uses AI. Direct LLM API calls AND higher-level AI features:
Grep for LLM API calls:
- openai, anthropic, cohere, replicate, ollama
- ChatCompletion, messages.create, generate, complete
- langchain, llamaindex, autogen, crewai
Also look for AI features that may not be obvious LLM calls:
- AI-powered search or recommendations
- AI content generation (summaries, descriptions, emails)
- AI chatbots or copilots embedded in the app
- AI-assisted form completion or auto-fill
- AI moderation or classification
- AI-driven workflow automation
- MCP (Model Context Protocol) servers and tool registrations
For each integration, document:
Inspect how prompts are assembled.
Unsanitized interpolation:
# VULNERABLE — user input directly in prompt
prompt = f"Summarize this: {user_input}"
# VULNERABLE — external data injected without marking
prompt = f"Answer based on this context: {rag_results}"
Missing input/output boundaries:
# BETTER — clear delimiters separating instructions from data
prompt = f"""Summarize the text between the <document> tags.
<document>
{user_input}
</document>"""
Secrets in system prompts:
# VULNERABLE — API keys, database credentials, or internal URLs in system prompt
system = f"You are a helper. Use API key {API_KEY} to call..."
Check for:
Trace what happens with LLM responses.
Rendered as HTML (XSS via LLM):
// VULNERABLE — LLM output rendered as raw HTML
<div dangerouslySetInnerHTML={{ __html: llmResponse }} />
If the LLM can be tricked into outputting <script> tags or event
handlers and the output is rendered unsanitized, that's XSS.
Executed as code:
# VULNERABLE — LLM output passed to eval/exec
exec(llm_response)
Used in database queries:
# VULNERABLE — LLM output used in raw SQL
cursor.execute(f"SELECT * FROM {llm_response}")
Passed to another LLM (chained injection):
If LLM A's output becomes LLM B's input, instructions propagate through the chain.
If the LLM has tools, function calls, or operates as an autonomous agent:
Tool inventory and validation:
# VULNERABLE — LLM can call any tool without validation
result = execute_tool(tool_name=llm_choice, args=llm_args)
# BETTER — allowlist + argument validation + confirmation for destructive actions
if tool_name not in ALLOWED_TOOLS:
raise ValueError("Tool not permitted")
validated_args = validate_tool_args(tool_name, llm_args)
if tool_name in DESTRUCTIVE_TOOLS:
require_user_confirmation(tool_name, validated_args)
AI agent-specific risks:
Look for autonomous-agent patterns (agent loops, multi-agent orchestration, agent frameworks):
Test whether the system prompt can be extracted.
Common extraction attempts:
Check if the application:
Critical for role-based access, multi-organization data, or tiered permissions — i.e., every ibl.ai-style B2B platform.
Confused deputy — does the AI inherit the right permissions?
# VULNERABLE — AI queries database with admin-level service account
results = db.query(ai_generated_sql) # Bypasses row-level security
# BETTER — AI queries execute under the requesting user's permissions
results = db.query(ai_generated_sql, user_context=request.user)
Privilege escalation through AI:
Multi-tenant data leakage:
Cross-privilege injection:
Permission check checklist for AI features:
| Check | Status | Notes |
|---|---|---|
| AI tool calls go through the same auth middleware as user actions | ||
| AI database queries are scoped to the requesting user's permissions | ||
| RAG retrieval is filtered by organization/user access level | ||
| AI cannot access admin APIs on behalf of non-admin users | ||
| Shared data consumed by AI is treated as untrusted input | ||
| AI feature access itself is gated by user role where appropriate |
Check what defenses are in place and whether they're enough:
| Defense | Present? | Notes |
|---|---|---|
| Input validation/sanitization | Strip or escape control characters, limit length | |
| Prompt delimiters | Clear boundaries between instructions and data | |
| Output validation | Check LLM output before rendering/executing/storing | |
| Tool call validation | Allowlist tools, validate arguments, gate destructive actions | |
| Privilege separation | LLM operates with minimum necessary permissions | |
| User-scoped AI queries | AI data access filtered by the requesting user's role and organization | |
| Agent loop limits | Max iterations, token budgets, timeouts for autonomous agents | |
| Agent memory isolation | Untrusted data cannot poison agent memory/state | |
| MCP server auth | MCP tools authenticated and scoped per user | |
| Rate limiting | Prevent automated injection attempts | |
| Monitoring/logging | Log prompts, completions, and tool calls for anomaly detection | |
| Human-in-the-loop | Require approval for high-risk actions |
# Prompt Injection Audit Report
## Application: [name]
## Date: [date]
### LLM Integration Map
| Integration | Model | User Input? | External Data? | Tools? | Output Usage |
|-------------|-------|-------------|----------------|--------|-------------|
### Findings
#### [SEVERITY] [Title]
**File:** `path/to/file:line`
**Category:** Direct Injection / Indirect Injection / Cross-Privilege Injection / Prompt Leaking / Insecure Output / Tool Abuse / Agent Security / Permission Bypass
**Description:** [What the vulnerability is]
**Attack scenario:** [How an attacker could exploit this]
**Vulnerable code:**
[code snippet]
**Remediation:**
[Fixed code with explanation]
---
### Defense Assessment
| Defense Layer | Status | Recommendation |
|--------------|--------|----------------|
### Prioritized Remediation
1. [Critical — permission bypass, privilege escalation, or multi-tenant data leakage through AI]
2. [Critical — exploitable injection paths with tool/agent access]
3. [High — unsanitized user input in prompts, agent memory poisoning]
4. [Medium — missing output validation, unbounded agent loops]
5. [Low — defense-in-depth improvements, monitoring gaps]
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub iblai/base --plugin iblai-vibe166 skills in this plugin
/iblai-api-agent-accessManage role-based access to an ibl.ai agent via the platform API — list role policies, search users/groups, and grant/revoke editor, chat, or analytics_viewer roles for users, groups, and emails. Use when controlling who can edit, chat with, or view analytics for an agent./iblai-api-agent-auditRead an ibl.ai agent's audit log via the platform API — a who-changed-what trail filterable by action, actor email, and date range. Read-only. Use when investigating configuration changes to an agent./iblai-api-agent-chatSet up live chat with a deployed ibl.ai agent by wiring the hosted iblai-api-agent-chat MCP server into the project (.mcp.json / claude mcp add) using the .env Api-Token and a chosen agent's unique id, or by signing in from claude.ai, ChatGPT or Claude Desktop with only the URL. Use to enable runtime conversations with an agent, and to list or disconnect the apps a user has connected. The actual chatting then happens through the MCP server's tools.Other plugins' skills for the same job