Detection rules › Sigma

Suspicious Manipulation Of Default Accounts Via Net.EXE

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

Detects suspicious manipulations of default accounts such as 'administrator' and 'guest'. For example 'enable' or 'disable' accounts or change the password...etc

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: Suspicious Manipulation Of Default Accounts Via Net.EXE
id: 5b768e71-86f2-4879-b448-81061cbae951
status: test
description: Detects suspicious manipulations of default accounts such as 'administrator' and 'guest'. For example 'enable' or 'disable' accounts or change the password...etc
references:
    - https://www.trellix.com/en-sg/about/newsroom/stories/threat-labs/lockergoga-ransomware-family-used-in-targeted-attacks.html
    - https://redacted.com/blog/bianlian-ransomware-gang-gives-it-a-go/
    - https://www.microsoft.com/security/blog/2022/09/07/profiling-dev-0270-phosphorus-ransomware-operations/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-09-01
modified: 2023-02-21
tags:
    - attack.collection
    - attack.t1560.001
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith:
              - '\net.exe'
              - '\net1.exe'
        - OriginalFileName:
              - 'net.exe'
              - 'net1.exe'
    selection_user_option:
        CommandLine|contains: ' user '
    selection_username:
        CommandLine|contains:
            # Note: We need to write the full account name for cases starting with 'admin' to avoid lookups only with the user flag
            - ' Järjestelmänvalvoja ' # Finish
            - ' Rendszergazda ' # Hungarian
            - ' Администратор ' # Russian
            - ' Administrateur ' # French
            - ' Administrador ' # Portuguese (Brazil + Portugal) + Spanish
            - ' Administratör ' # Swedish
            - ' Administrator ' # English
            - ' guest '
            - ' DefaultAccount '
            # The cases below are for when an attacker requests the net command via 'cmd /c....'
            # First in double quotes
            - ' "Järjestelmänvalvoja" ' # Finish
            - ' "Rendszergazda" ' # Hungarian
            - ' "Администратор" ' # Russian
            - ' "Administrateur" ' # French
            - ' "Administrador" ' # Portuguese (Brazil + Portugal) + Spanish
            - ' "Administratör" ' # Swedish
            - ' "Administrator" ' # English
            - ' "guest" '
            - ' "DefaultAccount" '
            # Second in single quotes
            - " 'Järjestelmänvalvoja' " # Finish
            - " 'Rendszergazda' " # Hungarian
            - " 'Администратор' " # Russian
            - " 'Administrateur' " # French
            - " 'Administrador' " # Portuguese (Brazil + Portugal) + Spanish
            - " 'Administratör' " # Swedish
            - " 'Administrator' " # English
            - " 'guest' "
            - " 'DefaultAccount' "
    filter:
        CommandLine|contains|all:
            - 'guest'
            - '/active no'
    condition: all of selection_* and not filter
falsepositives:
    - Some false positives could occur with the admin or guest account. It depends on the scripts being used by the admins in your env. If you experience a lot of FP you could reduce the level to medium
level: high

Stages and Predicates

Stage 0: condition

all of selection_* and not filter

Stage 1: selection_img

selection_img:
    - Image|endswith:
          - '\net.exe'
          - '\net1.exe'
    - OriginalFileName:
          - 'net.exe'
          - 'net1.exe'

Stage 2: selection_user_option

selection_user_option:
    CommandLine|contains: ' user '

Stage 3: selection_username

selection_username:
    CommandLine|contains:
        - ' Järjestelmänvalvoja '
        - ' Rendszergazda '
        - ' Администратор '
        - ' Administrateur '
        - ' Administrador '
        - ' Administratör '
        - ' Administrator '
        - ' guest '
        - ' DefaultAccount '
        - ' "Järjestelmänvalvoja" '
        - ' "Rendszergazda" '
        - ' "Администратор" '
        - ' "Administrateur" '
        - ' "Administrador" '
        - ' "Administratör" '
        - ' "Administrator" '
        - ' "guest" '
        - ' "DefaultAccount" '
        - " 'Järjestelmänvalvoja' "
        - " 'Rendszergazda' "
        - " 'Администратор' "
        - " 'Administrateur' "
        - " 'Administrador' "
        - " 'Administratör' "
        - " 'Administrator' "
        - " 'guest' "
        - " 'DefaultAccount' "

Stage 4: not filter

filter:
    CommandLine|contains|all:
        - 'guest'
        - '/active no'

Exclusions

Top-level NOT(...) conjuncts: predicates this rule actively suppresses.

FieldKindExcluded values
CommandLinematch/active no
CommandLinematchguest

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
CommandLinematch
  • "Administrador"
  • "Administrateur"
  • "Administrator"
  • "Administratör"
  • "DefaultAccount"
  • "Järjestelmänvalvoja"
  • "Rendszergazda"
  • "guest"
  • "Администратор"
  • 'Administrador'
  • 'Administrateur'
  • 'Administrator'
  • 'Administratör'
  • 'DefaultAccount'
  • 'Järjestelmänvalvoja'
  • 'Rendszergazda'
  • 'guest'
  • 'Администратор'
  • Administrador
  • Administrateur
  • Administrator
  • Administratör
  • DefaultAccount
  • Järjestelmänvalvoja
  • Rendszergazda
  • guest
  • user corpus 3 (sigma 3)
  • Администратор
Imageends_with
  • \net.exe corpus 49 (sigma 49)
  • \net1.exe corpus 47 (sigma 47)
OriginalFileNameeq
  • net.exe corpus 28 (sigma 19, elastic 7, splunk 2)
  • net1.exe corpus 44 (sigma 19, splunk 19, elastic 6)