Back to skill

Security audit

emoji-voter

Security checks for vulnerabilities and agentic risk

Overview

The voting payments are narrowly limited, but the skill also directs your agent to post publicly on X and Farcaster without a separate opt-in.

Require explicit approval before any X or Farcaster publication. Use a dedicated wallet with a small balance, protect its private key, and understand the $0.01 vote and optional $1 mint charges. Request a compatible dependency update addressing the Zod advisory.

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
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (9)

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

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

1. Environment Variables

Create a .env file in the skill folder (${SKILL_DIR}/.env or ${SKILL_DIR}/scripts/.env), or set these in your environment. The script reads only the skill's own .env files and the process environment. It never reads a .env from the folder you run it from.

bash
# Required: EVM private key for signing votes and paying the $0.01 agentic vote fee on Base

Known Vulnerable Dependency: zod==3.25.76 — 1 advisory(ies): CVE-2023-54404 (Zod can exhaust memory while validating oversized constrained collections)

High
Category
Supply Chain
Confidence
80% confidence
Finding

OSV returned vulnerability advisories matching the dependency's resolved version. Review the matched advisories to assess their impact.

Content

No source excerpt is available for this finding.

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/vote-and-post.mjs (reported line 32)May include surrounding context.

js
const __dirname = dirname(fileURLToPath(import.meta.url));

// Load .env from scripts dir, then from skill root. Never from cwd: a .env in
// whatever folder the agent runs from must not pick the payment endpoint.
config({ path: join(__dirname, ".env") });
config({ path: join(__dirname, "..", ".env") });

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/vote-and-post.mjs (reported line 32)May include surrounding context.

js
const __dirname = dirname(fileURLToPath(import.meta.url));

// Load .env from scripts dir, then from skill root. Never from cwd: a .env in
// whatever folder the agent runs from must not pick the payment endpoint.
config({ path: join(__dirname, ".env") });
config({ path: join(__dirname, "..", ".env") });

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/vote-and-post.mjs (reported line 66)May include surrounding context.

js
const MAX_TIMEOUT_SECONDS = 600;

if (!PRIVATE_KEY) {
  console.error("EVM_PRIVATE_KEY is required. Set it in your environment or .env file.");
  process.exit(1);
}
if (!FID) {

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/vote-and-post.mjs (reported line 70)May include surrounding context.

js
process.exit(1);
}
if (!FID) {
  console.error("FARCASTER_FID is required. Set it in your environment or .env file.");
  process.exit(1);
}

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/vote-and-post.mjs (reported line 34)May include surrounding context.

js
// Load .env from scripts dir, then from skill root. Never from cwd: a .env in
// whatever folder the agent runs from must not pick the payment endpoint.
config({ path: join(__dirname, ".env") });
config({ path: join(__dirname, "..", ".env") });

const PRIVATE_KEY = process.env.EVM_PRIVATE_KEY;

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/vote-and-post.mjs (reported line 35)May include surrounding context.

js
// Load .env from scripts dir, then from skill root. Never from cwd: a .env in
// whatever folder the agent runs from must not pick the payment endpoint.
config({ path: join(__dirname, ".env") });
config({ path: join(__dirname, "..", ".env") });

const PRIVATE_KEY = process.env.EVM_PRIVATE_KEY;
const FID = process.env.FARCASTER_FID;

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.