Back to skill

Security audit

Facebook Page Manager

Security checks for vulnerabilities and agentic risk

Overview

This Facebook Page automation skill is not overtly malicious, but it needs review because it can publish or delete Page content while using weak safeguards for powerful access tokens.

Install only if you are comfortable giving the tool a Facebook Page token that can publish and delete content. Prefer environment variables or a secret manager over `fb_config.json`, avoid never-expiring production tokens when possible, rotate/revoke tokens if exposed, and manually confirm any delete or reschedule target before running commands.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (3)

T09 · Insecure Skill Coding Practices

Error
Location
scripts/fb_post.py:30
Finding

Facebook access tokens and application secrets are transmitted through URL query parameters

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
scripts/fb_post.py:19
Finding

Long-lived privileged Page token is stored in an unprotected plaintext project file

Content
View full analysis
Remediation
View remediation

T08 · Insecure Dependencies

Note
Location
SKILL.md:22
Finding

Runtime dependency installation is unpinned and lacks integrity verification

Content
View full analysis
Remediation
View remediation
``` 2. Generate and verify cryptographic hashes for the package and all transitive dependencies, and install with `pip --require-hashes`. 3. Use a lock file generated by a dependency-management tool to make resolution reproducible. 4. Install from an explicitly approved package index rather than relying on arbitrary user-level index configuration. 5. Perform installation in an isolated virtual environment with minimal privileges. 6. Regularly review and update pinned versions after vulnerability and compatibility testing. 7. Add dependency and supply-chain scanning to the release process. ]]>
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
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (27)

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The skill claims support for comment, reply, and comment deletion, but the analysis indicates those capabilities are not actually implemented. This mismatch can mislead users and orchestrators into trusting the skill for moderation actions that will not occur, causing unsafe automation decisions, failed workflows, or incorrect assumptions about content state.

Content

No source excerpt is available for this finding.

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/get-token.md (reported line 1)May include surrounding context.

md
# Cách lấy Facebook Page Access Token

## Tổng quan

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/get-token.md (reported line 5)May include surrounding context.

md
# Cách lấy Facebook Page Access Token

## Tổng quan

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/get-token.md (reported line 22)May include surrounding context.

md
# Cách lấy Facebook Page Access Token

## Tổng quan

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/get-token.md (reported line 34)May include surrounding context.

md
# Cách lấy Facebook Page Access Token

## Tổng quan

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/get-token.md (reported line 87)May include surrounding context.

md
# Cách lấy Facebook Page Access Token

## Tổng quan

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 25)May include surrounding context.

md
---

## Bước 2: Lấy User Access Token tạm thời (để test)

1. Vào **[Graph API Explorer](https://developers.facebook.com/tools/explorer/)**
2. Chọn app của bạn ở dropdown

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
---

## Bước 2: Lấy User Access Token tạm thời (để test)

1. Vào **[Graph API Explorer](https://developers.facebook.com/tools/explorer/)**
2. Chọn app của bạn ở dropdown

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 146)May include surrounding context.

md
---

## Bước 2: Lấy User Access Token tạm thời (để test)

1. Vào **[Graph API Explorer](https://developers.facebook.com/tools/explorer/)**
2. Chọn app của bạn ở dropdown

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/get-token.md (reported line 18)May include surrounding context.

md
---

## Bước 2: Lấy User Access Token tạm thời (để test)

1. Vào **[Graph API Explorer](https://developers.facebook.com/tools/explorer/)**
2. Chọn app của bạn ở dropdown

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 · scripts/fb_post.py (reported line 256)May include surrounding context.

python
---

## Bước 2: Lấy User Access Token tạm thời (để test)

1. Vào **[Graph API Explorer](https://developers.facebook.com/tools/explorer/)**
2. Chọn app của bạn ở dropdown

Credential Access

High
Category
Privilege Escalation
Confidence
90% confidence
Finding

This section explicitly guides creation of a long-lived or non-expiring Page Access Token. Such tokens materially increase the blast radius and persistence of any local compromise or accidental disclosure, because an attacker who obtains the token may retain page-management access for an extended period without needing to reauthenticate.

Content

Scanner excerpt · references/get-token.md (reported line 61)May include surrounding context.

md
---

## Bước 4: Tạo Long-Lived Page Access Token (không hết hạn)

Page Access Token từ bước 3 thường **không hết hạn** nếu page đã publish và app đã qua review cơ bản.

Credential Access

High
Category
Privilege Escalation
Confidence
91% confidence
Finding

Stating that the Page Access Token can 'không hết hạn' ('never expires') normalizes use of persistent credentials without balancing security considerations. In a skill that automates posting and comment management, compromise of such a token enables durable unauthorized actions on the Facebook Page, making the operational context more dangerous.

Content

Scanner excerpt · references/get-token.md (reported line 63)May include surrounding context.

md
## Bước 4: Tạo Long-Lived Page Access Token (không hết hạn)

Page Access Token từ bước 3 thường **không hết hạn** nếu page đã publish và app đã qua review cơ bản.

Để chắc chắn, đổi sang long-lived token:

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
89% confidence
Finding

The skill documents networked actions against Facebook Graph API and handling of local config/token material, but it does not declare any explicit tool scope such as allowed tools or permissions. That creates a governance gap: an agent may invoke network or environment-capable execution without clear sandboxing or review boundaries, increasing the chance of unintended external actions or secret exposure.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The trigger language is very broad, covering nearly any request related to posting or managing Facebook Page content. Over-broad invocation criteria can cause the skill to activate for ambiguous user requests, leading to unintended posting, scheduling, or destructive content-management actions in an external account.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The skill documents post deletion commands without warning that the action is destructive or advising a confirmation step. In the context of a Facebook Page management skill, this is more dangerous because the action affects public-facing content and may be irreversible or difficult to recover.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

Comment deletion is presented as a simple command with no indication of irreversible impact, audit requirements, or confirmation. Because this skill manages public engagement on a Facebook Page, accidental or unauthorized comment removal can damage trust, moderation integrity, and recordkeeping.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The manifest explicitly advertises destructive actions such as deleting comments and deleting scheduled posts, but it does not disclose any confirmation flow, permission scoping, audit logging, or user-warning safeguards. In a social-media automation skill, these capabilities can be abused or triggered accidentally to remove content or community interactions, causing reputational harm and operational disruption for the Facebook Page.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

This markdown file documents deletion capabilities for posts and comments, but it does not include any warning that these actions are destructive or may be irreversible. Under the markdown-file criteria for missing user warnings, descriptions that affect user data or system integrity should disclose such risks.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The document instructs users to store a long-lived Facebook Page access token in a local JSON file, but only warns against committing it to Git. That omits important local-secret risks such as plaintext storage, accidental inclusion in backups, exposure via shared machines, permissive filesystem permissions, or leakage through logs and tooling; because the token may not expire, compromise can enable persistent unauthorized page management.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The manifest description explicitly advertises comment management capabilities such as commenting on posts, replying to comments, and deleting comments. In this file, there are no functions or CLI commands interacting with Facebook comment endpoints; the implemented behavior is limited to page post creation and scheduled post management.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

Many docstrings, help strings, examples, and runtime messages are presented only in Vietnamese, which imposes a specific language on users without opt-in. The file does not state that the tool is intentionally limited to Vietnamese-speaking users or provide an alternative locale.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The delete command performs destructive actions immediately against the Facebook Graph API with no confirmation prompt, dry-run mode, or additional guardrails. In an agent skill that may be invoked from natural-language workflows, this increases the chance of accidental or unauthorized content deletion if the wrong post ID is passed or a user request is misinterpreted.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
83% confidence
Finding

The skill's manifest description and user-facing documentation are entirely in Vietnamese, which can impose a language constraint on users without explicit opt-in. The file does not state that the skill is intentionally region-specific or offer an alternative language option.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
88% confidence
Finding

Most of the natural-language content in this reference is written in Vietnamese, with no indication that the skill supports other languages or that Vietnamese is a justified locale requirement. The policy calls for flagging language or locale constraints when they are imposed without user opt-in or documented justification.

Content

No source excerpt is available for this finding.