This homework assignment builds on the Group Policy Objectives activities from the previous class. We will create domain-hardening GPOs and revisit some PowerShell fundamentals.
⚠ The Day 3 activities must be fully completed in order to complete this activity. If they are not, you will need to refer to your student guides and set up your domain OUs, users, and groups .
For this week’s homework, please use the Windows Server machine and Windows 10 machine inside your Azure Windows RDP Host machine.
Windows RDP Host Machine:
azadminp4ssw0rd*Open the Hyper-V Manager in the Windows RDP Host machine to access the nested virtual machines:
Windows 10 Machine
sysadmincybersecurityWindows Server Machine:
sysadminp4ssw0rd*Note: The instructions for each task will tell you which machine to work in.
The following document contains a list of Windows issues that commonly occur during this unit. Familiarize yourself with these issues so you can fix them as needed:
Refer to your Unit 7 Student Guides if you have trouble with this homework.
For this first task, you will investigate and mitigate one of the attack vectors that exists within a Windows domain.
Local Link Multicast Name Resolution (LLMNR) is a vulnerability, so we will be disabling it on our Windows 10 machine (via the GC Computers OU).
A few notes about LLMNR:
Turning off LLMNR for the GC Computers OU will prevent our Windows machine from trusting location responses from potential attackers.
Since this task deals with Active Directory Group Policy Objects, you’ll be working in your nested Windows Servermachine.
Create a Group Policy Object that prevents your domain-joined Windows machine from using LLMNR:
No LLMNR.Computer Configuration\Policies\Administrative Templates\Network\DNS Client.
Turn Off Multicast Name Resolution.GC Computers organizational unit you previously created.For security and compliance reasons, the CIO needs us to implement an account lockout policy on our Windows workstation. An account lockout disables access to an account for a set period of time after a specific number of failed login attempts. This policy defends against brute-force attacks, in which attackers can enter a million passwords in just a few minutes.
Account lockouts have some important considerations. Read about these in the following documentation:
To summarize, an overly restrictive account lockout policy (such as locking an account for 10 hours after 2 failed attempts), can potentially keep an account locked forever if an attacker repeatedly attempts to access it in an automated way.
You’ll be working within in your nested Windows Server machine again to create another Group Policy Object.
Create what you believe to be a reasonable account lockout Group Policy for the Windows 10 machine.
Account Lockout.GC Computers OU. Also, these policies involve Windows security settings and accounts.GC Computers organizational unit.Hint: If you’re confused about where to find the right policies, check the instructions in italics.
As mentioned in a previous lesson, PowerShell is often used as a living off the land hacker tool. This means:
wmic, as much as possible to achieve their goals while trying to stay under the radar.So why not just completely disable PowerShell?
For this task, you’ll be working in your Windows Server machine.
Create a Group Policy Object to enable PowerShell logging and transcription. This GPO will combine multiple policies into one, although they are all under the same policy collection.
PowerShell Logging.
Turn on Module Logging and do the following:
* (wildcard) for the Module Name, then click OK.Turn on PowerShell Script Block Logging policy.
$collection =
foreach ($item in $collection) {
<Everything here will get logged by this policy>
}
Log script block invocation start/stop events: setting.Turn on Script Execution policy and do the following:
Set-ExecutionPolicy cmdlet we ran during the PowerShell exercises? This policy can enforce those settings as part of a GPO.Turn on PowerShell Transcription policy and do the following:
~\Documents directory).
Set the default source path for Update-Help policy as Not configured.PowerShell Logging GPO to the GC Computers OU.Note that the next time you log into your Windows 10 machine, run gpupdate. Then launch a new PowerShell window and run a script. You see verbose PowerShell logs created in the Windows 10 machine directory for the user that ran the script: C:\Users\<user>\Documents.
Speaking of scripts, your next task is to create a script.
Before we create a script, let’s review Access Control Lists.
Get-Acl PowerShell cmdlet to retrieve them. View Get-Acl documentation here.Familiarize yourself with the basics of Get-Acls:
Get-Acl without any parameters or arguments will return the security descriptors of the directory you’re currently in.Get-Acl <filename> will return the specific file’s ACL. We’ll need to use this for our task.For this task, you’ll be working in your nested Windows 10 machine with the following credentials: sysadmin | cybersecurity.
Create a PowerShell script that will enumerate the Access Control List of each file or subdirectory within the current working directory.
foreach loop. You can use the following template:
foreach ($item in $directory) {
<Script block>
}
foreach condition, set a variable, $directory, to the contents of the current directory.$item variable in place of the file name.
Get-ChildItem (or any alias of Get-ChildItem, such as ls or dir)Get-AclC:\Users\sysadmin\Documents as enum_acls.ps1.cd C:\Windows), and running C:\Users\sysadmin\Documents\enum_acls.ps1 (enter the full path and file name).
For this task we’ll want to test and verify that our PowerShell logging GPO is working properly.
sysadmin | cybersecurity.gpupdate in an administrative PowerShell window to pull the latest Active Directory changes.enum_acls.ps1 script using the full file path and name such as the one in Task 4.C:\Users\sysadmin\Documents for your new logs.
20200908) as the directory name. Your new transcribed PowerShell logs should be inside.Provide the following:
Account Lockout policies in Group Policy Management Editor. It should show the three values you set under the Policy and Policy Setting columns.Windows PowerShell policies within the Group Policy Management Editor. Four of these should be enabled.enum_acls.ps1 script.
Advantages of using our writing services
Custom Writing From Scratch
All our custom papers are written by qualified writers according to your instructions, thus evading any case of plagiarism. Our team consists of native writers from the USA, Canada, and the Uk, making it convenient for us to find the best to handle your order.
Unlimited Free Revisions
If you feel your paper didn't meet all your requirements, we won't stop till it's perfect. You're entitled to request a free revision within 7 days after we submit your paper.
Quality Writing In Any Format
If you have issues with citing sources and referencing, you need not worry. Our writers are highly knowledgeable in referencing, including APA/MLA/Havard/Chicago/Turabian and all other formatting styles.
Fast Delivery And Adherence To The Deadline
All our custom papers are delivered on time, even the most urgent. If we need more time to perfect your paper, we may contact you via email or phone regarding the deadline extension.
Originality & Security
At Master Homework, your security and privacy is our greatest concern. For this reason, we never share your personal information with third parties. We use several writing tools to ensure your paper is original and free from plagiarism.
24/7 Customer Support
Our agents are online 24 hours a day, 7 days a week, and are always ready to serve you. Feel free to contact us through email or talk to our live agents whenever you need assistance with your order.
Try it now!
How it works?
Follow these simple steps to get your paper done
Place your order
Fill in the order form and provide all details of your assignment.
Proceed with the payment
Choose the payment system that suits you most.
Receive the final file
Once your paper is ready, we will email it to you.
Our Services
We work nonstop to see the best client experience.
Pricing
We offer pocket-friendly prices that coincide with the preferred client's deadline.
Communication
Admission help & Client-Writer Contact
Our support team is always ready to ensure vital interaction between you and the writer whenever you need to elaborate on something.
Deadlines
Paper Submission
We deliver our papers early within the stipulated deadlines. We are glad to help you if there should be an occurrence of any alterations required.
Reviews
Customer Feedback
Your review, positive or negative, is of great concern to us and we take it very seriously. We are, consequently adjusting our policies to ensure the best customer/writer experience.