Back to skill

Security audit

SocQ Facebook Ad Library Research

Security checks for vulnerabilities and agentic risk

Overview

This skill coherently connects an agent to SocQ to research public Facebook Ad Library data, with disclosed API-key use, external requests, billing guidance, and no hidden persistence or destructive behavior.

Install only if you intend to send Facebook Ad Library research queries and your SocQ API key to SocQ. Prefer the hosted MCP or a reviewed, pinned/preinstalled socq CLI where possible, set API-key credit/rate limits, and confirm costs before broad or repeated collections.

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 (4)

Rp1

Medium
Category
MCP Rug Pull
Confidence
94% confidence
Finding
The skill permits execution via `npx` without pinning an exact package version, which creates a supply-chain risk: a future malicious or compromised release of `@socq/cli` could be fetched and executed at runtime. In an agent context, this is more dangerous because the skill explicitly encourages automated tool installation/execution, increasing the chance of unattended execution of unreviewed code.

Rp1

Medium
Category
MCP Rug Pull
Confidence
97% confidence
Finding
The instruction `npx @socq/cli` downloads and runs the latest published package version, exposing users to package takeover, malicious updates, or dependency compromise. Because this skill also handles an API credential (`SOCQ_API_KEY`), execution of an unpinned package could lead to credential theft or unauthorized external actions.

External Transmission

Medium
Category
Data Exfiltration
Content
value: "socq"
      description: "Hosted SocQ Facebook Ad Library data tools"
      transport: "streamable_http"
      url: "https://api.socq.ai/mcp?platforms=facebook-ad-library"
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
value: "socq"
      description: "Hosted SocQ Facebook Ad Library data tools"
      transport: "streamable_http"
      url: "https://api.socq.ai/mcp?platforms=facebook-ad-library"
Confidence
50% confidence
Finding
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Static analysis

Detected: suspicious.exposed_secret_literal

File appears to expose a hardcoded API secret or token.

Critical
Code
suspicious.exposed_secret_literal
Location
SKILL.md:32