Antivirus/EDR Engineering Skill
Engineering skill for building, configuring, and optimizing antivirus, EDR (Endpoint Detection & Response), and XDR (Extended Detection & Response) solutions. Covers signature-based detection, heuristic/behavioral engines, scanning architectures, and response automation.
Core Components
1. Signature-Based Detection
- Hash Signatures: MD5, SHA1, SHA256, SSDEEP (fuzzy), TLSH (locality-sensitive)
- Pattern Signatures: Byte sequences, regex, wildcard patterns
- Structural Signatures: PE/ELF section anomalies, import table hashes (impfuzzy), rich header
- Format-Specific: ClamAV (.hdb/.ndb/.ldb), YARA, OpenIOC, STIX patterns
2. Heuristic/Behavioral Engines
- Static Heuristics: Entropy analysis, packer detection, suspicious API combinations, string anomalies
- Dynamic Heuristics: API call sequences, syscall patterns, process tree anomalies, MITRE ATT&CK mapping
- ML/AI Models: Feature extraction (PE headers, imports, strings, entropy), classification (malware/benign/family)
3. Scanning Architecture
- On-Demand: Full, quick, custom, context-menu scanning
- Real-Time/On-Access: File system filter drivers (minifilter), kernel callbacks, ETW providers
- Scheduled: Idle-time, maintenance windows, cloud-assisted
- Cloud-Assisted: Hash lookup, reputation, ML inference offload
4. Remediation & Response
- Actions: Clean, quarantine, delete, block, allow, rollback
- Quarantine: Secure storage, metadata preservation, restore capability
- Rollback: Ransomware file recovery (VSS, journal), registry restoration
- Network Isolation: Host firewall, NAC integration
Signature Development
YARA Rules (Primary Format)
rule MALWARE_Family_Variant {
meta:
description = "Detects Family variant Variant"
author = "analyst"
date = "YYYY-MM-DD"
version = "1.0"
hash = "sha256:..."
severity = "high"
category = "trojan|ransomware|backdoor|etc"
platform = "windows|linux|macos|multi"
mitre = "T1055, T1547.001"
strings:
// Static strings
$s1 = "unique_string" ascii wide nocase
$s2 = { 4D 5A ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? }
// Hex patterns with jumps
$h1 = { 48 89 5C 24 ?? 48 89 74 24 ?? 57 48 83 EC 20 }
// Regex for obfuscated patterns
$r1 = /[A-Za-z0-9+\/]{20,}={0,2}/ // Base64
// Entropy-based (high entropy sections)
$entropy = { ?? ?? ?? ?? } // placeholder for entropy condition
condition:
// File size constraints
filesize < 50MB and
// Primary detection logic
(any of ($s*) and any of ($h*)) or
(uint16(0) == 0x5A4D and any of ($s*)) or // PE header + strings
// High entropy + suspicious imports
(math.entropy(0, filesize) > 7.5 and pe.imports("kernel32.dll", "VirtualAllocEx"))
}
ClamAV Signatures
# Hash-based (.hdb)
<md5>:<size>:<malware_name>
d41d8cd98f00b204e9800998ecf8427e:0:Test.Empty.File
# Extended signatures (.ndb)
<name>:<target>:<offset>:<pattern>
Trojan.Test:*:0:{4d 5a ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??}
# Logical signatures (.ldb) - complex logic
Trojan.Test {0} (0,0) 0:
0:& (pe.entry_point > 0x1000)
1:& (pe.sections[0].entropy > 7.0)
OpenIOC / STIX Patterns
<!-- OpenIOC 1.1 -->
<Indicator>
<IndicatorItem id="file_hash_sha256" condition="is">
<Context>FileItem/SHA256</Context>
<Content>a1b2c3...</Content>
</IndicatorItem>
<IndicatorItem id="file_path" condition="contains">
<Context>FileItem/FullPath</Context>
<Content>AppData\Roaming\</Content>
</IndicatorItem>
</Indicator>
// STIX 2.1 Pattern
"pattern": "[file:hashes.'SHA-256' = 'a1b2c3...' AND file:parent_directory_ref.name = 'AppData']"
Heuristic Engine Design
Static Features (PE/ELF)
# Feature vector for ML classifier
features = {
# Header features
"machine_type": pe.FILE_HEADER.Machine,
"num_sections": pe.FILE_HEADER.NumberOfSections,
"timestamp": pe.FILE_HEADER.TimeDateStamp,
"characteristics": pe.FILE_HEADER.Characteristics,
# Optional header
"subsystem": pe.OPTIONAL_HEADER.Subsystem,
"dll_characteristics": pe.OPTIONAL_HEADER.DllCharacteristics,
"size_of_image": pe.OPTIONAL_HEADER.SizeOfImage,
"entry_point": pe.OPTIONAL_HEADER.AddressOfEntryPoint,
# Section features
"section_entropies": [s.entropy for s in pe.sections],
"section_names": [s.Name.decode().rstrip('\x00') for s in pe.sections],
"section_characteristics": [s.Characteristics for s in pe.sections],
# Import features
"imports_count": len(pe.DIRECTORY_ENTRY_IMPORT),
"suspicious_imports": count_suspicious(pe.imports),
"import_hash": pe.get_imphash(),
# Export features
"exports_count": len(pe.DIRECTORY_ENTRY_EXPORT) if hasattr(pe, 'DIRECTORY_ENTRY_EXPORT') else 0,
# Resource features
"resources_count": count_resources(pe),
"resource_entropies": [r.entropy for r in pe.resources],
# String features
"string_count": len(strings),
"suspicious_strings": count_suspicious_strings(strings),
"base64_strings": count_base64(strings),
# Crypto features
"crypto_constants": detect_crypto_constants(bytes),
}
Behavioral Rules (Sigma/EDR)
# Sigma rule for behavioral detection
title: Suspicious Process Execution Chain
id: <uuid>
status: stable
description: Detects trojan download/execute chain
logsource:
product: windows
service: sysmon
detection:
selection_download:
EventID: 1 # Process Creation
Image|endswith:
- '\powershell.exe'
- '\cmd.exe'
- '\wscript.exe'
- '\cscript.exe'
- '\mshta.exe'
- '\rundll32.exe'
- '\regsvr32.exe'
CommandLine|contains:
- 'DownloadFile'
- 'DownloadString'
- 'Invoke-WebRequest'
- 'Invoke-Expression'
- 'IEX'
- 'curl'
- 'wget'
- 'bitsadmin'
- 'certutil'
selection_execute:
EventID: 1
ParentImage|endswith:
- '\powershell.exe'
- '\cmd.exe'
- '\wscript.exe'
- '\mshta.exe'
Image|endswith:
- '\powershell.exe'
- '\cmd.exe'
- '\rundll32.exe'
- '\regsvr32.exe'
- '\wscript.exe'
timeframe: 60s
condition: selection_download and selection_execute
level: high
tags:
- attack.t1059
- attack.t1105
- attack.t1204
Scanning Engine Architecture
File System Minifilter (Windows)
// Key callbacks for real-time scanning
FLT_PREOP_CALLBACK_STATUS PreCreate(
PFLT_CALLBACK_DATA Data,
PCFLT_RELATED_OBJECTS FltObjects,
PVOID* CompletionContext
) {
// Check file extension, path, process context
// Issue scan request to user-mode engine
// Return FLT_PREOP_COMPLETE with block/allow
}
FLT_POSTOP_CALLBACK_STATUS PostCreate(
PFLT_CALLBACK_DATA Data,
PCFLT_RELATED_OBJECTS FltObjects,
PVOID CompletionContext,
FLT_POST_OPERATION_FLAGS Flags
) {
// Handle scan results, quarantine if needed
}
Linux Fanotify / eBPF
// Fanotify for file access monitoring
int fanotify_fd = fanotify_init(FAN_CLASS_CONTENT | FAN_REPORT_FID, O_RDONLY);
fanotify_mark(fanotify_fd, FAN_MARK_ADD | FAN_MARK_MOUNT,
FAN_OPEN | FAN_CLOSE_WRITE | FAN_ACCESS,
AT_FDCWD, "/");
// eBPF LSM for finer-grained control
SEC("lsm/file_open")
int BPF_PROG(file_open_hook, struct file *file, int flags) {
// Check path, process, credentials
// Return 0 (allow) or -EPERM (deny)
}
Performance Optimization
Multi-Layer Scanning
Layer 1: Fast Pre-filter (10-50ms)
- Hash lookup (local + cloud)
- Extension/allowlist check
- Quick entropy/size heuristics
Layer 2: Signature Scan (50-200ms)
- YARA/ClamAV pattern matching
- Multi-threaded, SIMD-optimized
Layer 3: Heuristic/ML (200-500ms)
- Feature extraction
- Model inference (ONNX/TensorRT)
- Behavioral emulation (lightweight)
Layer 4: Deep Analysis (async, seconds)
- Sandbox detonation
- Full static analysis
- Cloud ML ensemble
Optimization Techniques
- Aho-Corasick for multi-pattern string matching
- SIMD (AVX2/AVX-512) for entropy, hash computation
- Memory-mapped I/O for large files
- Thread pool with work-stealing for concurrent scans
- Cache-friendly data structures (robin-hood hashing for hash sets)
- Async I/O (IOCP on Windows, io_uring on Linux)
False Positive Reduction
Allowlist Management
- Microsoft/OS binaries: Signed, known paths, catalog-signed
- Enterprise apps: Custom allowlist with hash + path + publisher
- Developer tools: Compiler outputs, build artifacts (configurable)
Context-Aware Decisions
- Process reputation: Signed vs unsigned, prevalence, age
- File provenance: Download zone identifier, email attachment, USB
- User behavior: Admin vs standard, interactive vs service
Feedback Loop
# Telemetry collection for FP reduction
telemetry = {
"file_hash": sha256,
"detection_name": "Heuristic.Suspicious",
"action_taken": "quarantined",
"user_action": "restored", # FP indicator
"file_path": path,
"process_path": proc_path,
"signer": cert_info,
"prevalence": cloud_reputation,
"timestamp": now
}
Tooling & Frameworks
Open Source Engines
- ClamAV: Mature signature engine, daemon + library
- YARA: Pattern matching, embeddable library
- OpenEDR: Open-source EDR framework (Wazuh, LimaCharlie)
- Velociraptor: Endpoint visibility, artifact collection
- GRR: Remote live forensics
Commercial SDKs
- Bitdefender SDK: Scanning engine + signatures
- Kaspersky SDK: Multi-layer scanning
- Sophos Intercept X API: Behavioral + ML
- CrowdStrike Falcon API: Cloud-native EDR
Development Tools
- YARA-Rules: Community rule repository
- MalwareBazaar / VirusShare: Sample feeds
- VT / Hybrid Analysis / Joe Sandbox: Dynamic analysis APIs
- MISP / OpenCTI: Threat intel platforms
Output Formats
Scan Result
{
"scan_id": "uuid",
"timestamp": "ISO8601",
"file": {
"path": "/path/to/file.exe",
"size": 123456,
"sha256": "a1b2c3...",
"mime": "application/x-dosexec"
},
"engine_version": "1.2.3",
"signatures_version": "2024.01.15",
"results": [
{
"layer": "signature",
"engine": "yara",
"rule": "Trojan_Emotet_Loader",
"severity": "high",
"matches": ["$s1", "$h2"]
},
{
"layer": "heuristic",
"engine": "ml_classifier",
"score": 0.94,
"verdict": "malicious",
"family": "Emotet"
}
],
"final_verdict": "malicious",
"action": "quarantined",
"quarantine_path": "/quarantine/a1b2c3..."
}
Performance Metrics
{
"scan_time_ms": 142,
"layers": {
"prefilter": 3,
"signature": 45,
"heuristic": 89,
"deep": 0
},
"files_scanned": 15000,
"detections": 3,
"false_positives": 0,
"throughput_mb_s": 850
}
Trigger Phrases
Use this skill when user mentions:
- "antivirus development" / "AV engine"
- "EDR development" / "XDR rules"
- "YARA rules" / "ClamAV signatures"
- "heuristic engine" / "behavioral detection"
- "real-time protection" / "on-access scanning"
- "file system filter driver" / "minifilter"
- "quarantine" / "remediation" / "rollback"
- "false positive reduction"
- "AV performance optimization"
- "signature development"
- "malware classification"
- "ML malware detection"
1---2name: antivirus3description: Antivirus/EDR/XDR engineering and signature development skill. Use when user needs to build, configure, or optimize antivirus/endpoint protection solutions - including signature creation (YARA, ClamAV, OpenIOC), heuristic/behavioral engine tuning, scanning engine architecture, real-time protection, quarantine/remediation, performance optimization, and false positive reduction. Trigger on: "antivirus development", "AV signatures", "YARA rules", "ClamAV signatures", "heuristic engine", "behavioral detection", "real-time protection", "EDR development", "XDR rules", "file scanning", "quarantine", "false positive reduction", "AV performance".4---56# Antivirus/EDR Engineering Skill78Engineering skill for building, configuring, and optimizing antivirus, EDR (Endpoint Detection & Response), and XDR (Extended Detection & Response) solutions. Covers signature-based detection, heuristic/behavioral engines, scanning architectures, and response automation.910## Core Components1112### 1. Signature-Based Detection13- **Hash Signatures**: MD5, SHA1, SHA256, SSDEEP (fuzzy), TLSH (locality-sensitive)14- **Pattern Signatures**: Byte sequences, regex, wildcard patterns15- **Structural Signatures**: PE/ELF section anomalies, import table hashes (impfuzzy), rich header16- **Format-Specific**: ClamAV (.hdb/.ndb/.ldb), YARA, OpenIOC, STIX patterns1718### 2. Heuristic/Behavioral Engines19- **Static Heuristics**: Entropy analysis, packer detection, suspicious API combinations, string anomalies20- **Dynamic Heuristics**: API call sequences, syscall patterns, process tree anomalies, MITRE ATT&CK mapping21- **ML/AI Models**: Feature extraction (PE headers, imports, strings, entropy), classification (malware/benign/family)2223### 3. Scanning Architecture24- **On-Demand**: Full, quick, custom, context-menu scanning25- **Real-Time/On-Access**: File system filter drivers (minifilter), kernel callbacks, ETW providers26- **Scheduled**: Idle-time, maintenance windows, cloud-assisted27- **Cloud-Assisted**: Hash lookup, reputation, ML inference offload2829### 4. Remediation & Response30- **Actions**: Clean, quarantine, delete, block, allow, rollback31- **Quarantine**: Secure storage, metadata preservation, restore capability32- **Rollback**: Ransomware file recovery (VSS, journal), registry restoration33- **Network Isolation**: Host firewall, NAC integration3435## Signature Development3637### YARA Rules (Primary Format)38```yara39rule MALWARE_Family_Variant {40 meta:41 description = "Detects Family variant Variant"42 author = "analyst"43 date = "YYYY-MM-DD"44 version = "1.0"45 hash = "sha256:..."46 severity = "high"47 category = "trojan|ransomware|backdoor|etc"48 platform = "windows|linux|macos|multi"49 mitre = "T1055, T1547.001"50 51 strings:52 // Static strings53 $s1 = "unique_string" ascii wide nocase54 $s2 = { 4D 5A ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? }55 56 // Hex patterns with jumps57 $h1 = { 48 89 5C 24 ?? 48 89 74 24 ?? 57 48 83 EC 20 }58 59 // Regex for obfuscated patterns60 $r1 = /[A-Za-z0-9+\/]{20,}={0,2}/ // Base6461 62 // Entropy-based (high entropy sections)63 $entropy = { ?? ?? ?? ?? } // placeholder for entropy condition64 65 condition:66 // File size constraints67 filesize < 50MB and68 69 // Primary detection logic70 (any of ($s*) and any of ($h*)) or71 (uint16(0) == 0x5A4D and any of ($s*)) or // PE header + strings72 73 // High entropy + suspicious imports74 (math.entropy(0, filesize) > 7.5 and pe.imports("kernel32.dll", "VirtualAllocEx"))75}76```7778### ClamAV Signatures79```bash80# Hash-based (.hdb)81<md5>:<size>:<malware_name>82d41d8cd98f00b204e9800998ecf8427e:0:Test.Empty.File8384# Extended signatures (.ndb)85<name>:<target>:<offset>:<pattern>86Trojan.Test:*:0:{4d 5a ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??}8788# Logical signatures (.ldb) - complex logic89Trojan.Test {0} (0,0) 0:90 0:& (pe.entry_point > 0x1000)91 1:& (pe.sections[0].entropy > 7.0)92```9394### OpenIOC / STIX Patterns95```xml96<!-- OpenIOC 1.1 -->97<Indicator>98 <IndicatorItem id="file_hash_sha256" condition="is">99 <Context>FileItem/SHA256</Context>100 <Content>a1b2c3...</Content>101 </IndicatorItem>102 <IndicatorItem id="file_path" condition="contains">103 <Context>FileItem/FullPath</Context>104 <Content>AppData\Roaming\</Content>105 </IndicatorItem>106</Indicator>107```108109```json110// STIX 2.1 Pattern111"pattern": "[file:hashes.'SHA-256' = 'a1b2c3...' AND file:parent_directory_ref.name = 'AppData']"112```113114## Heuristic Engine Design115116### Static Features (PE/ELF)117```python118# Feature vector for ML classifier119features = {120 # Header features121 "machine_type": pe.FILE_HEADER.Machine,122 "num_sections": pe.FILE_HEADER.NumberOfSections,123 "timestamp": pe.FILE_HEADER.TimeDateStamp,124 "characteristics": pe.FILE_HEADER.Characteristics,125 126 # Optional header127 "subsystem": pe.OPTIONAL_HEADER.Subsystem,128 "dll_characteristics": pe.OPTIONAL_HEADER.DllCharacteristics,129 "size_of_image": pe.OPTIONAL_HEADER.SizeOfImage,130 "entry_point": pe.OPTIONAL_HEADER.AddressOfEntryPoint,131 132 # Section features133 "section_entropies": [s.entropy for s in pe.sections],134 "section_names": [s.Name.decode().rstrip('\x00') for s in pe.sections],135 "section_characteristics": [s.Characteristics for s in pe.sections],136 137 # Import features138 "imports_count": len(pe.DIRECTORY_ENTRY_IMPORT),139 "suspicious_imports": count_suspicious(pe.imports),140 "import_hash": pe.get_imphash(),141 142 # Export features143 "exports_count": len(pe.DIRECTORY_ENTRY_EXPORT) if hasattr(pe, 'DIRECTORY_ENTRY_EXPORT') else 0,144 145 # Resource features146 "resources_count": count_resources(pe),147 "resource_entropies": [r.entropy for r in pe.resources],148 149 # String features150 "string_count": len(strings),151 "suspicious_strings": count_suspicious_strings(strings),152 "base64_strings": count_base64(strings),153 154 # Crypto features155 "crypto_constants": detect_crypto_constants(bytes),156}157```158159### Behavioral Rules (Sigma/EDR)160```yaml161# Sigma rule for behavioral detection162title: Suspicious Process Execution Chain163id: <uuid>164status: stable165description: Detects trojan download/execute chain166logsource:167 product: windows168 service: sysmon169detection:170 selection_download:171 EventID: 1 # Process Creation172 Image|endswith: 173 - '\powershell.exe'174 - '\cmd.exe'175 - '\wscript.exe'176 - '\cscript.exe'177 - '\mshta.exe'178 - '\rundll32.exe'179 - '\regsvr32.exe'180 CommandLine|contains:181 - 'DownloadFile'182 - 'DownloadString'183 - 'Invoke-WebRequest'184 - 'Invoke-Expression'185 - 'IEX'186 - 'curl'187 - 'wget'188 - 'bitsadmin'189 - 'certutil'190 selection_execute:191 EventID: 1192 ParentImage|endswith:193 - '\powershell.exe'194 - '\cmd.exe'195 - '\wscript.exe'196 - '\mshta.exe'197 Image|endswith:198 - '\powershell.exe'199 - '\cmd.exe'200 - '\rundll32.exe'201 - '\regsvr32.exe'202 - '\wscript.exe'203 timeframe: 60s204condition: selection_download and selection_execute205level: high206tags:207 - attack.t1059208 - attack.t1105209 - attack.t1204210```211212## Scanning Engine Architecture213214### File System Minifilter (Windows)215```c216// Key callbacks for real-time scanning217FLT_PREOP_CALLBACK_STATUS PreCreate(218 PFLT_CALLBACK_DATA Data,219 PCFLT_RELATED_OBJECTS FltObjects,220 PVOID* CompletionContext221) {222 // Check file extension, path, process context223 // Issue scan request to user-mode engine224 // Return FLT_PREOP_COMPLETE with block/allow225}226227FLT_POSTOP_CALLBACK_STATUS PostCreate(228 PFLT_CALLBACK_DATA Data,229 PCFLT_RELATED_OBJECTS FltObjects,230 PVOID CompletionContext,231 FLT_POST_OPERATION_FLAGS Flags232) {233 // Handle scan results, quarantine if needed234}235```236237### Linux Fanotify / eBPF238```c239// Fanotify for file access monitoring240int fanotify_fd = fanotify_init(FAN_CLASS_CONTENT | FAN_REPORT_FID, O_RDONLY);241fanotify_mark(fanotify_fd, FAN_MARK_ADD | FAN_MARK_MOUNT, 242 FAN_OPEN | FAN_CLOSE_WRITE | FAN_ACCESS, 243 AT_FDCWD, "/");244245// eBPF LSM for finer-grained control246SEC("lsm/file_open")247int BPF_PROG(file_open_hook, struct file *file, int flags) {248 // Check path, process, credentials249 // Return 0 (allow) or -EPERM (deny)250}251```252253## Performance Optimization254255### Multi-Layer Scanning256```257Layer 1: Fast Pre-filter (10-50ms)258 - Hash lookup (local + cloud)259 - Extension/allowlist check260 - Quick entropy/size heuristics261262Layer 2: Signature Scan (50-200ms)263 - YARA/ClamAV pattern matching264 - Multi-threaded, SIMD-optimized265266Layer 3: Heuristic/ML (200-500ms)267 - Feature extraction268 - Model inference (ONNX/TensorRT)269 - Behavioral emulation (lightweight)270271Layer 4: Deep Analysis (async, seconds)272 - Sandbox detonation273 - Full static analysis274 - Cloud ML ensemble275```276277### Optimization Techniques278- **Aho-Corasick** for multi-pattern string matching279- **SIMD** (AVX2/AVX-512) for entropy, hash computation280- **Memory-mapped I/O** for large files281- **Thread pool** with work-stealing for concurrent scans282- **Cache-friendly** data structures (robin-hood hashing for hash sets)283- **Async I/O** (IOCP on Windows, io_uring on Linux)284285## False Positive Reduction286287### Allowlist Management288- **Microsoft/OS binaries**: Signed, known paths, catalog-signed289- **Enterprise apps**: Custom allowlist with hash + path + publisher290- **Developer tools**: Compiler outputs, build artifacts (configurable)291292### Context-Aware Decisions293- **Process reputation**: Signed vs unsigned, prevalence, age294- **File provenance**: Download zone identifier, email attachment, USB295- **User behavior**: Admin vs standard, interactive vs service296297### Feedback Loop298```python299# Telemetry collection for FP reduction300telemetry = {301 "file_hash": sha256,302 "detection_name": "Heuristic.Suspicious",303 "action_taken": "quarantined",304 "user_action": "restored", # FP indicator305 "file_path": path,306 "process_path": proc_path,307 "signer": cert_info,308 "prevalence": cloud_reputation,309 "timestamp": now310}311```312313## Tooling & Frameworks314315### Open Source Engines316- **ClamAV**: Mature signature engine, daemon + library317- **YARA**: Pattern matching, embeddable library318- **OpenEDR**: Open-source EDR framework (Wazuh, LimaCharlie)319- **Velociraptor**: Endpoint visibility, artifact collection320- **GRR**: Remote live forensics321322### Commercial SDKs323- **Bitdefender SDK**: Scanning engine + signatures324- **Kaspersky SDK**: Multi-layer scanning325- **Sophos Intercept X API**: Behavioral + ML326- **CrowdStrike Falcon API**: Cloud-native EDR327328### Development Tools329- **YARA-Rules**: Community rule repository330- **MalwareBazaar / VirusShare**: Sample feeds331- **VT / Hybrid Analysis / Joe Sandbox**: Dynamic analysis APIs332- **MISP / OpenCTI**: Threat intel platforms333334## Output Formats335336### Scan Result337```json338{339 "scan_id": "uuid",340 "timestamp": "ISO8601",341 "file": {342 "path": "/path/to/file.exe",343 "size": 123456,344 "sha256": "a1b2c3...",345 "mime": "application/x-dosexec"346 },347 "engine_version": "1.2.3",348 "signatures_version": "2024.01.15",349 "results": [350 {351 "layer": "signature",352 "engine": "yara",353 "rule": "Trojan_Emotet_Loader",354 "severity": "high",355 "matches": ["$s1", "$h2"]356 },357 {358 "layer": "heuristic",359 "engine": "ml_classifier",360 "score": 0.94,361 "verdict": "malicious",362 "family": "Emotet"363 }364 ],365 "final_verdict": "malicious",366 "action": "quarantined",367 "quarantine_path": "/quarantine/a1b2c3..."368}369```370371### Performance Metrics372```json373{374 "scan_time_ms": 142,375 "layers": {376 "prefilter": 3,377 "signature": 45,378 "heuristic": 89,379 "deep": 0380 },381 "files_scanned": 15000,382 "detections": 3,383 "false_positives": 0,384 "throughput_mb_s": 850385}386```387388## Trigger Phrases389Use this skill when user mentions:390- "antivirus development" / "AV engine"391- "EDR development" / "XDR rules"392- "YARA rules" / "ClamAV signatures"393- "heuristic engine" / "behavioral detection"394- "real-time protection" / "on-access scanning"395- "file system filter driver" / "minifilter"396- "quarantine" / "remediation" / "rollback"397- "false positive reduction"398- "AV performance optimization"399- "signature development"400- "malware classification"401- "ML malware detection"