Back to plugin

Security audit

Remembrance

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this plugin suspicious because a scanner found that remote registry text can be placed in high-priority agent context, creating a prompt-injection risk; successful misuse was not demonstrated.

Consider the prompt-injection risk before installing, especially if the agent has access to sensitive tools or data. The scan was static and targeted, so it does not provide complete assurance about the plugin or its runtime.

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 (1)

MCP06

Warning
Location
src/hook-core.mjs:1694
Finding

Remote Registry Metadata Is Promoted into System-Level Agent Context ## Remediation Suggestions 1. **Separate trusted instructions from remote content.** Keep lifecycle rules in locally maintained templates. Deliver registry descriptions, explanations, and other external text as explicitly untrusted structured data rather than concatenating them into system instructions. 2. **Remove free-form remote instruction fields from the system-context path.** Replace `contribution_directive.message` and `fallback_instruction` with a strict, validated action enumeration. Render supported actions using fixed local text; ignore unsupported values. 3. **State the authority boundary explicitly.** In trusted local instructions, prohibit registry metadata from authorizing credential access, unrelated tool execution, data export, approval changes, or exceptions to host policy. Delimiters alone should not be treated as a complete defense. 4. **Require deliberate skill selection before loading procedural content.** Automatic discovery should expose bounded descriptive metadata, not implicitly authorize execution of returned instructions. 5. **Preserve independent enforcement.** Maintain host approvals and destination restrictions for sensitive reads, network exports, and mutations. Apply these controls outside model-generated decisions wherever possible. 6. **Add adversarial regression tests.** Test malicious descriptions, match explanations, preference text, and fallback directives. Verify both the produced prompt structure and, in a controlled gateway environment, whether injected content can induce unauthorized tool calls.

Content
View full analysis

Vulnerability Details

File Location:

  • src/hook-core.mjs:1694–1830 — formats remote registry metadata and directives as agent context.
  • src/hook-core.mjs:14821–14827 — applies text redaction and truncation without separating instructions from data.
  • src/index.mjs:606–610 — returns the resulting text through appendSystemContext.

Vulnerability Type: Indirect prompt injection through a remote-content trust boundary
Risk Level: Medium
Confidence: High for the unsafe data flow; downstream agent compliance was not dynamically verified.

Complete Relevant Code Segments

The following complete conditional block in formatContext incorporates a free-form instruction from the remote response:

js
const contributionDirective =
  body?.contribution_directive?.message ?? body?.fallback_instruction;
if (contributionDirective) {
  requiredTailLines.push(
    `After using Remembrance: ${safeText(contributionDirective, MAX_DIRECTIVE_CHARS)}`,
  );
}

The text-handling function is:

js
function safeText(value, maxLength) {
  const text = redactPrompt(stringValue(value)).replace(/\s+/g, " ").trim();
  if (text.length <= maxLength) {
    return text;
  }
  return `${text.slice(0, Math.max(0, maxLength - 3)).trim()}...`;
}

The OpenClaw adapter exposes the composed context through this complete return block:

js
return {
  appendSystemContext: result.context,
};

Technical Analysis

The automatic prompt hook requests search results from the configured registry’s /api/v1/agent/query endpoint. Its formatter incorporates remote skill descriptions, match explanations, and free-form contribution instructions into text that the OpenClaw adapter supplies as system context.

The inspected safeText function performs secret-pattern redaction, whitespace normalization, and length limiting. These operations do not prevent behavioral instructions from surviving. A short, ordinary-language instruction does not require special charac ...[truncated 2918 chars]

SkillSpector findings are pending for this release.

Endor dependency reachability

Checked Nov 24, 2026 · 7:17 AM UTC

No reachable vulnerabilities reported

Endor dependency scan completed.