skill-scanner
БесплатноБез исполняемых скриптовНе проверенScan installed OpenClaw skills for malicious code patterns including ClickFix social engineering, reverse shell (RAT), and data exfiltration. Uses OG-Text…
от bighardperson★ 71 звезда на GitHubОб этом скилле
Skill Scanner — Malicious Skill Detection for OpenClaw
Scan all installed OpenClaw skills to detect hidden malicious behavior such as:
- ClickFix — Social engineering that tricks users into downloading and running malicious code (e.g., fake update prompts, disguised install commands)
- RAT (Remote Access Trojan) — Reverse shells, backdoors, or covert command-and-control connections
- Info Stealer — Exfiltration of credentials, SSH keys, tokens, environment variables, browser data, or keychain items
How It Works
This skill uses the OG-Text security model to analyze each installed skill's source code. The agent reads skill files, chunks long content, sends each chunk to the model with a specialized security prompt, and aggregates the findings into a risk report.
Discover skills → Read source files → Chunk content → OG-Text analysis → Aggregate → Report
Workflow
Follow these steps in order when the user asks to scan skills.
Step 1: Discover installed skills
Find all installed skill directories. Skills can be in multiple locations:
# Built-in skills
ls ~/.openclaw/skills/
# User-installed skills (npm packages)
ls ~/.openclaw/node_modules/@*/
# Extension skills
ls ~/.openclaw/extensions/*/
# Local workspace skills
ls ~/.openclaw/workspace/skills/ 2>/dev/null
For each directory found, look for these files that define a skill:
SKILL.md— Skill definition and instructions*.ts,*.js— Source code (TypeScript/JavaScript)*.sh,*.bash— Shell scripts*.py— Python scriptspackage.json— Package definition with dependenciesopenclaw.plugin.json— Plugin configuration
Step 2: Read and collect skill content
For each skill found, read ALL source files. Prioritize files in this order:
- Any
.ts,.js,.sh,.bash,.pyfiles (executable code — highest risk) SKILL.md(may contain embedded shell commands or curl calls)package.json(check for suspicious dependencies or scripts)openclaw.plugin.json(check for dangerous hooks or permissions)
Concatenate all content for each skill with clear file markers:
=== FILE: skill-name/index.ts ===
<file content>
=== END FILE ===
=== FILE: skill-name/SKILL.md ===
<file content>
=== END FILE ===
Step 3: Chunk the content
If a skill's combined content exceeds 4000 characters, split it into chunks:
- Chunk size: 4000 characters
- Overlap: 200 characters (to catch malicious patterns that span chunk boundaries)
If the content is under 4000 characters, treat it as a single chunk.
Step 4: Analyze each chunk with OG-Text
For each chunk, call the OG-Text model using curl:
curl -s -X POST "https://api.openguardrails.com/v1/model/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-xxai-model-0e5a52bd1c70cca03d5f67fe1c2ca406" \
-d '{
"model": "OG-Text",
"temperature": 0.1,
"messages": [
{
"role": "user",
"content": "<ANALYSIS_PROMPT>"
}
]
}'
The <ANALYSIS_PROMPT> must be constructed as follows (replace {CHUNK_INDEX}, {CHUNK_TOTAL}, {SKILL_NAME}, and {CHUNK_CONTENT} with actual values):
You are a cybersecurity expert specializing in AI agent supply chain attacks. You are analyzing an OpenClaw skill (a plugin/extension for an AI agent platform) for hidden malicious behavior.
## Skill Being Analyzed: {SKILL_NAME}
## Content Chunk {CHUNK_INDEX}/{CHUNK_TOTAL}
{CHUNK_CONTENT}
## Threat Categories
Analyze this code for the following threat categories:
### 1. ClickFix (Social Engineering Download & Execute)
Look for patterns that trick users into downloading and executing malicious code:
- Commands that download files from external URLs then execute them (curl|wget piped to sh/bash)
- Fake update prompts that run arbitrary scripts
- Instructions telling users to copy-paste commands into terminal
- Disguised install scripts that fetch remote payloads
- PowerShell download cradles or encoded commands
- Deceptive prompts that make malicious actions look like legitimate setup steps
- Use of osascript/AppleScript to display fake dialog boxes prompting code execution
### 2. RAT (Remote Access Trojan / Reverse Shell)
Look for patterns that establish unauthorized remote access:
- Reverse shell connections (bash -i >& /dev/tcp/, nc -e, python socket connect-back)
- Outbound connections to unknown C2 servers
- Persistent backdoors via cron, launchd, or systemd
- SSH key injection into authorized_keys
- Tunneling or port forwarding to external hosts
- WebSocket or HTTP-based command-and-control channels
- Process spawning with stdin/stdout redirected to network sockets
### 3. Info Stealer (Data Exfiltration)
Look for patterns that steal sensitive data:
- Reading SSH keys (~/.ssh/), tokens, API keys, or credentials
- Accessing macOS Keychain (security find-generic-password, security find-internet-password)
- Reading browser profiles, coo
Установить skill-scanner в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл skill-scanner?
Scan installed OpenClaw skills for malicious code patterns including ClickFix social engineering, reverse shell (RAT), and data exfiltration. Uses OG-Text model for agentic detection.
Как установить скилл skill-scanner?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл skill-scanner запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic