赞
踩
In my last article about Attack Surface Reduction, I didn’t care enough to go through all the documentation and went for a long detour to install Microsoft Endpoint Configuration Manager for Attack Surface Reduction configurations. It turned out that, all I need is Group Policy.
So, this article, I moved the part of installing Microsoft Endpoint Configuration Manager here as a stand-alone for later reference.
The process is dauting, if you would kindly be patient and follow along.
Test is performed on Windows Server 2019 VM machine in Active Directory environment with SQL server installed (required by Configuration Manager).
Download and install according to official document. For test purposes, we can ignore step 5 through 17, and make sure you have MSSQL Server standard or enterprise edition installed, others won’t work (though I found that DEV edition will work, follow along).
Some steps are explained next.
In order to successfully install Configuration Manager, we have to have a SQL server instance running, and we have to add an database for the admin site (on how to install and configure SQL server, refer to my other article, section “安装 SQL Server 2019 Express”).
NOTE: Make sure to join a domain first, then install SQL Server as Administrator user, also refer to my other article, section “添加 Windows Server 到域”. And, the SQL Server used in that article is SQL Express, which is not supported by Configuration Manager. You should go to this official site, and download the Developer edition.
And other steps are just the same.
After installing SQL Server Developer Edition and SQL Server Management Studio. Open SQL Server Management Studio 18.
Click Connect.
Right click on Databases and select New Database….
Use CM_MEM (default Configuration Manager database name) as database name and click OK.
Then, right click on the instance and select New Query.
And run the following query.
USE master;
CREATE ENDPOINT BrokerEndpoint
STATE = STARTED
AS TCP ( LISTENER_PORT = 4022 )
FOR SERVICE_BROKER ( AUTHENTICATION = WINDOWS ) ;
Check that the port is listening.
Then, open SQL Server Configuration Manager. Right click on SQL Server instance, select Properties. We are going to change the user who’s running SQL server as Configuration Manager won’t allow local service account to run SQL instance.
Click Built-in account and select Local System.
Click Apply and Yes.
Check services, make sure that SQL Server is running as Local System.
Go to Server Manager -> Add Roles and Features.
Next all the way till you reach Features, and check Remote Differential Compression.
Click Next and Install.
Wait for the process to finish.
Click on this link to download Windows ADK for Windows Build 1809 (my Windows Server 2019 is of Build 1809 too, so compatible).
Double click to install.
Next All the way to finish installation.
Open SQL Server Configuration Manager. Under SQL Server Network Configuration -> Protocols for MSSQLSERVER, TCP/IP is Enabled.
Then, right click on TCP/IP, select Properties.
Under, IP Addresses tab, make sure all TCP Dynamic Ports are blank, and TCP Port are all configured to 1433.
Click Apply and restart SQL server instance.
Go to this link to download Windows Preinstallation Environment. Double click to install.
Next all the way to install.
As all pre-requisites are done, we can proceed to installing Microsoft Endpoint Configuration Manager.
Go to Microsoft official site to download the latest Microsoft Endpoint Configuration Manager for ASR configuration.
Fill in your information.
Extract to whichever location you want.
Run the installer.
C:\MEM_Configmgr_2203\SMSSETUP\BIN\X64\Setup.exe
If you encounter this .NET package error.
Issue the following command in Admin command prompt.
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All
Run the installer again.
C:\MEM_Configmgr_2203\SMSSETUP\BIN\X64\Setup.exe
Use most of the default settings as the following.
Use Downloads folder for downloaded files.
Then Next to install. The whole process may take an hour or so.
Select server language.
Choose client language.
In this case, we are going to install the site as a stand-alone site.
Back to installation guide.
Put some more configurations there.
Hit Next to continue.
Warning is fine, Failed entries mean you have something missing, refer to pre-installation section if you saw one.
Click Begin Install to start the installation process.
After about 20 minutes, the installation finished.
Some warnings are proved to be OK.
Let’s open Microsoft Endpoint Configuration Manager and start exploring ASR.
Go to Assets and Compliance -> Exdpoint Protection -> Windows Defender Exploit Guard.
Right click anywhere on the blank space and select Create Exploit Guard Policy.
Give the rules whatever name you want, leave the options as default
Click Next and we can see what threats we want to block.
Click Next.
Now, we have to create an exploit protection XML.
Open Windows Security Center, select App & browser control.
Right click on the entry, and select Deploy.
This article provides step by step guide on how to install Microsoft Endpoint Configuration Manager and use it to setup Attack Surface Reduction Rules.
KEEP CALM AND HACK AWAY!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。