Detection rules › Sigma

PowerShell Console History Logs Deleted

Status
test
Severity
medium
Log source
category file_delete, product windows
Author
Nasreddine Bencherchali (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects the deletion of the PowerShell console History logs which may indicate an attempt to destroy forensic evidence

MITRE ATT&CK coverage

TacticTechniques
Stealth

Telemetry coverage

Rule body

title: PowerShell Console History Logs Deleted
id: ff301988-c231-4bd0-834c-ac9d73b86586
status: test
description: Detects the deletion of the PowerShell console History logs which may indicate an attempt to destroy forensic evidence
references:
    - Internal Research
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-02-15
tags:
    - attack.stealth
    - attack.t1070
logsource:
    category: file_delete
    product: windows
detection:
    selection:
        TargetFilename|endswith: '\PSReadLine\ConsoleHost_history.txt'
    condition: selection
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetFilename|endswith: '\PSReadLine\ConsoleHost_history.txt'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetFilenameends_with
  • \PSReadLine\ConsoleHost_history.txt
field:"TargetFilename" kind:ends_with value:"\PSReadLine\ConsoleHost_history.txt"