Skip to content

Microsoft Defender for Endpoint Baseline - InSpec Profile

License

Notifications You must be signed in to change notification settings

juju4/mde-baseline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microsoft Defender for Endpoint (MDE) InSpec Profile

Ensure MDE is installed, configured and active on Linux, MacOS or Windows system.

% inspec exec mde-baseline -t ssh://user@hostname

Known MDE setup issues

  • Selinux enforced on RHEL/Centos7 issue. Working on RHEL/Centos8
Error : wdavdaemon[20263]: /opt/microsoft/mdatp/sbin/wdavdaemon: error while loading shared libraries: libwdavdaemon_core.so: cannot enable executable stack as shared object requires: Permission denied

To solve this

$ sepolicy generate -n wdavdaemon --init /opt/microsoft/mdatp/sbin/wdavdaemon
Loaded plugins: product-id, subscription-manager
Created the following files:
wdavdaemon.te # Type Enforcement file
wdavdaemon.if # Interface file
wdavdaemon.fc # File Contexts file
wdavdaemon_selinux.spec # Spec file
wdavdaemon.sh # Setup Script
$ sudo audit2allow -i /var/log/audit/audit.log -M wdavdaemon
[pp file should have: allow unconfined_service_t self:process execstack;]
$ sudo semodule -i wdavdaemon.pp
$ sudo systemctl restart mdatp
$ systemctl status mdatp
  • /var/opt/microsoft/mdatp need to have exec mount flag an alternate option is to move to a compatible location
$ sudo systemctl stop mdatp
$ sudo install -d -m 755 /usr/local/microsoft
$ sudo bash -c 'mv /var/opt/microsoft/mdatp /usr/local/microsoft/ && ln -s /usr/local/microsoft/mdatp /var/opt/microsoft/'
$ sudo systemctl restart mdatp

This will likely address health issue: engine v1 not available

  • Analyzer tool requires python3.7 and perf on Linux. Support can provide an alternate tool without requiring python3

  • Default analyzer zip does not support RHEL/Centos 6. reach support for appropriate package

References

mdatp definitions update

About

Microsoft Defender for Endpoint Baseline - InSpec Profile

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages