Skip to content
Skillv1.0.0

hunting-for-t1098-account-manipulation

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.

by autohandai(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from autohandai/community-skills (hunting-for-t1098-account-manipulation/SKILL.md). Install upstream with npx skills add autohandai/community-skills --skill hunting-for-t1098-account-manipulation. Copyright stays with the author (Apache-2.0).

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.

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.

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/autohandai-community-skills-hunting-for-t1098-account-ma-867939/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

autohandai-community-skills-hunting-for-t1098-account-ma-867939.ocm.jsonjson
{
  "ocm": "1",
  "id": "autohandai-community-skills-hunting-for-t1098-account-ma-867939",
  "kind": "skill",
  "name": "hunting-for-t1098-account-manipulation",
  "description": "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.",
  "publisher": "autohandai",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "threat-hunting",
      "mitre-attack",
      "t1098",
      "account-manipulation",
      "active-directory",
      "persistence",
      "github"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "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."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github",
      "repository": "https://github.com/autohandai/community-skills",
      "path": "hunting-for-t1098-account-manipulation/SKILL.md",
      "ref": "75eaf75a369c4c22cf465b00c9fb6cc84d2989d2",
      "url": "https://github.com/autohandai/community-skills/blob/75eaf75a369c4c22cf465b00c9fb6cc84d2989d2/hunting-for-t1098-account-manipulation/SKILL.md",
      "key": "autohandai/community-skills/hunting-for-t1098-account-manipulation/SKILL.md"
    },
    "license": "Apache-2.0"
  },
  "instructions": "# Hunting for T1098 Account Manipulation\n\n## Overview\n\nMITRE 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.\n\n## Prerequisites\n\n- Windows Security",
  "cost": {
    "context_tokens": 411
  }
}

Fetch it by URL: GET /api/v1/registry/autohandai-community-skills-hunting-for-t1098-account-ma-867939/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.