Latest alertCVE-2018-11776 in Apache Struts Confirmed Exploited in the WildRead
Search all news in the platform

Detection rule

Suspicious Manipulation Of Default Accounts Via Net.EXE

HighTest-data validatedSigmaHQ (community)T1560.001

Overview

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

Rule id
5b768e71-86f2-4879-b448-81061cbae951
ATT&CK techniques
T1560.001 Archive Collected Data: Archive via Utility
Severity
High
Confidence
Low
Origin
SigmaHQ (community)
SigmaHQ status
test
Used in defense packs
qilin, INC Ransom, Akira, safepay, Play, nightspire

Validation

  1. ExperimentalSyntax checked only. Not yet tested on events.
  2. Test-data validatedMatched positive test events and ignored near-miss events. Not yet run in a production SIEM.
  3. SIEM-validatedRun in a real SIEM, with a recorded result.

2 of 2 positive test events matched; 3 of 3 near-miss events were correctly ignored. Community rule reused unmodified from SigmaHQ. OffSet7 converted it and tested it on synthetic events.

Detection logic and queries

Queries are shown exactly as generated. Test them in your environment before you deploy them.

Sigma

Sigma (YAML) · 5b768e71-86f2-4879-b448-81061cbae951

Download
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
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_net_user_default_accounts_manipulation/info.yml

QRadar AQL

IBM QRadar AQL (hunting query)Hunting query

Hunting search for the Log Activity tab or the API. It is not a QRadar rule.

AQL search for the Log Activity tab or the API. It is NOT a deployable QRadar rule: real-time detection in QRadar is a CRE (Custom Rule Engine) rule, for which this build only writes a design specification (qradar_cre).

SELECT * FROM events WHERE devicetype=12 AND ((((LOWER("Process Path") LIKE '%\net.exe' OR LOWER("Process Path") LIKE '%\net1.exe') OR (LOWER("Process Name") LIKE '%\net.exe' OR LOWER("Process Name") LIKE '%\net1.exe')) OR (Filename IN('net.exe', 'net1.exe'))) AND LOWER(Command) LIKE '% user %' AND (LOWER(Command) LIKE '% järjestelmänvalvoja %' OR LOWER(Command) LIKE '% rendszergazda %' OR LOWER(Command) LIKE '% администратор %' OR LOWER(Command) LIKE '% administrateur %' OR LOWER(Command) LIKE '% administrador %' OR LOWER(Command) LIKE '% administratör %' OR LOWER(Command) LIKE '% administrator %' OR LOWER(Command) LIKE '% guest %' OR LOWER(Command) LIKE '% defaultaccount %' OR LOWER(Command) LIKE '% "järjestelmänvalvoja" %' OR LOWER(Command) LIKE '% "rendszergazda" %' OR LOWER(Command) LIKE '% "администратор" %' OR LOWER(Command) LIKE '% "administrateur" %' OR LOWER(Command) LIKE '% "administrador" %' OR LOWER(Command) LIKE '% "administratör" %' OR LOWER(Command) LIKE '% "administrator" %' OR LOWER(Command) LIKE '% "guest" %' OR LOWER(Command) LIKE '% "defaultaccount" %' OR LOWER(Command) LIKE '% ''järjestelmänvalvoja'' %' OR LOWER(Command) LIKE '% ''rendszergazda'' %' OR LOWER(Command) LIKE '% ''администратор'' %' OR LOWER(Command) LIKE '% ''administrateur'' %' OR LOWER(Command) LIKE '% ''administrador'' %' OR LOWER(Command) LIKE '% ''administratör'' %' OR LOWER(Command) LIKE '% ''administrator'' %' OR LOWER(Command) LIKE '% ''guest'' %' OR LOWER(Command) LIKE '% ''defaultaccount'' %')) AND (NOT((LOWER(Command) LIKE '%guest%' AND LOWER(Command) LIKE '%/active no%')))

QRadar CRE

Design for the QRadar Rule Wizard. It is not importable and has not been tested in QRadar.

Rule name
OffSet7: Suspicious Manipulation Of Default Accounts Via Net.EXE
Rule type
Event rule (Local)
Log source types
Microsoft Windows Security Event Log DSM: Security 4688 (with command-line auditing) or Sysmon EID 1

Building blocks

  • BB:OffSet7:Suspicious Manipulation Of Default Accounts Via :selection_img (match)
    Any of the groups matches (OR): build one BB per group and a parent BB "when an event matches any of" them.
    • Process Path / Process Name ends with: \net.exe, \net1.exe
    • Filename is equal to (case-insensitive): net.exe, net1.exe
  • BB:OffSet7:Suspicious Manipulation Of Default Accounts Via :selection_user_option (match)
    All test lines must match (AND).
    • Command contains: user
  • BB:OffSet7:Suspicious Manipulation Of Default Accounts Via :selection_username (match)
    All test lines must match (AND).
    • Command 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'
  • BB:OffSet7:Suspicious Manipulation Of Default Accounts Via :filter (exclusion)
    All test lines must match (AND).
    • Command contains: guest, /active no

Main rule, option A (building blocks)

  1. when the event(s) were detected by one or more of these log source types: Microsoft Windows Security Event Log DSM: Security 4688 (with command-line auditing) or Sysmon EID 1
  2. when an event matches the condition built from these building blocks: (ALL of [BB:OffSet7:Suspicious Manipulation Of Default Accounts Via :selection_img, BB:OffSet7:Suspicious Manipulation Of Default Accounts Via :selection_user_option, BB:OffSet7:Suspicious Manipulation Of Default Accounts Via :selection_username]) AND NOT BB:OffSet7:Suspicious Manipulation Of Default Accounts Via :filter

Main rule, option B (AQL filter test)

  1. when the event matches this AQL filter query: devicetype=12 AND ((((LOWER("Process Path") LIKE '%\net.exe' OR LOWER("Process Path") LIKE '%\net1.exe') OR (LOWER("Process Name") LIKE '%\net.exe' OR LOWER("Process Name") LIKE '%\net1.exe')) OR (Filename IN('net.exe', 'net1.exe'))) AND LOWER(Command) LIKE '% user %' AND (LOWER(Command) LIKE '% järjestelmänvalvoja %' OR LOWER(Command) LIKE '% rendszergazda %' OR LOWER(Command) LIKE '% администратор %' OR LOWER(Command) LIKE '% administrateur %' OR LOWER(Command) LIKE '% administrador %' OR LOWER(Command) LIKE '% administratör %' OR LOWER(Command) LIKE '% administrator %' OR LOWER(Command) LIKE '% guest %' OR LOWER(Command) LIKE '% defaultaccount %' OR LOWER(Command) LIKE '% "järjestelmänvalvoja" %' OR LOWER(Command) LIKE '% "rendszergazda" %' OR LOWER(Command) LIKE '% "администратор" %' OR LOWER(Command) LIKE '% "administrateur" %' OR LOWER(Command) LIKE '% "administrador" %' OR LOWER(Command) LIKE '% "administratör" %' OR LOWER(Command) LIKE '% "administrator" %' OR LOWER(Command) LIKE '% "guest" %' OR LOWER(Command) LIKE '% "defaultaccount" %' OR LOWER(Command) LIKE '% ''järjestelmänvalvoja'' %' OR LOWER(Command) LIKE '% ''rendszergazda'' %' OR LOWER(Command) LIKE '% ''администратор'' %' OR LOWER(Command) LIKE '% ''administrateur'' %' OR LOWER(Command) LIKE '% ''administrador'' %' OR LOWER(Command) LIKE '% ''administratör'' %' OR LOWER(Command) LIKE '% ''administrator'' %' OR LOWER(Command) LIKE '% ''guest'' %' OR LOWER(Command) LIKE '% ''defaultaccount'' %')) AND (NOT((LOWER(Command) LIKE '%guest%' AND LOWER(Command) LIKE '%/active no%')))

Rule response

  • Severity 7, credibility 6, relevance 7
  • Ensure the detected event is part of an offense; index offense on Log Source (host) and annotate with the rule title and OffSet7 rule id
  • Respond no more than once per 30 minutes per Log Source (tune per environment)

Limitations

  • QRadar AQL LIKE / CRE string tests are case-sensitive unless the property is lower-cased; the AQL option uses LOWER() where the backend applied it.

Splunk

Splunk SPLSearch

Search for Splunk with Windows/Sysmon field names. A scheduled search or ES correlation search also needs a schedule, time range, throttling and an adaptive response, set in your environment.

(Image IN ("*\\net.exe", "*\\net1.exe") OR OriginalFileName IN ("net.exe", "net1.exe")) CommandLine="* user *" (CommandLine IN ("* 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' *")) NOT (CommandLine="*guest*" CommandLine="*/active no*")

Splunk savedsearches.conf stanzaScheduled search template

Template stanza. Review schedule, alert actions and index/sourcetype for your environment before enabling.

[default]
dispatch.earliest_time = -30d
dispatch.latest_time = now

[Suspicious Manipulation Of Default Accounts Via Net.EXE]
description = Detects suspicious manipulations of default accounts such as 'administrator' and 'guest'. For example 'enable' or 'disable' accounts or change the password...etc
search = (Image IN ("*\\net.exe", "*\\net1.exe") OR OriginalFileName IN ("net.exe", "net1.exe")) CommandLine="* user *" (CommandLine IN ("* 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' *")) NOT (CommandLine="*guest*" CommandLine="*/active no*")

Microsoft Sentinel

Microsoft Sentinel KQL (ASIM)Hunting query

Hunting query over ASIM-normalized tables. An analytics rule also needs a schedule, entity mapping and alert grouping.

imProcessCreate
| where (((TargetProcessName endswith "\\net.exe" or TargetProcessName endswith "\\net1.exe") or (TargetProcessFileOriginalName in~ ("net.exe", "net1.exe"))) and TargetProcessCommandLine contains " user " and (TargetProcessCommandLine contains " Järjestelmänvalvoja " or TargetProcessCommandLine contains " Rendszergazda " or TargetProcessCommandLine contains " Администратор " or TargetProcessCommandLine contains " Administrateur " or TargetProcessCommandLine contains " Administrador " or TargetProcessCommandLine contains " Administratör " or TargetProcessCommandLine contains " Administrator " or TargetProcessCommandLine contains " guest " or TargetProcessCommandLine contains " DefaultAccount " or TargetProcessCommandLine contains " \"Järjestelmänvalvoja\" " or TargetProcessCommandLine contains " \"Rendszergazda\" " or TargetProcessCommandLine contains " \"Администратор\" " or TargetProcessCommandLine contains " \"Administrateur\" " or TargetProcessCommandLine contains " \"Administrador\" " or TargetProcessCommandLine contains " \"Administratör\" " or TargetProcessCommandLine contains " \"Administrator\" " or TargetProcessCommandLine contains " \"guest\" " or TargetProcessCommandLine contains " \"DefaultAccount\" " or TargetProcessCommandLine contains " 'Järjestelmänvalvoja' " or TargetProcessCommandLine contains " 'Rendszergazda' " or TargetProcessCommandLine contains " 'Администратор' " or TargetProcessCommandLine contains " 'Administrateur' " or TargetProcessCommandLine contains " 'Administrador' " or TargetProcessCommandLine contains " 'Administratör' " or TargetProcessCommandLine contains " 'Administrator' " or TargetProcessCommandLine contains " 'guest' " or TargetProcessCommandLine contains " 'DefaultAccount' ")) and (not((TargetProcessCommandLine contains "guest" and TargetProcessCommandLine contains "/active no")))

Defender XDR

Microsoft Defender XDR KQLHunting query

Advanced hunting query. A custom detection rule also needs a frequency, impacted entities and actions.

DeviceProcessEvents
| where (((FolderPath endswith "\\net.exe" or FolderPath endswith "\\net1.exe") or (ProcessVersionInfoOriginalFileName in~ ("net.exe", "net1.exe"))) and ProcessCommandLine contains " user " and (ProcessCommandLine contains " Järjestelmänvalvoja " or ProcessCommandLine contains " Rendszergazda " or ProcessCommandLine contains " Администратор " or ProcessCommandLine contains " Administrateur " or ProcessCommandLine contains " Administrador " or ProcessCommandLine contains " Administratör " or ProcessCommandLine contains " Administrator " or ProcessCommandLine contains " guest " or ProcessCommandLine contains " DefaultAccount " or ProcessCommandLine contains " \"Järjestelmänvalvoja\" " or ProcessCommandLine contains " \"Rendszergazda\" " or ProcessCommandLine contains " \"Администратор\" " or ProcessCommandLine contains " \"Administrateur\" " or ProcessCommandLine contains " \"Administrador\" " or ProcessCommandLine contains " \"Administratör\" " or ProcessCommandLine contains " \"Administrator\" " or ProcessCommandLine contains " \"guest\" " or ProcessCommandLine contains " \"DefaultAccount\" " or ProcessCommandLine contains " 'Järjestelmänvalvoja' " or ProcessCommandLine contains " 'Rendszergazda' " or ProcessCommandLine contains " 'Администратор' " or ProcessCommandLine contains " 'Administrateur' " or ProcessCommandLine contains " 'Administrador' " or ProcessCommandLine contains " 'Administratör' " or ProcessCommandLine contains " 'Administrator' " or ProcessCommandLine contains " 'guest' " or ProcessCommandLine contains " 'DefaultAccount' ")) and (not((ProcessCommandLine contains "guest" and ProcessCommandLine contains "/active no")))

Elastic

Elastic Lucene (ECS)Hunting query

Lucene query over ECS fields (Winlogbeat/Elastic Agent Windows mappings). A detection rule also needs an index pattern, schedule and actions.

(((process.executable:(*\\net.exe OR *\\net1.exe)) OR (process.pe.original_file_name:(net.exe OR net1.exe))) AND process.command_line:*\ user\ * AND (process.command_line:(*\ Järjestelmänvalvoja\ * OR *\ Rendszergazda\ * OR *\ Администратор\ * OR *\ Administrateur\ * OR *\ Administrador\ * OR *\ Administratör\ * OR *\ Administrator\ * OR *\ guest\ * OR *\ DefaultAccount\ * OR *\ \"Järjestelmänvalvoja\"\ * OR *\ \"Rendszergazda\"\ * OR *\ \"Администратор\"\ * OR *\ \"Administrateur\"\ * OR *\ \"Administrador\"\ * OR *\ \"Administratör\"\ * OR *\ \"Administrator\"\ * OR *\ \"guest\"\ * OR *\ \"DefaultAccount\"\ * OR *\ 'Järjestelmänvalvoja'\ * OR *\ 'Rendszergazda'\ * OR *\ 'Администратор'\ * OR *\ 'Administrateur'\ * OR *\ 'Administrador'\ * OR *\ 'Administratör'\ * OR *\ 'Administrator'\ * OR *\ 'guest'\ * OR *\ 'DefaultAccount'\ *))) AND (NOT (process.command_line:*guest* AND process.command_line:*\/active\ no*))

Elastic EQL (ECS)Hunting query

EQL query over ECS fields. Usable in an Elastic Security EQL rule after review; index pattern and schedule are set per environment.

any where (((process.executable like~ ("*\\net.exe", "*\\net1.exe")) or (process.pe.original_file_name like~ ("net.exe", "net1.exe"))) and process.command_line:"* user *" and (process.command_line like~ ("* 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' *"))) and (not (process.command_line:"*guest*" and process.command_line:"*/active no*"))

Elastic ES|QL (ECS)Hunting query

ES|QL query over ECS fields; the FROM clause uses * and must be narrowed to your indices.

from * metadata _id, _index, _version | where (ends_with(process.executable, "\\net.exe") or ends_with(process.executable, "\\net1.exe") or process.pe.original_file_name in ("net.exe", "net1.exe")) and process.command_line like "* user *" and (process.command_line like "* Järjestelmänvalvoja *" or process.command_line like "* Rendszergazda *" or process.command_line like "* Администратор *" or process.command_line like "* Administrateur *" or process.command_line like "* Administrador *" or process.command_line like "* Administratör *" or process.command_line like "* Administrator *" or process.command_line like "* guest *" or process.command_line like "* DefaultAccount *" or process.command_line like "* \"Järjestelmänvalvoja\" *" or process.command_line like "* \"Rendszergazda\" *" or process.command_line like "* \"Администратор\" *" or process.command_line like "* \"Administrateur\" *" or process.command_line like "* \"Administrador\" *" or process.command_line like "* \"Administratör\" *" or process.command_line like "* \"Administrator\" *" or process.command_line like "* \"guest\" *" or process.command_line like "* \"DefaultAccount\" *" or process.command_line like "* 'Järjestelmänvalvoja' *" or process.command_line like "* 'Rendszergazda' *" or process.command_line like "* 'Администратор' *" or process.command_line like "* 'Administrateur' *" or process.command_line like "* 'Administrador' *" or process.command_line like "* 'Administratör' *" or process.command_line like "* 'Administrator' *" or process.command_line like "* 'guest' *" or process.command_line like "* 'DefaultAccount' *") and not (process.command_line like "*guest*" and process.command_line like "*/active no*")

Required telemetry

Log source
product: windows · category: process_creation
Fields used
CommandLine Image OriginalFileName

False positives

  • 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

Investigation and response

No OffSet7 investigation guidance has been written for this rule yet. Start from the false positives above and the ATT&CK technique pages.

References

Author and attribution

Author
Nasreddine Bencherchali (Nextron Systems)
Source
SigmaHQ · rules/windows/process_creation/proc_creation_win_net_user_default_accounts_manipulation.yml
Upstream commit
9688134317a2
Licence
Detection Rule License (DRL) 1.1

Version history

  1. Version 1Imported from SigmaHQ
  2. OffSet7 build · SigmaHQ 9688134317a2

Related rules