Skip to content

iamagarre/BadExclusions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 

Repository files navigation

BadExclusions

BadExclusions is a tool to identify custom or undocumented folder exclusions on AV/EDR.

How it works?

BadExclusions creates a txt file on every folder and subfolder in an specified path that contains the EICAR string. After creating all the files then it tries to read each file.

If the AV/EDR removed the file it means no exclusion for that folder. If the file still exists then the folder has an exclusion.

The tool will print the full path to each file not removed by AV/EDR.

Original idea?

I was talking with a friend about custom exclusions made on AV/EDR and how to easily identify them. We had a silly idea but it actually works.

This is a really noisy tool

Yes, it is. The problem is, when you try to create a file on every folder and subfolder you can end up creating huge amount of files. Every file created on a folder without an exclusion will create an incident/alert on the system.

For a version of BadExclusions that does not create a single alert go to https://github.com/iamagarre/BadExclusionsNWBO

Requirements

The AV/EDR should flag EICAR files as malicious. Not all vendors do it.

The user who runs BadExclusions needs write permissions on the excluded folder in order to write the EICAR file.

Microsoft Defender Demo

FINAL.-.BadExclusions.Demo.1.mp4

EDR Demo

FINAL.-.BadExclusions.Demo.2.mp4