技能 数据科学 检测异常服务安装

检测异常服务安装

v20260802
hunting-for-unusual-service-installations
该技能用于威胁狩猎,通过解析Windows系统事件日志(事件ID 7045),检测异常的服务安装行为。它能分析服务二进制路径,并结合Sysmon等高级遥测数据,识别潜在的持久化机制和攻击指标,适用于安全事件响应和安全审计。
获取技能
295 次下载
概览

Hunting for Unusual Service Installations

Overview

Attackers frequently install malicious Windows services for persistence and privilege escalation (MITRE ATT&CK T1543.003 — Create or Modify System Process: Windows Service). Event ID 7045 in the System event log records every new service installation. This skill parses .evtx log files to extract service installation events, flags suspicious binary paths (temp directories, PowerShell, cmd.exe, encoded commands), and correlates with known attack patterns.

When to Use

  • When investigating security incidents that require hunting for unusual service installations
  • When building detection rules or threat hunting queries for this domain
  • When SOC analysts need structured procedures for this analysis type
  • When validating security monitoring coverage for related attack techniques

Prerequisites

  • Python 3.9+ with python-evtx, lxml
  • Windows System event log (.evtx) files
  • Access to live System event log (optional, for real-time monitoring)
  • Sysmon logs for enhanced process tracking (optional)

Steps

  1. Parse System.evtx for Event ID 7045 (new service installed)
  2. Extract service name, binary path, service type, and account
  3. Flag services with suspicious binary paths (temp dirs, encoded commands)
  4. Detect PowerShell-based service creation patterns
  5. Identify services running as LocalSystem with unusual paths
  6. Cross-reference with known legitimate service baselines
  7. Generate threat hunting report with MITRE ATT&CK T1543.003 mapping

Expected Output

  • JSON report listing all new service installations with risk scores, suspicious indicators, and remediation recommendations
  • Timeline of service installation events with binary path analysis
信息
Category 数据科学
Name hunting-for-unusual-service-installations
版本 v20260802
大小 9.61KB
更新时间 2026-08-04
语言