Detection rules › Sigma

OilRig APT Activity

Status
test
Severity
critical
Log source
category process_creation, product windows
Author
Florian Roth (Nextron Systems), Markus Neis, Jonhnathan Ribeiro, Daniil Yugoslavskiy, oscd.community
Source
github.com/SigmaHQ/sigma

Detects OilRig activity as reported by Nyotron in their March 2018 report

Known false positives

  • Unlikely

MITRE ATT&CK coverage

Telemetry coverage

Rule body

title: OilRig APT Activity
id: ce6e34ca-966d-41c9-8d93-5b06c8b97a06
related:
    - id: 53ba33fd-3a50-4468-a5ef-c583635cfa92 # System
      type: similar
    - id: c0580559-a6bd-4ef6-b9b7-83703d98b561 # Security
      type: similar
    - id: 7bdf2a7c-3acc-4091-9581-0a77dad1c5b5 # Registry
      type: similar
status: test
description: Detects OilRig activity as reported by Nyotron in their March 2018 report
references:
    - https://web.archive.org/web/20180402134442/https://nyotron.com/wp-content/uploads/2018/03/Nyotron-OilRig-Malware-Report-March-2018C.pdf
author: Florian Roth (Nextron Systems), Markus Neis, Jonhnathan Ribeiro, Daniil Yugoslavskiy, oscd.community
date: 2018-03-23
modified: 2023-03-08
tags:
    - attack.privilege-escalation
    - attack.execution
    - attack.persistence
    - attack.defense-impairment
    - attack.g0049
    - attack.t1053.005
    - attack.s0111
    - attack.t1543.003
    - attack.t1112
    - attack.command-and-control
    - attack.t1071.004
    - detection.emerging-threats
logsource:
    category: process_creation
    product: windows
detection:
    selection_schtasks:
        CommandLine|contains|all:
            - 'SC Scheduled Scan'
            - '\microsoft\Taskbar\autoit3.exe'
    selection_temp:
        Image|contains: '\Windows\Temp\DB\'
        Image|endswith: '.exe'
    selection_service:
        Image: 'C:\Windows\system32\Service.exe'
        CommandLine|contains:
            - 'i'
            - 'u'
    selection_autoit:
        ParentImage|endswith: '\local\microsoft\Taskbar\autoit3.exe'
        CommandLine|contains|all:
            - 'nslookup.exe'
            - '-q=TXT'
    condition: 1 of selection_*
falsepositives:
    - Unlikely
level: critical

Stages and Predicates

Stage 0: condition

1 of selection_*

Stage 1: selection_schtasks

selection_schtasks:
    CommandLine|contains|all:
        - 'SC Scheduled Scan'
        - '\microsoft\Taskbar\autoit3.exe'

Stage 2: selection_temp

selection_temp:
    Image|contains: '\Windows\Temp\DB\'
    Image|endswith: '.exe'

Stage 3: selection_service

selection_service:
    Image: 'C:\Windows\system32\Service.exe'
    CommandLine|contains:
        - 'i'
        - 'u'

Stage 4: selection_autoit

selection_autoit:
    ParentImage|endswith: '\local\microsoft\Taskbar\autoit3.exe'
    CommandLine|contains|all:
        - 'nslookup.exe'
        - '-q=TXT'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -q=TXT
  • SC Scheduled Scan
  • \microsoft\Taskbar\autoit3.exe
  • i
  • nslookup.exe
  • u
field:"CommandLine" kind:match
Imageends_with
  • .exe corpus 4 (sigma 4)
field:"Image" kind:ends_with value:".exe"
Imageeq
  • C:\Windows\system32\Service.exe
field:"Image" kind:eq value:"C:\Windows\system32\Service.exe"
Imagematch
  • \Windows\Temp\DB\
field:"Image" kind:match value:"\Windows\Temp\DB\"
ParentImageends_with
  • \local\microsoft\Taskbar\autoit3.exe
field:"ParentImage" kind:ends_with value:"\local\microsoft\Taskbar\autoit3.exe"