Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+22 more

    ast microsoft

    1

    Investigate and respond to threats across Microsoft 365, Entra ID, Azure, and Defender using MCP and CLI tools.

    $199

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    ast microsoft

    ast microsoft

    Example session with this skill installed

    Check Entra ID for any risky users and list the most recent Defender alerts.

    • Read your context and instructions
    • Compiled the ast microsoft

    I have completed the investigation into risky users in Entra ID and gathered the latest alerts from Microsoft Defender.

    Security Investigation Report

    SourceIdentifierRisk Level / SeverityDescriptionTimestamp (UTC)
    Entra IDuser.alpha@company.comHighLeaked Credentials2023-10-27 14:22:01
    Entra IDuser.beta@company.comMediumUnfamiliar sign-in properties2023-10-27 15:45:10
    DefenderAlert-8821InformationalManual investigation started2023-10-27 16:00:12
    DefenderAlert-8825HighPossible Cobalt Strike activity2023-10-27 16:15:45

    Gaps

    • The search was limited to the last 24 hours.
    • No errors were reported by the az-search tool.
    • Results cover Entra ID and Defender only; Sentinel KQL hunting was not performed.

    Next steps

    • Needs your approval: Revoke sessions for user.alpha@company.com to mitigate the leaked credential risk.
    • Needs your approval: Isolate the host associated with Defender alert Alert-8825.
    • Run a Sentinel KQL query to check for lateral movement from these accounts.

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

    About this skill

    Securing and managing Microsoft 365 or Azure environments often requires jumping between multiple portals and running disjointed PowerShell scripts. This skill provides a unified command-line and MCP interface to investigate and respond to threats across the entire Microsoft stack from your agent.

    What it does

    • Security Investigation queries Entra ID, Defender alerts, and Sentinel incidents using KQL to hunt for threats.
    • Incident Response disables compromised accounts, revokes sessions, and contains hosts across on-prem AD and Entra.
    • Email Defense searches mailboxes, analyzes headers, and purges phishing emails or releases items from quarantine.
    • Device & App Management audits Intune device status, manages the Win32 app catalog, and tracks install status.
    • Compliance & Governance manages Purview eDiscovery cases, litigation holds, and Teams federation blocks.
    • Resource Optimization analyzes Azure cost data and identifies VM rightsizing opportunities.

    How it works

    1. Prerequisites requires the user to create read, write, and compliance app registrations in the Entra portal.
    2. Installation involves running an install.sh script to set up a local Python virtual environment and offline AST packages.
    3. Configuration uses a .env file or system keychain to store API credentials securely.
    4. Execution leverages specialized CLIs like az-search, az-exch, and az-sentinel or their corresponding MCP tools.

    Frameworks & tools

    Built for Python 3.12+, utilizing Microsoft Graph API, Azure Management API, and Sentinel KQL. Certain Exchange and Purview features require PowerShell 7 and the ExchangeOnlineManagement module.

    Why this beats prompting it yourself

    Generic prompts often hallucinate PowerShell syntax or overlook the complex API permissions required for M365 security actions. This skill provides tested, specific tooling that handles the nuances of Microsoft's various API endpoints while enforcing a strict safety model for destructive actions.

    Use cases

    • Disable a compromised user account and revoke all active sessions across Entra and on-prem AD.
    • Search all mailboxes for a specific phishing SHA256 hash and purge the messages.
    • Query Sentinel for high-severity incidents and pull associated Defender hunting telemetry.
    • Audit Azure tenant spend and identify underutilized VMs for cost reduction.

    Known limitations

    Does not support Okta, Google Workspace, or sovereign clouds like GCC High and DoD. Write operations require manual environment variable gates to be enabled for MCP access.

    How to use

    Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed 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 scanned

    Verified clean 3 days ago

    • Passed all security checks, Safe to install

    Requires

    Python 3.12+
    macOS or Linux (Windows only via WSL 2, untested)
    bash 3.2+ (runs install.sh)
    pip and venv (Debian/Ubuntu: python3.12-venv)
    Third Party Python Packages Installed By Install.Sh From PyPI: Requests, Python Dotenv, Platformdirs, Keyring, Fastmcp, MCP
    An agent that reads SKILL.md skills, e.g. Claude Code (optional)
    A Stdio Client For The Tools (Optional) MCP
    A system keychain for sectools secrets (optional; the .env file works without one)
    msal =1.24 and ldap3 =2.9 (installed by install.sh)
    PowerShell 7 (pwsh) with ExchangeOnlineManagement 3.9.0+ (only for Exchange trace, quarantine, transport rules and parts of Purview)
    LDAP(S) reach to a domain controller (only for on-prem AD commands)
    macOS
    Windows
    Python

    Listed3 days ago

    What's inside

    Frequently Asked Questions