Skip to content
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

Some Images and one technique Added #5118

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions rules/linux/process_creation/proc_creation_lnx_cat_sudoers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,33 @@ status: test
description: Detects the execution of a cat /etc/sudoers to list all users that have sudo rights
references:
- https://github.com/sleventyeleven/linuxprivchecker/
author: Florian Roth (Nextron Systems)
author: Florian Roth (Nextron Systems), CheraghiMilad
date: 2022-06-20
modified: 2022-09-15
modified: 2024-12-10
tags:
- attack.reconnaissance
- attack.t1592.004
logsource:
category: process_creation
product: linux
detection:
selection:
selection_1:
Image|endswith: '/visudo'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

visudo is the correct way to edit the file.
The purpose of the rule is to detect unusual access.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In some cases of adversaries Emulation, i use the visudo for reading the sudoers file, and my team can not detected it, my aim enrichment the rules for increase coverage.

selection_2:
Image|endswith:
- '/grep'
- '/cat'
- 'grep'
- '/ed'
- '/head'
- '/tail'
- '/more'
- '/nano'
- '/tail'
- '/less'
- '/vi'
- '/vim'
- '/emacs'
CommandLine|contains: ' /etc/sudoers'
condition: selection
condition: 1 of selection_*
falsepositives:
- Legitimate administration activities
level: medium
Loading