Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    Local Admin Auditor

    1

    Audit Windows local administrator groups to find unauthorized users, orphaned SIDs, and lateral movement risks.

    $2.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Local Admin Auditor

    Local Admin Auditor

    Example session with this skill installed

    Analyze the local admin logs in ./audit-data/ using 'CORP\Domain Admins' and 'CORP\IT-Support' as the only approved groups. Flag any orphaned SIDs or broad group memberships.

    • Read your context and instructions
    • Compiled the local admin auditor

    I have analyzed 142 host logs in the ./audit-data/ directory. The audit identified 24 non-compliant hosts with unauthorized administrative privileges, including broad group memberships and legacy orphaned SIDs.

    Local Admin Audit Findings

    HostnameFinding TypePrincipal NameRisk Level
    WKSTN-092Broad GroupNT AUTHORITY\INTERACTIVECritical
    SRV-DB-01Individual UserCORP\jsmithHigh
    WKSTN-115Orphaned SIDS-1-5-21-1234-5678-910Medium
    WKSTN-204Non-Approved GroupCORP\Marketing-LeadsHigh
    SRV-APP-04Local Account./svc-web-localHigh
    WKSTN-092Broad GroupEveryoneCritical
    WKSTN-044Lateral RiskIdentical local 'admin' account found on 12 hostsHigh

    Summary of Violations:

    • Broad Access: 3 hosts allow all interactive or authenticated users to have local admin rights.
    • Policy Deviations: 15 hosts contain individual user accounts or department groups not in the approved list.
    • Hygiene Issues: 6 hosts contain orphaned SIDs from deleted Active Directory objects.
    • Lateral Movement: The account local-maint was discovered on 85% of the sampled workstations.

    Next steps

    1. Run the remediation script to remove NT AUTHORITY\INTERACTIVE from WKSTN-092 and WKSTN-095.
    2. Verify if CORP\jsmith requires permanent access or if a JIT solution should be implemented.
    3. Purge orphaned SIDs to clean up the security descriptor on affected servers.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Windows local administrator rights often sprawl out of control, creating massive lateral movement risks. This skill identifies non-compliant privileged access across workstations and servers by auditing local group memberships against your security baseline.

    What it does

    • Identifies broad access by flagging memberships like Domain Users, Everyone, or Authenticated Users in the local Administrators group.
    • Detects shadow admins including individual user accounts, non-approved groups, and local accounts other than the built-in Administrator.
    • Cleans orphaned SIDs left behind by deleted accounts that can clutter security reports and break standard PowerShell cmdlets.
    • Maps lateral movement paths by finding the same local account names or specific users with admin rights across multiple machines.
    • Validates compliance by comparing all findings against an approved list of administrative groups or accounts.

    How it works

    1. Data Collection: Use the provided PowerShell script or your RMM to gather Get-LocalGroupMember or net localgroup output from hosts.
    2. Directory Analysis: Point the auditor at a directory containing the per-host text or CSV files.
    3. Policy Comparison: Provide an approved list of groups (e.g., Domain Admins) via CLI argument or file.
    4. Report Generation: Review the flagged findings on screen or export them to a CSV for remediation.

    Frameworks & tools

    The skill utilizes PowerShell for endpoint data collection and Python for the analysis engine. It handles both modern Get-LocalGroupMember objects and legacy net localgroup text output.

    Why this beats prompting it yourself

    Writing an auditor that handles orphaned SIDs and inconsistent CLI output across Windows versions is tedious. This skill provides a tested script that falls back to legacy commands when cmdlets fail and includes the logic to aggregate findings across thousands of files.

    Use cases

    • LAPS Deployment: Audit current standing admin rights before rolling out Local Administrator Password Solution.
    • Privilege Cleanup: Identify and remove individual user accounts that were manually added to local admin groups.
    • Incident Response: Scan for shared local account names that could facilitate lateral movement during a breach.
    • Audit Preparation: Generate a compliance report showing only approved groups have privileged access.

    Known limitations

    Requires execution of PowerShell scripts on endpoints for data collection. Large environments may require significant disk space for raw collection files before processing.

    Requires PowerShell execution permissions on targets. Analysis is limited to the local Administrators group. Shared local account detection relies on consistent naming across hosts.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 1 month ago

    Permissions

    Terminal / Shell
    Read Files
    Listed1 month ago

    What's inside

    Frequently Asked Questions

    This skill identifies unauthorized privileged access, flags orphaned SIDs that clutter security reports, and maps potential lateral movement paths by detecting shared local accounts across your network.

    The skill includes a robust PowerShell collection script and a Python-based analysis engine; it works with any AI agent capable of executing Python or processing text-based data files.

    Yes, the auditor is designed to handle both modern PowerShell cmdlet outputs and legacy 'net localgroup' text, making it compatible with older Windows versions where standard cmdlets might fail.

    Setup involves running the provided collection script via your RMM or GPO, then pointing the auditor's analysis engine at the resulting directory of host files.

    Absolutely; you can provide a whitelist of approved groups or accounts via CLI or a configuration file to ensure the auditor only flags non-compliant entries.

    New in Security