Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

antivirus-engine

БесплатноБез исполняемых скриптовНе проверен

Design and build a defensive antivirus / malware scanner: hash and YARA signature detection, ClamAV integration, PE/ELF heuristics, real-time protection…

jiayaoqijiaот 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

  1. 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.
  2. Signatures: YARA rules (yara-python), using reputable open rule sets; and/or ClamAV (clamd socket or libclamav) with freshclam updates. Don't reinvent ClamAV for a first version: wrapping it is legitimate.
  3. 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).
  4. 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.
  5. 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.

Полный SKILL.md на GitHub

Установить antivirus-engine в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

LICENSESOURCE.mdTRUST.auto.yaml

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), без исполняемых скриптов.

Похожие скиллы

Сравнить antivirus-engine с