purview-audit

Microsoft Purview Audit (standard and premium) guidance: logging and searching user and admin activities in Microsoft 365 for investigation and compliance. Covers tier differences, default and extended retention policies, high-value events, audit search experience, Office 365 Management Activity API / Microsoft Graph Audit API, and integration with Sentinel/SIEM. Applicable to audit log search, audit retention, user activity investigations, and forensic logging.

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 "purview-audit" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-8f79d477a3f93f682a167c6694902ad5ae218b0d08714be26e1adfd91f941f8a. 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 Purview Audit (standard and premium) guidance: logging and searching user and admin activities in Microsoft 365 for investigation and compliance. Covers tier differences, default and extended retention policies, high-value events, audit search experience, Office 365 Management Activity API / Microsoft Graph Audit API, and integration with Sentinel/SIEM. Applicable to audit log search, audit retention, user activity investigations, and forensic logging.

0 Downloads

Introduction source: third_party · vinayaklatthe · 0.1.0 Reference

SkillPi interpretation

Tasks
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.
Audience
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).
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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

Current listing version

0.1.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 提供 Microsoft Purview 审计的完整指南,涵盖标准版与高级版差异、保留策略、关键事件、审计搜索、API 集成及 Sentinel/SIEM 集成
  • 适用于安全调查、合规和取证场景,解决企业用户的核心痛点
  • 内容详实,具有高度实用价值
Trigger Precision95/100

Highlights

  • 触发词精准完整,覆盖 Purview 审计、审计日志搜索、Microsoft 365 审计、审计高级版、调查用户活动、审计日志保留、Microsoft Graph 审计 API、取证日志记录、关键审计事件、MailItemsAccessed 等
  • 边界清晰,不易误触或漏触
Structure and Standards95/100

Highlights

  • 结构清晰,包含 When to use、Approach(6 个步骤)、Guardrails、Common anti-patterns、Example prompts 等章节
  • 有明确的出口条件和端到端示例,frontmatter 完整,单文件未超过 500 行
Execution Reliability95/100

Highlights

  • 工具来源明确(Microsoft Purview、Office 365 Management Activity API、Microsoft Graph audit API、Sentinel),参数正确
  • 覆盖主要异常(如保留策略不足、高级事件未启用、审计搜索延迟等),不可逆操作有确认机制(如验证保留策略、确认高级事件流)
Evidence Verifiability (mean of the first four)95/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.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

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.