← Back to SOC feed Coverage →

Exchange PowerShell Cmdlet History Deleted

sigma HIGH SigmaHQ
T1070
imFileEvent
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at SigmaHQ →
Retrieved: 2026-03-25T02:50:08Z · Confidence: medium

Hunt Hypothesis

The deletion of Exchange PowerShell cmdlet history logs indicates an adversary is attempting to remove forensic evidence and obscure their PowerShell-based activities. SOC teams should proactively hunt for this behavior in Azure Sentinel to identify potential exfiltration or persistence tactics early.

Detection Rule

Sigma (Original)

title: Exchange PowerShell Cmdlet History Deleted
id: a55349d8-9588-4c5a-8e3b-1925fe2a4ffe
status: test
description: Detects the deletion of the Exchange PowerShell cmdlet History logs which may indicate an attempt to destroy forensic evidence
references:
    - https://m365internals.com/2022/10/07/hunting-in-on-premises-exchange-server-logs/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-10-26
modified: 2022-12-30
tags:
    - attack.defense-evasion
    - attack.t1070
logsource:
    category: file_delete
    product: windows
detection:
    selection:
        TargetFilename|startswith: '\Logging\CmdletInfra\LocalPowerShell\Cmdlet\'
        TargetFilename|contains: '_Cmdlet_'
    condition: selection
falsepositives:
    - Possible FP during log rotation
level: high

KQL (Azure Sentinel)

imFileEvent
| where TargetFileName startswith "\\Logging\\CmdletInfra\\LocalPowerShell\\Cmdlet\\" and TargetFileName contains "_Cmdlet_"

False Positive Guidance

MITRE ATT&CK Context

Original source: https://github.com/SigmaHQ/sigma/blob/master/rules/windows/file/file_delete/file_delete_win_delete_exchange_powershell_logs.yml