๐๏ธ Group Policy Objects (GPO)
The master control panel for every Windows security settingโฑ ~9 min
A constitution overrides ordinary laws โ no law can contradict it. Group Policy is the same: a GPO setting overrides whatever you set in Windows Settings or Control Panel. If you disabled Windows Update via GPO, re-enabling it in Windows Settings does nothing. GPO is the highest authority in local Windows configuration.
What Is Group Policy?
Group Policy is a Windows feature that centrally controls hundreds of security settings through a single interface. The Local Group Policy Editor (gpedit.msc) manages policies for just one computer. In corporate environments, Group Policy is applied from a server to thousands of PCs simultaneously โ but in CyberPatriot, you work with LOCAL group policy on the VM image.
- โขSubset of Group Policy
- โขOnly covers: Account Policies, Local Policies, Windows Firewall, public key policies
- โขEasier to navigate for password/lockout settings
- โขGood for quick password and lockout changes
- โขFull superset โ includes everything in secpol.msc plus much more
- โขControls: Windows Update, AutoPlay, Remote Desktop, Defender, Software Restriction, and hundreds more
- โขDivided into Computer Configuration and User Configuration
- โขUse this when secpol.msc doesn't have the setting you need
Opening the Local Group Policy Editor
The Two Halves: Computer Configuration vs User Configuration
| Side | What It Controls | When It Applies |
|---|---|---|
| Computer Configuration | Settings that apply to the machine regardless of who logs in โ services, Windows Update, system-wide restrictions | Applied at Windows startup, before anyone logs in |
| User Configuration | Settings that apply to the currently logged-in user โ desktop restrictions, browser settings, mapped drives | Applied when a specific user logs in |
Navigating the Tree: Administrative Templates
Most competition-relevant settings are under Administrative Templates, which contains registry-based policies organized into categories. The path pattern is:
Example 1 โ Windows Update (Competition Vulnerability)
Competition images often have Windows Update disabled via Group Policy as an intentional vulnerability. Automatic updates are your first line of defense against exploits โ disabling them is a critical misconfiguration. Here's how to find and fix it:
Example 2 โ Disable Remote Desktop via GPO
Remote Desktop (RDP) should be disabled unless the scenario specifically requires it. RDP is a common attack vector โ leaving it on gives attackers a way in if they guess or steal a password.
# Alternative: disable RDP via registry (same effect as GPO)Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -Name 'fDenyTSConnections' -Value 1 # Or via System Properties:# Win+R โ sysdm.cpl โ Remote tab โ select 'Don't allow remote connections to this computer'Example 3 โ Disable AutoPlay via GPO (CIS Level 1)
AutoPlay automatically runs software from USB drives, DVDs, and network drives when plugged in. CIS Level 1 requires it to be disabled โ infected USB drives exploit AutoPlay to install malware automatically.
Example 4 โ Windows Defender Antivirus Settings
How GPO Settings Override Other Methods
Checking Effective Policy โ gpresult
# Show all applied Group Policy settings for the computergpresult /r # Generate a detailed HTML report โ open in browsergpresult /h C:\gpresult.html # Force Group Policy to refresh immediatelygpupdate /forceCompetition GPO Checklist
- โขOpen gpedit.msc โ scan Computer Configuration โ Administrative Templates โ Windows Components for disabled/misconfigured settings
- โขWindows Update: should be 'Not Configured' or 'Enabled' โ never 'Disabled'
- โขRemote Desktop: 'Allow users to connect remotely' โ should be Disabled unless scenario requires it
- โขAutoPlay: 'Turn off AutoPlay' โ should be Enabled on All Drives
- โขMicrosoft Defender Antivirus: 'Turn off Microsoft Defender Antivirus' โ should be Disabled (so Defender stays ON)
- โขRun gpupdate /force after making any GPO changes to apply them immediately
A setting keeps reverting even after you change it in Windows Settings. Where should you look?