Back to skill

Security audit

SocialKit Pinterest Post

Security checks for vulnerabilities and agentic risk

Overview

The posting workflow requires approval, but its recommended sign-in setup exposes authorization codes to a third-party website without explaining that privacy risk.

Before signing in, configure a Pinterest-supported callback you control, or explicitly accept that the recommended website can observe the authorization code and state. Review the separate socialkit-social-core dependency and retain approval for every post. The supplied code was fully read, but the external callback and separate dependency remain unverified. No intentional credential theft or destructive behavior was established.

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
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (16)

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 17)May include surrounding context.

md
- Every Pin needs options.boardId; list boards with `node scripts/auth.mjs --platform pinterest --boards`.

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 23)May include surrounding context.

md
1. Sign in once: `node scripts/auth.mjs --platform pinterest --start`, give the user the `signInUrl`, then `node scripts/auth.mjs --platform pinterest --finish

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 26)May include surrounding context.

md
3. Write `post.json` (text, media with alt text, options). See `node scripts/publish.mjs --help`.

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 27)May include surrounding context.

md
4. Validate: `node scripts/publish.mjs --check --dir pin-<slug>`

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 30)May include surrounding context.

md
6. Publish: `node scripts/publish.mjs --publish --dir pin-<slug>` and report the result.

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/setup.md (reported line 29)May include surrounding context.

md
## Sign in

`node scripts/auth.mjs --platform pinterest --start`, then `--finish --url "..."`.
Access tokens last 30 days and refresh automatically (continuous refresh).
List boards for `options.boardId`: `node scripts/auth.mjs --platform pinterest --boards`.

## Limits

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, network.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

The OAuth setup directs authorization callbacks to an external website without a privacy warning.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

The setup sends OAuth authorization codes and state to an author-controlled website rather than a callback controlled by the user bringing their own app. That website and its infrastructure can observe or log these sensitive parameters; the client secret limits direct code redemption, but does not eliminate the unnecessary disclosure or dependency on the website's integrity.

Content

No source excerpt is available for this finding.

Pinterest authentication requests board-modification authority beyond the stated Pin-posting purpose.

Medium
Category
Excessive Agency
Confidence
98% confidence
Finding

The OAuth scope list requests boards:write even though this skill only lists existing boards and creates Pins. This unnecessarily grants board-modification authority, increasing the damage possible if the token or agent is compromised; the local post-approval checkpoint does not restrict what a stolen token can do.

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 · scripts/auth.mjs (reported line 621)May include surrounding context.

js
return v;
}
function apiBase(env) {
  return env[PIN_ENV.sandbox] === "1" ? "https://api-sandbox.pinterest.com/v5" : "https://api.pinterest.com/v5";
}
function basic(env) {
  return {

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 · scripts/auth.mjs (reported line 649)May include surrounding context.

js
async function finishPinterestLogin(pastedUrl, env = process.env, fetchImpl) {
  const { code, redirectUri } = finishPasteback("pinterest", pastedUrl, env);
  const res = await postForm(
    "https://api.pinterest.com/v5/oauth/token",
    { grant_type: "authorization_code", code, redirect_uri: redirectUri, continuous_refresh: "true" },
    basic(env),
    fetchImpl

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 · scripts/auth.mjs (reported line 666)May include surrounding context.

js
"pinterest",
      async (t) => toToken(
        await postForm(
          "https://api.pinterest.com/v5/oauth/token",
          { grant_type: "refresh_token", refresh_token: t.refreshToken },
          basic(env)
        ),

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 · scripts/publish.mjs (reported line 402)May include surrounding context.

js
return v;
}
function apiBase(env) {
  return env[PIN_ENV.sandbox] === "1" ? "https://api-sandbox.pinterest.com/v5" : "https://api.pinterest.com/v5";
}
function basic(env) {
  return {

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 · scripts/publish.mjs (reported line 426)May include surrounding context.

js
"pinterest",
      async (t) => toToken(
        await postForm(
          "https://api.pinterest.com/v5/oauth/token",
          { grant_type: "refresh_token", refresh_token: t.refreshToken },
          basic(env)
        ),

The Pinterest skill exposes authentication and credential storage for unrelated social platforms.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The CLI dispatches to X, TikTok, and LinkedIn sign-in flows, which obtain and persist credentials for those services. These are reachable capabilities, not merely unused bundled functions, and are unrelated to the manifest's Pinterest-only posting purpose.

Content

No source excerpt is available for this finding.

The registered Pinterest platform implements analytics retrieval beyond the skill's stated Pin-creation purpose.

Low
Category
Excessive Agency
Confidence
91% confidence
Finding

L545-L553 define an authenticated capability to retrieve approximately 90 days of impressions, saves, Pin clicks, and outbound clicks for a supplied Pin ID. Reading engagement analytics is not necessary to create an approved Pin and is not declared in the manifest; although the publish runner does not invoke it, the capability is implemented in this file.

Content

No source excerpt is available for this finding.