defender-for-apis

defender-for-apis is a skill for Claude Code, Codex from vinayaklatthe/microsoft-security-skills. It costs 89 tokens per session (1,580 once invoked), scanned A, original, MIT.

Guidance for Microsoft Defender for APIs, a Microsoft Defender for Cloud service that finds and ranks risks in APIs published through Azure API Management and detects attacks against them.

In plain words
What is it for?
Use it to prioritize and monitor APIs already published through Azure API Management, especially internet-facing APIs or those handling sensitive data.
Why use it?
It helps teams decide which existing APIs need attention first and spot active misuse or attacks.

Skill for Claude CodeCodex

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

Good fit Use it to prioritize and monitor APIs already published through Azure API Management, especially internet-facing APIs or those handling sensitive data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vinayaklatthe/microsoft-security-skills/defender-for-apis
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 vinayaklatthe/microsoft-security-skills --skill defender-for-apis
Clone the repo
git clone --depth 1 https://github.com/vinayaklatthe/microsoft-security-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-for-apis

README.md
[![agentmods](https://agentmods.dev/badge/skills/vinayaklatthe/microsoft-security-skills/defender-for-apis/github.svg)](https://agentmods.dev/skills/vinayaklatthe/microsoft-security-skills/defender-for-apis)
Your own site
<a href="https://agentmods.dev/skills/vinayaklatthe/microsoft-security-skills/defender-for-apis"><img src="https://agentmods.dev/badge/skills/vinayaklatthe/microsoft-security-skills/defender-for-apis/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-for-apis

Your own site · 80×15
<a href="https://agentmods.dev/skills/vinayaklatthe/microsoft-security-skills/defender-for-apis"><img src="https://agentmods.dev/badge/skills/vinayaklatthe/microsoft-security-skills/defender-for-apis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,580 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.
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.00089 $0.01580
Opus 5 $0.00044 $0.00790
Sonnet 5 $0.00018 $0.00316
Haiku 4.5 $0.00009 $0.00158

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

Security

Grade A, and why

defender-for-apis 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 12d 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/defender-for-apis/SKILL.md · 108 lines

How it starts

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

Microsoft Defender for APIs

Defender for APIs is a Microsoft Defender for Cloud plan that provides visibility into the security posture of APIs published in Azure API Management, prioritises them by risk, and detects active threats and abuse. It is detection and posture, not a WAF or API gateway.

When to use

Use this skill when securing APIs that are already published through Azure API Management and you need risk-based prioritisation plus runtime threat detection.

Do not use this skill for:

  • Designing API security from scratch (use api-security-design for OWASP API Top 10)
  • APIs fronted by Application Gateway / Front Door without APIM (out of scope today)
  • WAF tuning or rate-limiting design (APIM policies, not Defender)

Triage which APIs to protect first

Defender for APIs onboards everything in APIM by default. The work is prioritisation. Use this table to rank your inventory:

Risk signal Priority Why it matters first
Externally exposed + unauthenticated P0 - this week Already an attack surface; one bad request from internet
Externally exposed + handles sensitive data (PII, payment, health) P0 - this week Sensitive-data exposure (OWASP API3) and BOLA risk
Externally exposed + authenticated P1 - this month Auth bypass / token abuse risk
Internal + handles sensitive data P2 - this quarter Insider risk; lateral movement scenarios
Inactive or unused for >90 days Decommission Free attack surface reduction
Internal + non-sensitive P3 - monitor only Low immediate risk

Rule of thumb: if Defender for APIs surfaces more than 50 findings on day one, do not try to fix all of them. Filter to externally exposed + sensitive-data first - that is usually 5-15 APIs and 80% of real risk.

Approach

  1. Enable the plan at subscription scope — Defender for APIs is a per-API priced plan inside Defender for Cloud (billed per million API calls). Enable on the subscription containing your APIM instances. The first 30 days are free for evaluation. Verify: Defender for Cloud → Environment settings → Defender plans shows "APIs: On".
  2. Onboard APIs into the plan — From Defender for Cloud → Workload protections → Defender for APIs → Onboard, select APIM instances. Onboarding does not require redeploying APIs. Verify: API inventory populates within ~1 hour; each API shows a risk score and findings.
  3. Triage by the risk table above — Filter inventory to External + Unauthenticated and External + Sensitive data findings. Treat these as P0.
  4. Remediate at the APIM layer — Defender does not fix; APIM policies do.
    • Unauthenticated → add <validate-jwt> or subscription-key policy
    • Sensitive data exposure → review set-body / response-mask policies
    • Excessive enumeration → add <rate-limit-by-key> policy
    • Inactive APIs → deprecate or revoke product visibility Verify: re-scan finding clears within 24 hours of APIM policy publish.
  5. Wire detections to your SOC — Defender alerts flow into Defender for Cloud, Defender XDR, and Sentinel via the Microsoft Defender XDR connector. Build automation rules for unauthenticated-access spikes and credential-stuffing patterns. Verify: a test malicious request (e.g. enumeration burst from one IP) generates an alert within 15 minutes in the Defender XDR portal.
  6. Iterate monthly — New APIs appear; old ones go inactive. Re-run the triage table monthly so risk priority stays current.

Read the full file on GitHub · 108 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. 12d ago First seen · 108 lines · 89 tokens per session scan A 21c384e2f6e7

Subscribe to this mod's changes

defender-for-apis is a skill published in the GitHub repository vinayaklatthe/microsoft-security-skills (173 stars, last pushed 2mo ago), licensed MIT. It adds 89 tokens to every session and 1,580 once invoked, about $0.0004 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.

Related

Other skills, from other repositories

cosmos-design-struct

Enforce consistent struct design conventions across sdk/cosmos crates. Validates visibility modifiers, field privacy, #[nonexhaustive] usage, and construction API patterns (Default/new with with setters, or optional separate builders with builder()/build()), and construction correctness on public structs. Can auto-fix…

Azure/azure-sdk-for-rust · 83 tokens

bf-to-agents-sdk-typescript-migration

Assess and migrate JavaScript or TypeScript bots from BotBuilder/Bot Framework SDK to Microsoft 365 Agents SDK with AgentApplication. Use to produce a migration report and plan before editing code, map BotBuilder packages and APIs, identify unsupported features, and implement only the supported plan items selected by…

microsoft/Agents · 71 tokens

octopus-architecture

Review system architecture, simplify boundaries, or compare interface designs from repository evidence.

nyldn/claude-octopus · 19 tokens

bfl-api

BFL FLUX API integration guide covering endpoints, async polling patterns, rate limiting, error handling, webhooks, and regional endpoints with Python and TypeScript code examples.

calesthio/OpenMontage · 38 tokens

api-doc-generator

Generate API documentation from source code, supporting REST APIs, GraphQL, and various documentation formats.

JackyST0/awesome-agent-skills · 23 tokens

aspire

Build, upgrade, and operate Aspire 13.5.x C# or TypeScript application hosts with the current CLI, AppHost, ServiceDefaults, integrations, dashboard, testing, MCP, and deployment patterns for distributed apps. USE FOR: Aspire.AppHost.Sdk, Aspire.Hosting., DistributedApplication.CreateBuilder, apphost.mts…

managedcode/dotnet-skills · 145 tokens