CmdID

CmdID / Rules / Windows

LOL-Binary Copied From System Directory

A Sigma rule for process creation on Windows, by Nasreddine Bencherchali (Nextron Systems).

high 1 ATT&CK technique 8 programs it names

What it looks for

its detection, as SigmaHQ writes it
detection:
  selection_target_lolbin:
    CommandLine|contains:
      - '\bitsadmin.exe'
      - '\calc.exe'
      - '\certutil.exe'
      - '\cmdl32.exe'
      - '\cscript.exe'
      - '\mshta.exe'
      - '\rundll32.exe'
      - '\wscript.exe'
      - '\ie4uinit.exe'
  selection_target_path:
    CommandLine|contains:
      - '\System32'
      - '\SysWOW64'
      - '\WinSxS'
  selection_tools_cmd:
    CommandLine|contains: 'copy '
    Image|endswith: '\cmd.exe'
  selection_tools_other:
    - Image|endswith:
        - '\robocopy.exe'
        - '\xcopy.exe'
    - OriginalFileName:
        - 'robocopy.exe'
        - 'XCOPY.EXE'
  selection_tools_pwsh:
    CommandLine|contains:
      - 'copy-item'
      - ' copy '
      - 'cpi '
      - ' cp '
    Image|endswith:
      - '\powershell.exe'
      - '\pwsh.exe'
  condition: 1 of selection_tools_* and all of selection_target_*

The rule’s detection, its selections and fields in order of name. The whole rule, with its references and false positives, is on SigmaHQ, by Nasreddine Bencherchali (Nextron Systems), under the Detection Rule License 1.1. CmdID evaluates it on a command line alone: a test on what a command line cannot show, such as the parent process or the user, is not met.

Command lines that trip it

documented abuse, read by CmdID

The commands LOLBAS or GTFOBins documents for unregmp2.exe trip it: each is on its program’s page, read by CmdID.

Programs and files it names

their pages here

ATT&CK

the techniques it is tagged with
T1036.003Masquerading: Rename Legitimate Utilities