Detection rules › Sigma

PowerShell ADRecon Execution

Status
test
Severity
high
Log source
product windows, category ps_script
Author
Bhabesh Raj
Source
github.com/SigmaHQ/sigma

Detects execution of ADRecon.ps1 for AD reconnaissance which has been reported to be actively used by FIN7

MITRE ATT&CK coverage

Event coverage

Rule body yaml

title: PowerShell ADRecon Execution
id: bf72941a-cba0-41ea-b18c-9aca3925690d
status: test
description: Detects execution of ADRecon.ps1 for AD reconnaissance which has been reported to be actively used by FIN7
references:
    - https://github.com/sense-of-security/ADRecon/blob/11881a24e9c8b207f31b56846809ce1fb189bcc9/ADRecon.ps1
    - https://bi-zone.medium.com/from-pentest-to-apt-attack-cybercriminal-group-fin7-disguises-its-malware-as-an-ethical-hackers-c23c9a75e319
author: Bhabesh Raj
date: 2021-07-16
modified: 2022-09-06
tags:
    - attack.discovery
    - attack.execution
    - attack.t1059.001
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    selection:
        ScriptBlockText|contains:
            - 'Function Get-ADRExcelComOb'
            - 'Get-ADRGPO'
            - 'Get-ADRDomainController'
            - 'ADRecon-Report.xlsx' # Default
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    ScriptBlockText|contains:
        - 'Function Get-ADRExcelComOb'
        - 'Get-ADRGPO'
        - 'Get-ADRDomainController'
        - 'ADRecon-Report.xlsx'

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
ScriptBlockTextmatch
  • ADRecon-Report.xlsx
  • Function Get-ADRExcelComOb
  • Get-ADRDomainController
  • Get-ADRGPO