Browse Source
[Feature] Add symbol categories for MetaDefender and VirusTotal
[Feature] Add symbol categories for MetaDefender and VirusTotal
Implemented a category-based symbol system for hash lookup antivirus
scanners (MetaDefender and VirusTotal) to replace dynamic scoring:
- Added 4 symbol categories: CLEAN (-0.5), LOW (2.0), MEDIUM (5.0), HIGH (8.0)
- Replaced full_score_engines with threshold-based categorization (low_category, medium_category)
- Fixed symbol registration in antivirus.lua to use rule instead of config
- Updated cache format to preserve symbol category across requests
- Added backward compatibility for old cache format
- Added symbols registration and metric score assignment
- Updated configuration documentation with examples
The new system provides:
- Clear threat categorization instead of linear interpolation
- Proper symbol weights applied automatically
- Consistent behavior between MetaDefender and VirusTotal
- Cache that preserves symbol categories
Configuration example:
metadefender {
apikey = "KEY";
type = "metadefender";
minimum_engines = 3;
low_category = 5;
medium_category = 10;
}
pull/5656/head
No known key found for this signature in database
GPG Key ID: 7647B6790081437
6 changed files with 393 additions and 148 deletions
-
39conf/local.d/antivirus.conf.example
-
84conf/modules.d/antivirus.conf
-
26lualib/lua_scanners/common.lua
-
76lualib/lua_scanners/metadefender.lua
-
100lualib/lua_scanners/virustotal.lua
-
66src/plugins/lua/antivirus.lua
Write
Preview
Loading…
Cancel
Save
Reference in new issue