title: EventLog service stopped or disabled in a PowerShell script
id: f442b228-fa54-4e8d-b410-a8b81535915d
status: experimental
description: Detects a PowerShell script block (4104) that stops or reconfigures the EventLog service with Stop-Service or Set-Service.
references:
  - https://attack.mitre.org/techniques/T1685/001/
author: PurpleLog
date: 2026-10-17
tags:
  - attack.defense-impairment
  - attack.t1685.001
logsource:
  product: windows
  category: ps_script
  definition: 'Requires Script Block Logging'
detection:
  selection_cmdlet:
    ScriptBlockText|contains:
      - 'Stop-Service'
      - 'Set-Service'
  selection_target:
    ScriptBlockText|contains: 'EventLog'
  condition: all of selection_*
falsepositives:
  - Admin scripts that restart the EventLog service
level: high
