Detection rules › Sigma

HackTool - SharpMove Tool Execution

Status
test
Severity
high
Log source
product windows, category process_creation
Author
Luca Di Bartolomeo (CrimpSec)
Source
github.com/SigmaHQ/sigma

Detects the execution of SharpMove, a .NET utility performing multiple tasks such as "Task Creation", "SCM" query, VBScript execution using WMI via its PE metadata and command line options.

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: HackTool - SharpMove Tool Execution
id: 055fb54c-a8f4-4aee-bd44-f74cf30a0d9d
status: test
description: |
    Detects the execution of SharpMove, a .NET utility performing multiple tasks such as "Task Creation", "SCM" query, VBScript execution using WMI via its PE metadata and command line options.
references:
    - https://github.com/0xthirteen/SharpMove/
    - https://pentestlab.blog/tag/sharpmove/
author: Luca Di Bartolomeo (CrimpSec)
date: 2024-01-29
tags:
    - attack.lateral-movement
    - attack.t1021.002
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\SharpMove.exe'
        - OriginalFileName: SharpMove.exe
    selection_cli_computer:
        # In its current implementation the "computername" flag is required in all actions
        CommandLine|contains: 'computername='
    selection_cli_actions:
        CommandLine|contains:
            - 'action=create'
            - 'action=dcom'
            - 'action=executevbs'
            - 'action=hijackdcom'
            - 'action=modschtask'
            - 'action=modsvc'
            - 'action=query'
            - 'action=scm'
            - 'action=startservice'
            - 'action=taskscheduler'
    condition: selection_img or all of selection_cli_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection_img or all of selection_cli_*

Stage 1: selection_img

selection_img:
    - Image|endswith: '\SharpMove.exe'
    - OriginalFileName: SharpMove.exe

Stage 2: selection_cli_computer

selection_cli_computer:
    CommandLine|contains: 'computername='

Stage 3: selection_cli_actions

selection_cli_actions:
    CommandLine|contains:
        - 'action=create'
        - 'action=dcom'
        - 'action=executevbs'
        - 'action=hijackdcom'
        - 'action=modschtask'
        - 'action=modsvc'
        - 'action=query'
        - 'action=scm'
        - 'action=startservice'
        - 'action=taskscheduler'

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
  • action=create
  • action=dcom
  • action=executevbs
  • action=hijackdcom
  • action=modschtask
  • action=modsvc
  • action=query
  • action=scm
  • action=startservice
  • action=taskscheduler
  • computername=
Imageends_with
  • \SharpMove.exe
OriginalFileNameeq
  • SharpMove.exe