defender-for-identity

Microsoft Defender for Identity (MDI) 指南 — 通过部署传感器对本地 Active Directory、AD CS、AD FS 和 Entra Connect 实施身份威胁检测(ITDR)。内容包括传感器部署、先决条件、安全态势评估及横向移动检测,适用于本地 AD 威胁检测场景(如 Kerberoasting、DCSync、Golden Ticket 等)。不适用于保护 Entra ID 云身份或跨工作负载事件关联。

仓库最近推送
GitHub Stars
183
Forks
34
Issues / PRs
0

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "defender-for-identity":https://skillpi.com/zh/skills/deepskill-59077c64adc6a0c6b44ee539ed911f15cbad0e7941cf5622905d869bc7781752。安装前核对上游来源和版本:https://github.com/vinayaklatthe/microsoft-security-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

Microsoft Defender for Identity (MDI) 指南 — 通过部署传感器对本地 Active Directory、AD CS、AD FS 和 Entra Connect 实施身份威胁检测(ITDR)。内容包括传感器部署、先决条件、安全态势评估及横向移动检测,适用于本地 AD 威胁检测场景(如 Kerberoasting、DCSync、Golden Ticket 等)。不适用于保护 Entra ID 云身份或跨工作负载事件关联。

0 下载

介绍来源: third_party · vinayaklatthe · 0.1.0 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
适合谁
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: defender-for-identity
description: "Guidance for Microsoft Defender for Identity (MDI) — identity threat detection (ITDR) across on-premises Active Directory, AD CS, AD FS, and Entra Connect using sensors. Covers sensor placement, prerequisites, posture assessments, and lateral-movement detection. WHEN: Defender for Identity, MDI, MDI sensors, detect lateral movement, on-prem AD threat detection, identity security posture, AD CS monitoring, ADCS abuse, domain controller sensor, detect Kerberoasting, DCSync, Golden Ticket, identity ITDR, honeytoken, gMSA Directory Service Account, suspicious LDAP, ESC1 ESC8. DO NOT USE when the goal is cloud identity protection in Entra ID (use entra-id-protection) or correlating cross-workload incidents (use defender-xdr)."
license: MIT
metadata:
  author: Microsoft
  version: "0.1.0"

Microsoft Defender for Identity

Microsoft Defender for Identity (MDI) is a cloud-based identity threat detection and response (ITDR) solution. Lightweight sensors on domain controllers and other identity infrastructure parse network traffic, ETW events, and AD object reads to detect reconnaissance, credential theft, lateral movement, and domain dominance. Signals correlate into Defender XDR incidents.

When to use

Detecting identity-based attacks against on-premises Active Directory, AD CS, AD FS, and Entra Connect — and surfacing identity posture issues (legacy protocols, unsecure accounts, risky delegations) that lead to those attacks.

Do not use this skill for cloud-only Entra ID risk detection — that is Entra ID Protection (entra-id-protection). MDI sees on-prem and hybrid identity infrastructure.

Map the attack to a detection source

Pick the row that matches the attacker behaviour to confirm MDI is the right control and which sensor surface produces the signal.

If the attacker is... MDI detection family Sensor surface
Enumerating users, groups, SPNs Reconnaissance DC sensor (LDAP, SAMR)
Cracking service-account TGS tickets offline Kerberoasting DC sensor (Kerberos)
Replicating directory secrets (DCSync) Domain dominance DC sensor (DRSUAPI RPC)
Forging Kerberos tickets Golden / Silver Ticket DC sensor (Kerberos anomalies)
Abusing AD CS misconfig (ESC1–ESC8) Certificate-based privilege escalation AD CS sensor
Hijacking the AD FS sign-in flow Token / SAML forgery AD FS sensor
Stealing Entra Connect sync account creds Hybrid identity compromise Entra Connect sensor
Probing risky configurations (legacy SMB, weak SPNs) Identity Security Posture (ISPM) All sensors + cloud assessments

Rule of thumb: if the attacker touches an on-prem identity service for any step, MDI should see it. A gap in any sensor (one un-instrumented DC, AD CS, or AD FS) is a blind spot for the whole kill chain.

Approach

  1. Map identity infrastructure — Inventory every domain controller (including RODCs), every AD CS Enterprise CA, every AD FS server, and every Entra Connect / Cloud Sync host. This list is the sensor target list — gaps here become attack paths later. Verify: `Get-ADDomainController -Filter ` count equals the deployed sensor count in the MDI portal under Settings → Sensors.*

  2. Confirm prerequisites before deploy — Each sensor host needs outbound HTTPS to the MDI cloud service, the MDI sensor MSI, a Directory Service Account (DSA), and (on DCs) the Advanced Audit Policy settings + Object Access SACLs that MDI requires. Verify: run the MDI sizing tool and confirm CPU/RAM headroom; sensors should add < 10% sustained CPU on a DC.

  3. Use a gMSA for the Directory Service Account — Group Managed Service Accounts rotate passwords automatically and remove the worst class of credential exposure. Never use a plaintext-password service account. Verify: Get-ADServiceAccount mdi-gmsa$ -Properties PrincipalsAllowedToRetrieveManagedPassword returns the sensor host group, nothing wider.

  4. Deploy sensors in waves — DC sensors first (highest signal), then AD CS, AD FS, Entra Connect. Wait 24 hours between waves to baseline traffic and avoid drowning the SOC in first-time-seen activity alerts.

  5. Tune alerts, then act on posture — Acknowledge benign first-week alerts (admin tooling noise), then work the Identity Security Posture Assessments (Secure Score panel). Posture issues (e.g. Unsecure account attributes, Legacy protocols, Dormant accounts) are the weak links attackers exploit before alerts ever fire. Verify: posture score baseline captured at week 1; track delta monthly, not daily.

  6. Deploy honeytokens — Plant 1-2 fake high-privilege accounts (e.g. svc-legacy-backup) that no human should ever touch. Any auth attempt is high-confidence malicious.

  7. Correlate in Defender XDR — MDI alerts auto-correlate with MDE and Entra ID Protection into a single XDR incident. Investigate from the incident, not the standalone alert.

Guardrails

  • Every DC must have a sensor. A single un-instrumented DC is the lateral-movement landing pad attackers will find. RODCs included.
  • Sensor on AD CS is not optional in 2026. AD CS abuse (ESC1-ESC8) is the most common privilege-escalation path in current incident response cases - without the AD CS sensor you see the result (Domain Admin) but not the cause.
  • Use a gMSA for the DSA. Never a regular service account with a static password - it becomes the next Kerberoasting target.
  • Tune, don't suppress. Disabling an alert class to silence noise removes the detection. Suppress per-source instead and review monthly.
  • Honeytokens require care. Place them where reconnaissance tools see them (group memberships, descriptions) but document them so the SOC doesn't waste cycles investigating legitimate test triggers.

Common anti-patterns

  • "We'll cover the most important DCs first" - Attackers pick the un-instrumented one. All DCs or none.
  • "We use a domain admin account as the DSA for simplicity" - Hands attackers a domain admin if the sensor host is compromised. Always use gMSA with least privilege.
  • "Posture alerts are not real alerts so we ignore them" - Posture issues are pre-attack signals. Working them down is cheaper than responding to the incident they enable.
  • "We didn't deploy the AD CS sensor - we don't issue many certs" - Issuance volume is irrelevant. ESC1/ESC8 misconfigs exist in stock AD CS installs and need monitoring.
  • "MDI alerts go straight to the legacy SIEM, we don't use Defender XDR" - Loses cross- workload correlation. Even if SIEM is primary, keep XDR for the attack graph.

Example prompts

  • Plan Defender for Identity sensor coverage across DCs, AD CS, AD FS, and Entra Connect.
  • Which Defender for Identity detections cover the Kerberoasting kill chain?
  • How do I configure a gMSA Directory Service Account for MDI?
  • Which Identity Security Posture assessments should I fix first?
  • Show me how to deploy a honeytoken account in MDI.
  • Why am I seeing high CPU on a DC after installing the MDI sensor - how do I size it?

Microsoft Learn

当前收录版本

0.1.0

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值85/100

亮点

  • 提供 Microsoft Defender for Identity 的完整部署与检测指导,覆盖本地 AD、AD CS、AD FS、Entra Connect 的身份威胁检测(ITDR)
触发精准95/100

亮点

  • 触发词精准完整,覆盖多种变体(MDI、Kerberoasting、ESC1/ESC8等),边界清晰,明确排除 entra-id-protection 与 defender-xdr
结构规范90/100

待提升项

  • description写错位置 原报告严重程度:轻微

    顶层 description 字段为空,实质描述内容位于 skill_body 内部

    改进建议:建议将触发描述移至顶层 description 字段,保持规范一致

亮点

  • 结构完整,含攻击映射表、部署步骤、最佳实践、反模式、示例提示与官方文档链接
执行可靠90/100

待提升项

  • 文档略长 原报告严重程度:轻微

    skill_body 约450行,接近500行上限

    改进建议:建议适当精简或拆分内容,提升可读性

亮点

  • 工具来源明确(Microsoft Learn),参数正确,覆盖主要异常场景,关键操作有验证机制
证据可验 (前四项均值)90/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

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

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

  • 账号、密钥或授权

    使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。

    主文档提及 · 第 14, 60 行
文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • learn.microsoft.com

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。