Back to skill

Security audit

SocialKit Content Repurpose

Security checks for vulnerabilities and agentic risk

Overview

This skill prepares local social-media drafts and requires user approval before separate publishing steps.

The skill retains a local copy of your source alongside drafts, so choose an appropriate output folder for private material. Review every draft before approval. Separately review socialkit-social-core and any publishing or calendar skills; those components were not supplied here.

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
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (10)

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

md
2. Get the limits and notes: `node scripts/repurpose.mjs --guide --platforms <ids>`

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

md
3. Create folders: `node scripts/repurpose.mjs --init --source <file> --out <folder> --platforms <ids>`

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
5. Validate all: `node scripts/repurpose.mjs --check --out <folder>`

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/repurpose.mjs (reported line 503)May include surrounding context.

js
function defaultHint(error) {
  switch (error.code) {
    case 190:
      return "The access token is expired or invalid. Re-run the auth script for this platform.";
    case 4:
    case 17:
    case 32:

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/repurpose.mjs (reported line 2422)May include surrounding context.

js
onError: (status, body) => new PlatformError(
      `MASTODON_${status}`,
      String(body.error ?? `Mastodon API error ${status}`),
      status === 401 || status === 403 ? "The access token is invalid or lacks write:statuses / write:media." : void 0
    )
  });
}

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

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.

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
75% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

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

md
- A platform is not available in `--guide`: it is not supported yet; say so.
- `--check` errors: fix the draft; never cut text in a way that changes its meaning
  without asking.

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/repurpose.mjs (reported line 1584)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/repurpose.mjs (reported line 1608)May include surrounding context.

js
"pinterest",
      async (t) => toToken2(
        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/repurpose.mjs (reported line 1959)May include surrounding context.

js
async function call(token, method, body, fetchImpl) {
  const isForm = body instanceof FormData;
  const res = await fetchWithRetry(
    `https://api.telegram.org/bot${token}/${method}`,
    {
      method: "POST",
      body: isForm ? body : JSON.stringify(body),