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: >-4 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".5metadata:6 source: https://skillmd.com/skills/belentani7/antivirus7---89# Antivirus/EDR Engineering Skill1011Engineering 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.1213## Core Components1415### 1. Signature-Based Detection16- **Hash Signatures**: MD5, SHA1, SHA256, SSDEEP (fuzzy), TLSH (locality-sensitive)17- **Pattern Signatures**: Byte sequences, regex, wildcard patterns18- **Structural Signatures**: PE/ELF section anomalies, import table hashes (impfuzzy), rich header19- **Format-Specific**: ClamAV (.hdb/.ndb/.ldb), YARA, OpenIOC, STIX patterns2021### 2. Heuristic/Behavioral Engines22- **Static Heuristics**: Entropy analysis, packer detection, suspicious API combinations, string anomalies23- **Dynamic Heuristics**: API call sequences, syscall patterns, process tree anomalies, MITRE ATT&CK mapping24- **ML/AI Models**: Feature extraction (PE headers, imports, strings, entropy), classification (malware/benign/family)2526### 3. Scanning Architecture27- **On-Demand**: Full, quick, custom, context-menu scanning28- **Real-Time/On-Access**: File system filter drivers (minifilter), kernel callbacks, ETW providers29- **Scheduled**: Idle-time, maintenance windows, cloud-assisted30- **Cloud-Assisted**: Hash lookup, reputation, ML inference offload3132### 4. Remediation & Response33- **Actions**: Clean, quarantine, delete, block, allow, rollback34- **Quarantine**: Secure storage, metadata preservation, restore capability35- **Rollback**: Ransomware file recovery (VSS, journal), registry restoration36- **Network Isolation**: Host firewall, NAC integration3738## Signature Development3940### YARA Rules (Primary Format)41```yara42rule MALWARE_Family_Variant {43 meta:44 description = "Detects Family variant Variant"45 author = "analyst"46 date = "YYYY-MM-DD"47 version = "1.0"48 hash = "sha256:..."49 severity = "high"50 category = "trojan|ransomware|backdoor|etc"51 platform = "windows|linux|macos|multi"52 mitre = "T1055, T1547.001"53 54 strings:55 // Static strings56 $s1 = "unique_string" ascii wide nocase57 $s2 = { 4D 5A ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? }58 59 // Hex patterns with jumps60 $h1 = { 48 89 5C 24 ?? 48 89 74 24 ?? 57 48 83 EC 20 }61 62 // Regex for obfuscated patterns63 $r1 = /[A-Za-z0-9+\/]{20,}={0,2}/ // Base6464 65 // Entropy-based (high entropy sections)66 $entropy = { ?? ?? ?? ?? } // placeholder for entropy condition67 68 condition:69 // File size constraints70 filesize < 50MB and71 72 // Primary detection logic73 (any of ($s*) and any of ($h*)) or74 (uint16(0) == 0x5A4D and any of ($s*)) or // PE header + strings75 76 // High entropy + suspicious imports77 (math.entropy(0, filesize) > 7.5 and pe.imports("kernel32.dll", "VirtualAllocEx"))78}79```8081### ClamAV Signatures82```bash83# Hash-based (.hdb)84<md5>:<size>:<malware_name>85d41d8cd98f00b204e9800998ecf8427e:0:Test.Empty.File8687# Extended signatures (.ndb)88<name>:<target>:<offset>:<pattern>89Trojan.Test:*:0:{4d 5a ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??}9091# Logical signatures (.ldb) - complex logic92Trojan.Test {0} (0,0) 0:93 0:& (pe.entry_point > 0x1000)94 1:& (pe.sections[0].entropy > 7.0)95```9697### OpenIOC / STIX Patterns98```xml99<!-- OpenIOC 1.1 -->100<Indicator>101 <IndicatorItem id="file_hash_sha256" condition="is">102 <Context>FileItem/SHA256</Context>103 <Content>a1b2c3...</Content>104 </IndicatorItem>105 <IndicatorItem id="file_path" condition="contains">106 <Context>FileItem/FullPath</Context>107 <Content>AppData\Roaming\</Content>108 </IndicatorItem>109</Indicator>110```111112```json113// STIX 2.1 Pattern114"pattern": "[file:hashes.'SHA-256' = 'a1b2c3...' AND file:parent_directory_ref.name = 'AppData']"115```116117## Heuristic Engine Design118119### Static Features (PE/ELF)120```python121# Feature vector for ML classifier122features = {123 # Header features124 "machine_type": pe.FILE_HEADER.Machine,125 "num_sections": pe.FILE_HEADER.NumberOfSections,126 "timestamp": pe.FILE_HEADER.TimeDateStamp,127 "characteristics": pe.FILE_HEADER.Characteristics,128 129 # Optional header130 "subsystem": pe.OPTIONAL_HEADER.Subsystem,131 "dll_characteristics": pe.OPTIONAL_HEADER.DllCharacteristics,132 "size_of_image": pe.OPTIONAL_HEADER.SizeOfImage,133 "entry_point": pe.OPTIONAL_HEADER.AddressOfEntryPoint,134 135 # Section features136 "section_entropies": [s.entropy for s in pe.sections],137 "section_names": [s.Name.decode().rstrip('\x00') for s in pe.sections],138 "section_characteristics": [s.Characteristics for s in pe.sections],139 140 # Import features141 "imports_count": len(pe.DIRECTORY_ENTRY_IMPORT),142 "suspicious_imports": count_suspicious(pe.imports),143 "import_hash": pe.get_imphash(),144 145 # Export features146 "exports_count": len(pe.DIRECTORY_ENTRY_EXPORT) if hasattr(pe, 'DIRECTORY_ENTRY_EXPORT') else 0,147 148 # Resource features149 "resources_count": count_resources(pe),150 "resource_entropies": [r.entropy for r in pe.resources],151 152 # String features153 "string_count": len(strings),154 "suspicious_strings": count_suspicious_strings(strings),155 "base64_strings": count_base64(strings),156 157 # Crypto features158 "crypto_constants": detect_crypto_constants(bytes),159}160```161162### Behavioral Rules (Sigma/EDR)163```yaml164# Sigma rule for behavioral detection165title: Suspicious Process Execution Chain166id: <uuid>167status: stable168description: Detects trojan download/execute chain169logsource:170 product: windows171 service: sysmon172detection:173 selection_download:174 EventID: 1 # Process Creation175 Image|endswith: 176 - '\powershell.exe'177 - '\cmd.exe'178 - '\wscript.exe'179 - '\cscript.exe'180 - '\mshta.exe'181 - '\rundll32.exe'182 - '\regsvr32.exe'183 CommandLine|contains:184 - 'DownloadFile'185 - 'DownloadString'186 - 'Invoke-WebRequest'187 - 'Invoke-Expression'188 - 'IEX'189 - 'curl'190 - 'wget'191 - 'bitsadmin'192 - 'certutil'193 selection_execute:194 EventID: 1195 ParentImage|endswith:196 - '\powershell.exe'197 - '\cmd.exe'198 - '\wscript.exe'199 - '\mshta.exe'200 Image|endswith:201 - '\powershell.exe'202 - '\cmd.exe'203 - '\rundll32.exe'204 - '\regsvr32.exe'205 - '\wscript.exe'206 timeframe: 60s207condition: selection_download and selection_execute208level: high209tags:210 - attack.t1059211 - attack.t1105212 - attack.t1204213```214215## Scanning Engine Architecture216217### File System Minifilter (Windows)218```c219// Key callbacks for real-time scanning220FLT_PREOP_CALLBACK_STATUS PreCreate(221 PFLT_CALLBACK_DATA Data,222 PCFLT_RELATED_OBJECTS FltObjects,223 PVOID* CompletionContext224) {225 // Check file extension, path, process context226 // Issue scan request to user-mode engine227 // Return FLT_PREOP_COMPLETE with block/allow228}229230FLT_POSTOP_CALLBACK_STATUS PostCreate(231 PFLT_CALLBACK_DATA Data,232 PCFLT_RELATED_OBJECTS FltObjects,233 PVOID CompletionContext,234 FLT_POST_OPERATION_FLAGS Flags235) {236 // Handle scan results, quarantine if needed237}238```239240### Linux Fanotify / eBPF241```c242// Fanotify for file access monitoring243int fanotify_fd = fanotify_init(FAN_CLASS_CONTENT | FAN_REPORT_FID, O_RDONLY);244fanotify_mark(fanotify_fd, FAN_MARK_ADD | FAN_MARK_MOUNT, 245 FAN_OPEN | FAN_CLOSE_WRITE | FAN_ACCESS, 246 AT_FDCWD, "/");247248// eBPF LSM for finer-grained control249SEC("lsm/file_open")250int BPF_PROG(file_open_hook, struct file *file, int flags) {251 // Check path, process, credentials252 // Return 0 (allow) or -EPERM (deny)253}254```255256## Performance Optimization257258### Multi-Layer Scanning259```260Layer 1: Fast Pre-filter (10-50ms)261 - Hash lookup (local + cloud)262 - Extension/allowlist check263 - Quick entropy/size heuristics264265Layer 2: Signature Scan (50-200ms)266 - YARA/ClamAV pattern matching267 - Multi-threaded, SIMD-optimized268269Layer 3: Heuristic/ML (200-500ms)270 - Feature extraction271 - Model inference (ONNX/TensorRT)272 - Behavioral emulation (lightweight)273274Layer 4: Deep Analysis (async, seconds)275 - Sandbox detonation276 - Full static analysis277 - Cloud ML ensemble278```279280### Optimization Techniques281- **Aho-Corasick** for multi-pattern string matching282- **SIMD** (AVX2/AVX-512) for entropy, hash computation283- **Memory-mapped I/O** for large files284- **Thread pool** with work-stealing for concurrent scans285- **Cache-friendly** data structures (robin-hood hashing for hash sets)286- **Async I/O** (IOCP on Windows, io_uring on Linux)287288## False Positive Reduction289290### Allowlist Management291- **Microsoft/OS binaries**: Signed, known paths, catalog-signed292- **Enterprise apps**: Custom allowlist with hash + path + publisher293- **Developer tools**: Compiler outputs, build artifacts (configurable)294295### Context-Aware Decisions296- **Process reputation**: Signed vs unsigned, prevalence, age297- **File provenance**: Download zone identifier, email attachment, USB298- **User behavior**: Admin vs standard, interactive vs service299300### Feedback Loop301```python302# Telemetry collection for FP reduction303telemetry = {304 "file_hash": sha256,305 "detection_name": "Heuristic.Suspicious",306 "action_taken": "quarantined",307 "user_action": "restored", # FP indicator308 "file_path": path,309 "process_path": proc_path,310 "signer": cert_info,311 "prevalence": cloud_reputation,312 "timestamp": now313}314```315316## Tooling & Frameworks317318### Open Source Engines319- **ClamAV**: Mature signature engine, daemon + library320- **YARA**: Pattern matching, embeddable library321- **OpenEDR**: Open-source EDR framework (Wazuh, LimaCharlie)322- **Velociraptor**: Endpoint visibility, artifact collection323- **GRR**: Remote live forensics324325### Commercial SDKs326- **Bitdefender SDK**: Scanning engine + signatures327- **Kaspersky SDK**: Multi-layer scanning328- **Sophos Intercept X API**: Behavioral + ML329- **CrowdStrike Falcon API**: Cloud-native EDR330331### Development Tools332- **YARA-Rules**: Community rule repository333- **MalwareBazaar / VirusShare**: Sample feeds334- **VT / Hybrid Analysis / Joe Sandbox**: Dynamic analysis APIs335- **MISP / OpenCTI**: Threat intel platforms336337## Output Formats338339### Scan Result340```json341{342 "scan_id": "uuid",343 "timestamp": "ISO8601",344 "file": {345 "path": "/path/to/file.exe",346 "size": 123456,347 "sha256": "a1b2c3...",348 "mime": "application/x-dosexec"349 },350 "engine_version": "1.2.3",351 "signatures_version": "2024.01.15",352 "results": [353 {354 "layer": "signature",355 "engine": "yara",356 "rule": "Trojan_Emotet_Loader",357 "severity": "high",358 "matches": ["$s1", "$h2"]359 },360 {361 "layer": "heuristic",362 "engine": "ml_classifier",363 "score": 0.94,364 "verdict": "malicious",365 "family": "Emotet"366 }367 ],368 "final_verdict": "malicious",369 "action": "quarantined",370 "quarantine_path": "/quarantine/a1b2c3..."371}372```373374### Performance Metrics375```json376{377 "scan_time_ms": 142,378 "layers": {379 "prefilter": 3,380 "signature": 45,381 "heuristic": 89,382 "deep": 0383 },384 "files_scanned": 15000,385 "detections": 3,386 "false_positives": 0,387 "throughput_mb_s": 850388}389```390391## Trigger Phrases392Use this skill when user mentions:393- "antivirus development" / "AV engine"394- "EDR development" / "XDR rules"395- "YARA rules" / "ClamAV signatures"396- "heuristic engine" / "behavioral detection"397- "real-time protection" / "on-access scanning"398- "file system filter driver" / "minifilter"399- "quarantine" / "remediation" / "rollback"400- "false positive reduction"401- "AV performance optimization"402- "signature development"403- "malware classification"404- "ML malware detection"