Skip to content

Commit 766a60c

Browse files
Samirboustradebot-elastic
authored andcommitted
[New] Suspicious SeIncreaseBasePriorityPrivilege Use (#5150)
* [New] Suspicious SeIncreaseBasePriorityPrivilege Us https://github.com/Octoberfest7/ThreadCPUAssignment_POC/tree/main https://x.com/sixtyvividtails/status/1970721197617717483 * Update rules/windows/privilege_escalation_thread_cpu_priority_hijack.toml Co-authored-by: Jonhnathan <[email protected]> * Update rules/windows/privilege_escalation_thread_cpu_priority_hijack.toml Co-authored-by: Jonhnathan <[email protected]> * Update rules/windows/privilege_escalation_thread_cpu_priority_hijack.toml Co-authored-by: Jonhnathan <[email protected]> --------- Co-authored-by: Jonhnathan <[email protected]> (cherry picked from commit b4e9b48)
1 parent 1140248 commit 766a60c

File tree

1 file changed

+94
-0
lines changed

1 file changed

+94
-0
lines changed
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
[metadata]
2+
creation_date = "2025/09/25"
3+
integration = ["system", "windows"]
4+
maturity = "production"
5+
updated_date = "2025/09/25"
6+
7+
[rule]
8+
author = ["Elastic"]
9+
description = """
10+
Identifies attempts to use the SeIncreaseBasePriorityPrivilege privilege by an unusual process. This could be related to
11+
hijack execution flow of a process via threats priority manipulation.
12+
"""
13+
from = "now-9m"
14+
index = ["logs-system.security*", "logs-windows.forwarded*", "winlogbeat-*"]
15+
language = "kuery"
16+
license = "Elastic License v2"
17+
name = "Suspicious SeIncreaseBasePriorityPrivilege Use"
18+
note = """## Triage and analysis
19+
20+
### Investigating Suspicious SeIncreaseBasePriorityPrivilege Use
21+
22+
SeIncreaseBasePriorityPrivilege allows to increase the priority of processes running on the system so that the CPU scheduler allows them to pre-empt other lower priority processes when the higher priority process has something to do.
23+
24+
### Possible investigation steps
25+
26+
- Review the process.executable reputation and it's execution chain.
27+
- Investiguate if the SubjectUserName is expected to perform this action.
28+
- Correlate the event with other security alerts or logs to identify any patterns or additional suspicious activities that might suggest a broader attack campaign.
29+
- Check the agent health status and verify if there is any tampering with endpoint security processes.
30+
31+
### False positive analysis
32+
33+
- Administrative tasks involving legitimate CPU scheduling priority changes.
34+
35+
### Response and remediation
36+
37+
- Immediately isolate the affected machine from the network to prevent further unauthorized access or lateral movement within the domain.
38+
- Terminate the processes involved in the execution chain.
39+
- Escalate the incident to the security operations center (SOC) or incident response team for further investigation and to ensure comprehensive remediation efforts are undertaken."""
40+
references = [
41+
"https://github.com/Octoberfest7/ThreadCPUAssignment_POC/tree/main",
42+
"https://x.com/sixtyvividtails/status/1970721197617717483",
43+
"https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4674"
44+
]
45+
risk_score = 73
46+
rule_id = "6fa0f15b-1926-419b-8de2-fce1429797ba"
47+
setup = """## Setup
48+
49+
Ensure advanced audit policies for Windows are enabled, specifically:
50+
Audit Sensitive Privilege Use [Event ID 4674](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4674) (An operation was attempted on a privileged object.)
51+
52+
```
53+
Computer Configuration >
54+
Policies >
55+
Windows Settings >
56+
Security Settings >
57+
Advanced Audit Policies Configuration >
58+
Audit Policies >
59+
Privilege Use >
60+
Audit Sensitive Privilege Use (Success)
61+
```
62+
"""
63+
severity = "high"
64+
tags = [
65+
"Domain: Endpoint",
66+
"OS: Windows",
67+
"Use Case: Threat Detection",
68+
"Tactic: Privilege Escalation",
69+
"Data Source: Windows Security Event Logs",
70+
"Resources: Investigation Guide",
71+
]
72+
timestamp_override = "event.ingested"
73+
type = "query"
74+
75+
query = '''
76+
event.category:iam and event.code:"4674" and
77+
winlog.event_data.PrivilegeList:"SeIncreaseBasePriorityPrivilege" and event.outcome:"success" and
78+
winlog.event_data.AccessMask:"512" and not winlog.event_data.SubjectUserSid:("S-1-5-18" or "S-1-5-19" or "S-1-5-20")
79+
'''
80+
81+
82+
[[rule.threat]]
83+
framework = "MITRE ATT&CK"
84+
[[rule.threat.technique]]
85+
id = "T1134"
86+
name = "Access Token Manipulation"
87+
reference = "https://attack.mitre.org/techniques/T1134/"
88+
89+
90+
[rule.threat.tactic]
91+
id = "TA0004"
92+
name = "Privilege Escalation"
93+
reference = "https://attack.mitre.org/tactics/TA0004/"
94+

0 commit comments

Comments
 (0)