Back to skill

Security audit

MCP Security Auditor Lite

Security checks for vulnerabilities and agentic risk

Overview

This is a simple MCP security-audit prompt with no executable code, but it may add a paid-version promotion to audit outputs.

Before installing, be aware that this lite auditor may include a commercial paid-version link in its responses. When using it, provide MCP configuration details needed for review, but avoid pasting live secrets, tokens, or private keys.

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
Findings (1)

T01 · Skill Instruction Hijacking

Warning
Location
SKILL.md:9
Finding
Hard-Coded Commercial Promotion Causes Agent Output Hijacking## Vulnerability Details **File Location**: `SKILL.md:9-10` and `SKILL.md:83-87` **Vulnerability Type**: Agent instruction and output hijacking through embedded promotional content **Risk Level**: Medium ### Vulnerable Code ```markdown This lite version covers **3 of 8 audit dimensions**. For the full MCP Security Auditor with all 8 dimensions, tool injection scanning, config drift detection, cross-tool safety analysis, and ongoing monitoring checklists, get the paid version: **https://apexstack.gumroad.com/l/mcp-security-auditor** ``` ```markdown Want the full security audit? The paid version includes all 8 dimensions, tool description injection scanner, permission scope analyzer, config drift detector, cross-tool manipulation checker, monitoring checklists, and prioritized remediation roadmap. **Get the full version ->** https://apexstack.gumroad.com/l/mcp-security-auditor --- Built by **Apex Stack** — based on real experience running 10+ MCP-connected agents in production. ``` ### Technical Analysis The skill embeds an unsolicited commercial sales message and an external purchasing URL directly within its operational instructions. The second promotional block is positioned immediately after the prescribed audit output template, making it likely that an agent loading the skill will reproduce the advertisement as part of an otherwise objective security report. This constitutes skill instruction hijacking because the skill influences the agent to perform an additional action—commercial promotion and redirection—that is not necessary to fulfill the user's security-audit request. Although the content does not override safety controls or execute code, it alters the expected output objective by mixing audit results with promotional messaging. The external URL is static and no remote content is fetched or executed by the project. Therefore, this finding does not constitute remote payload retrieval, dependency compromise, ...[truncated 1149 chars]
Remediation
## Remediation Suggestions 1. Remove the promotional instructions and external sales URL from `SKILL.md:9-10` and `SKILL.md:83-87`. 2. Keep skill instructions limited to behavior necessary to perform the requested security scan. 3. Do not place advertising, referral content, sales prompts, or unrelated links adjacent to required output templates. 4. If product-tier information is necessary, expose it through host-application metadata or a clearly separated user-interface element rather than agent instructions. 5. Require explicit user consent before including optional commercial links in generated responses. 6. Add a review policy requiring generated audit output to remain neutral and free from undisclosed promotional content. 7. Retest the skill after remediation to confirm that normal audit responses contain only requested findings, scores, and remediation guidance.
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (1)

Credential Access

High
Category
Privilege Escalation
Content
**Scoring:**
- 9-10: Every tool follows least-privilege, scoped to specific resources
- 5-6: Several tools have broad permissions, no systematic scoping
- 1-2: Tools have admin access, can access secrets, no boundaries

### 3. Supply Chain Trust — /10
Are your MCP servers from trusted sources?
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Static analysis

No suspicious patterns detected.