Back to skill

Security audit

SocialKit TikTok Post

Security checks for vulnerabilities and agentic risk

Overview

The TikTok workflow uses official APIs, defaults to drafts, and requires approval before uploading.

Review the separately required socialkit-social-core skill before use. Keep authentication scoped to TikTok; the shared auth command's other service options are unnecessary for this workflow. Check the account, video, and privacy settings before approving. Protect the local credential directory and revoke the app's account access when finished; uninstalling the skill does not revoke OAuth grants.

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

md
- Direct mode: run `node scripts/auth.mjs --platform tiktok --creator-info`, show the creator nickname and privacy options, and let the user choose privacy and

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 (browser, local redirect): `node scripts/auth.mjs --platform tiktok`

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

md
## Sign in

`node scripts/auth.mjs --platform tiktok` (PKCE). Access tokens last 24 hours and refresh
automatically for a year.

## Rules this skill enforces (Content Sharing Guidelines)

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.

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

The TikTok skill exposes authentication and account access for unrelated social platforms.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The CLI actively dispatches to X, LinkedIn, and Pinterest authentication flows and can list Pinterest boards (L1309–L1337); these are reachable operations, not merely unused bundled functions. Those flows request non-TikTok permissions, including social-posting or board/pin write scopes (L0413, L0601, L1040), and persist the resulting credentials. Access to these accounts is unjustified for a skill whose stated purpose is exclusively uploading or posting TikTok videos.

Content

No source excerpt is available for this finding.