Back to plugin

Security audit

Kichi Forwarder

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this plugin suspicious because it found two prompt-injection risks: remote bot messages can trigger agent runs without an explicit capability restriction, and server-controlled room text can enter a model-visible tool description.

Consider avoiding installation unless you trust the plugin and its selected server, and understand what tools and sensitive context your host agent can access. The reported risks depend on model behavior and host permissions; the scan does not demonstrate arbitrary process access or that the author acted maliciously.

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
Findings (2)

MCP06

Error
Location
src/index.ts:70
Finding

Remote Bot Messages Trigger Agent Runs Without an Explicit Capability Restriction ## Remediation Suggestions 1. Replace general agent execution for automatic replies with a dedicated, tool-free model invocation. 2. Exclude filesystem access, credentials, user transcripts, general agent memory, and privileged tools from the reply-generation context. 3. Supply remote messages as structured, explicitly untrusted data beneath fixed application instructions. Do not rely on quotation marks as a security boundary. 4. Isolate conversation state per peer and validate sender identity and history provenance. 5. Enforce message length, history length, response length, and output-schema limits in code. 6. Require explicit owner authorization before converting a remote bot request into a privileged action. 7. Test that bot-message runs cannot invoke sensitive tools, even when incoming text requests them.

Content
View full analysis

Vulnerability Details

File Location: src/index.ts:70–101; compiled counterpart: dist/src/index.js:55–86
Vulnerability Type: Indirect prompt injection / excessive agency
Risk Level: High

Vulnerable Code

typescript
const sessionKey = `agent:${service.getAgentId()}:bot_message`;
const history: BotMessageHistoryEntry[] = [
  ...(msg.history ?? []),
  { from: msg.from, fromName: msg.fromName, bubble: msg.bubble },
];
const historyLines = history.map((h) => `${h.fromName}: "${h.bubble}"`);
const message = `[Bot conversation]\n${historyLines.join("\n")}\n\nReply with a short bubble (2-5 words). Do not repeat what has already been said. Just output the bubble text, nothing else.`;
agentCommandFromIngress({
  message,
  sessionKey,
  agentId: service.getAgentId(),
  senderIsOwner: false,
  allowModelOverride: false,
  deliver: false,
}).then((result) => {
  const replyText = (result.payloads ?? [])
    .map((p: { text?: string }) => p.text)
    .filter((t): t is string => typeof t === "string" && t.trim().length > 0)
    .join(" ")
    .trim();
  if (!replyText) {
    return;
  }
  service.sendBotMessage(msg.from, msg.depth + 1, replyText, { history }).catch((sendErr) => {
    api.logger.warn(`[kichi:${service.getAgentId()}] bot_message send or history record failed: ${sendErr}`);
  });
})

Technical Analysis

The automatic bot-message handler directly interpolates remote sender names, message content, and supplied conversation history into a request passed to agentCommandFromIngress.

This promotes externally supplied social content into agent-request content without establishing a dedicated, tool-free execution boundary. The instruction to return a short bubble constrains intended output, not agent capabilities. The adapter does not explicitly restrict which tools or sensitive context the resulting run may access.

The flags senderIsOwner: false and allowModelOverride: false are useful safeguards, but their presence does not d ...[truncated 2247 chars]

MCP06

Warning
Location
src/tools.ts:333
Finding

Server-Controlled Room Properties Are Embedded in a Model-Visible Tool Description ## Remediation Suggestions 1. Keep registered tool descriptions static and exclusively developer-controlled. 2. Return room properties through tool results as explicitly untrusted application data rather than embedding them in tool metadata. 3. Validate room properties against a strict schema and expose only fields necessary for pose selection. 4. Enforce maximum string lengths, collection sizes, and nesting depth. 5. Prefer constrained identifiers and enumerated capabilities over free-text descriptions when selecting props. 6. Enforce authorization independently of model interpretation; room text must never authorize unrelated actions. 7. Add regression tests verifying that malicious room-property strings cannot appear in registered tool descriptions.

Content
View full analysis

Vulnerability Details

File Location: src/tools.ts:333–344 and src/tools.ts:647; compiled counterparts: dist/src/tools.js:282–287 and dist/src/tools.js:566
Vulnerability Type: Tool-description injection / indirect prompt injection
Risk Level: Medium

Vulnerable Code

The action-description builder incorporates cached server-provided room properties:

typescript
const roomContext = service?.getCachedRoomContext();
const poseableProps = roomContext?.PoseableProps;
if (Array.isArray(poseableProps) && poseableProps.length > 0) {
  lines.push(
    "",
    "Cached RoomContext.PoseableProps (from last kichi_query_status):",
    JSON.stringify(poseableProps),
    "When using a sit or lay pose, pick the propId whose PoseableProps information best matches the current task context and whose OccupancyState is not fully_occupied. If no prop fits, omit propId.",
  );
}

The generated description is then assigned to the registered kichi_action tool:

typescript
description: buildKichiActionDescription(existingService ?? undefined),

Technical Analysis

The plugin places network-derived room properties inside the description of a legitimate tool. These properties include free-text fields such as DisplayName and Description.

The local validation only checks that PoseableProps is a nonempty array. JSON.stringify encodes the data as JSON but does not neutralize natural-language instructions contained in string fields.

Consequently, an attacker who controls the returned room properties can place instruction-like content into model-visible tool metadata. This crosses the trust boundary between external application data and developer-controlled tool instructions.

The factory reads the cached context when it constructs the tool definition. The injection becomes visible when the host evaluates that factory after malicious room data has entered the cache.

Attack Path

  1. The victim connects to an attacker-controlled selected ...[truncated 1540 chars]

SkillSpector findings are pending for this release.

Endor dependency reachability

Checked Nov 28, 2026 · 5:25 AM UTC

Scan failed: Endor analysis failed. Request a rescan to try again.