Mapped every skill to NIST CSF 2.0 subcategory IDs (GV/ID/PR/DE/RS/RC functions)
based on subdomain and content analysis. Restores 11 skills corrupted during
prior rebase, re-enriching with ATLAS, D3FEND, NIST AI RMF, and CSF 2.0 fields.
All 754 skills now carry structured mappings for all 5 security frameworks:
- MITRE ATT&CK (in tags)
- MITRE ATLAS v5.5 (atlas_techniques)
- MITRE D3FEND v1.3 (d3fend_techniques)
- NIST AI RMF 1.0 (nist_ai_rmf)
- NIST CSF 2.0 (nist_csf)
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
cybersecurity
identity-access-management
iam
identity
access-control
service-accounts
audit
governance
1.0
mahipal
Apache-2.0
PR.AA-01
PR.AA-02
PR.AA-05
PR.AA-06
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
When conducting security assessments that involve performing service account audit
When following incident response procedures for related security events
When performing scheduled security testing or auditing activities
When validating security controls through hands-on testing
Prerequisites
Familiarity with identity access management concepts and tools
Access to a test or lab environment for safe execution
Python 3.8+ with required dependencies installed
Appropriate authorization for any testing activities
Objectives
Discover all service accounts across AD, cloud, databases, and applications
Identify orphaned accounts with no valid owner or associated application
Assess privilege levels and flag over-privileged service accounts
Check for non-rotating passwords and weak authentication
Map service account dependencies for safe remediation
Generate compliance reports for SOX, PCI DSS, and HIPAA audits
Key Concepts
Service Account Types
AD Service Accounts: Windows services, scheduled tasks, IIS app pools
Managed Service Accounts (gMSA): AD-managed automatic password rotation
Cloud IAM Service Accounts: AWS IAM roles/users, Azure service principals, GCP service accounts
Database Service Accounts: Application connection accounts, replication accounts
Application Service Accounts: API keys, bot accounts, integration accounts
Audit Dimensions
Ownership: Who is responsible for this account?
Purpose: What application/service uses this account?
Privileges: What permissions does this account have?
Authentication: How does this account authenticate (password, key, certificate)?
Rotation: When was the credential last changed?
Activity: When was this account last used?
Workflow
Step 1: Discovery - Active Directory
Query AD for all service accounts (filter by description, OU, naming convention)
Identify accounts with ServicePrincipalName set
List accounts in privileged groups (Domain Admins, Enterprise Admins)
Check for gMSA vs traditional service accounts
Identify accounts with PasswordNeverExpires flag
Step 2: Discovery - Cloud Platforms
AWS: List IAM users with access keys, check last used date, identify unused roles
Azure: Enumerate service principals, app registrations, managed identities
GCP: List service accounts, check key age, identify unused permissions
Step 3: Assessment
Flag accounts with admin/privileged group membership
Check password age against rotation policy (90 days max)
Identify accounts with no login activity in 90+ days
Verify account ownership against CMDB/asset inventory
Check for shared credentials (same password hash across accounts)
Step 4: Risk Classification
Critical: Domain/cloud admin privileges, no password rotation
High: Access to sensitive data, no identified owner
Medium: Standard service permissions, password older than 90 days