Files
blue-team-tools/rules/linux/lnx_network_service_scanning.yml
T

49 lines
1.3 KiB
YAML
Raw Normal View History

2020-11-06 09:56:49 +01:00
action: global
2020-10-21 09:41:40 +02:00
title: Linux Network Service Scanning
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 09:56:49 +01:00
falsepositives:
- Legitimate administration activities
2020-11-09 10:32:56 +01:00
level: low
2020-11-06 09:56:49 +01:00
tags:
- attack.discovery
- attack.t1046
---
2021-09-02 20:07:03 +02:00
id: 3e102cd9-a70d-4a7a-9508-403963092f31
2020-10-21 09:41:40 +02:00
logsource:
category: process_creation
2020-10-21 10:13:28 +02:00
product: linux
2020-11-09 10:32:56 +01:00
definition: 'Detect netcat and filter our listening mode'
2020-10-21 09:41:40 +02:00
detection:
2020-11-16 01:00:09 +01:00
netcat:
Image|endswith:
2020-10-21 09:41:40 +02:00
- '/nc'
2020-11-06 09:56:49 +01:00
- '/netcat'
2020-11-16 01:00:09 +01:00
network_scanning_tools:
Image|endswith:
2020-11-16 01:00:09 +01:00
- '/telnet' # could be wget, curl, ssh, many things. basically everything that is able to do network connection. consider fine tuning
- '/nmap'
netcat_listen_flag:
2020-11-09 10:32:56 +01:00
CommandLine|contains: 'l'
2020-11-16 01:00:09 +01:00
condition: (netcat and not netcat_listen_flag) or network_scanning_tools
2020-11-06 09:56:49 +01:00
---
2021-09-02 20:07:03 +02:00
id: 3761e026-f259-44e6-8826-719ed8079408
2020-11-06 09:56:49 +01: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'
2020-11-16 01:00:09 +01:00
- '/netcat'
- '/nc'
2020-11-06 09:56:49 +01:00
key: 'network_connect_4'
2020-11-02 22:57:01 +01:00
condition: selection