跳到正文
FunCoding

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.

Star
740
分类
安全
许可证
Apache-2.0
最近提交
2026年12月2日

workspace/skills/azure-security-audit/SKILL.md

在 GitHub 上查看

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.

相似的 Skill

agent-security-hardening

AFaffaan-m/ECC315k近 7 天新增 4,381 个 star

精选

ponytail-audit

审计整个代码库,找出 bug、安全漏洞和性能瓶颈,获得按重要性排序的通俗报告。

DIDietrichGebert/ponytail203k近 7 天新增 4,904 个 star

gstack

GAgarrytan/gstack143k近 7 天新增 598 个 star

精选

security-and-hardening

按 OWASP Top 10 检查输入处理、登录和依赖,加固代码。

ADaddyosmani/agent-skills122k近 7 天新增 1,667 个 star

doubt-driven-development

ADaddyosmani/agent-skills122k近 7 天新增 1,667 个 star

ruview-rvagent

RUruvnet/RuView106k近 7 天新增 596 个 star