可疑的 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