容器内建立的 Netcat 监听器

编辑

此规则检测在容器内运行的已建立的 netcat 监听器。Netcat 是一个用于跨网络连接读取和写入数据的实用程序,它可用于恶意目的,例如建立后门以实现持久性或泄露数据。

规则类型: eql

规则索引:

  • logs-cloud_defend*

严重性: 高

风险评分: 73

运行频率: 5 分钟

搜索索引时间范围: now-6m (日期数学格式,另请参阅 额外回溯时间)

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

参考: 无

标签:

  • 数据源: Elastic Defend for Containers
  • 域: 容器
  • 操作系统: Linux
  • 用例: 威胁检测
  • 战术: 执行

版本: 2

规则作者:

  • Elastic

规则许可证: Elastic License v2

规则查询

编辑
process where container.id: "*" and event.type== "start"
and event.action in ("fork", "exec") and
(
process.name:("nc","ncat","netcat","netcat.openbsd","netcat.traditional") or
/*account for tools that execute utilities as a subprocess, in this case the target utility name will appear as a process arg*/
process.args: ("nc","ncat","netcat","netcat.openbsd","netcat.traditional")
) and (
          /* bind shell to echo for command execution */
          (process.args:("-*l*", "--listen", "-*p*", "--source-port") and process.args:("-c", "--sh-exec", "-e", "--exec", "echo","$*"))
          /* bind shell to specific port */
          or process.args:("-*l*", "--listen", "-*p*", "--source-port")
          )

框架: MITRE ATT&CKTM