2020-11-06 08:56:49 +00:00
|
|
|
action: global
|
2020-10-21 07:41:40 +00:00
|
|
|
title: Linux Network Service Scanning
|
|
|
|
id: 3e102cd9-a70d-4a7a-9508-403963092f31
|
|
|
|
status: experimental
|
|
|
|
description: Detects enumeration of local or remote network services.
|
|
|
|
author: Alejandro Ortuno, oscd.community
|
|
|
|
date: 2020/10/21
|
|
|
|
references:
|
|
|
|
- https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1046/T1046.md
|
2020-11-06 08:56:49 +00:00
|
|
|
falsepositives:
|
|
|
|
- Legitimate administration activities
|
2020-11-09 09:32:56 +00:00
|
|
|
level: low
|
2020-11-06 08:56:49 +00:00
|
|
|
tags:
|
|
|
|
- attack.discovery
|
|
|
|
- attack.t1046
|
|
|
|
---
|
2020-10-21 07:41:40 +00:00
|
|
|
logsource:
|
|
|
|
category: process_creation
|
2020-10-21 08:13:28 +00:00
|
|
|
product: linux
|
2020-11-09 09:32:56 +00:00
|
|
|
definition: 'Detect netcat and filter our listening mode'
|
2020-10-21 07:41:40 +00:00
|
|
|
detection:
|
2020-11-06 08:56:49 +00:00
|
|
|
selection:
|
2020-10-21 07:41:40 +00:00
|
|
|
ProcessName|endswith:
|
|
|
|
- '/nc'
|
2020-11-06 08:56:49 +00:00
|
|
|
- '/netcat'
|
2020-11-09 09:32:56 +00:00
|
|
|
filter:
|
|
|
|
CommandLine|contains: 'l'
|
|
|
|
condition: selection and not filter
|
2020-11-06 08:56:49 +00:00
|
|
|
---
|
|
|
|
logsource:
|
|
|
|
product: linux
|
|
|
|
service: auditd
|
|
|
|
definition: 'Configure these rules https://github.com/Neo23x0/auditd/blob/master/audit.rules#L182-L183'
|
|
|
|
detection:
|
|
|
|
selection:
|
|
|
|
type: 'SYSCALL'
|
|
|
|
exe|endswith:
|
|
|
|
- '/telnet'
|
|
|
|
- '/nmap'
|
|
|
|
key: 'network_connect_4'
|
|
|
|
condition: selection
|