How el-rougui/simplevirusdetector-rl works
Project type and purpose
• This is an open-source, standalone Java command-line tool (“SimpleVirusDetector-RL”) for scanning files or directories for malicious content.
• It loads a list of MD5 hashes (“virusDef.txt”) and employs a simple reinforcement-learning (ε-greedy) mode to adapt detection over time.
File structure
• Top-level build files: build.xml (Ant), nbproject/ (NetBeans).
• dist/ contains the packaged JAR and a copy of virusDef.txt.
• src/virusanalyzer/ holds all Java source:
• VirusAnalyzer.java – the main entry (CLI UI)
• FileHandler.java – file I/O and MD5‐hash computation
• AnalyzingLogic.java – compares hashes against definitions and applies RL policy
• RLBatchScanner.java – orchestrates batch scans and updates RL state
• virusDef.txt – initial definitions loaded at runtime
• testvirus/ contains sample malicious archive for testing.
Detail
• Every Java class as its own component.