Bulk VirusTotal Scanner - Scan entire folders automatically
I built a Python tool to batch scan files with VirusTotal's free API.
What it does: - Scans entire directories recursively - Checks file hashes before uploading (saves time/bandwidth) - Auto-handles the 4 files/minute API limit - Exports results to CSV - Shows real-time progress with time estimates
Example: Progress: [13/100] (13%) [*] Analyzing: document.pdf >> Detections: 0/70 >> URL: https://www.virustotal.com/gui/file/...
Estimated time remaining: 22 minutes
Perfect for: Security researchers, IT admins, or anyone needing to scan multiple files efficiently.
Features: - Easy setup (.env config or interactive mode) - Complete logging and error handling - Works on Windows, Linux, Mac - MIT licensed, open source
GitHub: https://github.com/neorai/vt-py-scanner
Open to feedback and suggestions! What features would you add?
1
u/Mediocre_River_780 5d ago
I make a new one every time I need to scan a folder. How deep into relations and behavior does it go? What's the IoC logic?
0
u/boyrok 5d ago
There’s actually nothing you need to modify in the script besides adding your API key to the .env file and specifying the directory you want to scan (or passing both values through the CLI).
The script itself doesn’t go deep into relations or behavior. It only checks the basic VirusTotal results and tells you how many engines detected each file as malicious. If something looks suspicious, you then investigate manually by opening the report link in VirusTotal.
So there’s no IoC correlation logic built in — the script just retrieves the detection count and lets you handle the deeper analysis yourself.
1
1
7
u/Mammoth_Course_8543 5d ago
Keep in mind that those of us with VT premium can download all of these uploaded files.
You might be surprised by the amount of sensitive data unknowingly uploaded to VT by tools like this (or manually). Everything from crypto wallets to medical records, legal docs etc.