elastic / elastic/detection-rules

[New Rule] Potential SSH Hijacking

オープン
#2,364 コメント 1 件 リアクション 0 件 担当者 1 名 @shashank-elastic に割り当て済み GitHub で見る
backlog OS: Linux OS: macOS Rule: New
主要言語
Python
スター
2.7k
フォーク
696
平均マージ
5日 1時間
マージ済み PR(30日)
72

説明

## Description

This rule detects the use of the SSH_AUTH_SOCK environment variable in a process command-line to hijack a user's existing SSH session in order to move laterally without requiring the user's authentication material. Threat actors will abuse this technique in order to silently move laterally and access additional resources.

### Target Operating Systems

Linux, macOS

### Tested ECS Version
1.11.0

### Query
```sql
process where event.type == "start" and event.action == "exec" and process.name : ("sudo", "ssh", "bash", "sh", "zsh", "csh") and process.args : "SSH_AUTH_SOCK=*" and not process.parent.name : "vault"
```

### References
https://embracethered.com/blog/posts/2022/ttp-diaries-ssh-agent-hijacking/

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。