context-manager

SAFE max severity MEDIUMSkillSpector Caution 44 registry clawhub.ai last scanned 1 scan

Verdict safe, but 2 findings (2 medium), mainly unauthorized tool use, data exfiltration. Most recent scan 2026-02-07.

This skill presents MODERATE security risks primarily related to indirect prompt injection and unrestricted tool access. The core vulnerability is the transitive trust model where AI-generated summaries are injected back into fresh sessions without validation, creating a potential vector for prompt injection persistence. The skill performs destructive operations (session deletion) without declaring required tools in the manifest, and stores sensitive session backups without encryption. However, the skill does not exhibit critical threats like data exfiltration to external servers or hardcoded credentials. The functionality appears legitimate for its stated purpose of context management, but requires security hardening around AI-generated content handling and backup storage.

Scanner's overall assessment (LLM analyzer)

Second scanner: NVIDIA SkillSpector

Independent static run, no language model, over the same files as the Cisco scan above. How the two scanners compare across the whole corpus: Two scanners, one corpus.

What this skill does

AI-powered context management for OpenClaw sessions

Package
3 files, 39 KB
SKILL.md
888 words, 12+ sections
Code
Shell (1)

SKILL.md covers: Context Manager Skill · Quick Start · List all sessions with usage stats · Check status of a specific session · Generate AI summary (read-only, safe) · Compress session: generate summary, reset, inject (DESTRUCTIVE) · When to Use · How It Works · Commands · Session Commands · Configuration Commands · Examples

Findings

MEDIUM Unrestricted Tool Access Without Declaration Unauthorized Tool Usellm

The skill does not declare 'allowed-tools' in its manifest, yet the bash script performs extensive file system operations including reading session files, writing compressed backups, deleting session files, and executing the 'openclaw' CLI tool. While 'allowed-tools' is optional, the absence of this declaration combined with destructive operations (file deletion, session reset) represents a tool exploitation risk where users cannot easily verify what capabilities the skill requires.

SKILL.md

YAML Manifest:
- allowed-tools: Not specified

But script performs:
- File reads: cat "$SESSION_FILE"
- File writes: cp "$SESSION_FILE" "$backup_file"
- File deletion: rm -f "$SESSION_FILE"
- Command execution: openclaw send
Remediation: Add 'allowed-tools: [Bash, Read, Write]' to the YAML manifest to explicitly declare required capabilities. Consider implementing a dry-run mode that shows what operations would be performed before executing destructive actions. Add user confirmation prompts before deleting session files.
MEDIUM Session File Backup Without Encryption Data Exfiltrationllm

The skill backs up session JSONL files to 'memory/compressed/' directory without encryption. Session files may contain sensitive conversation history, credentials, API keys, or other confidential information discussed during the session. Storing these backups in plaintext creates a data exposure risk if the file system is compromised or if backups are inadvertently shared.

compress.sh

backup_file="$COMPRESSED_DIR/${SESSION_KEY//:/--}_${timestamp}.jsonl"
cp "$SESSION_FILE" "$backup_file"
echo "💾 Backup saved: $backup_file"
Remediation: Implement encryption for backup files using tools like gpg or age. Add a configuration option to disable backups entirely for users who prefer not to retain session history. Document the security implications of backup storage and recommend secure file permissions (chmod 600) for the compressed directory.

What is in the package

FileKindSize
SKILL.mddoc8.0 KB
compress.shscript31 KB
config.jsonconfig151 B

Environment variables referenced

COMPRESSED_DIR SESSION_ID SESSION_KEY CONFIG_FILE MAX_TOKENS AGENT_ID CURRENT_TOKENS OPENCLAW_STATE_DIR SESSION_MODEL

Package contents recorded 2026-10-22. The scan above ran against the version current at scan time; the two can differ if the skill has since been updated.

What we checked

What we did not check

Sources