defender-for-apis

Microsoft Defender for APIs guide: within the Defender for Cloud framework, discover, prioritize by risk, and protect APIs published in Azure API Management to guard against threats and abuse. Covers API onboarding, security discovery results, and threat detection. Applicable scenarios: Defender for APIs, API threat protection, securing APIs in API Management, API security posture management, and detecting API abuse or sensitive data exposure.

Last repository push
GitHub Stars
183
Forks
34
Issues / PRs
0

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "defender-for-apis" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-cff920993c42e07fae3882ab2dc93d1620d7185b0adc78ecb8a1cd28f9e060c6. Verify the upstream source and version against https://github.com/vinayaklatthe/microsoft-security-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Microsoft Defender for APIs guide: within the Defender for Cloud framework, discover, prioritize by risk, and protect APIs published in Azure API Management to guard against threats and abuse. Covers API onboarding, security discovery results, and threat detection. Applicable scenarios: Defender for APIs, API threat protection, securing APIs in API Management, API security posture management, and detecting API abuse or sensitive data exposure.

0 Downloads

Introduction source: third_party · vinayaklatthe · 0.1.0 Reference

SkillPi interpretation

Tasks
Guidance for Microsoft Defender for APIs — a Defender for Cloud plan that discovers, prioritizes by risk, and protects APIs published in Azure API Management against threats and abuse. Covers onboarding, security findings, and threat detection. WHEN: Defender for APIs, API threat protection, secure APIs in API Management, API security posture, detect API abuse, onboard APIs to Defender, API attack detection, sensitive data exposure in APIs.
Audience
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)
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: defender-for-apis
description: "Guidance for Microsoft Defender for APIs — a Defender for Cloud plan that discovers, prioritizes by risk, and protects APIs published in Azure API Management against threats and abuse. Covers onboarding, security findings, and threat detection. WHEN: Defender for APIs, API threat protection, secure APIs in API Management, API security posture, detect API abuse, onboard APIs to Defender, API attack detection, sensitive data exposure in APIs."
license: MIT
metadata:
  author: Microsoft
  version: "0.1.0"

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.

Guardrails

  • APIM-only scope. Defender for APIs only sees APIs fronted by Azure API Management. APIs on Application Gateway, Front Door, or direct App Service exposure are invisible to it - route them through APIM or use other controls.
  • Detection is not protection. Defender finds the problem; APIM policies fix it. Treat Defender as your prioritisation engine, not your security perimeter.
  • Pricing scales with calls. High-traffic APIs (hundreds of millions of calls/month) can generate significant Defender for APIs cost. Use the Azure Pricing Calculator before scaling.
  • Sensitive-data detection is sampled. Defender inspects a percentage of API responses; do not rely on it as a complete DLP control - pair with response-masking APIM policies for known-sensitive fields.
  • Onboarding changes nothing in your API. No code change, no perf impact - Defender reads APIM telemetry. Safe to enable in production.

Common anti-patterns

  • "Fix every finding." Findings flood on day one; teams burn out triaging low-risk internal APIs. Use the priority table.
  • "Treat Defender for APIs as a WAF." It is not. WAF lives at Front Door / Application Gateway / APIM Premium. Defender is detection + posture.
  • "Skip APIM and call Defender for APIs." Cannot - APIM is the prerequisite.
  • "Leave inactive APIs published." Defender flags them; ignoring the flag keeps live attack surface for retired endpoints.
  • "Onboard, then forget." Without monthly triage, new APIs appear unmonitored and findings drift.

Example prompts

  • Onboard APIs in API Management to Microsoft Defender for APIs.
  • Which APIs should I protect first with Defender for APIs?
  • How do I detect API abuse and sensitive data exposure in my APIs?
  • Review API security posture and prioritise findings.
  • Set up API attack detection and alerting in Sentinel.
  • Estimate the cost of Defender for APIs for 500 million calls a month.

Microsoft Learn

Current listing version

0.1.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供端到端 Microsoft Defender for APIs 使用指南,涵盖启用、接入、风险分级与修复建议
  • 面向 Azure API Management 用户解决 API 安全态势管理与威胁检测的实际痛点
Trigger Precision92/100

Highlights

  • 触发词精准覆盖典型场景(如 API threat protection、secure APIs in API Management),边界清晰
Structure and Standards95/100

Highlights

  • 结构完整,步骤清晰,包含验证点与反模式提醒,frontmatter 规范
Execution Reliability90/100

Highlights

  • 基于 Azure 官方服务,覆盖主要异常场景,有明确验证机制
Evidence Verifiability (mean of the first four)91/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Accounts, secrets or authorization

    Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.

    Mentioned in main document · lines 62
Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • learn.microsoft.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.