容器内已建立 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