OpticFusion1 / MCAntiMalware

Anti-Malware for minecraft
https://www.spigotmc.org/resources/spigot-anti-malware-detects-over-200-malicious-plugins.64982/
GNU General Public License v3.0
293 stars 29 forks source link

Add a Metric showing how much of each malware type was found #424

Closed github-actions[bot] closed 2 years ago

github-actions[bot] commented 3 years ago

showing how many of each malware type was found

https://github.com/OpticFusion1/MCAntiMalware/blob/8cf2c3aee2741749f90ef49fa9ac1c76929893c0/MCAntiMalware-Core/src/main/java/optic_fusion1/antimalware/scanner/Scanner.java#L198


        return;
      }
      CacheContainer ccc = new CacheContainer(); // TODO: Check to see if this can be handled better
      boolean possiblyMalicious = false;
      for (BaseCheck check : checkManager.getChecks()) {
        List<CheckResult> results;
        try {
          results = check.process(rootFolder, file, ccc);
          // TODO: Add a Metric (and measurements) showing how many of each malware type was found
          if (results != null && !results.isEmpty()) {
            possiblyMalicious = true;
            results.stream().forEachOrdered(checkResult -> {
              if (file.startsWith("AntiMalware\\unzipped")) {
                File info = new File(file.toFile().getAbsoluteFile().getParent(), ".info");

c0ed7d88c936b8eab253acefcf27b747880b3a31

OpticFusion1 commented 2 years ago

This is most likely not going to be added. Closed.