defender-for-apis
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "defender-for-apis":https://skillpi.com/zh/skills/deepskill-cff920993c42e07fae3882ab2dc93d1620d7185b0adc78ecb8a1cd28f9e060c6。安装前核对上游来源和版本:https://github.com/vinayaklatthe/microsoft-security-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
Microsoft Defender for APIs 指南:在 Defender for Cloud 框架下发现、按风险优先级排序并保护在 Azure API Management 中发布的 API,以防范威胁和滥用。涵盖 API 接入、 安全发现结果与威胁检测。适用场景:Defender for APIs、API 威胁防护、保护 API Management 中的 API、API 安全态势管理与检测 API 滥用或敏感数据泄露。
介绍来源: third_party · vinayaklatthe · 0.1.0 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
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-designfor 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
- 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".
- 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.
- Triage by the risk table above — Filter inventory to External + Unauthenticated and External + Sensitive data findings. Treat these as P0.
- 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.
- Unauthenticated → add
- 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.
- 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
- Overview: https://learn.microsoft.com/azure/defender-for-cloud/defender-for-apis-introduction
- Deploy and onboard: https://learn.microsoft.com/azure/defender-for-cloud/defender-for-apis-deploy
- Investigate findings (posture): https://learn.microsoft.com/azure/defender-for-cloud/defender-for-apis-posture
- API Management - protect backend: https://learn.microsoft.com/azure/api-management/api-management-howto-protect-backend-with-aad
- API Management - rate limit policy: https://learn.microsoft.com/azure/api-management/rate-limit-by-key-policy
- Defender for APIs pricing: https://learn.microsoft.com/azure/defender-for-cloud/defender-for-apis-deploy#prerequisites
当前收录版本
0.1.0
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供端到端 Microsoft Defender for APIs 使用指南,涵盖启用、接入、风险分级与修复建议
- 面向 Azure API Management 用户解决 API 安全态势管理与威胁检测的实际痛点
亮点
- 触发词精准覆盖典型场景(如 API threat protection、secure APIs in API Management),边界清晰
亮点
- 结构完整,步骤清晰,包含验证点与反模式提醒,frontmatter 规范
亮点
- 基于 Azure 官方服务,覆盖主要异常场景,有明确验证机制
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
账号、密钥或授权
使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。
主文档提及 · 第 62 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- learn.microsoft.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。