email-and-collaboration
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseEmail & Collaboration — detection-relevant internals
电子邮件与协作——与检测相关的内部机制
This skill encodes how M365 email and collaboration services work at the level needed to detect BEC, phishing, data exfiltration, and insider threats through these channels.
Scope: This skill covers Microsoft 365 (Exchange Online, SharePoint, OneDrive, Teams). Google Workspace, Slack, and other collaboration platforms are not covered. SIEM table names vary by platform — consult the relevant platform skill for ingestion specifics.
本 skill 编码了 M365 电子邮件与协作服务的工作机制,其细节层级足以通过这些渠道检测 BEC、网络钓鱼、数据外泄和内部人员威胁。
范围:本 skill 覆盖 Microsoft 365(Exchange Online、SharePoint、OneDrive、Teams)。不涵盖 Google Workspace、Slack 和其他协作平台。SIEM 表名因平台而异——有关数据摄取的具体信息,请参阅相应的平台 skill。
1. Exchange Online mail flow
1. Exchange Online 邮件流
Message lifecycle
消息生命周期
Sender → Exchange Online Transport Pipeline
→ Transport rules (mail flow rules) evaluated
→ DLP policies evaluated
→ Connector routing (on-prem, partner, internet)
→ Recipient mailbox delivery
→ Post-delivery actions (ZAP, Safe Links rewrite)发件人 → Exchange Online 传输管道
→ 评估传输规则(Transport rules)
→ 评估 DLP 策略
→ 连接器路由(本地部署、合作伙伴、Internet)
→ 收件人邮箱投递
→ 投递后操作(ZAP、Safe Links 重写)Detection-relevant mail flow concepts
与检测相关的邮件流概念
| Concept | Detail | Detection signal |
|---|---|---|
| Transport rules | Admin-created rules that modify, redirect, or block mail | New transport rule creation = potential BEC infrastructure. |
| Journal rules | Copy all mail to a journal mailbox | New journal rule = potential exfiltration. |
| Connectors | Route mail to/from external systems | New outbound connector = potential mail redirection. |
| ZAP (Zero-hour Auto Purge) | Retroactively removes malicious messages post-delivery | |
| Safe Links | URL rewriting for click-time protection | |
| 概念 | 详情 | 检测信号 |
|---|---|---|
| 传输规则(Transport rules) | 管理员创建,用于修改、重定向或阻止邮件的规则 | 创建新传输规则可能意味着出现 BEC 基础设施。UAL 中记录 |
| Journal 规则 | 将所有邮件副本复制到 journal 邮箱 | 创建新 Journal 规则可能意味着数据外泄。UAL 中记录 |
| 连接器(Connectors) | 将邮件路由至外部系统或从外部系统路由邮件 | 创建新的出站连接器可能意味着邮件被重定向。 |
| ZAP (Zero-hour Auto Purge) | 在投递后追溯删除恶意邮件 | Defender 的 |
| Safe Links | 通过重写 URL 提供点击时保护 | Defender 的 |
2. Mailbox delegation and forwarding
2. 邮箱委派与转发
Forwarding mechanisms (BEC critical)
转发机制(BEC 关键项)
| Mechanism | How it works | Detection | Persistence level |
|---|---|---|---|
| Inbox rules | User-created rule forwarding/redirecting mail | | Per-mailbox, survives password change |
| SMTP forwarding | | | Admin-level, survives password change |
| Transport rule forwarding | Org-wide rule redirecting mail | | Org-wide, admin-only |
| Power Automate flow | Automated flow forwarding mail | Flow creation events in UAL. | Per-user, survives password change |
| Delegate access | Another user granted access to mailbox | | Admin-level |
| 机制 | 工作方式 | 检测方式 | 持久化级别 |
|---|---|---|---|
| 收件箱规则(Inbox rules) | 用户创建,用于转发或重定向邮件的规则 | UAL 中记录 | 邮箱级别,密码更改后仍会保留 |
| SMTP 转发 | 邮箱上的 | 使用 | 管理员级别,密码更改后仍会保留 |
| 传输规则转发 | 重定向邮件的组织级规则 | UAL 中记录 | 组织级别,仅限管理员 |
| Power Automate 流 | 自动转发邮件的流 | UAL 中的流创建事件。 | 用户级别,密码更改后仍会保留 |
| 委派访问(Delegate access) | 向另一用户授予邮箱访问权限 | UAL 中记录 | 管理员级别 |
BEC forwarding detection priority
BEC 转发检测优先级
- Inbox rules with external forwarding — most common BEC persistence. Look for rules with ,
ForwardTo, orRedirectToactions targeting external addresses.DeleteMessage - SMTP forwarding to external domain — silent, admin-level. Check on all mailboxes.
ForwardingSmtpAddress - Delegate access grants — ,
FullAccess,SendAsto unexpected users.SendOnBehalf
- 带外部转发的收件箱规则——最常见的 BEC 持久化手段。查找包含 、
ForwardTo或RedirectTo操作,且目标为外部地址的规则。DeleteMessage - 向外部域进行 SMTP 转发——静默且属于管理员级别。检查所有邮箱上的 。
ForwardingSmtpAddress - 委派访问授权——检查是否向意外用户授予了 、
FullAccess或SendAs。SendOnBehalf
3. OAuth app permissions on mailboxes
3. 邮箱上的 OAuth 应用权限
Application permissions (daemon access, no user context)
应用程序权限(daemon 访问,无用户上下文)
| Permission | What it grants | Risk |
|---|---|---|
| Read all mail in all mailboxes | Full email exfiltration |
| Read/write all mail | Email manipulation + exfiltration |
| Send mail as any user | BEC impersonation |
| Modify mailbox settings | Create forwarding rules silently |
Detection: with = . Check for granted permissions. Application permissions (vs delegated) are higher risk — they don't require user context.
AuditLogsOperationNameConsent to applicationTargetResources[0].modifiedProperties| 权限 | 授权内容 | 风险 |
|---|---|---|
| 读取所有邮箱中的所有邮件 | 完整邮件外泄 |
| 读取和写入所有邮件 | 邮件篡改与外泄 |
| 以任意用户身份发送邮件 | BEC 冒充 |
| 修改邮箱设置 | 静默创建转发规则 |
检测: 中 = 。检查 中已授予的权限。应用程序权限(而非 delegated 权限)风险更高——不需要用户上下文。
AuditLogsOperationNameConsent to applicationTargetResources[0].modifiedProperties4. MailItemsAccessed
4. MailItemsAccessed
MailItemsAccessed| Field | Detail | Detection use |
|---|---|---|
| | |
| Application identifier | |
| Number of items accessed | High count in short window = bulk access |
| Session correlation | Correlate with sign-in events |
Detection patterns:
- operations from non-standard clients (not Outlook, OWA, or mobile)
Sync - High from a single session
OperationCount - from an IP that doesn't match the user's sign-in IP
MailItemsAccessed - Access to mailboxes the user doesn't normally access (delegate abuse)
MailItemsAccessed| 字段 | 详情 | 检测用途 |
|---|---|---|
| | 来自意外客户端的 |
| 应用程序标识符 | |
| 已访问的项目数量 | 短时间内数量过高意味着批量访问 |
| 会话关联 | 与登录事件进行关联 |
检测模式:
- 来自非标准客户端的 操作(Outlook、OWA 或移动客户端除外)
Sync - 单次会话中的 过高
OperationCount - 来自与用户登录 IP 不匹配的 IP 地址
MailItemsAccessed - 访问用户通常不会访问的邮箱(委派滥用)
5. SharePoint / OneDrive
5. SharePoint / OneDrive
External sharing
外部共享(External sharing)
| Sharing level | Risk | Detection signal |
|---|---|---|
| Anyone link | Highest — no authentication required | |
| Specific people (external) | Medium — requires authentication | |
| Organisation-wide | Low (internal) | |
| 共享级别 | 风险 | 检测信号 |
|---|---|---|
| 任何人链接 | 最高——无需身份验证 | |
| 特定人员(外部) | 中等——需要身份验证 | |
| 全组织范围 | 低(内部) | |
Detection-relevant operations
与检测相关的操作
| Operation | UAL event | Detection use |
|---|---|---|
| File downloaded | | Bulk download = exfiltration |
| File shared externally | | Data leak |
| Sharing link created | | Anyone-accessible link |
| Site permission changed | | Privilege escalation |
| Sensitivity label removed | | DLP bypass |
| File synced | | Bulk sync to unmanaged device |
| 操作 | UAL 事件 | 检测用途 |
|---|---|---|
| 文件下载 | | 批量下载意味着数据外泄 |
| 文件对外共享 | | 数据泄露 |
| 创建共享链接 | | 任何人均可访问的链接 |
| 站点权限变更 | | 权限提升 |
| 移除敏感度标签 | | 绕过 DLP |
| 文件同步 | | 批量同步至非托管设备 |
6. Microsoft Teams
6. Microsoft Teams
Detection-relevant Teams operations
与检测相关的 Teams 操作
| Operation | UAL event | Detection use |
|---|---|---|
| Guest added to team | | External access |
| External user messaged | | Data leak via chat |
| App installed in team | | Malicious app / OAuth abuse |
| Meeting recording accessed | | Sensitive content access |
| Channel created | | Shadow IT / unauthorised collaboration |
| Connector added | | Webhook-based data exfiltration |
| 操作 | UAL 事件 | 检测用途 |
|---|---|---|
| 将来宾添加到团队 | | 外部访问 |
| 向外部用户发送消息 | 向外部收件人触发 | 通过聊天泄露数据 |
| 在团队中安装应用 | | 恶意应用或 OAuth 滥用 |
| 访问会议录制 | | 敏感内容访问 |
| 创建频道 | | Shadow IT 或未经授权的协作 |
| 添加连接器 | | 基于 Webhook 的数据外泄 |
7. Unified Audit Log (UAL) — Purview
7. Unified Audit Log (UAL)——Purview
The UAL is the central audit log for all M365 services. Key considerations:
| Aspect | Detail |
|---|---|
| Retention | 180 days (E5/Audit Premium) or 90 days (standard) |
| Latency | 60-90 minutes typical; can be up to 24 hours for some workloads |
| Search | |
| SIEM ingestion | Via diagnostic settings, Office 365 Management Activity API, or platform-specific connectors. Consult your platform skill for table names. |
UAL 是所有 M365 服务的中央审计日志。关键注意事项:
| 方面 | 详情 |
|---|---|
| 保留期(Retention) | 180 天(E5/Audit Premium)或 90 天(标准版) |
| 延迟(Latency) | 通常为 60–90 分钟;部分工作负载最长可能达到 24 小时 |
| 搜索(Search) | |
| SIEM 摄取 | 通过诊断设置、Office 365 Management Activity API 或平台专用连接器完成。有关表名,请参阅相应的平台 skill。 |
Critical UAL record types
关键 UAL 记录类型
| RecordType | Service | Key operations |
|---|---|---|
| Exchange | Mail access, send, delete |
| Exchange | Mailbox config, transport rules |
| SharePoint/OneDrive | File operations, sharing |
| Entra ID | Sign-in, directory changes |
| Teams | Messaging, meetings, apps |
| Power BI | Report access, sharing |
| Purview | DLP, retention, eDiscovery |
| RecordType | 服务 | 关键操作 |
|---|---|---|
| Exchange | 邮件访问、发送、删除 |
| Exchange | 邮箱配置、传输规则 |
| SharePoint/OneDrive | 文件操作、共享 |
| Entra ID | 登录、目录变更 |
| Teams | 消息、会议、应用 |
| Power BI | 报表访问、共享 |
| Purview | DLP、保留、eDiscovery |
8. BEC detection patterns
8. BEC 检测模式
Pattern 1: Account compromise → inbox rule → financial fraud
模式 1:账户入侵 → 收件箱规则 → 金融欺诈
1. Credential phishing (AiTM) → successful sign-in from anomalous location
2. Inbox rule created: forward/redirect to external address, or delete messages matching keywords
3. Attacker monitors email for financial transactions
4. Attacker sends fraudulent payment instructions from compromised accountDetection chain: Risky sign-in event → inbox rule creation (forward/redirect to external) → outbound email with financial keywords. Correlate across identity logs, UAL, and email delivery logs.
1. 凭据钓鱼(AiTM)→ 从异常位置成功登录
2. 创建收件箱规则:转发/重定向至外部地址,或删除匹配关键词的邮件
3. 攻击者监控邮件中的金融交易
4. 攻击者从已入侵的账户发送虚假付款指示检测链:高风险登录事件 → 收件箱规则创建(转发/重定向至外部地址)→ 包含财务关键词的出站邮件。跨身份日志、UAL 和电子邮件投递日志进行关联。
Pattern 2: OAuth consent phishing → persistent access
模式 2:OAuth consent 钓鱼 → 持久访问
1. Phishing email with OAuth consent link
2. User grants permissions to malicious app
3. App accesses mail/files via Graph API without further authentication
4. Access persists even after password changeDetection: Consent grant event with high-privilege permissions (, ). App not in organisation's approved list. See skill for consent monitoring.
Mail.ReadFiles.ReadWrite.Allentra-id1. 包含 OAuth consent 链接的钓鱼邮件
2. 用户向恶意应用授予权限
3. 应用通过 Graph API 访问邮件/文件,且无需进一步身份验证
4. 即使密码更改,访问权限仍会保留检测:consent 授权事件包含高权限(、),且该应用不在组织批准列表中。有关 consent 监控,请参阅 skill。
Mail.ReadFiles.ReadWrite.Allentra-idPattern 3: Insider threat — bulk data exfiltration
模式 3:内部人员威胁——批量数据外泄
1. User downloads large volumes of files from SharePoint/OneDrive
2. User shares files externally via anonymous links
3. User forwards email to personal accountDetection: Volume-based anomaly on + + per user per time window.
FileDownloadedAnonymousLinkCreatedSet-Mailbox ForwardingSmtpAddress1. 用户从 SharePoint/OneDrive 下载大量文件
2. 用户通过匿名链接对外共享文件
3. 用户将邮件转发至个人账户检测:按用户和时间窗口对 + + 进行基于数据量的异常检测。
FileDownloadedAnonymousLinkCreatedSet-Mailbox ForwardingSmtpAddress9. Telemetry sources
9. 遥测来源
| M365 operation | UAL operation name | API source | Licence |
|---|---|---|---|
| Email delivery | | Office 365 Management Activity API | E3/E5 |
| Email URL clicks | | Defender for Office 365 API | Defender P1/P2 |
| Email attachments | (embedded in delivery events) | Defender for Office 365 API | Defender P1/P2 |
| Post-delivery actions (ZAP) | | Defender for Office 365 API | Defender P1/P2 |
| Inbox rule changes | | Office 365 Management Activity API | E3/E5 |
| Mailbox config changes | | Office 365 Management Activity API | E3/E5 |
| SharePoint file operations | | Office 365 Management Activity API | E3/E5 |
| Teams operations | | Office 365 Management Activity API | E3/E5 |
| MailItemsAccessed | | Office 365 Management Activity API | E5 / Audit Premium |
Map these operations to your SIEM's tables/indexes. Consult the relevant platform skill (,microsoft-sentinel, etc.) for ingestion specifics.splunk-spl-processing
| M365 操作 | UAL 操作名称 | API 来源 | 许可证 |
|---|---|---|---|
| 电子邮件投递 | | Office 365 Management Activity API | E3/E5 |
| 电子邮件 URL 点击 | | Defender for Office 365 API | Defender P1/P2 |
| 电子邮件附件 | (嵌入在投递事件中) | Defender for Office 365 API | Defender P1/P2 |
| 投递后操作(ZAP) | | Defender for Office 365 API | Defender P1/P2 |
| 收件箱规则变更 | | Office 365 Management Activity API | E3/E5 |
| 邮箱配置变更 | | Office 365 Management Activity API | E3/E5 |
| SharePoint 文件操作 | | Office 365 Management Activity API | E3/E5 |
| Teams 操作 | | Office 365 Management Activity API | E3/E5 |
| MailItemsAccessed | | Office 365 Management Activity API | E5 / Audit Premium |
将这些操作映射到 SIEM 的表或索引。有关数据摄取的具体信息,请参阅相应的平台 skill(、microsoft-sentinel等)。splunk-spl-processing
10. Quality checklist
10. 质量检查清单
- Forwarding detection covers all mechanisms (inbox rules, SMTP forwarding, transport rules, Power Automate).
- OAuth consent detections distinguish application vs delegated permissions.
- MailItemsAccessed detections check (Bind vs Sync) and
MailAccessType.ClientInfoString - SharePoint sharing detections distinguish anonymous links from authenticated sharing.
- BEC detection chains correlate sign-in anomaly → mailbox manipulation → financial indicators.
- UAL latency (60-90 min) accounted for in near-real-time detection design.
- Audit Premium / E5 requirements declared for MailItemsAccessed detections.
- Teams guest access and app installation monitored.
- Bulk download/sync thresholds documented with rationale.
- Transport rule and journal rule creation monitored as admin-level persistence.
- 转发检测覆盖所有机制(收件箱规则、SMTP 转发、传输规则、Power Automate)。
- OAuth consent 检测能够区分应用程序权限与 delegated 权限。
- MailItemsAccessed 检测会检查 (Bind 与 Sync)以及
MailAccessType。ClientInfoString - SharePoint 共享检测能够区分匿名链接与经过身份验证的共享。
- BEC 检测链能够关联登录异常 → 邮箱操纵 → 财务指标。
- 近实时检测设计中已考虑 UAL 延迟(60–90 分钟)。
- 已明确 MailItemsAccessed 检测对 Audit Premium / E5 的要求。
- 已监控 Teams 来宾访问和应用安装。
- 已记录批量下载/同步阈值及其设定依据。
- 已将传输规则和 Journal 规则创建作为管理员级持久化行为进行监控。