文件或目录删除命令编辑

此规则识别可用于删除文件和目录的命令的执行。攻击者可能会删除主机系统上的文件和目录,例如日志、浏览器历史记录或恶意软件。

规则类型: eql

规则索引:

  • logs-endpoint.events.process-*

严重性: 低

风险评分: 21

每隔: 60m

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

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

参考: 无

标签:

  • 域:端点
  • 操作系统:Windows
  • 用例:威胁检测
  • 策略:防御规避
  • 规则类型:BBR
  • 数据源:Elastic Defend

版本: 3

规则作者:

  • Elastic

规则许可证: Elastic 许可证 v2

规则查询编辑

process where host.os.type == "windows" and event.type == "start" and
(
  (process.name: "rundll32.exe" and process.args: "*InetCpl.cpl,Clear*") or
  (process.name: "reg.exe" and process.args:"delete") or
  (
    process.name: "cmd.exe" and process.args: ("*rmdir*", "*rm *", "rm") and
    not process.args : (
          "*\\AppData\\Local\\Microsoft\\OneDrive\\*",
          "*\\AppData\\Local\\Temp\\DockerDesktop\\*",
          "*\\AppData\\Local\\Temp\\Report.*",
          "*\\AppData\\Local\\Temp\\*.PackageExtraction"
    )
  ) or
  (process.name: "powershell.exe" and process.args: ("*rmdir", "rm", "rd", "*Remove-Item*", "del", "*]::Delete(*"))
) and not user.id : "S-1-5-18"

框架: MITRE ATT&CKTM