T1127 Google Chronicle · YARA-L

Detect Trusted Developer Utilities Proxy Execution in Google Chronicle

Adversaries may take advantage of trusted developer utilities to proxy execution of malicious payloads. Utilities used for software development tasks such as MSBuild, csc.exe, vbc.exe, WinDbg, cdb.exe, tracker.exe, dnx.exe, and rcsi.exe are typically signed with legitimate Microsoft certificates, allowing them to execute code and bypass application control solutions. These utilities can compile and execute inline C#, VB.NET, or native shellcode embedded in project files, scripts, or command-line arguments, effectively masquerading malicious execution as legitimate developer activity. Adversaries also leverage these tools to bypass Smart App Control by abusing the OS trust model for signed binaries that support arbitrary code execution.

MITRE ATT&CK

Tactic
Defense Evasion
Technique
T1127 Trusted Developer Utilities Proxy Execution
Canonical reference
https://attack.mitre.org/techniques/T1127/

YARA-L Detection Query

Google Chronicle (YARA-L)
yaral
rule trusted_dev_util_proxy_execution {
  meta:
    author = "Argus Detection Engineering"
    description = "Detects MITRE ATT&CK T1127 - Trusted Developer Utilities Proxy Execution. Identifies MSBuild, csc.exe, cdb.exe, tracker.exe and related tools launched by suspicious parents or with malicious arguments."
    mitre_attack_tactic = "Defense Evasion"
    mitre_attack_technique = "T1127"
    severity = "HIGH"
    confidence = "HIGH"
    version = "1.0"
    created = "2026-04-18"

  events:
    $e.metadata.event_type = "PROCESS_LAUNCH"
    $e.principal.process.file.full_path = /(?i)(msbuild|csc|vbc|jsc|dnx|rcsi|tracker|cdb|windbg|kd|ntsd|msdeploy|xwizard|mshta)\.exe$/
    (
      $e.principal.process.parent_process.file.full_path = /(?i)(winword|excel|powerpnt|outlook|msedge|chrome|firefox|iexplore|wscript|cscript|mshta|cmd|powershell|pwsh)\.exe$/
      or
      $e.target.process.command_line = /(?i)(\\temp\\|\\appdata\\local\\temp\\|\\appdata\\roaming\\|\\programdata\\|\\users\\public\\|\\downloads\\)/
      or
      (
        $e.principal.process.file.full_path = /(?i)msbuild\.exe$/
        and
        $e.target.process.command_line = /(?i)(\x2ecsproj|\x2eproj|\x2exml|\x2etargets|\x2etasks)/
      )
      or
      (
        $e.principal.process.file.full_path = /(?i)(cdb|windbg|ntsd|kd)\.exe$/
        and
        $e.target.process.command_line = /(-pd|-pv|-cf|-c )/
      )
      or
      (
        $e.principal.process.file.full_path = /(?i)tracker\.exe$/
        and
        $e.target.process.command_line = /(?i)(/d3|/dumpstartuplogging|\.dll|\.exe)/
      )
      or
      $e.principal.process.file.full_path = /(?i)(dnx|rcsi)\.exe$/
    )

  condition:
    $e
}
high severity high confidence

Chronicle YARA-L 2.0 rule detecting T1127 - Trusted Developer Utilities Proxy Execution. Monitors PROCESS_LAUNCH UDM events for developer utilities (MSBuild, csc.exe, debuggers, tracker.exe) launched by browser or Office parent processes, from suspicious paths, with inline task file extensions, debugger shellcode flags, or identified as rare utilities.

Data Sources

Google Chronicle UDMWindows Sysmon via Chronicle ingestionMicrosoft Defender for Endpoint via Chronicle

Required Tables

process_launch UDM events

False Positives & Tuning

  • Automated software build systems using MSBuild with .csproj or .targets files legitimately stored under user profile directories
  • IT security teams running authorized kernel debugging sessions with cdb.exe or kd.exe using standard debugging arguments like -pd or -c
  • ClickOnce application installers that invoke msbuild.exe or csc.exe via trusted deployment mechanisms from within AppData paths during first-run setup
Download portable Sigma rule (.yml)

Other platforms for T1127


Testing Methodology

Validate this detection against 4 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1MSBuild Inline Task Execution via Malicious Project File

    Expected signal: Sysmon Event ID 1: Process Create for MSBuild.exe with CommandLine referencing %TEMP%\malicious.csproj. Sysmon Event ID 11: File Create for %TEMP%\malicious.csproj. Sysmon Event ID 1 child: cmd.exe spawned by MSBuild.exe with /c whoami argument. Sysmon Event ID 11: File Create for %TEMP%\msbuild-test.txt. Security Event ID 4688 for both MSBuild.exe and cmd.exe if command line auditing is enabled.

  2. Test 2On-the-Fly C# Compilation and Execution via csc.exe

    Expected signal: Sysmon Event ID 11: File Create for %TEMP%\df00tech_test.cs. Sysmon Event ID 1: Process Create for csc.exe with CommandLine referencing %TEMP% source and output paths. Sysmon Event ID 11: File Create for %TEMP%\df00tech_test.exe and %TEMP%\df00tech_test.pdb. Sysmon Event ID 1: Process Create for %TEMP%\df00tech_test.exe (unsigned binary from temp path). AmCache will record the new executable's first execution.

  3. Test 3Shellcode Execution via CDB.exe Debugger with Command Script Flag

    Expected signal: Sysmon Event ID 1: Process Create for cdb.exe with CommandLine containing -c, -pv, and -pd flags. Sysmon Event ID 1: Process Create for notepad.exe spawned by cdb.exe. Security Event ID 4688 for cdb.exe if command line auditing enabled. The -c flag content (.echo) will appear in the command line.

  4. Test 4Tracker.exe Proxy Execution via /d3 Logging Flag

    Expected signal: Sysmon Event ID 1: Process Create for Tracker.exe with CommandLine containing /d3 and referencing a DLL. Sysmon Event ID 7: Image Load events for shell32.dll under the Tracker.exe process context. Sysmon Event ID 1: Process Create for whoami.exe as a child of Tracker.exe. Security Event ID 4688 for Tracker.exe and whoami.exe.

Unlock Pro Content

Get the full detection package for T1127 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections