CmdID

CmdID / Rules / Windows

Potential Suspicious Activity Using SeCEdit

A Sigma rule for process creation on Windows, by Janantha Marasinghe.

medium 14 ATT&CK techniques 2 programs it names 3 everyday examples trip it

What it looks for

its detection, as SigmaHQ writes it
detection:
  selection_flags_configure:
    CommandLine|contains|all:
      - '/configure'
      - '/db'
  selection_flags_discovery:
    CommandLine|contains|all:
      - '/export'
      - '/cfg'
  selection_img:
    - Image|endswith: '\secedit.exe'
    - OriginalFileName: 'SeCEdit'
  condition: selection_img and (1 of selection_flags_*)

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 Janantha Marasinghe, 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

everyday examples from tldr-pages, CC BY 4.0, each read by CmdID

To incorporate changes required by the analysis process on the SecContoso.inf file, and then to direct the output to the existing file, SecAnalysisContosoFY11, without prompting, type on the page for secedit configure

secedit /configure /db C:\Security\FY11\SecDbContoso.sdb /cfg SecContoso.inf /overwrite /log C:\Security\FY11\SecAnalysisContosoFY11.xml /quietIdentify

To export the security database and the domain security policies to an inf file, and then import that file to a different database in order to replicate the security policy settings on another computer, type on the page for secedit export

secedit /export /db C:\Security\FY11\SecDbContoso.sdb /mergedpolicy /cfg SecContoso.inf /log C:\Security\FY11\SecAnalysisContosoFY11.log /quietIdentify

To export the security database and the domain security policies to an .inf file, and then to import that file to a different database to replicate the policy settings on another computer, type on the page for secedit import

secedit /export /db C:\Security\FY11\SecDbContoso.sdb /mergedpolicy /cfg NetworkShare\Policies\SecContoso.inf /log C:\Security\FY11\SecAnalysisContosoFY11.log /quietIdentify

Programs and files it names

their pages here

ATT&CK

the techniques it is tagged with
T1082System Information Discovery
T1505.005Server Software Component: Terminal Services DLL
T1546.007Event Triggered Execution: Netsh Helper DLL
T1546.008Event Triggered Execution: Accessibility Features
T1547.001Boot or Logon Autostart Execution: Registry Run Keys / Startup Folder
T1547.002Boot or Logon Autostart Execution: Authentication Package
T1547.010Boot or Logon Autostart Execution: Port Monitors
T1547.014Boot or Logon Autostart Execution: Active Setup
T1556.002Modify Authentication Process: Password Filter DLL
T1557Adversary-in-the-Middle
T1564.002Hide Artifacts: Hidden Users
T1574.007Hijack Execution Flow: Path Interception by PATH Environment Variable
T1685Disable or Modify Tools
T1685.001Disable or Modify Tools: Disable or Modify Windows Event Log