Skip to content
Back to skills

Skill Flag

DSecurity

Scan Clawdbot/OpenClaw skills for malicious patterns, backdoors, and security risks. **Created by:** DarkM00n (Bug Bounty Hunter & Security Researcher)

  • 10 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 7, 2026
securitypythongoshellbashnodeawsgitapisecurity

Works with

  • api

Security analysis

D50/100
  • criticalAccesses sensitive system or user directories
  • criticalReads or references SSH private keys
  • criticalExfiltrates credentials via HTTP โ€” exact pattern from Snyk ToxicSkills study

Pro scans all 10 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add Demerzels-lab/elsamultiskillagent --skill skill-flag --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Skill Flag?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Skill Flag
[![Security: D โ€” Skills Directory](https://www.skillsdirectory.com/api/skills/demerzels-lab-skill-flag/badge)](https://www.skillsdirectory.com/skills/demerzels-lab-skill-flag)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Skill Flag Skill ๐Ÿ›ก๏ธ

Scan Clawdbot/OpenClaw skills for malicious patterns, backdoors, and security risks.

**Created by:** DarkM00n (Bug Bounty Hunter & Security Researcher)

## Commands

### Scan All Installed Skills
```
scan skills
scan all skills
security scan
```

### Scan Specific Skill
```
scan skill <skill-name>
check skill <skill-name>
```

### Scan Before Installing (URL/Path)
```
scan skill url <clawdhub-url>
pre-scan <skill-name>
```

### Quick Risk Report
```
skill risk report
security report
```

## How To Use

Run the scanner:
```bash
python3 skills/skill-flag/scanner.py [--skill NAME] [--all] [--verbose]
```

Or ask the agent:
- "Scan all my installed skills for security issues"
- "Check if the crypto-tracker skill is safe"
- "Give me a security report"

## What It Detects

| Category | Risk Level | Examples |
|----------|------------|----------|
| ๐Ÿ”ด Data Exfiltration | CRITICAL | curl/wget to external domains, fetch(), requests.post() |
| ๐Ÿ”ด Backdoors | CRITICAL | Reverse shells, nc -e, bash -i, encoded payloads |
| ๐Ÿ”ด Credential Theft | CRITICAL | Access to ~/.ssh, ~/.aws, API keys, .env files |
| ๐ŸŸ  Prompt Injection | HIGH | "ignore previous", "system override", "new instructions" |
| ๐ŸŸ  Code Execution | HIGH | eval(), exec(), subprocess with shell=True |
| ๐ŸŸก Persistence | MEDIUM | Cron jobs, systemd units, startup scripts |
| ๐ŸŸก Obfuscation | MEDIUM | Base64 encoded commands, hex strings, rot13 |
| ๐ŸŸข Suspicious | LOW | Uncommon imports, network activity |

## Risk Score

Each skill gets a score from 0-100:
- **0-20**: โœ… Clean - No issues found
- **21-40**: ๐ŸŸข Low Risk - Minor concerns
- **41-60**: ๐ŸŸก Medium Risk - Review recommended  
- **61-80**: ๐ŸŸ  High Risk - Careful inspection needed
- **81-100**: ๐Ÿ”ด Critical - Do not use without audit

## Output

Reports saved to: `skills/skill-flag/reports/`

Example output:
```
๐Ÿ›ก๏ธ SECURITY SCAN REPORT
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
Scanned: 12 skills
Clean: 9
Warnings: 2
Critical: 1

โš ๏ธ WARNINGS:
- crypto-tracker: External API calls (expected for price data)
- web-scraper: Uses requests library

๐Ÿ”ด CRITICAL:
- shady-skill: 
  - Line 45: curl to unknown domain
  - Line 67: Base64 encoded payload
  - Line 89: Reads ~/.ssh/id_rsa
  RECOMMENDATION: Remove immediately
```

## Directories Scanned

1. `~/.clawdbot/skills/` - Global installed skills
2. `./skills/` - Workspace skills
3. `~/.npm-global/lib/node_modules/clawdbot/skills/` - Built-in skills

## False Positives

Some legitimate skills need network access or file operations. The scanner flags them for review but doesn't auto-block. Use judgment:
- Price trackers โ†’ API calls expected โœ“
- Email skills โ†’ Network access expected โœ“
- File managers โ†’ File operations expected โœ“

## Pro Version (Coming Soon)

- Continuous monitoring
- ClawdHub pre-install scanning
- Custom whitelist/blacklist
- Scheduled reports
- Webhook alerts

Files in this skill

  • README.md3.7 KB
  • SKILL.md2.9 KB
  • _meta.json301 B
  • patterns/backdoors.yaml2 KB
  • patterns/exfiltration.yaml1.2 KB
  • patterns/injection.yaml1.6 KB
  • patterns/obfuscation.yaml1.8 KB
  • reports/scan_20260130_2007.json30.6 KB
  • reports/template.md1.8 KB
  • scanner.py12.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading commentsโ€ฆ