How itskaran01/malware-scanner works
A small command-line malware scanner: a user selects a directory, the scanner checks files against hash, header, and heuristic indicators, quarantines detected threats, and prints and logs a report. The single Python module implements these stages. The listed JSON file’s name differs from the signature filename the code opens, so the graph shows that signature database as an external file rather than linking the listed file. Signature updating is not implemented in the executable path.
Main entry points: malwarescanning.py Directory scan
Components 11
Command line
- CLI entry
malwarescanning.py
Scanning and response
- Scanner setup
malwarescanning.py - Signature database
- Directory scan
malwarescanning.py - Hash check
malwarescanning.py - Heuristic check
malwarescanning.py - Quarantine
malwarescanning.py
Reporting
- Report generation
malwarescanning.py - Log file
Other components
- User
- Quarantine directory
Connections 13
- User → CLI entry: runs
malwarescanning.py - CLI entry → Scanner setup: creates
malwarescanning.py - Scanner setup → Signature database: loads
malwarescanning.py - CLI entry → Directory scan: starts scan
malwarescanning.py - Directory scan → Hash check: checks hash
malwarescanning.py - Directory scan → Heuristic check: checks heuristics
malwarescanning.py - Directory scan → Signature database: checks header and hashes
malwarescanning.py - Directory scan → Quarantine: quarantines threats
malwarescanning.py - Quarantine → Quarantine directory: moves file
malwarescanning.py - CLI entry → Report generation: generates report
malwarescanning.py - Directory scan → Log file: logs errors
malwarescanning.py - Quarantine → Log file: logs failures
malwarescanning.py - Report generation → Log file: appends report
malwarescanning.py