defender-secure-score-monitor

defender-secure-score-monitor is a skill for Claude Code, Codex from ricmmartins/azure-sre-agent-skills. It costs 57 tokens per session (2,688 once invoked), scanned A, original, MIT.

A monitoring guide for Microsoft Defender for Cloud Secure Score, a measure of how well Azure resources follow recommended security practices. It reviews the score, its controls, Defender coverage, and security recommendations.

In plain words
What is it for?
Use it for security-score checks, weekly security reviews, audit preparation, customer questionnaires, and targeted improvements to an Azure security posture.
Why use it?
It turns a broad security status into specific actions, such as addressing critical recommendations or checking missing Defender plans. This helps teams prepare for audits and track changes after deployments.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for security-score checks, weekly security reviews, audit preparation, customer questionnaires, and targeted improvements to an Azure security posture.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ricmmartins/azure-sre-agent-skills/06-defender-secure-score
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ricmmartins/azure-sre-agent-skills --skill 06-defender-secure-score
Clone the repo
git clone --depth 1 https://github.com/ricmmartins/azure-sre-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for defender-secure-score-monitor

README.md
[![agentmods](https://agentmods.dev/badge/skills/ricmmartins/azure-sre-agent-skills/06-defender-secure-score/github.svg)](https://agentmods.dev/skills/ricmmartins/azure-sre-agent-skills/06-defender-secure-score)
Your own site
<a href="https://agentmods.dev/skills/ricmmartins/azure-sre-agent-skills/06-defender-secure-score"><img src="https://agentmods.dev/badge/skills/ricmmartins/azure-sre-agent-skills/06-defender-secure-score/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for defender-secure-score-monitor

Your own site · 80×15
<a href="https://agentmods.dev/skills/ricmmartins/azure-sre-agent-skills/06-defender-secure-score"><img src="https://agentmods.dev/badge/skills/ricmmartins/azure-sre-agent-skills/06-defender-secure-score.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,688 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.02688
Opus 5 $0.00028 $0.01344
Sonnet 5 $0.00011 $0.00538
Haiku 4.5 $0.00006 $0.00269

Measured 13d ago against content hash 0775bde73082, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

defender-secure-score-monitor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/06-defender-secure-score/SKILL.md · 260 lines

How it starts

The opening of the file, as written. The whole thing — 260 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Defender Secure Score Monitor

Purpose

Track and improve your Microsoft Defender for Cloud Secure Score through focused monitoring, trend analysis, and actionable remediation guidance. Answers "what's our security score and how do we improve it?"

When to use this skill

  • User asks "what's our secure score?"
  • User asks how to improve security posture
  • Weekly security posture check
  • Before a security audit or customer questionnaire
  • After deploying new resources (to check score impact)

Difference from Compliance/Governance Audit

The Compliance skill does a broad governance audit (policy, RBAC, tagging, locks, naming). This skill is laser-focused on Defender for Cloud Secure Score — the single most important security KPI — and provides targeted actions to improve it.

Assessment procedure

Step 1: Current Secure Score

Get the overall score and per-control breakdown.

az rest --method get --url "https://management.azure.com/subscriptions/<sub-id>/providers/Microsoft.Security/secureScores/ascScore?api-version=2020-01-01"
az rest --method get --url "https://management.azure.com/subscriptions/<sub-id>/providers/Microsoft.Security/secureScores/ascScore/secureScoreControls?api-version=2020-01-01"

Note: The az security secure-scores list CLI command may fail in some environments. The REST API approach above is more reliable. Replace <sub-id> with the target subscription ID.

Report:

  • Current Secure Score: X% (X/Y points)
  • Trend (if memory available): improved/declined vs. last check
  • Top 5 controls with the most room for improvement (highest max - current)

Step 2: Unhealthy assessments (recommendations)

Get the list of active security recommendations.

az rest --method get --url "https://management.azure.com/subscriptions/<sub-id>/providers/Microsoft.Security/assessments?api-version=2021-06-01" --query "value[?properties.status.code=='Unhealthy'].{displayName:properties.displayName, severity:properties.metadata.severity, category:properties.metadata.categories[0], resourceId:properties.resourceDetails.id}"

Read the full file on GitHub · 260 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 260 lines · 57 tokens per session scan A 0775bde73082

Subscribe to this mod's changes

defender-secure-score-monitor is a skill published in the GitHub repository ricmmartins/azure-sre-agent-skills (70 stars, last pushed 18d ago), licensed MIT. It adds 57 tokens to every session and 2,688 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.