name: 360Guard description: 360-degree comprehensive security review Skill. Use before installing any Skill from ClawHub, GitHub, or other sources. Performs full security scans including all Skill Vetter checks plus extended system/privacy/behavior checks and automated scanning scripts. Supports static analysis, behavior detection, dependency auditing.
360Guard ๐ก๏ธ
360-degree comprehensive security review โ Like antivirus for your Skills
1. When to Use
- Before installing any Skill from ClawHub
- Before installing any Skill from GitHub or other sources
- When evaluating code shared by other Agents
- Any time you're asked to install unknown code
- Periodic audit of installed Skills (recommended monthly)
- Before running high-risk Skills for second verification
2. Core Principles
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐ Security Layer Priority โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ EXTREME โ Absolutely refuse to install โ
โ ๐ด HIGH โ Requires human approval โ
โ ๐ก MEDIUM โ Full code review + limited permissions โ
โ ๐ข LOW โ Basic review OK โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
3. Security Checklist
3.1 Base Red Flags (from Skill Vetter)
๐จ Reject immediately if you see:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โข curl/wget to unknown URLs
โข Sends data to external servers
โข Requests credentials/tokens/API keys
โข Reads ~/.ssh, ~/.aws, ~/.config without clear reason
โข Accesses MEMORY.md, USER.md, SOUL.md, IDENTITY.md
โข Uses base64 decode on anything
โข Uses eval() or exec() with external input
โข Modifies system files outside workspace
โข Installs packages without listing them
โข Network calls to IPs instead of domains
โข Obfuscated code (compressed, encoded, minified)
โข Requests elevated/sudo permissions
โข Accesses browser cookies/sessions
โข Touches credential files
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
3.2 Extended Red Flags (New)
3.2.1 Persistence & Auto-start
๐ด Persistence check:
โข Creates cron job / systemd service
โข Modifies ~/.ssh/authorized_keys
โข Writes to /etc/hosts
โข Adds Login Items / Startup Items
โข Modifies .bashrc / .zshrc / profile
โข Registers LaunchAgent (macOS)
โข Installs systemd user service
3.2.2 Monitoring & Eavesdropping
๐ด Monitoring permissions check:
โข Requests screen capture/recording (screencapture)
โข Requests audio recording permission
โข Keyloggers
โข Accesses microphone/camera
โข File system monitoring (fswatch/inotify)
3.2.3 Data & Privacy
๐ด Data theft check:
โข Reads clipboard (pbpaste)
โข Reads environment variables (especially API_, SECRET, TOKEN)
โข Accesses browser history/bookmarks
โข Accesses macOS Keychain
โข Accesses iMessage/SMS
โข Accesses contacts/calendar
โข Accesses photo library
3.2.4 Network & Communication
๐ด Network anomaly check:
โข Initiates reverse shell (nc -e / bash -i)
โข Uses Tor proxy
โข DNS queries to suspicious domains
โข WebSocket long connections
โข IRC connections
โข Non-standard ports (>65535 or <1024 unusual)
โข Hardcoded IP addresses (non-local)
3.2.5 Code Execution (Advanced)
๐ด Dynamic execution check:
โข Dynamic import (importlib.import_module)
โข __import__() dynamic loading
โข compile() dynamic compilation
โข xmlrpc / jsonrpc remote calls
โข pickle / yaml / marshal deserialization
โข exec() / eval() any string
โข subprocess shell=True
3.2.6 File System
๐ก File operation check:
โข Writes to executable paths outside /tmp
โข Modifies /usr/local/bin
โข Writes .dmg/.pkg installers
โข Creates .hidden files/directories
โข File permission modification (chmod +x)
โข Symbolic links (pointing external)
โข Contains binary files (.so/.dylib/.exe/.bin)
3.2.7 Dependencies & Supply Chain
๐ก Supply chain check:
โข Dependency version range too wide (>1.0.0 not ^1.0.0)
โข Dependencies from private/unknown sources
โข Dependencies on deprecated packages
โข Silent additional dependency downloads
โข References other unvetted Skills
โข Uses git submodule (may point to malicious repo)
3.2.8 Social Engineering
๐ก Social engineering check:
โข Mimics popular Skill names (e.g., "github", "weather-ai")
โข README overpromises ("one-click to do everything...")
โข No source code, only compiled binaries
โข Author has no history
โข Downloads vs stars ratio suspicious (fake reviews)
4. Risk Classification
| Risk Level | Example Checks | Action |
|---|---|---|
| ๐ข LOW | Text processing, weather, note formatting | Basic review, OK to install |
| ๐ก MEDIUM | File I/O, browser control, API calls | Full review + limited permissions |
| ๐ด HIGH | Credential access, Keychain, network requests | Human approval + sandbox test |
| โ EXTREME | Persistence, root access, keylogging, reverse shell | Refuse |
5. Trust Hierarchy
| Source | Review Level | Recommendation |
|---|---|---|
| Official OpenClaw Skills | Low (still review) | Basic check |
| High-star Repo (1000+) | Medium | Standard check |
| Known Authors | Medium | Standard check |
| Unknown Sources | High | Full check |
| Requests credentials | Extreme | Refuse |
| Modifies system files | Extreme | Refuse |
6. Automated Scanning Scripts
6.1 Quick Scan (quick-scan.sh)
#!/bin/bash
# Usage: ./quick-scan.sh /path/to/skill
# Output: Quick risk assessment report
SKILL_PATH=$1
echo "๐ 360Guard Quick Scan: $SKILL_PATH"
echo "================================"
# Check dangerous functions
echo -e "\n๐ก Network request check:"
grep -r "curl\|wget\|fetch\|http\.\|https\.\|socket" "$SKILL_PATH" --include="*.sh" --include="*.js" --include="*.py" | head -5
# Check sensitive file access
echo -e "\n๐ Sensitive path check:"
grep -r "~/.ssh\|~/.aws\|~/.config\|/etc/hosts\|authorized_keys" "$SKILL_PATH" --include="*.sh" --include="*.js" --include="*.py"
# Check dangerous commands
echo -e "\nโ ๏ธ Dangerous command check:"
grep -r "eval\|exec\|shell=True\|base64 -d\|openssl" "$SKILL_PATH" --include="*.sh" --include="*.js" --include="*.py"
echo -e "\nโ
Quick scan complete"
6.2 Full Scan (full-scan.sh)
#!/bin/bash
# Usage: ./full-scan.sh /path/to/skill
# Output: Complete security assessment report
SKILL_PATH=$1
REPORT="$SKILL_PATH/360guard-report.txt"
echo "๐ก๏ธ 360Guard Full Scan: $SKILL_PATH" | tee "$REPORT"
echo "========================================" | tee -a "$REPORT"
# 1. File structure check
echo -e "\n๐ File structure:" | tee -a "$REPORT"
find "$SKILL_PATH" -type f | head -20 | tee -a "$REPORT"
# 2. Dangerous function scan
echo -e "\nโ ๏ธ Dangerous function scan:" | tee -a "$REPORT"
for pattern in "eval(" "exec(" "shell=True" "base64" "subprocess" "importlib" "__import__" "pickle" "yaml.load" "xmlrpc" "socket.create_connection"; do
result=$(grep -r "$pattern" "$SKILL_PATH" --include="*.sh" --include="*.js" --include="*.py" 2>/dev/null)
if [ -n "$result" ]; then
echo " โ Found: $pattern" | tee -a "$REPORT"
echo "$result" | head -3 | tee -a "$REPORT"
fi
done
# 3. Sensitive path scan
echo -e "\n๐ Sensitive path scan:" | tee -a "$REPORT"
for pattern in "~/.ssh" "~/.aws" "~/.config" "/etc/hosts" "authorized_keys" "keychain" "credentials" ".env"; do
result=$(grep -r "$pattern" "$SKILL_PATH" --include="*.sh" --include="*.js" --include="*.py" 2>/dev/null)
if [ -n "$result" ]; then
echo " โ ๏ธ Warning: $pattern" | tee -a "$REPORT"
fi
done
# 4. Network request scan
echo -e "\n๐ Network request scan:" | tee -a "$REPORT"
grep -r "http://\|https://\|wget\|curl\|fetch" "$SKILL_PATH" --include="*.sh" --include="*.js" --include="*.py" | grep -v "^#" | head -10 | tee -a "$REPORT"
# 5. Persistence check
echo -e "\nโฐ Persistence check:" | tee -a "$REPORT"
for pattern in "cron" "systemd" "launchd" "login item" "startup" "autostart"; do
result=$(grep -ri "$pattern" "$SKILL_PATH" --include="*.sh" --include="*.js" --include="*.py" 2>/dev/null)
if [ -n "$result" ]; then
echo " ๐ด High risk: $pattern" | tee -a "$REPORT"
fi
done
# 6. Dependency check
echo -e "\n๐ฆ Dependency check:" | tee -a "$REPORT"
if [ -f "$SKILL_PATH/package.json" ]; then
cat "$SKILL_PATH/package.json" | grep -E "dependencies|devDependencies" -A 20 | tee -a "$REPORT"
fi
if [ -f "$SKILL_PATH/requirements.txt" ]; then
cat "$SKILL_PATH/requirements.txt" | tee -a "$REPORT"
fi
if [ -f "$SKILL_PATH/package.yaml" ]; then
cat "$SKILL_PATH/package.yaml" | tee -a "$REPORT"
fi
# 7. Binary file check
echo -e "\n๐พ Binary file check:" | tee -a "$REPORT"
find "$SKILL_PATH" -type f \( -name "*.so" -o -name "*.dylib" -o -name "*.exe" -o -name "*.bin" -o -name "*.dll" \) 2>/dev/null | tee -a "$REPORT"
echo -e "\n========================================" | tee -a "$REPORT"
echo "โ
Full scan complete, report saved to: $REPORT"
6.3 Node.js Scanner (scanner.js)
#!/usr/bin/env node
/**
* 360Guard Node.js Scanner
* Usage: node scanner.js /path/to/skill
*/
const fs = require('fs');
const path = require('path');
const { execSync } = require('child_process');
const DANGER_PATTERNS = {
CRITICAL: [
{ pattern: /eval\s*\(/, name: 'eval() execution' },
{ pattern: /exec\s*\(/, name: 'exec() execution' },
{ pattern: /shell\s*=\s*true/i, name: 'subprocess shell=True' },
{ pattern: /base64.*decode/i, name: 'base64 decode' },
{ pattern: /pickle\.load/i, name: 'pickle deserialization' },
{ pattern: /yaml\.load/i, name: 'yaml deserialization' },
{ pattern: /__import__\s*\(/, name: 'dynamic import' },
{ pattern: /importlib\.import_module/i, name: 'dynamic module load' },
{ pattern: /xmlrpc/i, name: 'XML-RPC remote call' },
{ pattern: /reverse.*shell|nc\s+-e|bash\s+-i/i, name: 'reverse shell' }
],
HIGH: [
{ pattern: /curl\s+/, name: 'curl request' },
{ pattern: /wget\s+/, name: 'wget download' },
{ pattern: /fetch\s*\(/, name: 'fetch request' },
{ pattern: /https?:\/\/\d{1,3}\.\d{1,3}/, name: 'direct IP connection' },
{ pattern: /process\.env/i, name: 'environment variable access' },
{ pattern: /child_process/, name: 'subprocess execution' }
],
MEDIUM: [
{ pattern: /\/\.ssh\//, name: 'SSH directory access' },
{ pattern: /\/\.aws\//, name: 'AWS directory access' },
{ pattern: /keychain/i, name: 'Keychain access' },
{ pattern: /credentials|token|secret/i, name: 'credential related' },
{ pattern: /cron|systemd|launchd/i, name: 'persistence mechanism' }
]
};
function scanFile(filePath) {
const results = { CRITICAL: [], HIGH: [], MEDIUM: [] };
try {
const content = fs.readFileSync(filePath, 'utf8');
for (const [level, patterns] of Object.entries(DANGER_PATTERNS)) {
for (const { pattern, name } of patterns) {
if (pattern.test(content)) {
results[level].push({ file: filePath, issue: name });
}
}
}
} catch (e) {
// Skip unreadable files
}
return results;
}
function scanDirectory(dirPath) {
const allResults = { CRITICAL: [], HIGH: [], MEDIUM: [] };
function walk(dir) {
const files = fs.readdirSync(dir);
for (const file of files) {
const fullPath = path.join(dir, file);
const stat = fs.statSync(fullPath);
if (stat.isDirectory() && !file.startsWith('.')) {
walk(fullPath);
} else if (stat.isFile()) {
const ext = path.extname(file);
if (['.js', '.ts', '.py', '.sh', '.bash'].includes(ext)) {
const results = scanFile(fullPath);
for (const level of Object.keys(allResults)) {
allResults[level].push(...results[level]);
}
}
}
}
}
walk(dirPath);
return allResults;
}
function generateReport(skillPath, results) {
console.log('\n๐ก๏ธ 360Guard Security Scan Report');
console.log('='.repeat(50));
console.log(`๐ Scan path: ${skillPath}`);
console.log('');
const riskOrder = ['CRITICAL', 'HIGH', 'MEDIUM'];
const emoji = { CRITICAL: '๐ด', HIGH: 'โ ๏ธ', MEDIUM: '๐ก' };
for (const level of riskOrder) {
if (results[level].length > 0) {
console.log(`\n${emoji[level]} ${level} risk (${results[level].length} items):`);
for (const item of results[level]) {
console.log(` โข ${item.issue}`);
console.log(` File: ${item.file}`);
}
}
}
console.log('\n' + '='.repeat(50));
if (results.CRITICAL.length > 0) {
console.log('๐ด Conclusion: Critical risks found, NOT recommended to install');
process.exit(1);
} else if (results.HIGH.length > 0) {
console.log('โ ๏ธ Conclusion: High risk found, human approval required');
process.exit(2);
} else if (results.MEDIUM.length > 0) {
console.log('๐ก Conclusion: Medium risk found, please review carefully');
process.exit(0);
} else {
console.log('โ
Conclusion: No obvious risks found');
process.exit(0);
}
}
// Main
const skillPath = process.argv[2] || '.';
if (!fs.existsSync(skillPath)) {
console.error('โ Path does not exist:', skillPath);
process.exit(1);
}
const stat = fs.statSync(skillPath);
const results = stat.isDirectory() ? scanDirectory(skillPath) : scanFile(skillPath);
generateReport(skillPath, results);
7. Output Format
After vetting, produce this format:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐ก๏ธ 360Guard Security Review Report โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฃ
โ Skill Name: [name] โ
โ Source: [ClawHub / GitHub / other] โ
โ Author: [username] โ
โ Version: [version] โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฃ
โ ๐ Scan Statistics โ
โ โข File count: [count] โ
โ โข Lines of code: [count] โ
โ โข Dependencies: [count] โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฃ
โ ๐จ Issues Found โ
โ ๐ด Critical: [count] โ
โ โ ๏ธ High: [count] โ
โ ๐ก Medium: [count] โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฃ
โ ๐ Detailed Issue List โ
โ [List each issue with file location, type, risk level] โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฃ
โ ๐พ Permissions Required โ
โ โข File read: [list or "None"] โ
โ โข File write: [list or "None"] โ
โ โข Network: [list or "None"] โ
โ โข Commands: [list or "None"] โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฃ
โ ๐ฏ Risk Level: [๐ข LOW / ๐ก MEDIUM / ๐ด HIGH / โ EXTREME] โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฃ
โ โ๏ธ Final Verdict โ
โ [โ
Safe to install / โ ๏ธ Install with caution / โ Do not install] โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฃ
โ ๐ Notes โ
โ [Any other observations and recommendations] โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
8. Quick Commands
Vet ClawHub Skill
# Method 1: Download and scan
wget -O skill.zip "https://clawhub.ai/api/download/SKILL_NAME"
unzip skill.zip
node ~/.npm-global/lib/node_modules/openclaw/skills/360guard/scripts/scanner.cjs ./SKILL_NAME
rm -rf skill.zip SKILL_NAME
# Method 2: GitHub repo scan
curl -s "https://api.github.com/repos/OWNER/REPO" | jq '{stars: .stargazers_count, updated: .updated_at}'
git clone https://github.com/OWNER/REPO
node ~/.npm-global/lib/node_modules/openclaw/skills/360guard/scripts/scanner.cjs ./REPO
Quick Vet Commands
# Check repo stats
curl -s "https://api.github.com/repos/OWNER/REPO" | jq '{stars, forks, updated, language}'
# List all files
curl -s "https://api.github.com/repos/OWNER/REPO/contents/" | jq '.[].name'
# Get SKILL.md
curl -s "https://raw.githubusercontent.com/OWNER/REPO/main/SKILL.md"
9. Remember
- โ No Skill is worth compromising security
- โ When in doubt, don't install
- ๐งโ๐ฆฐ High-risk decisions: ask your human
- ๐ Document your vetting for future reference
- ๐ Periodically re-vet installed Skills
๐ก๏ธ 360Guard โ 360-degree security for your Agent