Skip to content

Commit e3e976f

Browse files
fix: more rules
1 parent c6562d3 commit e3e976f

2 files changed

Lines changed: 22 additions & 11 deletions

File tree

rules/windows/builtin/security/win_security_susp_failed_logon_reasons.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ references:
77
- https://twitter.com/SBousseaden/status/1101431884540710913
88
author: Florian Roth (Nextron Systems)
99
date: 2017-02-19
10-
modified: 2022-06-29
10+
modified: 2025-07-18
1111
tags:
1212
- attack.persistence
1313
- attack.defense-evasion
@@ -18,20 +18,28 @@ logsource:
1818
product: windows
1919
service: security
2020
detection:
21-
selection:
21+
selection_eid:
2222
EventID:
2323
- 4625
2424
- 4776
25-
Status:
26-
- '0xC0000072' # User logon to account disabled by administrator
27-
- '0xC000006F' # User logon outside authorized hours
28-
- '0xC0000070' # User logon from unauthorized workstation
29-
- '0xC0000413' # Logon Failure: The machine you are logging onto is protected by an authentication firewall. The specified account is not allowed to authenticate to the machine
30-
- '0xC000018C' # The logon request failed because the trust relationship between the primary domain and the trusted domain failed
31-
- '0xC000015B' # The user has not been granted the requested logon type (aka logon right) at this machine
25+
selection_status:
26+
- Status:
27+
- '0xC0000072' # User logon to account disabled by administrator
28+
- '0xC000006F' # User logon outside authorized hours
29+
- '0xC0000070' # User logon from unauthorized workstation
30+
- '0xC0000413' # Logon Failure: The machine you are logging onto is protected by an authentication firewall. The specified account is not allowed to authenticate to the machine
31+
- '0xC000018C' # The logon request failed because the trust relationship between the primary domain and the trusted domain failed
32+
- '0xC000015B' # The user has not been granted the requested logon type (aka logon right) at this machine
33+
- SubStatus:
34+
- '0xC0000072' # User logon to account disabled by administrator
35+
- '0xC000006F' # User logon outside authorized hours
36+
- '0xC0000070' # User logon from unauthorized workstation
37+
- '0xC0000413' # Logon Failure: The machine you are logging onto is protected by an authentication firewall. The specified account is not allowed to authenticate to the machine
38+
- '0xC000018C' # The logon request failed because the trust relationship between the primary domain and the trusted domain failed
39+
- '0xC000015B' # The user has not been granted the requested logon type (aka logon right) at this machine
3240
filter:
3341
SubjectUserSid: 'S-1-0-0'
34-
condition: selection and not filter
42+
condition: all of selection_* and not filter
3543
falsepositives:
3644
- User using a disabled account
3745
level: medium

rules/windows/powershell/powershell_module/posh_pm_alternate_powershell_hosts.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ references:
66
- https://threathunterplaybook.com/hunts/windows/190610-PwshAlternateHosts/notebook.html
77
author: Roberto Rodriguez @Cyb3rWard0g
88
date: 2019-08-11
9-
modified: 2022-12-13
9+
modified: 2025-07-18
1010
tags:
1111
- attack.execution
1212
- attack.t1059.001
@@ -28,6 +28,9 @@ detection:
2828
# In some cases powershell was invoked with inverted slashes
2929
- '= C:/Windows/System32/WindowsPowerShell/v1.0/powershell'
3030
- '= C:/Windows/SysWOW64/WindowsPowerShell/v1.0/powershell'
31+
# In some cases \??\C:.. is used
32+
- '= \\\?\?\C:Windows\System32\WindowsPowerShell\v1.0\powershell'
33+
- '= \\\?\?\C:Windows\SysWOW64\WindowsPowerShell\v1.0\powershell'
3134
filter_sdiagnhost:
3235
ContextInfo|contains: '= C:\WINDOWS\System32\sdiagnhost.exe -Embedding' # When MSDT is launched for example
3336
filter_citrix:

0 commit comments

Comments
 (0)