How to install and use Microsoft Defender in Linux
Integration with Active Directory and much of the Microsoft ecosystem is huge for desktop Linux, and it could make your favorite distribution a more viable operating system at work. . One of the most important parts of the business is security. This guide will show you how to install and use Microsoft Defender on Linux to make sure the IT department can scan your machine and look for threats.
How to install Microsoft Defender in Linux
To install Microsoft Defender on Linux, the instructions will differ depending on the distribution. Microsoft hasn't put its packages in repositories yet, so you'll have to make sure you install the right dependencies and add the repositories.
The distribution is based on RPM
You will need yum-utils or dnf-utils :
sudo dnf instll yum-utils
To configure Microsoft repos, the basic syntax of Microsoft repos is as follows:
https://packages.microsoft.com/config/[distro]/[version]/[channel].repo
Posts will use prod.repo , because all distributions are available prod.repo or prod.list. So for Fedora systems that command would look like this:
sudo yum-config-manager --add-repo=https://packages.microsoft.com/config/fedora/33/prod.repo
For CentOS systems, the command will be as follows:
sudo yum-config-manager --add-repo=https://packages.microsoft.com/config/centos/8/prod.repo
The example is using the yum command as it is targeted at RHEL, CentOS, and Oracle Linux, but you can use dnf as well. You will also need to enter the Microsoft GPG key with the following command:
sudo rpm --import http://packages.microsoft.com/keys/microsoft.asc
Run quick update:
sudo yum update
After that, you'll just need to install the package called mdatp or Microsoft Defender Advanced Threat Protection .
sudo yum install mdatp
Debian / Ubuntu system
You will need some additional dependencies:
sudo apt install curl libplist-utils
Then you can basically follow the same process:
curl -o microsoft.list https://packages.microsoft.com/config/ubuntu/20.04/prod.list sudo mv ./microsoft.list /etc/apt/sources.list.d/microsoft-prod.list sudo apt install gpg curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - sudo apt install apt-transport-https sudo apt update sudo apt install mdatp
Install the repo, GPG key, all dependencies and mdatp.
Use Microsoft Defender on Linux
Run a scan for threats
One of the main things you may want to do is scan your system for threats. To do that, open Terminal and type the following command:
mdatp scan full
This will scan all files it has access to (in our case 329,812 in our case) and report any threats it knows about. You can also run quick scans or custom scans. Customization options allow you to specify a directory or file, or to ignore any exceptions that you have previously set. You can run the scan as follows:
mdatp scan custom --path /PATH/TO/DIRECTORY --ignore-exclusions
If you have set an exclusion as mentioned below, you can run the scan above.
Update virus signature
To update the signature virus on Microsoft Defender on Linux, update it like any other package.
sudo yum update mdatp sudo apt-get upgrade mdatp
Set exclusion
To exclude deemed good files from being reported, there are several ways you can do it. To exclude a file type, you can use the following command:
mdatp exclusion extension add --name .png
This will select all the .png files and put them in the exclusion list. If you have a specific file type created by you and know that you will never need a scan, you can use this command to do so.
To exclude a directory, you can use a similar command:
mdatp exclusion folder add --path /PATH/TO/DIRECTORY/
Now, any folder you have just asked for the mdatp to exclude will not be scanned. This is very useful if you have some security testing tool on your system.
You should read it
- Microsoft Defender for Endpoint encountered an error that could not be started on Windows Server
- Microsoft Defender for Business launched, mainly aimed at the small and medium business community
- What is Microsoft Defender for Android and iPhone and should you use it?
- Fix Microsoft Defender 0x80073b01 on Windows 10
- Windows Defender was officially renamed Microsoft Defender
- Hackers take advantage of Microsoft Defender's 8-year-old weakness to bypass the virus detection system
- Microsoft Defender Windows Defender before Kaspersky's complaint
- New Microsoft Defender Preview app screenshot leaked
May be interested
- 8 commands for efficient management of Linux processesthere are three main states in the life cycle of an application process: start, run, and stop. if you want to be a competent linux administrator, you need to know how to manage each state carefully. the following 8 commands can be used to help you manage the entire process lifecycle.
- How to configure color temperature in GNOME Night Lightit's good to have tools to change the colors of the monitor. there are many programs out there that do that. this article will introduce you to one of them and guide you on how to configure color temperature in gnome night light.
- How to install KDE Plasma Desktop on CentOS 8with a relatively heavy default desktop like gnome, you might want to install something lighter or more scalable. in this article, you will learn how to install kde plasma desktop environment on centos workstations.
- How to speed up clipboard with CopyQwith copyq, you can copy multiple clips to the extended clipboard and edit them to update their content or tag them for organizing! let's see how to do that to modernize your existing clipboard - simple and with few features -.
- What's new in Linux Kernel 5.9?linus torvalds has announced the new, stable linux kernel 5.9. this linux kernel version is a major release of hardware, graphics, and many other performance updates.
- How to install the Arduino IDE on CentOS 8before starting to create projects via arduino, users need to set up the ide for the programmable board. in this article, tipsmake will join you to learn how to install the latest arduino ide on centos 8.