Back to skill

Security audit

Messenger

Security checks for vulnerabilities and agentic risk

Overview

This skill is a documentation-only guide for Facebook Messenger API workflows and its token references are expected for that purpose.

Before installing, confirm you are comfortable using a skill that helps compose Messenger API requests with Page messaging permissions. Treat Page access tokens and App Secrets as sensitive, keep permissions least-privilege, validate webhook signatures, and avoid logging or sharing tokens.

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

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 · SKILL.md (reported line 31)May include surrounding context.

md
# Permissions and Tokens

## 1) Token types
- User access token (used to fetch Page token).
- Page access token (used for Send API and management).

## 2) Common permissions

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 · references/messenger-api-overview.md (reported line 6)May include surrounding context.

md
# Permissions and Tokens

## 1) Token types
- User access token (used to fetch Page token).
- Page access token (used for Send API and management).

## 2) Common permissions

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 · references/messenger-api-overview.md (reported line 13)May include surrounding context.

md
# Permissions and Tokens

## 1) Token types
- User access token (used to fetch Page token).
- Page access token (used for Send API and management).

## 2) Common permissions

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 · references/permissions-and-tokens.md (reported line 4)May include surrounding context.

md
# Permissions and Tokens

## 1) Token types
- User access token (used to fetch Page token).
- Page access token (used for Send API and management).

## 2) Common permissions

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 · references/permissions-and-tokens.md (reported line 5)May include surrounding context.

md
# Permissions and Tokens

## 1) Token types
- User access token (used to fetch Page token).
- Page access token (used for Send API and management).

## 2) Common permissions

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 · references/permissions-and-tokens.md (reported line 14)May include surrounding context.

md
## 3) Token flow
- Obtain user token with required scopes.
- Call `/me/accounts` to fetch Page access token.
- Use Page token for messaging actions.

## 4) Operational guidance

Static analysis

No suspicious patterns detected.