Back to skill

Security audit

PhantomBuster

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed PhantomBuster API wrapper, but users should treat its automation and downloaded results as potentially sensitive.

Install only if you intend to let the agent control your PhantomBuster workspace. Keep PHANTOMBUSTER_API_KEY scoped and private, review agent IDs before launch or abort commands, and handle downloaded CSVs as potentially personal or business-sensitive data subject to platform terms, privacy law, and internal retention rules.

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
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (7)

Tainted flow: 'req' from os.environ.get (line 49, credential/environment) → urllib.request.urlopen (network output)

Critical
Category
Data Flow
Confidence
90% confidence
Finding

Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.

Content

Scanner excerpt · pb.py (reported line 52)May include surrounding context.

python
req = urllib.request.Request(url, data=data, headers=headers, method=method)
    
    try:
        with urllib.request.urlopen(req, timeout=30) as response:
            return json.loads(response.read().decode('utf-8'))
    except urllib.error.HTTPError as e:
        error_body = e.read().decode('utf-8')

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 · pb.py (reported line 26)May include surrounding context.

python
def get_api_key():
    """Get API key from environment."""
    api_key = os.environ.get("PHANTOMBUSTER_API_KEY")
    if not api_key:
        print("Error: PHANTOMBUSTER_API_KEY environment variable not set", file=sys.stderr)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
89% confidence
Finding

The skill documents use of an API key via environment variable and networked API operations, but it does not declare any explicit tool scope or permissions boundary. That creates an authorization/least-privilege gap: an agent or runtime may permit broader env/network access than users expect, increasing the risk of secret exposure or unintended outbound requests.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

This skill facilitates scraping, automation, and result download for platforms like LinkedIn, Twitter, Instagram, and Google Maps, but it provides no privacy, consent, or data-handling warning. That omission can lead users to collect, export, or process personal data without understanding legal, policy, or confidentiality implications, especially when downloading CSV results from third-party storage.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · pb.py (reported line 22)May include surrounding context.

python
import urllib.request
import urllib.error

API_BASE = "https://api.phantombuster.com/api/v2"


def get_api_key():

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
96% confidence
Finding

The top-level docstring presents the available commands as list, launch, output, status, abort, and get. However, the code also implements and registers a fetch-result command later in the file, so the documentation actively understates the tool's capabilities.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Low
Category
Not specified by scanner
Confidence
91% confidence
Finding

The implemented fetch-result capability is not described in the skill metadata/docstring, which creates a hidden data-export path beyond the declared operations. In an agentic environment, undocumented capabilities are risky because they can bypass user expectations and enable retrieval of scraped/exported datasets that may contain sensitive lead or social-media data.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.