Back to skill

Security audit

Supermetrics

Security checks for vulnerabilities and agentic risk

Overview

This is a coherent Supermetrics API helper that uses an API key to retrieve marketing data, with some disclosure and trigger-scoping improvements advisable but no hidden or malicious behavior found.

Install only if you intend to let the agent query Supermetrics-connected marketing accounts. Treat the API key and returned account/report data as sensitive, and prefer invoking it only for explicit Supermetrics or connected marketing-platform reporting tasks.

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
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (8)

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · supermetrics.py (reported line 14)May include surrounding context.

python
from urllib.request import Request, urlopen

BASE_URL = "https://mcp.supermetrics.com"
ENV_FILE = Path.home() / ".openclaw" / "skills" / "supermetrics-openclawd" / ".env"


def _load_env_file() -> dict[str, str]:

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · supermetrics.py (reported line 18)May include surrounding context.

python
def _load_env_file() -> dict[str, str]:
    """Load variables from .env file."""
    env_vars: dict[str, str] = {}
    if ENV_FILE.exists():
        for line in ENV_FILE.read_text().splitlines():

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · supermetrics.py (reported line 30)May include surrounding context.

python
def _load_env_file() -> dict[str, str]:
    """Load variables from .env file."""
    env_vars: dict[str, str] = {}
    if ENV_FILE.exists():
        for line in ENV_FILE.read_text().splitlines():

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · supermetrics.py (reported line 30)May include surrounding context.

python
def _get_api_key() -> str:
    """Get API key from environment or .env file."""
    key = os.environ.get("SUPERMETRICS_API_KEY")
    if not key:
        env_vars = _load_env_file()

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
92% confidence
Finding

The skill declares required environment access and its documented functionality clearly depends on networked API calls, but it does not declare an explicit tool scope such as permissions or allowed-tools. This weakens least-privilege controls and makes it harder for a host system or reviewer to understand and restrict what the skill can access, increasing the risk of unintended external calls or secret exposure.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill requires a SUPERMETRICS_API_KEY and is designed to query connected marketing accounts, but the description and usage do not warn that requests send data to an external service or that account metadata and analytics may be retrieved. In a credentialed integration, missing disclosure increases the risk of users invoking the skill without understanding external data handling or the sensitivity of accessible account information.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

Several triggers are broad terms like "analytics," "marketing data," and "marketing report," which can cause the skill to activate in situations broader than intended. Over-broad activation can route user requests to a skill that uses external credentials and accesses third-party account data, increasing the chance of unintended data access or disclosure.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The _call_api function sends caller-supplied parameters to https://mcp.supermetrics.com using HTTP POST, which can include account identifiers, selected fields, filters, and date ranges from marketing platforms. The file contains no confirmation prompt, user-facing log, or warning that user or system data will be sent to an external service.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.