Back to skill

Security audit

Inversion Protocol

Security checks for vulnerabilities and agentic risk

Overview

This is a markdown-only reasoning skill that asks the agent to pause and think through failure modes before consequential actions.

Installers should understand that this skill may cause the agent to apply an extra reasoning checklist on many non-trivial tasks, which can add verbosity or small delays, but the reviewed artifact does not add tools, persistence, credentials, network access, or hidden execution behavior.

Vulnerability Patterns
  • 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
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (8)

Tool Parameter Abuse

High
Category
Tool Misuse
Content
## Scenario 3: The Confident Wrong Answer

**Task**: User asks "Is it safe to run `chmod 777` on my web server's upload
directory?"

### Without Inversion Protocol
Confidence
80% confidence
Finding
Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Vague Triggers

Medium
Confidence
95% confidence
Finding
The description says to use the skill when the agent is about to execute code, write files, run commands, answer complex questions, debug issues, make architectural decisions, or perform any action where being wrong has consequences. This trigger scope is extremely expansive and overlaps with common, everyday agent behavior, making it unclear when the skill should not activate beyond a few examples later in the file.

Vague Triggers

Medium
Confidence
92% confidence
Finding
The phrase "before any action where being wrong matters" and examples like "performing multi-step workflows" or situations where "the user has corrected you before" are subjective and open to broad interpretation. Although a few trivial exclusions are listed, the file still lacks sufficiently specific constraints to distinguish routine from non-routine cases consistently.

Sudo/Root Execution

Medium
Category
Privilege Escalation
Content
## Scenario 3: The Confident Wrong Answer

**Task**: User asks "Is it safe to run `chmod 777` on my web server's upload
directory?"

### Without Inversion Protocol
Confidence
80% confidence
Finding
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Sudo/Root Execution

Medium
Category
Privilege Escalation
Content
## Scenario 3: The Confident Wrong Answer

**Task**: User asks "Is it safe to run `chmod 777` on my web server's upload
directory?"

### Without Inversion Protocol
Confidence
80% confidence
Finding
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Unsafe Defaults

Medium
Category
Tool Misuse
Content
### Without Inversion Protocol

Agent explains what chmod 777 does and warns it's "generally not recommended"
but provides the command. User runs it. Attacker exploits the world-writable
directory within hours.

### With Inversion Protocol
Confidence
70% confidence
Finding
Tool defaults are unsafe or overly permissive (e.g. disabled TLS verification, no authentication, world-writable permissions). Unsafe defaults widen the attack surface.

Unsafe Defaults

Medium
Category
Tool Misuse
Content
### Without Inversion Protocol

Agent explains what chmod 777 does and warns it's "generally not recommended"
but provides the command. User runs it. Attacker exploits the world-writable
directory within hours.

### With Inversion Protocol
Confidence
70% confidence
Finding
Tool defaults are unsafe or overly permissive (e.g. disabled TLS verification, no authentication, world-writable permissions). Unsafe defaults widen the attack surface.

Sudo/Root Execution

Medium
Category
Privilege Escalation
Content
→ Adjust: Explain the risk clearly, provide the SAFE permission set instead
```

**Result**: Agent provides `chmod 750` with www-data group ownership —
functionally equivalent for the user's need, without the security hole.

---
Confidence
80% confidence
Finding
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Static analysis

No suspicious patterns detected.