Lightweight malware detection for macOS and Linux binaries/scripts. Ported from the Harkonnen antimalware engine.
Binary Analysis:
Pattern Detection:
Script Analysis:
# Scan a single binary
node bin/scan.js /path/to/binary
# Scan a skill folder
node bin/scan.js /path/to/skill-folder
# JSON output for automation
node bin/scan.js /path --json
# Only show threats
node bin/scan.js /path --quiet
0 - Clean (score ≤ 20)1 - Suspicious (score 21-60)2 - High threat (score > 60)Each file receives a score from 0-100:
| Score | Level | Meaning |
|---|---|---|
| ------- | ---------- | -------------------------------------- |
| 0-20 | CLEAN | No significant findings |
| 21-40 | LOW | Minor concerns, probably safe |
| 41-60 | MEDIUM | Suspicious patterns, review manually |
| 61-80 | HIGH | Likely malicious or dangerous |
| 81-100 | CRITICAL | Known malicious patterns |
Use before installing or trusting unknown binaries:
// Example: scan before allowing a skill's binary
const { scanFile } = require('openscan/lib/scanner');
async function checkBinary(binPath) {
const result = await scanFile(binPath);
if (result.threatScore > 40) {
throw new Error(`Binary failed security scan: ${result.findings.join(', ')}`);
}
return true;
}
Detection logic ported from Harkonnen antimalware engine.
共 1 个版本