·4 min read
KANKA AV: A Windows Antivirus with a C Core, YARA and VirusTotal — plus NetRadar
A scan engine written in C, a three-tier verdict with YARA and VirusTotal, secure quarantine, PC cleanup, cloud backup, and NetRadar, which draws your connections on a globe. How we built KANKA AV from scratch and keep growing it.
Ecosystem
NetRadar · real-time network and geolocation visualiser
Draws every TCP/UDP connection your PC opens, with the process behind it, on a spinning globe.
.NET 10 WPF · WebView2 · MaxMind GeoLite2 · TopoJSON
Built to report suspicious connections to KANKA AV over a local TCP socket; full integration into the antivirus is the next step.
Mission specs
- Core
- Scan engine in C: thread pool, risk engine, hash cache
- Detection
- Three tiers: signature/hash · YARA rules · VirusTotal
- Threat data
- MalwareBazaar SHA-256 hash list, Authenticode signature checks
- Interface
- Python bridge + Qt6 (PySide6) desktop app with tray icon
- Modules
- Scanning, quarantine, PC cleanup, Google Drive cloud backup
- Distribution
- Setup wizard .exe · kankaav.com.tr
Team
- Me
Samet GüçlüEngine, bridge, NetRadar, installer
Erdem BaranInterface, YARA rules, testing
Mission log
Every change to the project is logged here with its date, newest first.
- Current
The app keeps growing after v1.0.0: PC cleanup and Google Drive cloud backup (DLP) tabs were added and the dashboard redesigned. Project page refreshed with new screenshots.
- NetRadar
First NetRadar release: a .NET 10 WPF + WebView2 visualiser that draws live TCP/UDP connections, with process names, on a globe.
- v1.0.0
v1.0.0 released: secure quarantine, three-tier scanning, the Qt6 interface and a setup wizard. Filters were relaxed to avoid blocking harmless files, and online-only OneDrive files are skipped instead of downloaded.
- v0.9.0
v0.9.0 Alpha: architecture tidied up, app packaged as an .exe with a setup wizard.
Image records
The app
Maintenance & backup
NetRadar
Brand
Video records
Next steps
- Full NetRadar integration in the antivirus
- Real-time file system monitoring
Technical report
Architecture, hardware and software in detail.
Introduction: why build an antivirus from scratch?
The best way to see inside an antivirus is to write one. How do you read a file, at what point do you call it malicious, and what does it cost to block a harmless one by mistake? KANKA AV is the Windows antivirus we built from scratch while answering those questions, inspired by the layered architecture of products like Kaspersky and Avast. Its tagline sums up the approach: "Your buddy in the digital world." Technical without being scary: light, clear and friendly.
The project is still growing. After v1.0.0 the app gained PC cleanup and cloud backup, and a separate tool grew alongside it to visualise network traffic: NetRadar.
🧠 How a file gets a verdict
Every file passes the cheap checks before it reaches the expensive ones:
- Pre-filter: file type and size are checked. Quick scans skip low-risk files; full scans send every file on to the next tier.
- Tier 1, the C engine: the file is read by the engine written in C, its SHA-256 hash is computed and compared with a list of known malware that can be refreshed from abuse.ch MalwareBazaar. Files scanned before come from a hash cache instead of being read again. Microsoft Authenticode signatures are verified here too.
- Tier 2, YARA: compiled YARA rules look for malicious patterns in the file's structure and content. Large files are scanned in chunks to keep memory in check, and files are processed in batches of 500–1,000. If YARA is certain, the verdict is final.
- Tier 3, VirusTotal: only when YARA says "suspicious" is the file's hash checked against VirusTotal, which makes the final call. The file itself is never uploaded.
Inside the engine a risk engine adds up evidence: each source (hash match, YARA rule, signature status…) contributes its weight to the file's risk score, and the final decision follows that score. The weights are configurable.
🛡️ Secure quarantine
A malicious file is taken from where it was, encrypted so it can't run and moved to the quarantine folder. Where it came from, when and why it was quarantined is kept in a JSON record. From the quarantine screen the user can restore the file or delete it for good. The uninstaller leaves the quarantine folder alone, so quarantined files aren't lost even if the app is removed.
🎯 Aiming for zero false positives
The fastest way for an antivirus to lose trust is to delete a harmless file; it pushes users to switch protection off. For v1.0.0 we retuned the filters and verdicts: Authenticode signature checks and the hash cache feed into the risk score, and when YARA isn't certain the decision is left to VirusTotal. OneDrive's online-only files are skipped rather than downloaded during a scan, so scanning never quietly fills the user's disk and bandwidth.
🏗️ Architecture
┌──────────────────────────────────────────────────────────────┐
│ 🎨 Qt6 (PySide6) desktop app │
│ Dashboard · Scan · Quarantine · NetRadar · Cleanup · Cloud │
└──────────────────────────────┬───────────────────────────────┘
│ Python bridge (ctypes)
▼
┌──────────────────────────────────────────────────────────────┐
│ 🌉 Scan orchestrator │
│ YARA engine · VirusTotal engine · quarantine manager │
└──────────────────────────────┬───────────────────────────────┘
│ Native DLL API
▼
┌──────────────────────────────────────────────────────────────┐
│ ⚡ C engine │
│ scan manager · thread pool · risk engine · │
│ hash cache · Authenticode · database pool │
└──────────────────────────────────────────────────────────────┘
The app can minimise to the system tray; while a scan runs in the background it shows live speed, files processed and a smoothed time-remaining estimate. It ships as an .exe with a setup wizard that removes older versions on install.
🧹 Maintenance and backup
- PC cleanup: Windows and user temp files, Prefetch, the Recycle Bin, browser caches, the thumbnail cache and Windows Update downloads are analysed category by category, each showing how much space can be reclaimed. Browsing history, passwords and bookmarks are never removed, and risky categories such as the Downloads folder are flagged with a warning.
- Cloud backup (DLP): chosen folders are backed up to Google Drive. If ransomware encrypts files or they get deleted, the safe copies can be restored from inside the app.
🌐 NetRadar
NetRadar is a Windows app that scans every TCP and UDP connection open on the machine, along with the process behind it (PID and name). It locates each external IP address with the MaxMind GeoLite2 database and draws it as an arc on a spinning globe, with incoming and outgoing traffic in different colours. At a glance it answers "who, and which country, is my computer talking to right now?"
- Technology: .NET 10 WPF, with the map in HTML5/JavaScript and TopoJSON inside WebView2.
- Link to the antivirus: designed to pass suspicious connections to KANKA AV over a local TCP socket. Today NetRadar runs as a separate app; full integration into the antivirus's NetRadar tab is the next step.
🖥️ Website and distribution
kankaav.com.tr is the product and download site: built with Next.js, in Turkish and English with light and dark themes, and it publishes the release history. Its live support assistant syncs messages with Telegram, so a visitor writes on the site and the reply comes back from Telegram.
👥 Team
KANKA AV is a two-person team project. Each developer works on their own branch and changes come into main through merges.
- Samet Güçlü (me): the C scan engine and its modules, the Python bridge, the three-tier scan orchestrator, VirusTotal integration, quarantine, the installer, NetRadar and the website.
- Erdem Baran: interface designs, compiling the YARA rule set and testing.
🎯 Conclusion
KANKA AV taught me low-level file handling, bridging C and Python, working with threat intelligence and, above all, that in a security product a false alarm is a bug too. The project keeps receiving updates; ongoing changes are tracked in the mission log at the top of this page.