通过 XZBackdoor 的潜在执行编辑

它通过远程 SSH 识别潜在的恶意 shell 执行,并检测 sshd 服务在成功执行后立即突然终止的情况,表明与 XZ 后门类似的可疑行为。

规则类型: eql

规则索引:

  • logs-endpoint.events.*

严重性: 高

风险评分: 73

每隔运行: 5m

从以下时间开始搜索索引: now-9m(日期数学格式,另请参阅 附加回溯时间

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

参考:

标签:

  • 域:端点
  • 操作系统:Linux
  • 用例:威胁检测
  • 策略:凭证访问
  • 策略:持久性
  • 策略:横向移动
  • 数据源:Elastic Defend

版本: 1

规则作者:

  • Elastic

规则许可证: Elastic 许可证 v2

规则查询编辑

sequence by host.id, user.id with maxspan=1s
 [process where host.os.type == "linux" and event.type == "start" and event.action == "exec" and process.name == "sshd" and
    process.args == "-D" and process.args == "-R"] by process.pid, process.entity_id
 [process where host.os.type == "linux" and event.type == "start" and event.action == "exec" and process.parent.name == "sshd" and
  process.executable != "/usr/sbin/sshd"] by process.parent.pid, process.parent.entity_id
 [process where host.os.type == "linux" and event.action == "end" and process.name == "sshd" and process.exit_code != 0] by process.pid, process.entity_id
 [network where host.os.type == "linux" and event.type == "end" and event.action == "disconnect_received" and process.name == "sshd"] by process.pid, process.entity_id

框架: MITRE ATT&CKTM