[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B5265DJH3R85CX8RJ290RG":3,"skill-same:01M7B5265DJH3R85CX8RJ290RG":82},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":13,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":51,"install":52,"resources":65},"01M7B5265DJH3R85CX8RJ290RG","auditing-azure-active-directory-configuration",null,"Auditing Microsoft Entra ID (Azure Active Directory) configuration to identify risky authentication policies, overly permissive role assignments, stale accounts, conditional access gaps, and guest user risks using AzureAD PowerShell, Microsoft Graph API, and ScoutSuite.","vikasvardhanv\u002Fjerry_skills","vikasvardhanv","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99010657?v=4","01M7B2B0VN78W7529RQX5BR6DZ","01M7B2B0WDNTXJHRK3QNPNWRP6",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fauditing-azure-active-directory-configuration\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fauditing-azure-active-directory-configuration\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: auditing-azure-active-directory-configuration\ndescription: 'Auditing Microsoft Entra ID (Azure Active Directory) configuration to\n  identify risky authentication policies, overly permissive role assignments, stale\n  accounts, conditional access gaps, and guest user risks using AzureAD PowerShell,\n  Microsoft Graph API, and ScoutSuite.\n\n  '\ndomain: cybersecurity\nsubdomain: cloud-security\ntags:\n- cloud-security\n- azure\n- entra-id\n- active-directory\n- iam-audit\n- conditional-access\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- PR.IR-01\n- ID.AM-08\n- GV.SC-06\n- DE.CM-01\nmitre_attack:\n- T1078.004\n- T1098.003\n- T1556.006\n- T1069.003\n- T1526\n---\n\n# Auditing Azure Active Directory Configuration\n\n## When to Use\n\n- When performing a security assessment of an Azure tenant's identity configuration\n- When compliance audits require review of authentication policies, MFA enforcement, and role assignments\n- When onboarding a new Azure tenant after merger or acquisition\n- When investigating suspicious sign-in activity or compromised accounts\n- When validating conditional access policies adequately protect against identity-based attacks\n\n**Do not use** for on-premises Active Directory auditing (use PingCastle or BloodHound AD), for Azure resource-level RBAC auditing without identity context, or for real-time threat detection (use Microsoft Defender for Identity).\n\n## Prerequisites\n\n- Global Reader or Security Reader role in the target Microsoft Entra ID tenant\n- Microsoft Graph PowerShell SDK installed (`Install-Module Microsoft.Graph`)\n- Az CLI authenticated to the target tenant (`az login --tenant TENANT_ID`)\n- ScoutSuite with Azure provider configured for automated assessment\n- Access to Azure AD audit logs and sign-in logs (requires Azure AD Premium P1\u002FP2)\n\n## Workflow\n\n### Step 1: Enumerate Tenant Configuration and Security Defaults\n\nAssess the tenant's baseline identity security settings including security defaults and legacy authentication status.\n\n```powershell\n# Connect to Microsoft Graph\nConnect-MgGraph -Scopes \"Directory.Read.All\",\"Policy.Read.All\",\"AuditLog.Read.All\"\n\n# Get tenant details\nGet-MgOrganization | Select-Object DisplayName, Id, VerifiedDomains\n\n# Check if Security Defaults are enabled\nGet-MgPolicyIdentitySecurityDefaultEnforcementPolicy | Select-Object IsEnabled\n\n# List authentication methods policies\nGet-MgPolicyAuthenticationMethodPolicy | ConvertTo-Json -Depth 5\n\n# Check legacy authentication status via Conditional Access\nGet-MgIdentityConditionalAccessPolicy | Where-Object {\n    $_.Conditions.ClientAppTypes -contains \"exchangeActiveSync\" -or\n    $_.Conditions.ClientAppTypes -contains \"other\"\n} | Select-Object DisplayName, State\n```\n\n### Step 2: Audit Privileged Role Assignments\n\nReview directory role assignments to identify over-privileged users, permanent admin accounts, and risky role configurations.\n\n```bash\n# List all Global Administrator assignments\naz rest --method GET \\\n  --url \"https:\u002F\u002Fgraph.microsoft.com\u002Fv1.0\u002FdirectoryRoles\u002FfilterByIds\" \\\n  --body '{\"ids\":[\"62e90394-69f5-4237-9190-012177145e10\"]}' | \\\n  az rest --method GET \\\n  --url \"https:\u002F\u002Fgraph.microsoft.com\u002Fv1.0\u002FdirectoryRoles?filter=displayName eq 'Global Administrator'\" \\\n  --query \"value[0].id\" -o tsv\n\n# List all privileged role assignments using Graph API\naz rest --method GET \\\n  --url \"https:\u002F\u002Fgraph.microsoft.com\u002Fv1.0\u002FroleManagement\u002Fdirectory\u002FroleAssignments?\\$expand=principal\" \\\n  --query \"value[*].{Role:roleDefinitionId, Principal:principal.displayName, PrincipalType:principal.@odata.type}\" \\\n  -o table\n\n# Check for users with multiple admin roles\naz ad user list --query \"[].{UPN:userPrincipalName, DisplayName:displayName}\" -o table\n\n# List service principals with admin role assignments\naz rest --method GET \\\n  --url \"https:\u002F\u002Fgraph.microsoft.com\u002Fv1.0\u002FroleManagement\u002Fdirectory\u002FroleAssignments?\\$filter=principalOrganizationId eq 'TENANT_ID'\" \\\n  -o json\n```\n\n### Step 3: Review Conditional Access Policies\n\nAudit conditional access policies for coverage gaps, particularly around MFA enforcement, device compliance, and location-based restrictions.\n\n```powershell\n# List all Conditional Access policies\nGet-MgIdentityConditionalAccessPolicy | Select-Object DisplayName, State, @{\n    N='GrantControls'; E={$_.GrantControls.BuiltInControls -join ', '}\n} | Format-Table -AutoSize\n\n# Identify policies in report-only mode (not enforced)\nGet-MgIdentityConditionalAccessPolicy | Where-Object {$_.State -eq \"enabledForReportingButNotEnforced\"} |\n    Select-Object DisplayName\n\n# Check MFA enforcement coverage\nGet-MgIdentityConditionalAccessPolicy | Where-Object {\n    $_.GrantControls.BuiltInControls -contains \"mfa\"\n} | Select-Object DisplayName, State, @{\n    N='Users'; E={$_.Conditions.Users.IncludeUsers -join ', '}\n}\n\n# Find policies that exclude groups (potential bypass)\nGet-MgIdentityConditionalAccessPolicy | Where-Object {\n    $_.Conditions.Users.ExcludeGroups.Count -gt 0\n} | Select-Object DisplayName, @{\n    N='ExcludedGroups'; E={$_.Conditions.Users.ExcludeGroups -join ', '}\n}\n```\n\n### Step 4: Identify Stale Accounts and Guest Users\n\nFind accounts that have not signed in recently, disabled accounts with active role assignments, and risky guest user configurations.\n\n```bash\n# Find users who haven't signed in for 90+ days\naz ad user list --query \"[?signInActivity.lastSignInDateTime \u003C '2025-11-25T00:00:00Z'].{UPN:userPrincipalName, LastSignIn:signInActivity.lastSignInDateTime, Enabled:accountEnabled}\" -o table\n\n# List all guest users\naz ad user list --filter \"userType eq 'Guest'\" \\\n  --query \"[].{UPN:userPrincipalName, DisplayName:displayName, CreatedDate:createdDateTime}\" \\\n  -o table\n\n# Find guest users with privileged roles\naz rest --method GET \\\n  --url \"https:\u002F\u002Fgraph.microsoft.com\u002Fv1.0\u002FroleManagement\u002Fdirectory\u002FroleAssignments?\\$expand=principal\" \\\n  --query \"value[?principal.userType=='Guest'].{Role:roleDefinitionId,Guest:principal.userPrincipalName}\" \\\n  -o table\n\n# Check for accounts with disabled MFA\naz rest --method GET \\\n  --url \"https:\u002F\u002Fgraph.microsoft.com\u002Fv1.0\u002Freports\u002FauthenticationMethods\u002FuserRegistrationDetails\" \\\n  --query \"value[?!isMfaRegistered].{UPN:userPrincipalName,MfaRegistered:isMfaRegistered}\" \\\n  -o table\n```\n\n### Step 5: Analyze Sign-In Logs for Risky Activity\n\nReview sign-in logs to identify anomalous authentication patterns, failed MFA challenges, and risky sign-in detections.\n\n```bash\n# Get risky sign-ins from last 7 days\naz rest --method GET \\\n  --url \"https:\u002F\u002Fgraph.microsoft.com\u002Fv1.0\u002FauditLogs\u002FsignIns?\\$filter=riskLevelDuringSignIn ne 'none' and createdDateTime ge 2026-02-16T00:00:00Z\" \\\n  --query \"value[*].{User:userPrincipalName,Risk:riskLevelDuringSignIn,IP:ipAddress,App:appDisplayName,Status:status.errorCode}\" \\\n  -o table\n\n# Get sign-ins from unfamiliar locations\naz rest --method GET \\\n  --url \"https:\u002F\u002Fgraph.microsoft.com\u002Fv1.0\u002FauditLogs\u002FsignIns?\\$filter=riskEventTypes_v2\u002Fany(r:r eq 'unfamiliarFeatures')\" \\\n  --query \"value[*].{User:userPrincipalName,Location:location.city,IP:ipAddress}\" \\\n  -o table\n\n# Check for legacy authentication sign-ins\naz rest --method GET \\\n  --url \"https:\u002F\u002Fgraph.microsoft.com\u002Fv1.0\u002FauditLogs\u002FsignIns?\\$filter=clientAppUsed ne 'Browser' and clientAppUsed ne 'Mobile Apps and Desktop clients'\" \\\n  --query \"value[*].{User:userPrincipalName,ClientApp:clientAppUsed,Status:status.errorCode}\" \\\n  -o table\n```\n\n### Step 6: Run ScoutSuite Automated Assessment\n\nExecute ScoutSuite for comprehensive automated checks across the Azure tenant configuration.\n\n```bash\n# Run ScoutSuite against Azure\npython3 -m ScoutSuite azure --cli \\\n  --report-dir .\u002Fscoutsuite-azure-report \\\n  --all-subscriptions\n\n# Review the generated HTML report\nopen .\u002Fscoutsuite-azure-report\u002Fazure-report.html\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| Microsoft Entra ID | Microsoft's cloud identity and access management service, formerly Azure Active Directory, providing authentication and authorization |\n| Conditional Access | Policy engine that evaluates signals (user, device, location, risk) to enforce access controls like MFA, device compliance, or block access |\n| Security Defaults | Microsoft's baseline identity protection settings that enforce MFA registration, block legacy auth, and protect privileged actions |\n| Privileged Identity Management | Azure AD Premium P2 feature enabling just-in-time privileged access with approval workflows and time-bound role activation |\n| Legacy Authentication | Older authentication protocols (POP3, IMAP, SMTP, ActiveSync) that do not support MFA and are commonly exploited for credential attacks |\n| Risky Sign-In | Microsoft Entra Identity Protection detection of sign-in anomalies including impossible travel, unfamiliar locations, and malware-linked IPs |\n\n## Tools & Systems\n\n- **Microsoft Graph API**: Primary programmatic interface for querying Entra ID configuration, policies, roles, and audit logs\n- **Microsoft Graph PowerShell SDK**: PowerShell module for Entra ID management and security auditing tasks\n- **ScoutSuite**: Multi-cloud auditing tool with Azure provider support for IAM, storage, networking, and identity checks\n- **AzureADRecon**: Community tool for comprehensive Azure AD reconnaissance and security assessment reporting\n- **Microsoft Defender for Identity**: Cloud-based security solution for detecting identity-based threats and compromised credentials\n\n## Common Scenarios\n\n### Scenario: Post-Acquisition Azure Tenant Security Assessment\n\n**Context**: After acquiring a company, the security team needs to assess the Azure tenant identity posture before integrating it with the corporate Entra ID.\n\n**Approach**:\n1. Enumerate all Global Administrators and check for personal accounts in admin roles\n2. Review conditional access policies to verify MFA is enforced for all users, not just admins\n3. Identify guest users with privileged access that may indicate third-party vendor over-permissioning\n4. Check for stale accounts (no sign-in for 90+ days) that could be targets for credential attacks\n5. Review sign-in logs for legacy authentication usage that bypasses MFA\n6. Verify Security Defaults or equivalent CA policies block legacy auth protocols\n7. Produce a risk report with prioritized remediation steps before tenant integration\n\n**Pitfalls**: Azure AD Premium P2 is required for risky sign-in detections and PIM. If the acquired tenant uses a lower license tier, many identity protection features will be unavailable. Guest users from partner tenants may have implicit access through dynamic groups that are not visible in standard role assignment queries.\n\n## Output Format\n\n```\nAzure Active Directory Security Audit Report\n===============================================\nTenant: acme-acquired.onmicrosoft.com\nTenant ID: a1b2c3d4-e5f6-7890-abcd-ef1234567890\nAudit Date: 2026-02-23\nLicense: Azure AD Premium P2\n\nIDENTITY CONFIGURATION:\n  Security Defaults: Disabled (Conditional Access in use)\n  Conditional Access Policies: 12 (8 enforced, 3 report-only, 1 disabled)\n  Legacy Auth Blocked: Partial (blocked for admins only)\n\nPRIVILEGED ACCESS:\n  Global Administrators:              8 (recommended: \u003C= 4)\n  Permanent admin assignments:        6 (no PIM activation required)\n  Service principals with admin:      3\n  Guest users with privileged roles:  2\n\nACCOUNT HYGIENE:\n  Total users:                        1,247\n  Stale accounts (90+ days):          89\n  Guest users:                        234\n  Users without MFA registered:       156\n\nSIGN-IN RISK:\n  Risky sign-ins (last 30 days):      34\n  Legacy auth sign-ins (last 7 days): 67\n  Impossible travel detections:        5\n  Unfamiliar location sign-ins:       12\n\nCRITICAL FINDINGS:\n  1. 8 Global Administrators with permanent assignments (use PIM)\n  2. Legacy authentication not blocked for non-admin users\n  3. 156 users without MFA registration\n  4. 2 guest users with Privileged Role Administrator role\n```\n","# Auditing Azure Active Directory Configuration\n\n## When to Use\n\n- When performing a security assessment of an Azure tenant's identity configuration\n- When compliance audits require review of authentication policies, MFA enforcement, and role assignments\n- When onboarding a new Azure tenant after merger or acquisition\n- When investigating suspicious sign-in activity or compromised accounts\n- When validating conditional access policies adequately protect against identity-based attacks\n\n**Do not use** for on-premises Active Directory auditing (use PingCastle or BloodHound AD), for Azure resource-level RBAC auditing without identity context, or for real-time threat detection (use Microsoft Defender for Identity).\n\n## Prerequisites\n\n- Global Reader or Security Reader role in the target Microsoft Entra ID tenant\n- Microsoft Graph PowerShell SDK installed (`Install-Module Microsoft.Graph`)\n- Az CLI authenticated to the target tenant (`az login --tenant TENANT_ID`)\n- ScoutSuite with Azure provider configured for automated assessment\n- Access to Azure AD audit logs and sign-in logs (requires Azure AD Premium P1\u002FP2)\n\n## Workflow\n\n### Step 1: Enumerate Tenant Configuration and Security Defaults\n\nAssess the tenant's baseline identity security settings including security defaults and legacy authentication status.\n\n```powershell\n# Connect to Microsoft Graph\nConnect-MgGraph -Scopes \"Directory.Read.All\",\"Policy.Read.All\",\"AuditLog.Read.All\"\n\n# Get tenant details\nGet-MgOrganization | Select-Object DisplayName, Id, VerifiedDomains\n\n# Check if Security Defaults are enabled\nGet-MgPolicyIdentitySecurityDefaultEnforcementPolicy | Select-Object IsEnabled\n\n# List authentication methods policies\nGet-MgPolicyAuthenticationMethodPolicy | ConvertTo-Json -Depth 5\n\n# Check legacy authentication status via Conditional Access\nGet-MgIdentityConditionalAccessPolicy | Where-Object {\n    $_.Conditions.ClientAppTypes -contains \"exchangeActiveSync\" -or\n    $_.Conditions.ClientAppTypes -contains \"other\"\n} | Select-Object DisplayName, State\n```\n\n### Step 2: Audit Privileged Role Assignments\n\nReview directory role assignments to identify over-privileged users, permanent admin accounts, and risky role configurations.\n\n```bash\n# List all Global Administrator assignments\naz rest --method GET \\\n  --url \"https:\u002F\u002Fgraph.microsoft.com\u002Fv1.0\u002FdirectoryRoles\u002FfilterByIds\" \\\n  --body '{\"ids\":[\"62e90394-69f5-4237-9190-012177145e10\"]}' | \\\n  az rest --method GET \\\n  --url \"https:\u002F\u002Fgraph.microsoft.com\u002Fv1.0\u002FdirectoryRoles?filter=displayName eq 'Global Administrator'\" \\\n  --query \"value[0].id\" -o tsv\n\n# List all privileged role assignments using Graph API\naz rest --method GET \\\n  --url \"https:\u002F\u002Fgraph.microsoft.com\u002Fv1.0\u002FroleManagement\u002Fdirectory\u002FroleAssignments?\\$expand=principal\" \\\n  --query \"value[*].{Role:roleDefinitionId, Principal:principal.displayName, PrincipalType:principal.@odata.type}\" \\\n  -o table\n\n# Check for users with multiple admin roles\naz ad user list --query \"[].{UPN:userPrincipalName, DisplayName:displayName}\" -o table\n\n# List service principals with admin role assignments\naz rest --method GET \\\n  --url \"https:\u002F\u002Fgraph.microsoft.com\u002Fv1.0\u002FroleManagement\u002Fdirectory\u002FroleAssignments?\\$filter=principalOrganizationId eq 'TENANT_ID'\" \\\n  -o json\n```\n\n### Step 3: Review Conditional Access Policies\n\nAudit conditional access policies for coverage gaps, particularly around MFA enforcement, device compliance, and location-based restrictions.\n\n```powershell\n# List all Conditional Access policies\nGet-MgIdentityConditionalAccessPolicy | Select-Object DisplayName, State, @{\n    N='GrantControls'; E={$_.GrantControls.BuiltInControls -join ', '}\n} | Format-Table -AutoSize\n\n# Identify policies in report-only mode (not enforced)\nGet-MgIdentityConditionalAccessPolicy | Where-Object {$_.State -eq \"enabledForReportingButNotEnforced\"} |\n    Select-Object DisplayName\n\n# Check MFA enforcement coverage\nGet-MgIdentityConditionalAccessPolicy | Where-Object {\n    $_.GrantControls.BuiltInControls -contains \"mfa\"\n} | Select-Object DisplayName, State, @{\n    N='Users'; E={$_.Conditions.Users.IncludeUsers -join ', '}\n}\n\n# Find policies that exclude groups (potential bypass)\nGet-MgIdentityConditionalAccessPolicy | Where-Object {\n    $_.Conditions.Users.ExcludeGroups.Count -gt 0\n} | Select-Object DisplayName, @{\n    N='ExcludedGroups'; E={$_.Conditions.Users.ExcludeGroups -join ', '}\n}\n```\n\n### Step 4: Identify Stale Accounts and Guest Users\n\nFind accounts that have not signed in recently, disabled accounts with active role assignments, and risky guest user configurations.\n\n```bash\n# Find users who haven't signed in for 90+ days\naz ad user list --query \"[?signInActivity.lastSignInDateTime \u003C '2025-11-25T00:00:00Z'].{UPN:userPrincipalName, LastSignIn:signInActivity.lastSignInDateTime, Enabled:accountEnabled}\" -o table\n\n# List all guest users\naz ad user list --filter \"userType eq 'Guest'\" \\\n  --query \"[].{UPN:userPrincipalName, DisplayName:displayName, CreatedDate:createdDateTime}\" \\\n  -o table\n\n# Find guest users with privileged roles\naz rest --method GET \\\n  --url \"https:\u002F\u002Fgraph.microsoft.com\u002Fv1.0\u002FroleManagement\u002Fdirectory\u002FroleAssignments?\\$expand=principal\" \\\n  --query \"value[?principal.userType=='Guest'].{Role:roleDefinitionId,Guest:principal.userPrincipalName}\" \\\n  -o table\n\n# Check for accounts with disabled MFA\naz rest --method GET \\\n  --url \"https:\u002F\u002Fgraph.microsoft.com\u002Fv1.0\u002Freports\u002FauthenticationMethods\u002FuserRegistrationDetails\" \\\n  --query \"value[?!isMfaRegistered].{UPN:userPrincipalName,MfaRegistered:isMfaRegistered}\" \\\n  -o table\n```\n\n### Step 5: Analyze Sign-In Logs for Risky Activity\n\nReview sign-in logs to identify anomalous authentication patterns, failed MFA challenges, and risky sign-in detections.\n\n```bash\n# Get risky sign-ins from last 7 days\naz rest --method GET \\\n  --url \"https:\u002F\u002Fgraph.microsoft.com\u002Fv1.0\u002FauditLogs\u002FsignIns?\\$filter=riskLevelDuringSignIn ne 'none' and createdDateTime ge 2026-02-16T00:00:00Z\" \\\n  --query \"value[*].{User:userPrincipalName,Risk:riskLevelDuringSignIn,IP:ipAddress,App:appDisplayName,Status:status.errorCode}\" \\\n  -o table\n\n# Get sign-ins from unfamiliar locations\naz rest --method GET \\\n  --url \"https:\u002F\u002Fgraph.microsoft.com\u002Fv1.0\u002FauditLogs\u002FsignIns?\\$filter=riskEventTypes_v2\u002Fany(r:r eq 'unfamiliarFeatures')\" \\\n  --query \"value[*].{User:userPrincipalName,Location:location.city,IP:ipAddress}\" \\\n  -o table\n\n# Check for legacy authentication sign-ins\naz rest --method GET \\\n  --url \"https:\u002F\u002Fgraph.microsoft.com\u002Fv1.0\u002FauditLogs\u002FsignIns?\\$filter=clientAppUsed ne 'Browser' and clientAppUsed ne 'Mobile Apps and Desktop clients'\" \\\n  --query \"value[*].{User:userPrincipalName,ClientApp:clientAppUsed,Status:status.errorCode}\" \\\n  -o table\n```\n\n### Step 6: Run ScoutSuite Automated Assessment\n\nExecute ScoutSuite for comprehensive automated checks across the Azure tenant configuration.\n\n```bash\n# Run ScoutSuite against Azure\npython3 -m ScoutSuite azure --cli \\\n  --report-dir .\u002Fscoutsuite-azure-report \\\n  --all-subscriptions\n\n# Review the generated HTML report\nopen .\u002Fscoutsuite-azure-report\u002Fazure-report.html\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| Microsoft Entra ID | Microsoft's cloud identity and access management service, formerly Azure Active Directory, providing authentication and authorization |\n| Conditional Access | Policy engine that evaluates signals (user, device, location, risk) to enforce access controls like MFA, device compliance, or block access |\n| Security Defaults | Microsoft's baseline identity protection settings that enforce MFA registration, block legacy auth, and protect privileged actions |\n| Privileged Identity Management | Azure AD Premium P2 feature enabling just-in-time privileged access with approval workflows and time-bound role activation |\n| Legacy Authentication | Older authentication protocols (POP3, IMAP, SMTP, ActiveSync) that do not support MFA and are commonly exploited for credential attacks |\n| Risky Sign-In | Microsoft Entra Identity Protection detection of sign-in anomalies including impossible travel, unfamiliar locations, and malware-linked IPs |\n\n## Tools & Systems\n\n- **Microsoft Graph API**: Primary programmatic interface for querying Entra ID configuration, policies, roles, and audit logs\n- **Microsoft Graph PowerShell SDK**: PowerShell module for Entra ID management and security auditing tasks\n- **ScoutSuite**: Multi-cloud auditing tool with Azure provider support for IAM, storage, networking, and identity checks\n- **AzureADRecon**: Community tool for comprehensive Azure AD reconnaissance and security assessment reporting\n- **Microsoft Defender for Identity**: Cloud-based security solution for detecting identity-based threats and compromised credentials\n\n## Common Scenarios\n\n### Scenario: Post-Acquisition Azure Tenant Security Assessment\n\n**Context**: After acquiring a company, the security team needs to assess the Azure tenant identity posture before integrating it with the corporate Entra ID.\n\n**Approach**:\n1. Enumerate all Global Administrators and check for personal accounts in admin roles\n2. Review conditional access policies to verify MFA is enforced for all users, not just admins\n3. Identify guest users with privileged access that may indicate third-party vendor over-permissioning\n4. Check for stale accounts (no sign-in for 90+ days) that could be targets for credential attacks\n5. Review sign-in logs for legacy authentication usage that bypasses MFA\n6. Verify Security Defaults or equivalent CA policies block legacy auth protocols\n7. Produce a risk report with prioritized remediation steps before tenant integration\n\n**Pitfalls**: Azure AD Premium P2 is required for risky sign-in detections and PIM. If the acquired tenant uses a lower license tier, many identity protection features will be unavailable. Guest users from partner tenants may have implicit access through dynamic groups that are not visible in standard role assignment queries.\n\n## Output Format\n\n```\nAzure Active Directory Security Audit Report\n===============================================\nTenant: acme-acquired.onmicrosoft.com\nTenant ID: a1b2c3d4-e5f6-7890-abcd-ef1234567890\nAudit Date: 2026-02-23\nLicense: Azure AD Premium P2\n\nIDENTITY CONFIGURATION:\n  Security Defaults: Disabled (Conditional Access in use)\n  Conditional Access Policies: 12 (8 enforced, 3 report-only, 1 disabled)\n  Legacy Auth Blocked: Partial (blocked for admins only)\n\nPRIVILEGED ACCESS:\n  Global Administrators:              8 (recommended: \u003C= 4)\n  Permanent admin assignments:        6 (no PIM activation required)\n  Service principals with admin:      3\n  Guest users with privileged roles:  2\n\nACCOUNT HYGIENE:\n  Total users:                        1,247\n  Stale accounts (90+ days):          89\n  Guest users:                        234\n  Users without MFA registered:       156\n\nSIGN-IN RISK:\n  Risky sign-ins (last 30 days):      34\n  Legacy auth sign-ins (last 7 days): 67\n  Impossible travel detections:        5\n  Unfamiliar location sign-ins:       12\n\nCRITICAL FINDINGS:\n  1. 8 Global Administrators with permanent assignments (use PIM)\n  2. Legacy authentication not blocked for non-admin users\n  3. 156 users without MFA registration\n  4. 2 guest users with Privileged Role Administrator role\n```\n",{"name":5,"tags":24,"author":31,"domain":32,"license":14,"version":33,"nist_csf":34,"subdomain":25,"description":39,"mitre_attack":40},[25,26,27,28,29,30],"cloud-security","azure","entra-id","active-directory","iam-audit","conditional-access","mahipal","cybersecurity","1.0",[35,36,37,38],"PR.IR-01","ID.AM-08","GV.SC-06","DE.CM-01","Auditing Microsoft Entra ID (Azure Active Directory) configuration to identify risky authentication policies, overly permissive role assignments, stale accounts, conditional access gaps, and guest user risks using AzureAD PowerShell, Microsoft Graph API, and ScoutSuite.\n",[41,42,43,44,45],"T1078.004","T1098.003","T1556.006","T1069.003","T1526","main","1eb986d0b0ecc180291597e08eb5a58288843536","skills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fauditing-azure-active-directory-configuration","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv","2026-08-25 13:16:33",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add vikasvardhanv\u002Fjerry_skills --skill auditing-azure-active-directory-configuration",{"tool":58,"command":59},"bunx","bunx skills add vikasvardhanv\u002Fjerry_skills --skill auditing-azure-active-directory-configuration",{"tool":61,"command":62},"pnpm","pnpm dlx skills add vikasvardhanv\u002Fjerry_skills --skill auditing-azure-active-directory-configuration","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fauditing-azure-active-directory-configuration\u002FSKILL.md",true,[66,70,76],{"path":67,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":15},"LICENSE","许可证",11255,{"path":71,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Fapi-reference.md","REFERENCE","参考文档",2375,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fauditing-azure-active-directory-configuration\u002Freferences\u002Fapi-reference.md",{"path":77,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":80,"sourceHtmlUrl":81},"scripts\u002Fagent.py","SCRIPT","脚本",6862,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fauditing-azure-active-directory-configuration\u002Fscripts\u002Fagent.py",[83,91,98,105,112,119],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":87,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7BESR1CJ3H5SP9XM8KYJZ9W","syllabus","Generates a curated supplementary reading list from any course syllabus using Consensus academic search. Grill-me intake (syllabus input format + course audience + year range) plus a grouping forcing-options checkpoint before any search runs — so the reading list matches the course's level and recency need. Parses the syllabus to extract topics and learning outcomes, searches Consensus for recent peer-reviewed papers per topic, and produces a professionally formatted .docx with clickable Consensus links, plain-language summaries calibrated to audience level, and Bloom-higher-order discussion questions tied to course learning goals. Use when the user uploads a syllabus, course outline, or curriculum document and wants supplementary readings (e.g., 'create a reading list from this syllabus', 'find recent papers for my course') — even casual mentions with a syllabus attached should trigger this skill.","MIT","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fsyllabus\u002Fskills\u002Fsyllabus\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":87,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M7BES1YA6R97W7QPMFFM1PED","pulse","Multi-source recency research skill that takes the pulse of any topic across Reddit, Hacker News, the open web, and optionally X\u002FTwitter within a configurable recent window (default 30 days). Forcing intake clarifies topic specificity, angle (trend\u002Fsentiment\u002Fproblems\u002Fopportunities\u002Fcomparison), time window, and platform scope before searching. Returns a synthesized briefing with citations, engagement metrics, and cross-platform pattern analysis. Use when the user requests multi-source recency intelligence on a topic (e.g., 'pulse on [topic]', 'what's happening with [topic]', 'what are people saying about [topic]', 'current conversation about [topic]', 'take the pulse of [topic]', 'trending: [topic]', 'find me info on [topic]'), and for competitor research, trend discovery, tool comparisons, and audience sentiment analysis.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fpulse\u002Fskills\u002Fpulse\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":87,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M7BERNHYGY035AR00VRT03KE","patent","Patent prior-art and landscape intelligence skill — not generic patent help. Commits to one of five sub-use-cases via forcing intake (novelty search \u002F freedom-to-operate \u002F competitive landscape \u002F acquisition diligence \u002F litigation prior-art) before any search runs. Searches Google Patents, Espacenet, USPTO, and optionally Lens.org for citation-graph signals. Output is an editable Word document (.docx) with verdict, ranked closest art (claim-text extracted), CPC-class-aware landscape, family-resolved hits, geographic coverage, FTO flags where applicable, strategy recommendations, and full audit log. Use when the user asks for patent searching or analysis (e.g., 'prior art search for [invention]', 'freedom to operate analysis for [product]'). Produces search signal, not legal advice — always recommends consulting a patent attorney before filing or licensing decisions. Trademark, copyright, and trade-secret questions are out of scope.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fpatent\u002Fskills\u002Fpatent\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":87,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":19},"01M7BERCK1EAKTWW7R436WAR0J","notebooklm","Browser automation skill for controlling Google's NotebookLM. Use when the user wants anything done in NotebookLM (e.g., 'open NotebookLM', 'check my [name] notebook', 'ask my notebook about X', 'add [source] to NotebookLM', 'generate a Video Overview from my notebook', 'use NotebookLM Studio'). Handles reading and querying notebooks, adding sources (URLs, text, files, YouTube links, synthesized content), generating Studio outputs (Audio\u002FVideo Overviews, Mind Maps, Reports incl. Briefing Doc\u002FStudy Guide\u002FFAQ, Flashcards, Quiz, slide decks, infographics — discover the exact set from the live Studio panel; the UI evolves fast), and creating new notebooks. Requires browser automation environment — fails gracefully when unavailable.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fnotebooklm\u002Fskills\u002Fnotebooklm\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":87,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":19},"01M7BEQZAZAQRTXFJRY7RHV3TY","litreview","Academic literature orientation skill that searches papers via free keyless APIs (PubMed E-utilities + OpenAlex) by default — with the Consensus MCP as an optional enhancement lane when connected — builds a strategic search plan using PICO (default) or SPIDER \u002F Decomposition \u002F hybrid as fallbacks, and synthesizes findings into a formatted Word (.docx) research guide. Grill-me intake (research question specificity + framework hint + tentative depth) before the recon search; a second forcing checkpoint after Phase 2 confirms framework + sub-areas + depth before searches consume budget. Configurable depth (5\u002F10\u002F20 queries) controls coverage vs. speed. Output is a 'launching pad' — an orientation guide that lets a researcher dive in confidently, not a finished review. Use when the user starts literature-oriented research (e.g., 'litreview on [topic]', 'literature review on [topic]', 'I'm starting a literature review on X', 'I'm writing a paper on X', 'help me research X', 'I'm doing research on X', 'can you help me research X'). Do NOT use for single one-off paper searches wanting a quick list — that's a plain PubMed\u002FOpenAlex (or Consensus) query.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Flitreview\u002Fskills\u002Flitreview\u002FSKILL.md",[],[],{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":87,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":19},"01M7BEQKJ45K31QK5VRAQSVJCJ","grants","NIH grant research skill for clinical researchers. Grill-me intake (research idea + career stage + preliminary data + environment + submission posture + known institute targets) locks down the funding strategy before any search runs. Runs a 5-facet Consensus positioning analysis (with draft Significance\u002FInnovation language), maps the research to the right NIH institutes and study sections via RePORTER, finds NOSIs and funded overlap, and produces an editable Word document (.docx) with budget\u002Fscope-aware mechanism recommendations, submission timelines, and a mandatory program officer recommendation. Use when the user asks about research funding or makes any grant-related request (e.g., 'grants for [topic]', 'find grants for my research idea', 'what grants match my research', 'help me find NIH funding', 'grant opportunities for my research'). NIH-only scope — non-NIH funders (PCORI, DOD CDMRP, VA, foundations) are out of scope and flagged at intake.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fgrants\u002Fskills\u002Fgrants\u002FSKILL.md",[],[]]