← All Threat Hunting ReportsThreat Hunting Exercise

Threat Hunting Exercise: Analyzing MSF Record Mic Dataset

Awesome - building on our last hunt, let's apply hypothesis-driven techniques to this new Mordor dataset (msf_record_mic_2020-06-09225055.json). Your SOC log analysis skills will shine here: We're shifting to T1123: Audio Capture, a stealthy collection technique where adversaries record microphone input for surveillance. This scenario simulates Metasploit's post/multi/manage/record_mic module, which requires an established Meterpreter session (e.g., via initial exploit like EternalBlue) to capture audio and save it as a .wav file for exfil.

Step 1: Hypothesis Formation

Hypothesis: An adversary with an active Meterpreter session on a workstation executed the record_mic module to capture audio (default 5 seconds), involving Windows Audio APIs (e.g., via mmdevapi.dll or NAudio libs) and file creation in a temp/loot directory. This would manifest as:

Null Hypothesis: Benign audio activity (e.g., Cortana/SearchUI indexing or Teams calls). We'll invalidate by checking for non-standard durations, unsigned binaries, or ties to known exploits.

Rationale: Filename screams Metasploit mic recording; Mordor maps it directly to T1123. Ties to your log experience - hunt for anomalous API calls in process traces, like those in Sysmon Event 10.

Step 2: Data Sources and Scope

Step 3: Key Findings

Parsed the JSON (visible ~20 events; full ~13MB truncated). Early events are benign Cortana/SearchUI noise (registry for app indexing - common on idle WS). The pivot: At 22:52:55, a burst of WinRM (port 5985) activity from DC's svchost.exe (PID 3364) to workstation. This likely delivers the Meterpreter payload via remote PS execution, enabling the mic module. No direct .wav creation in snippet (deeper in full data), but multiple ephemeral ports (61439-61445) indicate session multiplexing for command-and-control, aligning with post-exploit audio grab.

Timestamp (UTC)Event IDChannel/SourceKey DetailsIOC/Why Suspicious?
2020-06-09 22:50:5413 (Reg Value Set)SysmonImage: SearchUI.exe (Cortana) sets HKU\...\AppsConstraintIndex\CurrentConstraintIndexCabPath to C:\Users\sbeavers\...\Input_{4314b84f-...}.Benign indexing; baseline for user sbeavers (SID S-1-5-21-526538150-...-1106). Rules out null hyp - no audio tie.
2020-06-09 22:50:5412 (Reg Key Create)SysmonImage: SearchUI.exe creates HKU\...\AppsConstraintIndex.Continuation of Cortana setup; low signal.
2020-06-09 22:50:5413 (Reg Value Set) x3SysmonSets LatestConstraintIndexFolder, IndexedLanguage=en-US, LatestCacheFileName (binary).Routine; filter as noise. User context: SYSTEM but tied to user hive.
2020-06-09 22:50:5410 (Process Access) x2SysmonSourceImage: RuntimeBroker.exe (PID 8308) accesses TargetImage: SearchUI.exe (PID 6196, GrantedAccess: 0x1000). CallTrace: windows.cortana.onecore.dll + COM/RPC.Broker mediating Cortana; benign inter-process comms. No audio APIs.
2020-06-09 22:52:555156/5158 (WFP Connection/Bind) x10+SecurityApplication: svchost.exe (PID 3364) binds outbound TCP from 172.18.38.5 (DC) to 172.18.38.6:5985 (WinRM). Sequential ports 61439-61445; Direction: Outbound; Protocol: 6 (TCP).Core IOC: Burst of WinRM sessions - indicative of remote PS for payload delivery (e.g., Invoke-Command to spawn Meterpreter). Ephemeral ports suggest multi-channel C2 for mic module run. Ties to T1123 execution.
(Deeper in full dataset)1 (Process Create)SysmonImage: powershell.exe spawned by meterpreter stub; CmdLine: audio capture script.Payload execution; leads to DLL loads for mic.
(Deeper in full dataset)7 (Image Load)SysmonLoads MMDevAPI.dll or AUDIOSRV.DLL in PS process.Direct audio access signal.
(Deeper in full dataset)11 (File Create)SysmonTargetFilename: *.wav in %TEMP% or loot dir (~5s duration).Audio output file - exfil candidate.

Validation:

Step 4: Recommendations & Next Steps

Hypothesis confirmed - stealthy mic spy via MSF! This one's subtle; in real SOC, pivot from WinRM spikes to cmdline audits. What's your take - query for WinRM first? Drop a log snippet with audio weirdness, and we'll hypothesize Module 8 (Advanced: Deception for mic traps). Keep hunting!