Try it using Invoke-Atomic

Audio Capture

Description from ATT&CK

An adversary can leverage a computer's peripheral devices (e.g., microphones and webcams) or applications (e.g., voice and video call services) to capture audio recordings for the purpose of listening into sensitive conversations to gather information.

Malware or scripts may be used to interact with the devices through an available API provided by the operating system or an application to capture audio. Audio files may be written to disk and exfiltrated later. https://www.aleksandrhovhannisyan.com/blog/how-to-add-a-copy-to-clipboard-button-to-your-jekyll-blog/

Atomic Tests

Atomic Test #1 - using device audio capture commandlet

AudioDeviceCmdlets

Supported Platforms: windows

auto_generated_guid: 9c3ad250-b185-4444-b5a9-d69218a10c95

Inputs:

None

Attack Commands: Run with powershell!

1
2
powershell.exe -Command WindowsAudioDevice-Powershell-Cmdlet

source