Memory Scan
Skill by dgriffin831
Why use this skill?
Secure your OpenClaw agent with Memory Scan. Automatically detect prompt injections, credential leaks, and malicious instructions in your agent memory files.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/dgriffin831/memory-scanWhat This Skill Does
The Memory Scan skill by dgriffin831 is a robust security auditing tool designed for the OpenClaw agent ecosystem. It serves as a specialized defense mechanism, scanning critical memory and configuration files to detect unauthorized changes, malicious prompt injections, and potential security leaks. By parsing long-term memory (MEMORY.md), daily logs, and sensitive workspace configuration files like SOUL.md and GUARDRAILS.md, the skill actively identifies threats such as credential leakage, data exfiltration commands, and attempts to bypass established security protocols. It categorizes risks across a five-level severity scale, ensuring users can prioritize their remediation efforts effectively.
Installation
Installation is streamlined through the OpenClaw hub. Run the following command in your terminal to initialize the skill in your environment:
clawhub install openclaw/skills/skills/dgriffin831/memory-scan
Once installed, you can automate regular security audits by scheduling the scan script. Use bash skills/memory-scan/scripts/schedule-scan.sh to set up a daily cron job that alerts you via your configured OpenClaw notification channel whenever a medium-to-critical threat is identified.
Use Cases
This skill is ideal for power users and developers managing persistent agent identities. It is particularly useful for:
- Regular Security Audits: Automating a daily health check on agent logs to ensure no prompt injection has occurred during extended operation.
- Pre-Deployment Checks: Scanning workspace files for exposed API keys or tokens before committing agent configurations to version control.
- Incident Response: If your agent behaves erratically, running a manual scan can identify if a 'personality' change or unauthorized behavioral instruction has been injected into your memory files.
- Compliance: Ensuring that sensitive data exfiltration instructions have not been surreptitiously added to your local environment.
Example Prompts
- "Perform a security audit on all my memory files right now and report any medium or higher threats."
- "Scan my workspace configuration for any potential credential leaks or API keys saved in plain text."
- "Run a quiet memory scan and update the alert status in my primary notification channel."
Tips & Limitations
- Performance: For very large datasets, the scan might take a few moments; use the
--quietflag if running frequently in the background to reduce console clutter. - Privacy: While the tool supports
--allow-remotefor LLM-based analysis, be aware that this sends redacted content to an external provider. Use this only if you understand your data privacy requirements. - Scope: Always ensure your
memory/folder is included in the default scan path; the script is optimized for the standard OpenClaw structure but may need manual adjustment if you have customized your directory layout significantly.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-dgriffin831-memory-scan": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, code-execution
Related Skills
input-guard
Scan untrusted external text (web pages, tweets, search results, API responses) for prompt injection attacks. Returns severity levels and alerts on dangerous content. Use BEFORE processing any text from untrusted sources.
skill-scan
Security scanner for OpenClaw skill packages. Scans skills for malicious code, evasion techniques, prompt injection, and misaligned behavior BEFORE installation. Use to audit any skill from ClawHub or local directories.
Guardrails
Skill by dgriffin831
claude-chrome
Use Claude Code with Chrome browser extension for web browsing and automation tasks. Alternative to OpenClaw's built-in browser tools.