Skip to main content
Back to all investigations
SOC-016·SOC·Severity: MediumClassification: False PositiveEnvironment: Training Lab

Triage & Tuning: Encoded PowerShell from IT Automation (False Positive)

Root-cause analysis of a high-severity encoded PowerShell execution alert, verifying legitimate Microsoft Configuration Manager (SCCM/MECM) hardware inventory automation, and authoring a tuned detection exclusion.

EnvironmentWindows 11 Enterprise (Corporate Domain Lab)
ToolsSplunk Enterprise, Sysmon v15, CyberChef, Sigcheck (Sysinternals)
MITRE ATT&CKT1059.001
Published2026-09-20
Safety & Simulation Disclosure

Environment: Training Lab — This investigation was performed in an isolated training environment. Indicators, systems, accounts, and other data shown here are simulated or sanitized unless otherwise stated.

INC-20260920-0312Queue: Tier 1 Triage Queue
P3 - MediumFalse Positive — Benign SCCM Hardware Inventory Script
Incident Summary: Workstation WKSTN-0104 triggered alert for encoded PowerShell under SYSTEM. Process parent verified as validly signed CcmExec.exe executing read-only WMI processor query.
Actions Taken:
  • Validated parent process binary: C:\Windows\CCM\CcmExec.exe signed by Microsoft Corporation.
  • Decoded Base64 parameter to benign WMI hardware query: Get-WmiObject Win32_Processor.
  • Confirmed zero network socket connections in Sysmon Event ID 3.
  • Validated normal execution exit code 0 without secondary file drops.
Recommendation / Disposition: Closed as Benign / False Positive. Submitted detection rule exclusion PR to filter CcmExec.exe parent processes from generic PowerShell alert.
Analyst: Ian Job (Tier 1 SOC Analyst)

Executive Summary

A SIEM correlation alert flagged an encoded PowerShell command running under NT AUTHORITY\SYSTEM on workstation WKSTN-0104. Forensic process ancestry revealed the parent process was CcmExec.exe (Microsoft Endpoint Configuration Manager). Decoding the Base64 payload revealed a standard WMI hardware inventory query. The parent binary was cryptographically validated using Sysinternals Sigcheck against Microsoft Corporation root certificates. The alert was closed as a Benign / False Positive, and a tuned SPL exclusion was authored to prevent alert fatigue.

Scenario & Trigger

The SOC alert queue received an alert for encoded PowerShell execution under SYSTEM privilege. The analyst was tasked with determining whether this represented privilege escalation / lateral movement or benign administrative tooling.

Suspicious Encoded PowerShell Execution under SYSTEM2026-09-20 09:14:02 UTC
Source: Splunk Alerting Engine (Rule: WIN_SUSP_POWERSHELL_ENCODED)
index=endpoint_winevt EventCode=1 Image="*\\powershell.exe" User="NT AUTHORITY\\SYSTEM" CommandLine="*-EncodedCommand*" | table _time, ComputerName, User, ParentImage, CommandLine

Detection Logic & Queries (Splunk SPL & Microsoft Sentinel KQL)

Splunk SPL Query:
index=endpoint_winevt EventCode=1 (Image="*\\powershell.exe" OR Image="*\\pwsh.exe") (CommandLine="*-EncodedCommand*" OR CommandLine="*-enc *") NOT (ParentImage="*\\CcmExec.exe" ParentCommandLine="*CcmExec.exe*") | table _time, ComputerName, User, ParentImage, CommandLine
Microsoft Sentinel / Defender KQL Query:
DeviceProcessEvents | where FileName in~ ("powershell.exe", "pwsh.exe") | where ProcessCommandLine has_any ("-EncodedCommand", "-enc") | where not (InitiatingProcessFileName =~ "CcmExec.exe") | project TimeGenerated, DeviceName, AccountName, InitiatingProcessFileName, ProcessCommandLine

Initial Evidence

  • Endpoint: WKSTN-0104.corp.local (192.168.40.115)
  • Account: NT AUTHORITY\SYSTEM
  • Process: powershell.exe (PID: 7128)
  • Parent Process: C:\Windows\CCM\CcmExec.exe (PID: 1844)
  • Command Line: "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -NonInteractive -ExecutionPolicy Bypass -EncodedCommand RwBlAHQALQBXAG0AaQBPAGIAagBlAGMAdAAgAFcAaQBuADMAMgBfAFAAcgBvAGMAZQBzAHMAbwByACAAfAAgAFMAZQBsAGUAYwB0AC0ATwBiAGoAZQBjAHQAIABOAGEAbQBlACwAIABOAHUAbQBiAGUAcgBPAGYAQwBvAHIAZQBzAA==

Investigation Methodology & Narrative

Step 1: Retrieved Sysmon Event ID 1 for PID 7128. Confirmed parent process was C:\Windows\CCM\CcmExec.exe running under NT AUTHORITY\SYSTEM.

Step 2: Decoded the Base64 command line in CyberChef: "Get-WmiObject Win32_Processor | Select-Object Name, NumberOfCores". This is a standard non-destructive WMI hardware inventory query.

Step 3: Inspected the executable C:\Windows\CCM\CcmExec.exe using Sysinternals Sigcheck. Verified valid digital signature signed by Microsoft Corporation (Thumbprint: a81f803c14a42e128efcb9287c88df34927f8a12).

Step 4: Checked Sysmon Event ID 3 (Network Connections) for PID 7128. Zero external or internal network connections were initiated by the PowerShell process.

Step 5: Verified SCCM deployment schedule with Internal IT Systems Administrator. Confirmed automated weekly client hardware audit job at 09:15 UTC.

Step 6: Documented false positive root cause and authored detection tuning exclusion filtering CcmExec.exe parent process from generic PowerShell encoding rule.

Incident Timeline

Time (UTC)EventTelemetry SourceAnalyst Note
09:14:00 UTCCcmExec.exe initiated routine scheduled inventory taskSysmon Event ID 1Microsoft Endpoint Configuration Manager client cycle initiated
09:14:02 UTCpowershell.exe spawned with Base64 encoded WMI querySysmon Event ID 1Triggered alert WIN_SUSP_POWERSHELL_ENCODED
09:14:04 UTCpowershell.exe process terminated normally (Exit Code 0)Sysmon Event ID 5Execution completed in 2.1 seconds; zero network sockets opened
09:18:00 UTCAnalyst verified binary signature via SigcheckSysinternals SigcheckCcmExec.exe signature valid: Microsoft Corporation
09:22:00 UTCAlert closed as Benign / False Positive with tuning proposalSOC Incident TicketTuned rule submitted to Detection Engineering queue

Indicators of Compromise (IOCs)

TypeObserved ValueContextReputation
File NameCcmExec.exeLegitimate Microsoft Endpoint Configuration Manager agent binaryBenign
SHA-2569f83a45c3822d64a270f2f3d61a8ef1897c889f0293a90321584b4249a5b6728Verified hash of signed C:\Windows\CCM\CcmExec.exeBenign

Log Analysis & Telemetry Dissection

Sysmon Event ID 1 — Benign Administrative Process CreationMicrosoft-Windows-Sysmon/Operational
EventCode=1
UtcTime: 2026-09-20 09:14:02.115
ProcessGuid: {87d3a014-4112-66eb-a402-000000001400}
ProcessId: 7128
Image: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
CommandLine: "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -NonInteractive -ExecutionPolicy Bypass -EncodedCommand RwBlAHQALQBXAG0AaQBPAGIAagBlAGMAdAAgAFcAaQBuADMAMgBfAFAAcgBvAGMAZQBzAHMAbwByACAAfAAgAFMAZQBsAGUAYwB0AC0ATwBiAGoAZQBjAHQAIABOAGEAbQBlACwAIABOAHUAbQBiAGUAcgBPAGYAQwBvAHIAZQBzAA==
User: NT AUTHORITY\SYSTEM
ParentProcessGuid: {87d3a014-40e1-66eb-a302-000000001300}
ParentProcessId: 1844
ParentImage: C:\Windows\CCM\CcmExec.exe
ParentCommandLine: "C:\Windows\CCM\CcmExec.exe"

Analysis Note: Documents the execution of powershell.exe by the signed enterprise management agent CcmExec.exe to collect hardware inventory metrics.

MITRE ATT&CK Mapping

IDTechniqueTacticObserved Evidence
T1059.001 Command and Scripting Interpreter: PowerShellExecutionPowerShell invoked by administrative management agent for WMI telemetry

Findings & Final Classification

The alert represents a confirmed False Positive. The command was spawned by legitimate, digitally-signed enterprise management software (SCCM CcmExec.exe) performing routine client hardware inventory. No network connections were initiated, and the decoded script performed standard read-only WMI queries.

Recommended SOC Response & Hardening

  • •Close ticket as False Positive / Benign Activity.
  • •Implement tuning exception in Splunk SPL alert rule WIN_SUSP_POWERSHELL_ENCODED to filter ParentImage="*\\CcmExec.exe".
  • •Maintain audit logging for CcmExec.exe hash deviations to prevent binary replacement or DLL search-order hijacking.

Analyst Reflection: What I Learned

• Distinguishing true attacks from benign administrative automation requires verifying parent binary integrity, digital signatures, and decoded payload semantics.

• Closing false positives with documented tuning recommendations prevents SOC alert fatigue and preserves analyst focus for genuine threats.

References & Standards