mirror of
https://github.com/splunk/security_content
synced 2026-06-08 17:32:49 +00:00
67 lines
2.2 KiB
YAML
67 lines
2.2 KiB
YAML
name: Suspicious MSBuild Rename
|
|
id: 4006adac-5937-11eb-ae93-0242ac130002
|
|
version: 3
|
|
date: '2022-04-07'
|
|
author: Michael Haag, Splunk
|
|
status: production
|
|
type: Hunting
|
|
description: The following analytic identifies renamed instances of msbuild.exe executing.
|
|
Msbuild.exe is natively found in C:\Windows\Microsoft.NET\Framework\v4.0.30319 and
|
|
C:\Windows\Microsoft.NET\Framework64\v4.0.30319. During investigation, identify
|
|
the code executed and what is executing a renamed instance of MSBuild.
|
|
data_source:
|
|
- Sysmon Event ID 1
|
|
search:
|
|
selection1:
|
|
OriginalFileName: MSBuild.exe
|
|
Image|endswith: msbuild.exe
|
|
condition: selection1
|
|
how_to_implement: To successfully implement this search you need to be ingesting information
|
|
on process that include the name of the process responsible for the changes from
|
|
your endpoints into the `Endpoint` datamodel in the `Processes` node. In addition,
|
|
confirm the latest CIM App 4.20 or higher is installed and the latest TA for the
|
|
endpoint product.
|
|
known_false_positives: Although unlikely, some legitimate applications may use a moved
|
|
copy of msbuild, triggering a false positive.
|
|
references:
|
|
- https://lolbas-project.github.io/lolbas/Binaries/Msbuild/
|
|
- https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1127.001/T1127.001.md
|
|
- https://github.com/infosecn1nja/MaliciousMacroMSBuild/
|
|
tags:
|
|
analytic_story:
|
|
- Trusted Developer Utilities Proxy Execution MSBuild
|
|
- Cobalt Strike
|
|
- Masquerading - Rename System Utilities
|
|
- Living Off The Land
|
|
asset_type: Endpoint
|
|
confidence: 90
|
|
impact: 70
|
|
message: Suspicious renamed msbuild.exe binary ran on $dest$ by $user$
|
|
mitre_attack_id:
|
|
- T1036
|
|
- T1127
|
|
- T1036.003
|
|
- T1127.001
|
|
observable:
|
|
- name: dest
|
|
type: Endpoint
|
|
role:
|
|
- Victim
|
|
- name: User
|
|
type: User
|
|
role:
|
|
- Victim
|
|
product:
|
|
- Splunk Enterprise
|
|
- Splunk Enterprise Security
|
|
- Splunk Cloud
|
|
risk_score: 63
|
|
security_domain: endpoint
|
|
tests:
|
|
- name: True Positive Test
|
|
attack_data:
|
|
- data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1127.001/windows-sysmon.log
|
|
source: XmlWinEventLog:Microsoft-Windows-Sysmon/Operational
|
|
sourcetype: xmlwineventlog
|
|
update_timestamp: true
|