非正常服务主机子进程 - 无子进程服务

编辑

非正常服务主机子进程 - 无子进程服务编辑

识别传统上不会生成任何子进程的服务主机 (svchost.exe) 的非正常子进程。这可能表明存在代码注入或等效形式的漏洞利用。

规则类型: eql

规则索引:

  • logs-endpoint.events.process-*
  • winlogbeat-*
  • logs-windows.sysmon_operational-*
  • endgame-*

严重程度: 中等

风险评分: 47

每隔: 5 分钟运行一次

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

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

参考: 无

标签:

  • 域: 端点
  • 操作系统: Windows
  • 用例: 威胁检测
  • 战术: 防御规避
  • 战术: 权限提升
  • 数据源: Elastic Endgame
  • 数据源: Elastic Defend
  • 数据源: Sysmon

版本: 110

规则作者:

  • Elastic

规则许可证: Elastic 许可证 v2

设置编辑

设置

如果在非 elastic-agent 索引(如 beats)上启用 EQL 规则,对于版本 <8.2,事件将不会定义 event.ingested,并且 EQL 规则的默认回退直到版本 8.2 才添加。因此,为了使此规则有效地工作,用户需要添加一个自定义摄取管道来填充 event.ingested 到 @timestamp。有关添加自定义摄取管道的更多详细信息,请参考 - https://elastic.ac.cn/guide/en/fleet/current/data-streams-pipeline-tutorial.html

规则查询编辑

process where host.os.type == "windows" and event.type == "start" and
  process.parent.name : "svchost.exe" and

  /* based on svchost service arguments -s svcname where the service is known to be childless */
  process.parent.args : (
    "WdiSystemHost", "LicenseManager", "StorSvc", "CDPSvc", "cdbhsvc", "BthAvctpSvc", "SstpSvc", "WdiServiceHost",
    "imgsvc", "TrkWks", "WpnService", "IKEEXT", "PolicyAgent", "CryptSvc", "netprofm", "ProfSvc", "StateRepository",
    "camsvc", "LanmanWorkstation", "NlaSvc", "EventLog", "hidserv", "DisplayEnhancementService", "ShellHWDetection",
    "AppHostSvc", "fhsvc", "CscService", "PushToInstall"
  ) and

  /* unknown FPs can be added here */
  not process.name : ("WerFault.exe", "WerFaultSecure.exe", "wermgr.exe") and
  not (process.executable : "?:\\Windows\\System32\\RelPost.exe" and process.parent.args : "WdiSystemHost") and
  not (
    process.name : "rundll32.exe" and
    process.args : "?:\\WINDOWS\\System32\\winethc.dll,ForceProxyDetectionOnNextRun" and
    process.parent.args : "WdiServiceHost"
  ) and
  not (
    process.executable : (
      "?:\\Program Files\\*",
      "?:\\Program Files (x86)\\*",
      "?:\\Windows\\System32\\Kodak\\kds_?????\\lib\\lexexe.exe"
    ) and process.parent.args : "imgsvc"
  )

框架: MITRE ATT&CKTM