Performing service account audit

From xalgord/xalgorix · View interactive version

Performing service account audit is an AI agent skill from the GitHub repository xalgord/xalgorix. Audit service accounts across enterprise infrastructure to identify orphaned, over-privileged, and non-compliant accounts. This skill covers discovery of service accounts in Active Directory, cloud pl

How to use this skill

Skill file

Performing Service Account Audit

Overview

Audit service accounts across enterprise infrastructure to identify orphaned, over-privileged, and non-compliant accounts. This skill covers discovery of service accounts in Active Directory, cloud platforms, databases, and applications, assessing privilege levels, identifying missing owners, and enforcing lifecycle policies.

When to Use

Coverage Gaps & Validation

Prerequisites

Objectives

Key Concepts

Service Account Types

  1. AD Service Accounts: Windows services, scheduled tasks, IIS app pools
  2. Managed Service Accounts (gMSA): AD-managed automatic password rotation
  3. Cloud IAM Service Accounts: AWS IAM roles/users, Azure service principals, GCP service accounts
  4. Database Service Accounts: Application connection accounts, replication accounts
  5. Application Service Accounts: API keys, bot accounts, integration accounts

Audit Dimensions

Workflow

Step 1: Discovery - Active Directory

  1. Query AD for all service accounts (filter by description, OU, naming convention)
  2. Identify accounts with ServicePrincipalName set
  3. List accounts in privileged groups (Domain Admins, Enterprise Admins)
  4. Check for gMSA vs traditional service accounts
  5. Identify accounts with PasswordNeverExpires flag

Step 2: Discovery - Cloud Platforms

Step 3: Assessment

Step 4: Risk Classification

Step 5: Remediation

Security Controls

| Control | NIST 800-53 | Description |

|---------|-------------|-------------|

| Account Management | AC-2 | Service account lifecycle |

| Account Review | AC-2(3) | Periodic review of accounts |

| Least Privilege | AC-6 | Minimum service account permissions |

| Authenticator Management | IA-5 | Service credential rotation |

| Audit Review | AU-6 | Review service account activity |

Common Pitfalls

Verification

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.