可疑的 which 枚举编辑

此规则监控使用 which 命令且进程参数数量异常的情况。攻击者可能会利用 which 命令枚举系统以查找有用的已安装实用程序,这些实用程序可能在入侵系统后用于提升权限或横向移动网络。

规则类型: eql

规则索引:

  • logs-endpoint.events.*
  • endgame-*

严重程度: 低

风险评分: 21

: 5m 运行一次

搜索索引从: now-9m (日期数学格式,另请参见 其他回溯时间)

每次执行的最大警报数: 100

参考: 无

标签:

  • 域:端点
  • 操作系统:Linux
  • 用例:威胁检测
  • 战术:发现
  • 数据源:Elastic Defend
  • 数据源:Elastic Endgame

版本: 6

规则作者:

  • Elastic

规则许可证: Elastic 许可证 v2

规则查询编辑

process where host.os.type == "linux" and event.type == "start" and event.action in ("exec", "exec_event") and
process.name == "which" and process.args_count >= 10 and not process.parent.name == "jem" and
not process.args == "--tty-only"

/* potential tuning if rule would turn out to be noisy
and process.args in ("nmap", "nc", "ncat", "netcat", nc.traditional", "gcc", "g++", "socat") and
process.parent.name in ("bash", "dash", "ash", "sh", "tcsh", "csh", "zsh", "ksh", "fish")
*/

框架: MITRE ATT&CKTM