antivirus-engine
БесплатноБез исполняемых скриптовНе проверенDesign and build a defensive antivirus / malware scanner: hash and YARA signature detection, ClamAV integration, PE/ELF heuristics, real-time protection…
от jiayaoqijia★ 81 звезда на GitHubОб этом скилле
Antivirus Engine (defensive)
Reply in the user's language. This skill is for building protection. Never write, modify, obtain or execute real malware, even "for testing"; test with the EICAR test string and benign samples only.
1. Scope it
Platform (Windows / Linux / macOS / Android), on-demand scanner vs real-time protection, desktop app vs server/mail gateway, language (Python for a prototype; C/C++/Rust/Go for a product), offline vs cloud lookups.
2. Architecture
file source (on-demand walk | real-time hook | mail/upload)
-> pre-filter (size limits, exclusions, cache by hash+mtime)
-> unpackers (zip/rar/7z/tar, nested depth limit, zip-bomb ratio limit, timeout)
-> detection layers (below, cheapest first)
-> verdict (clean | suspicious | malicious + rule name + confidence)
-> action (log | alert | quarantine | block) -> UI / report
3. Detection layers
- Hashes: SHA-256 blocklist of known malware hashes from public threat-intel feeds, plus an allowlist of known-good files (signed OS binaries) to cut false positives.
- Signatures: YARA rules (
yara-python), using reputable open rule sets; and/or ClamAV (clamdsocket orlibclamav) withfreshclamupdates. Don't reinvent ClamAV for a first version: wrapping it is legitimate. - Static heuristics: PE (
pefile) or ELF (pyelftools) anomalies: high section entropy (packed), suspicious imports (process injection, keylogging APIs), invalid or missing signatures, mismatched extension vs magic bytes, macros in Office files (oletools). - Reputation / cloud (optional): send hashes only, never the user's files, to services such as the VirusTotal API, with the user's consent and API key.
- Behavioural / real-time: Linux
fanotify; Windows filesystem minifilter driver + AMSI for scripts (drivers must be signed through Microsoft); macOS Endpoint Security framework (needs Apple entitlement). These are advanced; start with on-demand scanning.
4. Quarantine and updates
- Quarantine: move to a protected folder, neuter (encrypt or XOR with a key, strip execute permission), store metadata (path, hash, rule, time), allow restore and permanent delete with user confirmation.
- Updates: signed signature/rule bundles, verify signature before loading, rollback on failure, versioned.
- Self-protection: run with least privilege where possible, protect config and quarantine, tamper-evident logs.
5. Testing
- Detection: the EICAR test file (standard harmless test string all AVs detect), plus custom YARA rules matched against harmless test files you create.
- False positives: scan a large clean corpus (OS folders, common installers); track the FP rate as a release gate.
- Robustness: fuzz the unpackers and parsers (malformed archives, huge files, deep nesting); a crash in the scanner is itself a vulnerability.
- Performance: files per second, CPU and memory on a full-disk scan; cache unchanged files.
6. Suggested first version
Python CLI: walk a folder -> skip excluded/huge files -> SHA-256 check -> YARA scan -> optional clamd scan -> JSON report -> quarantine command. Then a simple GUI, then scheduled scans, then real-time protection per OS.
7. Honesty to the user
A hobby AV will not match commercial products' detection; position it as a learning project or a second-opinion scanner, and recommend keeping the OS's built-in protection (e.g. Microsoft Defender) enabled.
Verified tooling
Runnable: python3 tools/avscan.py PATH scans with SHA-256 signatures, behavioural pattern rules and entropy. 8 scanner cases pass, including the EICAR test string, a download-piped-into-a-shell installer, base64-decode-and-execute, a recursive root delete, an autostart write, a clean file that must not trigger, a high-entropy blob and a hash match. Detection only: it never executes, modifies, quarantines or deletes anything.
Установить antivirus-engine в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл antivirus-engine?
Design and build a defensive antivirus / malware scanner: hash and YARA signature detection, ClamAV integration, PE/ELF heuristics, real-time protection, quarantine, updates and testing with EICAR. Use for antivirus, malware scanner, endpoint protection.
Как установить скилл antivirus-engine?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл antivirus-engine запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic