Back to skill

Security audit

SocialKit Content Calendar

Security checks for vulnerabilities and agentic risk

Overview

This social-post scheduler needs review because it can publish changed content after approval checks and publish the same approved post twice.

Use status and dry-run modes while the publishing safeguards are corrected. Before enabling unattended posting, require publication from an approval-verified immutable snapshot and protection against duplicate entries and overlapping runs. Limit connected accounts and token permissions. All three bundled files were inspected, but separate approval/authentication components and live provider behavior were not verified.

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
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (11)

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
2. Check: `node scripts/calendar.mjs --status --file calendar.json`. Report entries that

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

md
3. Preview what is due: `node scripts/calendar.mjs --publish-due --dry-run --file calendar.json`

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
4. Publish due posts: `node scripts/calendar.mjs --publish-due --file calendar.json`.

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/calendar.mjs (reported line 547)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/calendar.mjs (reported line 2466)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
    )
  });
}

The promise that only unchanged, approved posts are published is contradicted by re-reading post.json without re-verifying approval at publication time (L2932–L2933).

High
Category
Excessive Agency
Confidence
99% confidence
Finding

Approval hashes are checked while building the reports, but publication later re-reads post.json and uploads media without checking those bytes against the approval again. An actor or process able to modify a post folder during that interval could substitute unapproved content, media, or destination options and have it published using the user's credentials; inspecting all entries first and waiting for earlier publications can substantially widen this interval.

Content

No source excerpt is available for this finding.

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

md
## Failure handling

- `needs-approval`: list the problems (changed files or no approval) and ask the user.
- One entry failing does not stop the others; report each failure with its hint.
- Instagram and Threads have no API scheduling: they publish when `--publish-due` runs
  after their time, so the command must actually be run.

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/calendar.mjs (reported line 1628)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/calendar.mjs (reported line 1652)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/calendar.mjs (reported line 2003)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),