purview-audit
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "purview-audit":https://skillpi.com/zh/skills/deepskill-8f79d477a3f93f682a167c6694902ad5ae218b0d08714be26e1adfd91f941f8a。安装前核对上游来源和版本:https://github.com/vinayaklatthe/microsoft-security-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
Microsoft Purview 审计(标准版与高级版)指南:用于调查与合规目的,对 Microsoft 365 中的用户与管理员活动进行日志记录与搜索。涵盖层级差异、默认与扩展保留策略、高价值事件、审计搜索体验、Office 365 管理活动 API / Microsoft Graph 审计 API,以及与 Sentinel/SIEM 的集成。适用于审计日志搜索、审计日志保留、调查用户活动与取证记录等场景。
介绍来源: third_party · vinayaklatthe · 0.1.0 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: purview-audit
description: "Guidance for Microsoft Purview Audit (Standard and Premium) - logging and searching user/admin activity across Microsoft 365 for investigations and compliance. Covers tier differences, default and extended retention, high-value events, audit search UX, Office 365 Management Activity API / Microsoft Graph audit API, and Sentinel/SIEM integration. WHEN: Purview Audit, audit log search, Microsoft 365 audit, Audit Premium, investigate user activity, audit log retention, Microsoft Graph audit API, forensic logging, crucial audit events, MailItemsAccessed."
license: MIT
metadata:
author: Microsoft
version: "0.1.0"Microsoft Purview Audit
Microsoft Purview Audit records user and admin activity across Microsoft 365 services and makes it searchable for security investigations, forensics, and compliance. It's the first thing the IR team reaches for and the first thing leadership wishes they had configured better.
When to use
Investigating incidents, supporting eDiscovery/compliance, and meeting regulatory logging requirements for Microsoft 365 services.
Do not use this skill for sign-in/identity logs (use Entra ID sign-in logs / Defender XDR) or for Azure resource activity (use Azure Activity Log via Sentinel).
Pick the right tier and retention
| Need | Tier | Retention |
|---|---|---|
| Core admin/user actions for routine ops | Audit (Standard) | ~180 days default |
| Breach investigation (MailItemsAccessed, Send, SearchQueryInitiated) | Audit (Premium) | 1 year default |
| Regulated industries / legal hold scenarios | Audit (Premium) + 10-year add-on | Up to 10 years |
| Long-term SIEM/UEBA correlation | Stream to Sentinel via Office 365 connector | Sentinel retention |
Rule of thumb: confirm tier and retention before an incident - default retention is the single most common gap that turns a "we have audit logs" into "we don't have the right ones".
Approach
- Confirm tier - Audit (Standard) provides core logging with default retention; Audit (Premium) adds longer default retention (1 year, extendable to 10 with add-on), higher bandwidth, and access to crucial/high-value events (e.g., MailItemsAccessed, Send, SearchQueryInitiated) valuable for forensics. Verify: a sample query for MailItemsAccessed returns results for a known user.
- Verify auditing is on - Confirm audit logging is enabled for the tenant (it should be on by default in modern tenants but old tenants can have it disabled). Verify: Get-AdminAuditLogConfig / portal shows audit ingestion active.
- Configure retention policies - Audit log retention policies extend or shorten retention for specific record types/workloads/activities; build them around your top investigation playbooks. Verify: retention policies cover MailItemsAccessed, FileAccessed, SearchQueryInitiated for executives at minimum.
- Search - Use Audit search in the Purview portal (or the Office 365 Management Activity API / Microsoft Graph audit API) to query by user, activity, workload, and time. Verify: a test investigation query returns within the SLA expected for audit search.
- Operationalise - Stream audit data to Sentinel/SIEM for correlation and long-term analytics; document the playbooks investigators use. Verify: the Office 365 connector in Sentinel shows ingestion and a workbook is in place.
- Practice - Run a tabletop using the audit log to answer "who exfiltrated what when"; note any gap in retention or premium events.
Guardrails
- Validate retention meets regulatory requirements before an incident - default retention may be insufficient for your sector or for the time it takes to discover a breach.
- Premium-only events (e.g., MailItemsAccessed) are critical for breach investigations - confirm licensing and that the events are flowing for every user you would ever investigate.
- Audit search has latency; design investigations accordingly and prefer Sentinel/KQL for iterative pivoting on hot data.
- Scope reviewer access tightly - audit data can reveal sensitive activity; use the eDiscovery / Audit role groups, not Global Admin.
- Treat audit configuration as a security control with change management - turning it off must be auditable and alerted.
Common anti-patterns
- Assuming Premium events flow automatically without confirming licensing per user.
- Default retention only, then surprised when the breach window is 9 months back.
- Investigating in the Purview portal under time pressure instead of pre-built KQL in Sentinel.
- No retention policy for crucial events - retention drops back to default for the records that matter most.
- Granting tenant-wide audit reader to large groups.
Example prompts
Search the Microsoft 365 audit log to investigate user activity.Configure audit log retention and confirm Audit Premium events.How do I export audit data via the Microsoft Graph audit API?Set up forensic logging for crucial audit events.Stream Microsoft 365 audit to Sentinel and build an investigation workbook.
Microsoft Learn
- Audit solutions overview: https://learn.microsoft.com/purview/audit-solutions-overview
- Audit Standard vs Premium: https://learn.microsoft.com/purview/audit-solutions-overview
- Search the audit log: https://learn.microsoft.com/purview/audit-search
- Audit log retention policies: https://learn.microsoft.com/purview/audit-log-retention-policies
- Office 365 Management Activity API: https://learn.microsoft.com/office/office-365-management-api/office-365-management-activity-api-reference
当前收录版本
0.1.0
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供 Microsoft Purview 审计的完整指南,涵盖标准版与高级版差异、保留策略、关键事件、审计搜索、API 集成及 Sentinel/SIEM 集成
- 适用于安全调查、合规和取证场景,解决企业用户的核心痛点
- 内容详实,具有高度实用价值
亮点
- 触发词精准完整,覆盖 Purview 审计、审计日志搜索、Microsoft 365 审计、审计高级版、调查用户活动、审计日志保留、Microsoft Graph 审计 API、取证日志记录、关键审计事件、MailItemsAccessed 等
- 边界清晰,不易误触或漏触
亮点
- 结构清晰,包含 When to use、Approach(6 个步骤)、Guardrails、Common anti-patterns、Example prompts 等章节
- 有明确的出口条件和端到端示例,frontmatter 完整,单文件未超过 500 行
亮点
- 工具来源明确(Microsoft Purview、Office 365 Management Activity API、Microsoft Graph audit API、Sentinel),参数正确
- 覆盖主要异常(如保留策略不足、高级事件未启用、审计搜索延迟等),不可逆操作有确认机制(如验证保留策略、确认高级事件流)
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- learn.microsoft.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。