2022-06-21 08:26:23 +02:00
|
|
|
title: Cat Sudoers
|
|
|
|
|
id: 0f79c4d2-4e1f-4683-9c36-b5469a665e06
|
|
|
|
|
status: test
|
|
|
|
|
description: Detects the execution of a cat /etc/sudoers to list all users that have sudo rights
|
|
|
|
|
references:
|
2022-09-16 09:22:57 +02:00
|
|
|
- https://github.com/sleventyeleven/linuxprivchecker/
|
2023-02-01 11:14:59 +01:00
|
|
|
author: Florian Roth (Nextron Systems)
|
2022-06-21 08:26:23 +02:00
|
|
|
date: 2022/06/20
|
2022-09-16 09:22:57 +02:00
|
|
|
modified: 2022/09/15
|
2022-10-25 08:53:44 +02:00
|
|
|
tags:
|
|
|
|
|
- attack.reconnaissance
|
|
|
|
|
- attack.t1592.004
|
2022-06-21 08:26:23 +02:00
|
|
|
logsource:
|
2022-09-16 09:22:57 +02:00
|
|
|
category: process_creation
|
|
|
|
|
product: linux
|
2022-06-21 08:26:23 +02:00
|
|
|
detection:
|
2022-09-16 09:22:57 +02:00
|
|
|
selection:
|
|
|
|
|
Image|endswith:
|
|
|
|
|
- '/cat'
|
|
|
|
|
- 'grep'
|
|
|
|
|
- '/head'
|
|
|
|
|
- '/tail'
|
2022-09-16 11:47:19 +02:00
|
|
|
- '/more'
|
2022-09-16 09:22:57 +02:00
|
|
|
CommandLine|contains: ' /etc/sudoers'
|
|
|
|
|
condition: selection
|
2022-06-21 08:26:23 +02:00
|
|
|
falsepositives:
|
2022-09-16 09:22:57 +02:00
|
|
|
- Legitimate administration activities
|
2022-06-21 08:26:23 +02:00
|
|
|
level: medium
|