Azure Security Audit logo

Azure Security Audit

Community
automateyournetwork
azure-security-audit

Azure NSG compliance auditing and security posture assessment. CIS Azure Foundations Benchmark rules, effective security rule analysis, orphaned NSG detection. Use when auditing Azure NSGs for CIS compliance, checking for overly permissive rules, or reviewing effective security on NICs. For general Azure networking inspection not scoped to a compliance benchmark — VNets, ExpressRoute/VPN, load balancers, what an NSG currently allows — use `azure-network-ops` instead.

Overview

Publisherautomateyournetwork
Repositorynetclaw
Skill nameazure-security-audit
Stars
680
Forks
189
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by automateyournetwork on GitHub. Read the source before you install it.

Installation

Install the Azure Security Audit AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/automateyournetwork/netclaw/tree/main/workspace/skills/azure-security-audit
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/automateyournetwork/netclaw.git /tmp/netclaw
mkdir -p .claude/skills
cp -r /tmp/netclaw/workspace/skills/azure-security-audit .claude/skills/azure-security-audit
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Azure Security Audit in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Azure Security Audit on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Azure Security Audit is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Azure Security Audit

MCP Server

  • Server: azure-network-mcp (shared with azure-network-ops)
  • Command: python mcp-servers/azure-network-mcp/azure_network_mcp_server.py (stdio transport)
  • Requires: AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET, AZURE_SUBSCRIPTION_ID
  • Read-only: All operations are observation-only

Relevant Tools

Primary Audit Tools

ToolWhat It Does
azure_audit_nsg_complianceRun CIS Azure Foundations Benchmark against all or specific NSGs
azure_list_nsgsList all NSGs with orphan detection (no subnet/NIC associations)
azure_get_nsg_rulesFull rule list sorted by priority for a specific NSG
azure_get_effective_security_rulesEffective aggregated rules on a NIC (all NSGs combined)

Supporting Context Tools

ToolWhat It Does
azure_get_network_watcher_statusFlow log configuration and retention checks
azure_get_vnet_detailsSubnet-to-NSG associations for VNet topology context
azure_list_firewallsAzure Firewall policies for layered security context

CIS Azure Foundations Benchmark Rules

The compliance audit checks these rules from the CIS Azure Foundations Benchmark:

RuleSeverityWhat It Checks
6.1CriticalRDP (port 3389) not open to 0.0.0.0/0 from internet
6.2CriticalSSH (port 22) not open to 0.0.0.0/0 from internet
6.3HighNo unrestricted UDP (all ports) from internet
6.4MediumNSG flow logs enabled with >= 90 day retention

Workflow: Full NSG Compliance Audit

When asked "audit NSG compliance" or "check Azure security posture":

  1. Discover: azure_list_nsgs -- get all NSGs, note orphaned ones
  2. Audit: azure_audit_nsg_compliance -- run CIS checks against all NSGs
  3. Deep dive: For each Critical/High finding:
    • azure_get_nsg_rules -- review the full rule set for context
    • Identify which subnets/NICs are affected via associations
  4. Effective rules: For critical NICs:
    • azure_get_effective_security_rules -- verify aggregated effective rules
  5. Flow logs: azure_get_network_watcher_status -- check flow log coverage
  6. Report: Summarize by severity, list affected resources, provide remediation steps

Workflow: Incident Response -- Suspicious Access

When investigating a potential security incident:

  1. azure_get_effective_security_rules for the target NIC -- what traffic is allowed?
  2. azure_get_nsg_rules for each associated NSG -- which specific rules permit traffic?
  3. azure_audit_nsg_compliance on the specific NSG -- any known compliance gaps?
  4. azure_get_network_watcher_status -- check if flow logs captured the traffic
  5. Cross-reference with azure-network-ops VNet tools for full topology context

Integration with azure-network-ops

This skill uses tools from the same azure-network-mcp server as azure-network-ops. The skills are complementary:

  • azure-network-ops: Broad network topology, connectivity, and health monitoring
  • azure-security-audit: Focused NSG compliance, security rule analysis, and posture assessment

Use both together for a complete Azure networking and security picture.

Important Rules

  • Read-only: Never modify NSG rules, flow logs, or any Azure resources
  • Severity prioritization: Always report Critical findings first, then High, Medium, Low
  • Remediation guidance: Include specific remediation steps for every finding
  • GAIT logging: All audit operations are logged for compliance trail
  • Subscription scope: Audit can cover all NSGs or filter by specific NSG/resource group

Failure Behavior

  • On a tool error (timeout, unreachable host, malformed response), report the failure and its error message directly to the user rather than fabricating or guessing at results.
  • For a confirmed read-only call, check connectivity and retry once if appropriate. For any call that changes state or sends a message, a timeout does not prove the action failed: inspect current state or delivery status before retrying, preserve the required approval/change gates, and do not repeat an action whose outcome is unknown.

Frequently asked questions

What does the Azure Security Audit AI skill do?

Azure NSG compliance auditing and security posture assessment. CIS Azure Foundations Benchmark rules, effective security rule analysis, orphaned NSG detection. Use when auditing Azure NSGs for CIS compliance, checking for overly permissive rules, or reviewing effective security on NICs. For general Azure networking inspection not scoped to a compliance benchmark — VNets, ExpressRoute/VPN, load balancers, what an NSG currently allows — use `azure-network-ops` instead.

Why use Azure Security Audit on TypingMind?

Because you install it once and use it with any model. Azure Security Audit is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Azure Security Audit in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/automateyournetwork/netclaw/tree/main/workspace/skills/azure-security-audit. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Azure Security Audit?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Azure Security Audit?

As many as you like. As long as a model supports skills, you can use Azure Security Audit with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Azure Security Audit AI skill free?

Yes. It is published on GitHub by automateyournetwork under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇