185 words
1 minute
Custom Antivirus Engine & Telemetry Pipeline
Custom Antivirus Engine & Telemetry Pipeline
Understanding how endpoint detection systems analyze and catalog unknown binaries is foundational for defensive security operations. This project implements a lightweight antivirus engine in C# paired with cloud telemetry on Supabase.
Architecture and Threat Detection Pipeline
- Static Analysis & File Hashing: Computes cryptographic hashes (MD5, SHA-1, SHA-256) of target binaries and Portable Executable (PE) files.
- Signature Database Matching: Compares calculated hash digests against known malware signature databases and IOC (Indicator of Compromise) feeds.
- Heuristic File Inspection: Scans binary headers for suspicious compile anomalies, entropy thresholds, and packed PE sections.
- Supabase Cloud Telemetry: Real-time asynchronous logging of scan results, quarantine actions, machine IDs, and threat severity scores.
public class ThreatLog{ [JsonProperty("scan_time")] public DateTime ScanTime { get; set; } = DateTime.UtcNow;
[JsonProperty("file_path")] public string FilePath { get; set; }
[JsonProperty("sha256_hash")] public string Sha256Hash { get; set; }
[JsonProperty("threat_level")] public string ThreatLevel { get; set; } // INFO, SUSPICIOUS, MALICIOUS
[JsonProperty("quarantined")] public bool Quarantined { get; set; }}Defensive Takeaways for SOC Analysis
- Rapid Triage: Understanding hash classification at the agent level accelerates SOC alert classification.
- IOC Ingestion: Direct pipeline for exporting detection metrics into SIEM / SOAR rule engines.
Sphynx | Ismail Larhrib