-
Notifications
You must be signed in to change notification settings - Fork 570
[New Rule] Potential Privilege Escalation via OverlayFS #2974
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
f3262d1
[New Rule] Privilege Escalation via OverlayFS
Aegrah a6a5251
Layout change
Aegrah 580f59d
Revert "[New Rule] Privilege Escalation via OverlayFS"
Aegrah b314d8b
Made rule broader
Aegrah 1006634
Update privilege_escalation_overlayfs_local_privesc.toml
Aegrah 651c2ab
Update rules/linux/privilege_escalation_overlayfs_local_privesc.toml
Aegrah d05c249
Update rules/linux/privilege_escalation_overlayfs_local_privesc.toml
Aegrah 7ed8c53
Update rules/linux/privilege_escalation_overlayfs_local_privesc.toml
Aegrah 6afc133
Update rules/linux/privilege_escalation_overlayfs_local_privesc.toml
Aegrah 2d2c1d0
Update rules/linux/privilege_escalation_overlayfs_local_privesc.toml
Aegrah 8210f51
Update user.id to strings
brokensound77 b71d220
Merge branch 'main' into new-rule-cve-2023-32629-and-2640
brokensound77 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
rules/linux/privilege_escalation_overlayfs_local_privesc.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
[metadata] | ||
creation_date = "2023/07/28" | ||
integration = ["endpoint"] | ||
maturity = "production" | ||
min_stack_comments = "New fields added: required_fields, related_integrations, setup" | ||
min_stack_version = "8.3.0" | ||
updated_date = "2023/07/28" | ||
|
||
[rule] | ||
author = ["Elastic"] | ||
description = """ | ||
Identifies an attempt to exploit a local privilege escalation (CVE-2023-2640 and CVE-2023-32629) via a flaw in Ubuntu's | ||
modifications to OverlayFS. These flaws allow the creation of specialized executables, which, upon execution, grant the | ||
ability to escalate privileges to root on the affected machine. | ||
""" | ||
from = "now-9m" | ||
index = ["logs-endpoint.events.*"] | ||
language = "eql" | ||
license = "Elastic License v2" | ||
name = "Potential Privilege Escalation via OverlayFS" | ||
references = [ | ||
"https://www.wiz.io/blog/ubuntu-overlayfs-vulnerability", | ||
"https://twitter.com/liadeliyahu/status/1684841527959273472"] | ||
risk_score = 73 | ||
rule_id = "b51dbc92-84e2-4af1-ba47-65183fcd0c57" | ||
severity = "high" | ||
tags = ["Domain: Endpoint", "OS: Linux", "Use Case: Threat Detection", "Tactic: Privilege Escalation", "Use Case: Vulnerability"] | ||
type = "eql" | ||
query = ''' | ||
sequence by process.parent.entity_id, host.id with maxspan=1s | ||
[ process where host.os.type == "linux" and event.action == "exec" and event.type == "start" and | ||
process.name == "unshare" and process.args : ("-r", "-rm", "m") and process.args : "*cap_setuid*" ] | ||
[ process where host.os.type == "linux" and event.action == "uid_change" and event.type == "change" and | ||
Aegrah marked this conversation as resolved.
Show resolved
Hide resolved
|
||
user.name == "root" ] | ||
Aegrah marked this conversation as resolved.
Show resolved
Hide resolved
|
||
''' | ||
|
||
[[rule.threat]] | ||
framework = "MITRE ATT&CK" | ||
|
||
[[rule.threat.technique]] | ||
id = "T1068" | ||
name = "Exploitation for Privilege Escalation" | ||
reference = "https://attack.mitre.org/techniques/T1068/" | ||
|
||
[rule.threat.tactic] | ||
id = "TA0004" | ||
name = "Privilege Escalation" | ||
reference = "https://attack.mitre.org/tactics/TA0004/" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.