Back to skill

Security audit

Ahrefs MCP

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward guide for connecting an AI client to Ahrefs MCP for SEO data, with expected account authorization and API usage considerations.

Install only if you trust the AI client you connect to Ahrefs. Review the requested permissions, set monthly API unit limits where possible, monitor usage, and revoke the MCP API key when you no longer need it.

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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (10)

External Transmission

Medium
Category
Data Exfiltration
Content
Use the **Streamable HTTP** endpoint (recommended):
```
https://api.ahrefs.com/mcp/mcp
```

Legacy SSE endpoint (deprecated in many tools):
Confidence
50% confidence
Finding
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

External Transmission

Medium
Category
Data Exfiltration
Content
Use the **Streamable HTTP** endpoint (recommended):
```
https://api.ahrefs.com/mcp/mcp
```

Legacy SSE endpoint (deprecated in many tools):
Confidence
50% confidence
Finding
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

External Transmission

Medium
Category
Data Exfiltration
Content
Use the **Streamable HTTP** endpoint (recommended):
```
https://api.ahrefs.com/mcp/mcp
```

Legacy SSE endpoint (deprecated in many tools):
Confidence
50% confidence
Finding
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

External Transmission

Medium
Category
Data Exfiltration
Content
Use the **Streamable HTTP** endpoint (recommended):
```
https://api.ahrefs.com/mcp/mcp
```

Legacy SSE endpoint (deprecated in many tools):
Confidence
50% confidence
Finding
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

External Transmission

Medium
Category
Data Exfiltration
Content
Use the **Streamable HTTP** endpoint (recommended):
```
https://api.ahrefs.com/mcp/mcp
```

Legacy SSE endpoint (deprecated in many tools):
Confidence
50% confidence
Finding
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

External Transmission

Medium
Category
Data Exfiltration
Content
Use the **Streamable HTTP** endpoint (recommended):
```
https://api.ahrefs.com/mcp/mcp
```

Legacy SSE endpoint (deprecated in many tools):
Confidence
50% confidence
Finding
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

External Transmission

Medium
Category
Data Exfiltration
Content
Use the **Streamable HTTP** endpoint (recommended):
```
https://api.ahrefs.com/mcp/mcp
```

Legacy SSE endpoint (deprecated in many tools):
Confidence
50% confidence
Finding
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

External Transmission

Medium
Category
Data Exfiltration
Content
Use the **Streamable HTTP** endpoint (recommended):
```
https://api.ahrefs.com/mcp/mcp
```

Legacy SSE endpoint (deprecated in many tools):
Confidence
50% confidence
Finding
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

External Transmission

Medium
Category
Data Exfiltration
Content
Use the **Streamable HTTP** endpoint (recommended):
```
https://api.ahrefs.com/mcp/mcp
```

Legacy SSE endpoint (deprecated in many tools):
Confidence
50% confidence
Finding
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Missing User Warnings

Medium
Confidence
91% confidence
Finding
The setup guide tells users to authorize the MCP connection and notes that an API key will be generated, but it does not clearly warn that connecting the server exposes Ahrefs account data to the AI client and consumes billable API units. In a skill whose purpose is to connect a third-party AI tool to account-scoped SEO data, omission of that warning can lead users to authorize access without understanding privacy and cost implications.

Static analysis

No suspicious patterns detected.