可疑的 which 枚举

编辑

此规则监控 which 命令的使用情况,以及是否使用了异常数量的进程参数。攻击者可能会利用 which 命令枚举系统中可用的实用程序,这些程序在入侵系统后可能被用来提升权限或横向移动到网络中的其他位置。

规则类型: eql

规则索引:

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

严重性: 低

风险评分: 21

每隔: 5 分钟

搜索索引自: now-9m (日期数学格式,另请参阅 附加回溯时间)

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

参考: 无

标签:

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

版本: 7

规则作者:

  • Elastic

规则许可证: Elastic License 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" or
  process.parent.executable like ("/vz/root/*", "/var/lib/docker/*") or
  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