hunting-for-unusual-service-installations
About hunting-for-unusual-service-installations
A security skill for investigating unusual Windows service installations from .evtx logs. It extracts Event ID 7045 details, flags suspicious paths and patterns, and produces a threat-hunting report for SOC analysts and incident responders.
Key features
- 01Parse Event ID 7045 in .evtx files
- 02Extract service names, paths, types, and accounts
- 03Flag suspicious binary paths and commands
- 04Correlate services with legitimate baselines
- 05Generate risk-scored reports with ATT&CK mapping
Use cases
- 01Investigate possible malicious service persistence
- 02Hunt for unusual Windows service installations
- 03Review service-installation detection coverage
- 04Produce an incident timeline and findings report
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ mukul975/ anthropic-cybersecurity-skills --skill hunting-for-unusual-service-installationsAfter installing, type/hunting-for-unusual-service-installationsin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
LICENSEreferences/api-reference.mdscripts/agent.pyDetails
From the project READMEHunting 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
- Parse System.evtx for Event ID 7045 (new service installed)
- Extract service name, binary path, service type, and account
- Flag services with suspicious binary paths (temp dirs, encoded commands)
- Detect PowerShell-based service creation patterns
- Identify services running as LocalSystem with unusual paths
- Cross-reference with known legitimate service baselines
- 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