Deploy Microsoft Defender for Endpoint on Amazon Linux 2

1

Hey Team,

I am unable to deploy Deploy Microsoft Defender for Endpoint on Amazon linux 2 EC2 instance. I follow the steps mentioned in the document https://learn.microsoft.com/en-us/microsoft-365/security/defender-endpoint/linux-install-manually?view=o365-worldwide.

Can someone please help me on this?

OS Release version: NAME="Amazon Linux" VERSION="2" ID="amzn" ID_LIKE="centos rhel fedora" VERSION_ID="2" PRETTY_NAME="Amazon Linux 2" ANSI_COLOR="0;33" CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"

Shell Installation output: [root@ip-172-31-76-111 ec2-user]# sudo yum install yum-utils -y Loaded plugins: extras_suggestions, langpacks, priorities, update-motd amzn2-core | 3.7 kB 00:00:00
Package yum-utils-1.1.31-46.amzn2.0.1.noarch already installed and latest version Nothing to do [root@ip-172-31-76-111 ec2-user]# sudo yum-config-manager --add-repo=https://packages.microsoft.com/config/rhel/7.2/prod.repo Loaded plugins: extras_suggestions, langpacks, priorities, update-motd adding repo from: https://packages.microsoft.com/config/rhel/7.2/prod.repo grabbing file https://packages.microsoft.com/config/rhel/7.2/prod.repo to /etc/yum.repos.d/prod.repo repo saved to /etc/yum.repos.d/prod.repo

[root@ip-172-31-76-111 ec2-user]# sudo rpm --import http://packages.microsoft.com/keys/microsoft.asc

[root@ip-172-31-76-111 ec2-user]# sudo yum install mdatp -y Loaded plugins: extras_suggestions, langpacks, priorities, update-motd No package mdatp available. Error: Nothing to do [root@ip-172-31-76-111 ec2-user]# sudo yum --enablerepo=packages-microsoft-com-prod install mdatp Loaded plugins: extras_suggestions, langpacks, priorities, update-motd No package mdatp available. Error: Nothing to do

asked a year ago1840 views
4 Answers
2

Hello,

Thank you for reaching out to us.

I understand that you are trying to deploy ‘Microsoft Defender for Endpoint’ on Amazon Linux 2 and in the process you are seeing the message “No package mdatp available”. You are looking for assistance on the same.

I simulated your case in our lab environment by launching EC2 Instances on both 64-bit(x86) and 64-bit(Arm) architectures. In my test results, I found that the instance on 64-bit(Arm) arch had the issue “No package mdatp available” although the repository “packages-microsoft-com-prod“ was present in the output of the command “yum repolist”, while the issue was not seen on the instance launched on 64-bit(x86) arch. This suggests that the repository does not have the ‘mdatp’ package for 64-bit(Arm) architecture.

Further, I tried to find a repository suitable for 64-bit(Arm) arch but I could not find any. In the Microsoft documentation[*], I am able to see the Supported Linux server distributions and x64 (AMD64/EM64T) and x86_64 versions to deploy 'Microsoft Defender for Endpoint', and the 64-bit(Arm) versions are not explicitly listed. You may refer further details here:

[*] System requirements: https://learn.microsoft.com/en-us/microsoft-365/security/defender-endpoint/microsoft-defender-endpoint-linux?view=o365-worldwide

Therefore, I recommend AWS alternatives to 'Microsoft Defender for Endpoint' such as Amazon GaurdDuty[1] or Amazon Inspector[2] for instances on 64-bit(Arm) arch. However, if there is a need for you to use 'Microsoft Defender for Endpoint', then you need to install it on the instances with supported architecture[*].

To check the architecture, run the command below on your EC2 Instance:

#uname -m

I hope this helps.

Have a good day ahead!

References:

[1] Amazon GaurdDuty: https://docs.aws.amazon.com/guardduty/latest/ug/what-is-guardduty.html

[2] Amazon Inspector: https://docs.aws.amazon.com/inspector/latest/user/what-is-inspector.html

AWS
answered a year ago
0

After running the "yum repolist", I am seeing the similar output Enter image description here

But when I run the command "yum install mdatp -y", I am seeing "No package mdatp available". Enter image description here

answered a year ago
  • You can do a yum find using the command : sudo yum search "mdatp" if all the repos are configured and accessible. It should return results similar to below

    Loaded plugins: extras_suggestions, langpacks, priorities, update-motd ===================================================== N/S matched: mdatp ====================================================== mdatp.x86_64 : Microsoft Defender (Production)

    Name and summary matches only, use "search all" for everything.

    Another option is to disable the repo using command : yum-config-manager --disable packages-microsoft-com-prod and re -run the steps as per installation guide.

0

Hi

Please validate if the repos have been configured properly. The link has more info on managing packages on Linux 2. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/managing-software.html

If you run "yum repolist", it should show the following similar output : yum repolist

Thanks

AWS
answered a year ago
0

I have a follow-up to this. I have installed MDE on my AWS Linux2 ec2 instances that we provision using terraform. I'm trying to resolve the DNS that MDE sees in the console. The MDE endpoint is healthy and active and the MDE console pulls the PrivateIP DNS as the server name. This is okay until the dynamic IP changes.

I'm trying to figure out the best method to resolve this. We have Route53 which will point to an Instance, ALB, or Elastic IP but MDE doesn't check it because it pulls the info from the endpoint client. I haven't found any documentation on MDE to see if it can reference the Route53 record name. I know we can tag the instances on MDE. But is there a better way to adjust the EC2 instances so it doesn't pull the PrivateIP DNS, I know there is also the InstanceID but that is not useful for the MDE security team since it doesn't describe the instance. Ideally, I'll need to be able to do this via Terraform because we try to avoid administration via the console.

I've looked over this: Configure the servername on the instance- https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/set-hostname.html Update all of our EC2 instances setting a friendly host name - https://stackoverflow.com/questions/54327541/how-to-set-hostname-with-cloud-init-and-terraform

answered 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions