搜索

PythonReactSEOPDF
OpenClaw

Memory Scan

memory scan

dgriffin8310 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install dgriffin831/memory-scan

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

memory-scan

Security scanner for OpenClaw agent memory files

Scans MEMORY.md, daily logs (memory/*.md), and workspace configuration files for malicious content, prompt injection, credential leakage, and dangerous instructions that could compromise user security.

Purpose

Detect security threats embedded in agent memory:

  • Malicious instructions to bypass guardrails
  • Prompt injection patterns in stored memories
  • Credential/secret leakage
  • Data exfiltration commands
  • Behavioral manipulation
  • Security policy violations

Usage

On-Demand Scan

Scan all memory files:

python3 skills/memory-scan/scripts/memory-scan.py

Allow remote LLM analysis (redacted content only):

python3 skills/memory-scan/scripts/memory-scan.py --allow-remote

Scan specific file:

python3 skills/memory-scan/scripts/memory-scan.py --file memory/2026-02-01.md

Quiet mode (for automation):

python3 skills/memory-scan/scripts/memory-scan.py --quiet

JSON output:

python3 skills/memory-scan/scripts/memory-scan.py --json
Scheduled Monitoring
Cron Job (Daily Security Audit)

Already included in safe-install daily audit - runs 2pm PT daily.

To add standalone cron:

bash skills/memory-scan/scripts/schedule-scan.sh

Requires:

  • OPENCLAW_ALERT_CHANNEL (configured in OpenClaw)
  • OPENCLAW_ALERT_TO (optional, for channels that require a recipient)

Creates cron job: daily at 3pm PT, sends alert only if threats found.

Heartbeat Integration

Add to HEARTBEAT.md:

## Weekly Memory Scan

Every Sunday, run memory scan:
python3 skills/memory-scan/scripts/memory-scan.py --quiet

Security Levels

  • SAFE - No threats detected
  • LOW - Minor concerns, proceed with awareness
  • MEDIUM - Potential threat, review recommended
  • HIGH - Likely threat, immediate review required
  • CRITICAL - Active threat detected, quarantine recommended

What It Scans

  1. MEMORY.md - Long-ter...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/dgriffin831/memory-scan
Version
—
Commit
465a27046ed290ef0e29377d544108cdd1e861cd
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

Memory-Scan - OpenClaw Memory Security Scanner

Security scanner for OpenClaw agent memory files. Detects malicious instructions, prompt injection, credential leakage, and other threats embedded in MEMORY.md, daily logs, and workspace configuration files.

Prerequisites

  • Python 3 — check with python3 --version
  • API key (for --allow-remote mode) — requires OPENAI_API_KEY or ANTHROPIC_API_KEY

No pip install is needed — memory-scan uses only the Python standard library (urllib).

Environment Variables

Create a .env file in the repository root with any needed keys:

Variable Required For Description
OPENAI_API_KEY --allow-remote OpenAI API key (uses gpt-4o-mini)
ANTHROPIC_API_KEY --allow-remote Anthropic API key (alternative to OpenAI)
PROMPTINTEL_API_KEY Taxonomy refresh, reporting MoltThreats / PromptIntel API key

Pattern-based scanning requires no keys — it works out of the box with Python 3.

Quick Start

On-Demand Scan

Scan all memory files (local pattern matching only):

python3 skills/memory-scan/scripts/memory-scan.py

Scan with LLM analysis for deeper detection (redacted content sent to LLM):

python3 skills/memory-scan/scripts/memory-scan.py --allow-remote

Note: Without --allow-remote, only local pattern matching runs (fast, no API calls). With --allow-remote, content is redacted and sent to an LLM for deeper analysis of prompt injection, prompt stealing, and other subtle threats.

Scheduled Monitoring

Set up daily cron job (3pm PT):

bash skills/memory-scan/scripts/schedule-scan.sh

What It Does

  • Scans MEMORY.md, daily logs (last 30 days), and workspace config files
  • Detects threats using local pattern matching (add --allow-remote for deeper LLM analysis on redacted content)
  • Alerts via configured OpenClaw channel on MEDIUM/HIGH/CRITICAL findings
  • *Quarantines...

来源内容

SKILL.md
# memory-scan

**Security scanner for OpenClaw agent memory files**

Scans MEMORY.md, daily logs (memory/*.md), and workspace configuration files for malicious content, prompt injection, credential leakage, and dangerous instructions that could compromise user security.

## Purpose

Detect security threats embedded in agent memory:
- Malicious instructions to bypass guardrails
- Prompt injection patterns in stored memories
- Credential/secret leakage
- Data exfiltration commands
- Behavioral manipulation
- Security policy violations

## Usage

### On-Demand Scan

Scan all memory files:
```bash
python3 skills/memory-scan/scripts/memory-scan.py
```

Allow remote LLM analysis (redacted content only):
```bash
python3 skills/memory-scan/scripts/memory-scan.py --allow-remote
```

Scan specific file:
```bash
python3 skills/memory-scan/scripts/memory-scan.py --file memory/2026-02-01.md
```

Quiet mode (for automation):
```bash
python3 skills/memory-scan/scripts/memory-scan.py --quiet
```

JSON output:
```bash
python3 skills/memory-scan/scripts/memory-scan.py --json
```

### Scheduled Monitoring

#### Cron Job (Daily Security Audit)

Already included in safe-install daily audit - runs 2pm PT daily.

To add standalone cron:
```bash
bash skills/memory-scan/scripts/schedule-scan.sh
```

Requires:
- `OPENCLAW_ALERT_CHANNEL` (configured in OpenClaw)
- `OPENCLAW_ALERT_TO` (optional, for channels that require a recipient)

Creates cron job: daily at 3pm PT, sends alert only if threats found.

#### Heartbeat Integration

Add to HEARTBEAT.md:
```markdown
## Weekly Memory Scan

Every Sunday, run memory scan:
python3 skills/memory-scan/scripts/memory-scan.py --quiet
```

## Security Levels

- **SAFE** - No threats detected
- **LOW** - Minor concerns, proceed with awareness
- **MEDIUM** - Potential threat, review recommended
- **HIGH** - Likely threat, immediate review required
- **CRITICAL** - Active threat detected, quarantine recommended

## What It Scans

1. **MEMORY.md** - Long-ter...
README
# Memory-Scan - OpenClaw Memory Security Scanner

Security scanner for OpenClaw agent memory files. Detects malicious instructions, prompt injection, credential leakage, and other threats embedded in MEMORY.md, daily logs, and workspace configuration files.

## Prerequisites

- **Python 3** — check with `python3 --version`
- **API key** (for `--allow-remote` mode) — requires `OPENAI_API_KEY` or `ANTHROPIC_API_KEY`

No pip install is needed — memory-scan uses only the Python standard library (`urllib`).

### Environment Variables

Create a `.env` file in the repository root with any needed keys:

| Variable | Required For | Description |
|----------|-------------|-------------|
| `OPENAI_API_KEY` | `--allow-remote` | OpenAI API key (uses gpt-4o-mini) |
| `ANTHROPIC_API_KEY` | `--allow-remote` | Anthropic API key (alternative to OpenAI) |
| `PROMPTINTEL_API_KEY` | Taxonomy refresh, reporting | MoltThreats / PromptIntel API key |

Pattern-based scanning requires **no keys** — it works out of the box with Python 3.

## Quick Start

### On-Demand Scan

Scan all memory files (local pattern matching only):
```bash
python3 skills/memory-scan/scripts/memory-scan.py
```

Scan with LLM analysis for deeper detection (redacted content sent to LLM):
```bash
python3 skills/memory-scan/scripts/memory-scan.py --allow-remote
```

> **Note:** Without `--allow-remote`, only local pattern matching runs (fast, no API calls). With `--allow-remote`, content is redacted and sent to an LLM for deeper analysis of prompt injection, prompt stealing, and other subtle threats.

### Scheduled Monitoring

Set up daily cron job (3pm PT):
```bash
bash skills/memory-scan/scripts/schedule-scan.sh
```

## What It Does

- **Scans** MEMORY.md, daily logs (last 30 days), and workspace config files
- **Detects** threats using local pattern matching (add `--allow-remote` for deeper LLM analysis on redacted content)
- **Alerts** via configured OpenClaw channel on MEDIUM/HIGH/CRITICAL findings
- **Quarantines*...

相关技能

OpenClaw

xint

0xnyk

X Intelligence CLI — search, monitor, analyze, and engage on X/Twitter. TypeScript + Bun. AI agent skill.

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

flightclaw

jackculpan

Track flight prices from Google Flights with this OpenClaw skill. Search routes, monitor prices, and get alerts when prices drop.

OpenClaw

openclaw-trading-assistant

openclaw-trade

openclaw trading assistant| openclaw trading skill | nof1.ai & openclaw [moltbot] collaboration | We get the best practices from alpha arena trading seasons and bring it to clawdbot All top AI agents, realtime...