Powershell to automate Defender Exclusions during build #3064
Replies: 2 comments
|
Hello. I run MABS builds in a Windows Sandbox and have not encountered an issue with Windows Defender pop-ups, neither in the Sandbox nor when the .exe file(s) are copied to the host. Pending clarification, may I recommend against implementing such a thing directly into in MABS on the basis that a significant number of "foreign" exes are downloaded and/or built and/or run during the build processes which are largely, and likely completely, unknown to most MABS users (neither MABS nor the user provides them nor guarantees safety of the sources or build files etc) ... and to implement antivirus exclusions automatically would be creating a wonderful attack vector. Disabling security features is, in principle, never ever a good idea; I don't do it for my own home grown utilities built into self-contained .exes and when pop-ups occurred due to that I found alternative non-security-lessening ways. Perhaps of interest, I and probably/hopefully others operate in non-Admin usernames and suspect that creating Windows Defender exclusions requires Admin privilege. Just a thought. Cheers |
|
I think the main reason of this script is to speed up the building process, by preventing the WD scanning every binary created / executed. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I run this in a separate PowerShell Window during the build process. It automatically excludes the EXE files from on-access scanning in Defender, then removes when build process is done.
All reactions