Back to skill

Security audit

facebook-ads-library-scraper-api-skill

Security checks for vulnerabilities and agentic risk

Overview

The skill appears to do what it says, but it is too loose around scraping scope, contact-like data, and how users should handle the BrowserAct API key.

Review this skill before installing if you plan to use it for large-scale scraping, contact data, CRM enrichment, or recurring monitoring. Prefer setting BROWSERACT_API_KEY through an approved environment or secret store, do not paste API keys into chat, and only collect fields you have a lawful and policy-compliant reason to store or reuse.

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
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (3)

Vague Triggers

Medium
Confidence
84% confidence
Finding
The description uses broad trigger phrases like collecting public records, enriching datasets, and monitoring public web data, which could cause the agent to invoke this skill for loosely related scraping or data-harvesting requests. That increases the chance of over-collection, unintended use on borderline requests, or application in contexts with different legal/privacy expectations than Facebook Ads Library extraction.

Missing User Warnings

Medium
Confidence
91% confidence
Finding
The skill encourages exporting and reusing scraped structured data, including contact-like fields such as email, phone, and address, without any privacy, data-minimization, or compliance warning. This is dangerous because it normalizes downstream handling of potentially personal data and could facilitate non-compliant collection, enrichment, storage, or sharing of sensitive information from scraped results.

Ssd 3

Medium
Confidence
97% confidence
Finding
The script explicitly tells the user to 'Provide it to me or set it as an environment variable,' which normalizes handing a sensitive API key directly to the agent/operator instead of keeping it in a secure secret store or local environment. In an agent skill context, this increases the chance of credential disclosure to logs, chat history, intermediaries, or untrusted automation components.

Static analysis

No suspicious patterns detected.