Back to skill

Security audit

bs-headspace-style-og

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marked this image-generation skill suspicious, mainly because a quote operation reportedly uploads reference images without clear disclosure and a download can be redirected to internal network addresses; analysis was partial.

Treat this as a review-required skill. Before installing, consider whether you are comfortable with reference images being sent to the configured server during quoting and with the reported redirect risk. The scan inspected only 3 of 7 components fully (42.9% coverage), so evidence about the remaining behavior is incomplete.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (1)

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/lib/skillry-media.mjs
Finding

Reference downloads follow redirects without validating their destinations

Content
View full analysis

Impact

An attacker-controlled public reference server can redirect the download to an HTTP or HTTPS loopback or private-network endpoint. The internal GET occurs before image validation, allowing unauthorized internal requests and potentially triggering GET-based actions. If the internal response is a supported image, the adapter can also upload its bytes to Skillry as a reference (lines 644–656). Arbitrary non-image secret extraction is not established.

Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Memory PoisoningPersistent Context Injection, Context Window Stuffing, Memory Manipulation
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (21)

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

md
nce.** Use the user-selected provider from the options above: Skillry API Key (`scripts/generate.mjs`, default), Codex built-in `image_gen` (if in Codex), or cu

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

md
node scripts/generate.mjs \

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

md
Before delivery, run `scripts/validate-output.mjs` with `--require-format

Memory Manipulation

High
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.

Content

Scanner excerpt · scripts/generate.mjs (reported line 684)May include surrounding context.

js
status: 'SUBMITTED',
    updatedAt: new Date().toISOString(),
  };
  delete state.error;
  const submitError = payloadError(submitted);
  if (submitError) {
    state.providerStatus = 'SUBMISSION_RESPONSE_ERROR';

Memory Manipulation

High
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.

Content

Scanner excerpt · scripts/generate.mjs (reported line 714)May include surrounding context.

js
adoptedAt: new Date().toISOString(),
  });
  state.updatedAt = state.adoptedAt;
  delete state.error;
  writeJsonAtomic(taskPath, state);
  process.stdout.write(`Adopted existing FAL request ${requestId}.\n`);
  return state;

Memory Manipulation

High
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.

Content

Scanner excerpt · scripts/generate.mjs (reported line 789)May include surrounding context.

js
syncDirectoryBestEffort(dirname(temporaryPath));
    }
    state.status = 'COMPLETED';
    delete state.temporaryOutputPath;
    delete state.error;
    state.updatedAt = new Date().toISOString();
    writeJsonAtomic(taskPath, state);

Memory Manipulation

High
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.

Content

Scanner excerpt · scripts/generate.mjs (reported line 790)May include surrounding context.

js
}
    state.status = 'COMPLETED';
    delete state.temporaryOutputPath;
    delete state.error;
    state.updatedAt = new Date().toISOString();
    writeJsonAtomic(taskPath, state);
    process.stdout.write(`Recovered completed output: ${state.outputPath}\n`);

Memory Manipulation

High
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.

Content

Scanner excerpt · scripts/generate.mjs (reported line 804)May include surrounding context.

js
unlinkSync(temporaryPath);
  syncDirectoryBestEffort(dirname(state.outputPath));
  state.status = 'COMPLETED';
  delete state.temporaryOutputPath;
  delete state.error;
  state.updatedAt = new Date().toISOString();
  writeJsonAtomic(taskPath, state);

Memory Manipulation

High
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.

Content

Scanner excerpt · scripts/generate.mjs (reported line 805)May include surrounding context.

js
syncDirectoryBestEffort(dirname(state.outputPath));
  state.status = 'COMPLETED';
  delete state.temporaryOutputPath;
  delete state.error;
  state.updatedAt = new Date().toISOString();
  writeJsonAtomic(taskPath, state);
  process.stdout.write(`Recovered downloaded output: ${state.outputPath}\n`);

Memory Manipulation

High
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.

Content

Scanner excerpt · scripts/generate.mjs (reported line 925)May include surrounding context.

js
temporaryOutputPath: temporaryPath,
    updatedAt: new Date().toISOString(),
  });
  delete state.error;
  writeJsonAtomic(taskPath, state);
  finalizeLocalResult(state, taskPath, temporaryPath);
}

Memory Manipulation

High
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.

Content

Scanner excerpt · scripts/generate.mjs (reported line 967)May include surrounding context.

js
`FAL task reported an error: ${statusError}. The task record is preserved; do not submit a replacement without approval.`
      );
    }
    delete state.error;
    if (state.providerStatus === 'COMPLETED') state.status = 'READY';
    else if (['FAILED', 'CANCELLED'].includes(state.providerStatus)) {
      state.status = state.providerStatus;

Memory Manipulation

High
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.

Content

Scanner excerpt · scripts/generate.mjs (reported line 1052)May include surrounding context.

js
temporaryOutputPath: temporaryPath,
      updatedAt: new Date().toISOString(),
    });
    delete state.error;
    delete state.approvalUrl;
    writeJsonAtomic(taskPath, state);
    finalizeLocalResult(state, taskPath, temporaryPath);

Memory Manipulation

High
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.

Content

Scanner excerpt · scripts/generate.mjs (reported line 1053)May include surrounding context.

js
updatedAt: new Date().toISOString(),
    });
    delete state.error;
    delete state.approvalUrl;
    writeJsonAtomic(taskPath, state);
    finalizeLocalResult(state, taskPath, temporaryPath);
  } catch (error) {

Memory Manipulation

High
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.

Content

Scanner excerpt · scripts/generate.mjs (reported line 1014)May include surrounding context.

js
createdAt: now,
        updatedAt: now,
      };
  delete state.error;
  writeJsonAtomic(taskPath, state);
  const norm = normalizeImageSize(requested.inputSummary.image_size, 'gpt-image-2');
  const expectedDims = PRESET_DIMENSIONS.get(requested.inputSummary.image_size);

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.

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

js
state.updatedAt = new Date().toISOString();
    writeJsonAtomic(taskPath, state);
    throw new Error(
      `FAL result contains an error: ${resultError}. The task record is preserved; do not submit a replacement without approval.`
    );
  }

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

js
state.error = statusError;
      writeJsonAtomic(taskPath, state);
      throw new Error(
        `FAL task reported an error: ${statusError}. The task record is preserved; do not submit a replacement without approval.`
      );
    }
    delete state.error;

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

js
}
    if (['FAILED', 'CANCELLED'].includes(state.status)) {
      throw new Error(
        `FAL task ended as ${state.status}. The task record is preserved; do not submit a replacement without approval.`
      );
    }
    const sleepMs = Math.min(

The documented read-only quote operation uploads reference images to the server.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The operation documented as read-only calls uploadHttpReferences, transmitting reference image contents to the configured server before requesting a quote. Because requireConfirmedRun also invokes this operation before spending confirmation, private images can leave the machine while the workflow is ostensibly only estimating cost; reference uploads are relevant to image generation, but the misleading boundary creates a privacy risk.

Content

No source excerpt is available for this finding.

The supposedly read-only quote operation uploads reference images without disclosing that privacy-affecting side effect.

Medium
Category
Output Handling
Confidence
93% confidence
Finding

skillryQuote uploads reference images without an explicit upload-consent check, despite describing the operation as read-only. This is the same privacy-boundary issue as SDI-4, not an independent vulnerability: legitimate image-generation inputs may contain sensitive material that users do not expect to transmit merely to obtain a price.

Content

No source excerpt is available for this finding.

The image-generation skill includes an unrelated audio-processing capability.

Medium
Category
Excessive Agency
Confidence
98% confidence
Finding

The manifest limits the skill's purpose to creating Headspace-style OG images, but applyAudioSpeed writes MP3 data and invokes ffmpeg to change audio tempo and re-encode it. This exported audio-processing operation has no direct role in generating static social-media images.

Content

No source excerpt is available for this finding.