Skip to content
Skillpedia
Agents35k · #5813

hunting-for-t1098-account-manipulation

Helps your agent find account manipulations like hidden admin creation or group changes. It's useful for investigating unauthorized access.

What it does

This tool looks for suspicious activity in Windows user accounts that might indicate an attacker is trying to maintain or expand their access. It analyzes security event logs to find changes in groups, passwords, or the creation of 'shadow' administrator accounts.

When to use it

  • ✓When you suspect a malicious actor has gained access to important accounts.
  • ✓After noticing strange changes in user groups or passwords.
  • ✓During a security investigation to see if account manipulation has occurred.

Example of what to ask your AI

“Hunt for administrator account manipulation on my system.”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/hunting-for-t1098-account-manipulation/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/hunting-for-t1098-account-manipulation/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
How it works

The tool reads Windows security event logs, searching for specific codes that record account changes. It identifies when users are added to important groups, when passwords are changed, or when 'shadow' administrator accounts are created.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill hunting-for-t1098-account-manipulation

Or download just the file:

curl -L https://raw.githubusercontent.com/mukul975/Anthropic-Cybersecurity-Skills/main/skills/hunting-for-t1098-account-manipulation/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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 groups.

Step 3: Identify Shadow Admin Indicators

Detect accounts receiving AdminSDHolder protection, direct privilege assignment, or SID history injection.

Step 4: Correlate with Attack Timeline

Cross-reference account changes with authentication events to identify initial compromise and persistence establishment.

Expected Output

JSON report with detected account manipulation events, privileged group changes, shadow admin indicators, and timeline correlation.

FAQ

What are 'shadow' administrator accounts?

These are accounts secretly created by an attacker to gain administrative control without being easily detected.

What is 'SID history injection'?

It's a technique where an attacker adds a code (SID) from an old account to a new account, making it seem like the new account has the same privileges as the old one.

Do I need to install anything to use this tool?

Yes, you need to have Windows security event logs and some programming tools installed on your computer.

Details

Original description by the author

Hunts for MITRE ATT&CK T1098 account manipulation - shadow admin creation, SID history injection, group membership changes, and credential modifications - by analyzing Windows Security Event Log IDs 4738, 4728, 4732, 4756, 4670, and 5136. Use when investigating suspected privilege persistence in Active Directory, after detecting anomalous group/credential changes, or during incident response to tr

repo: mukul975/Anthropic-Cybersecurity-Skills

Popularity

GitHub stars
35k
Ranking position
#5813
License
Apache-2.0
Updated
8/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills