hunting-for-t1098-account-manipulation

Solid

Hunt for MITRE ATT&CK T1098 account manipulation including shadow admin creation, SID history injection, group membership changes, and credential modifications using Windows Security Event Logs.

AI & Automation 36,355 stars 4443 forks Updated 2 months ago Apache-2.0

Install

View on GitHub

Quality Score: 92/100

Stars 20%
100
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
99
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Hunting for T1098 Account Manipulation ## Overview MITRE ATT&CK T1098 (Account Manipulation) covers adversary actions to maintain or expand access to compromised accounts, including adding credentials, modifying group memberships, SID history injection, and creating shadow admin accounts. This skill covers detecting these techniques through Windows Security Event Log analysis (Event IDs 4738, 4728, 4732, 4756, 4670, 5136), correlating group membership changes with privilege escalation indicators, and identifying anomalous account modification patterns. ## When to Use - When investigating security incidents that require hunting for t1098 account manipulation - 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 - Windows Security Event Logs (EVTX format) or SIEM access - Python 3.9+ with `python-evtx`, `lxml` libraries - Understanding of Active Directory group structure and SID architecture - Familiarity with MITRE ATT&CK T1098 sub-techniques ## Steps ### Step 1: Parse Account Modification Events Extract Event IDs 4738 (user account changed), 4728/4732/4756 (member added to security groups), and 5136 (directory service object modified). ### Step 2: Detect Privileged Group Changes Flag additions to Domain Admins, Enterprise Admins, Schema Admins, Administrators, and Backup Operators gr...

Details

Author
mukul975
Repository
mukul975/Anthropic-Cybersecurity-Skills
Created
8 months ago
Last Updated
2 months ago
Language
Python
License
Apache-2.0

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

hunting-for-suspicious-scheduled-tasks

Hunt for adversary persistence and execution via Windows scheduled tasks by analyzing task creation events, suspicious task properties, and unusual execution patterns that indicate T1053.005 abuse.

36,355 Updated 2 months ago
mukul975
AI & Automation Featured

detecting-service-account-abuse

Detect abuse of service accounts through anomalous interactive logons, privilege escalation, lateral movement, and unauthorized access patterns.

36,355 Updated 2 months ago
mukul975
AI & Automation Listed

detect-ad-credential-abuse

Detection, hunting, and hardening methodology for Active Directory credential abuse that follows initial foothold: AS-REP Roasting (MITRE ATT&CK T1558.004), DCSync directory replication theft (T1003.006), ACL and group manipulation (T1098), and Kerberos delegation abuse (T1098 setup, T1550.003 use). Primary log sources are Windows domain controller Security events (4768, 4662, 5136, 4738, 4742, 4728/4732/4756) plus Microsoft Defender for Identity alerts and network DRSUAPI replication traffic. The skill gives the defender view of each technique, the exact events and object GUIDs to key off, a hypothesis-driven hunt, and framework-mapped hardening. Use when triaging an MDI DCSync or delegation alert, hunting for replication from a non-domain-controller, investigating accounts with Kerberos pre-authentication disabled, reviewing who holds DS-Replication rights, chasing writes to ntSecurityDescriptor or msDS-AllowedToActOnBehalfOfOtherIdentity, or hardening AD against post-foothold credential abuse.

0 Updated 5 days ago
umbrasec-labs