IPv4/IPv6转发活动

编辑

此规则监控在 Linux 系统上启用 IPv4 和 IPv6 转发的命令执行。启用 IP 转发可用于在不同的网络接口之间路由网络流量,这可能允许攻击者在网络之间进行横向移动、窃取数据或建立命令和控制通道。

规则类型: eql

规则索引:

  • logs-endpoint.events.*

严重性: 低

风险评分: 21

每隔: 5 分钟

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

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

参考: 无

标签:

  • 领域:端点
  • 操作系统:Linux
  • 用例:威胁检测
  • 战术:命令和控制
  • 数据源:Elastic Defend

版本: 1

规则作者:

  • Elastic

规则许可证: Elastic License v2

规则查询

编辑
process where host.os.type == "linux" and event.type == "start" and event.action == "exec" and
process.parent.executable != null and process.command_line like (
  "*net.ipv4.ip_forward*", "*/proc/sys/net/ipv4/ip_forward*", "*net.ipv6.conf.all.forwarding*",
  "*/proc/sys/net/ipv6/conf/all/forwarding*"
) and (
  (process.name == "sysctl" and process.args like ("*-w*", "*--write*", "*=*")) or
  (
    process.name in ("bash", "dash", "sh", "tcsh", "csh", "zsh", "ksh", "fish") and process.args == "-c" and
    process.command_line like "*echo *"
  )
)

框架: MITRE ATT&CKTM