[wdmaudiodev] Re: Detecting and blocking microphone usage

  • From: Paul Jackson <mailnew4ster@xxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Thu, 21 Jun 2018 13:19:39 +0300

No, I aim for a generic solution which works with every hardware.

On Thu, Jun 21, 2018, 13:18 Matthew van Eerde <dmarc-noreply@xxxxxxxxxxxxx>
wrote:

Do you own the audio driver for the microphone?


------------------------------
*From:* wdmaudiodev-bounce@xxxxxxxxxxxxx <wdmaudiodev-bounce@xxxxxxxxxxxxx>
on behalf of Paul Jackson <mailnew4ster@xxxxxxxxx>
*Sent:* Thursday, June 21, 2018 1:01:46 AM
*To:* wdmaudiodev@xxxxxxxxxxxxx
*Subject:* [wdmaudiodev] Re: Detecting and blocking microphone usage

Muting the microphone can work for me. On the other hand, it's a poor
solution security-wise, since everyone can just un-mute the microphone.

What about implementing an APO (Audio Processing Object)? Is this
something that can work?
Can a software Endpoint Effect (EFX) APO be implemented so that it will
mute the microphone until the user agrees to allow it?

On Thu, Jun 21, 2018 at 3:06 AM Matthew van Eerde <
dmarc-noreply@xxxxxxxxxxxxx> wrote:

The microphone privacy global switch affects all apps as of the April
2018 Update of Windows 10. (Prior to that it affected only Store apps.)



I believe you are correct that per-app toggles only show up for Store
apps.



Yes, it is possible to query and control the session volume for
individual apps via the session manager APIs. Be aware, though, that for
the microphone, the session volume is just an alias for the endpoint
volume, for bit depth reasons.


------------------------------
*From:* wdmaudiodev-bounce@xxxxxxxxxxxxx <
wdmaudiodev-bounce@xxxxxxxxxxxxx> on behalf of Paul Jackson <
mailnew4ster@xxxxxxxxx>
*Sent:* Wednesday, June 20, 2018 5:41:24 AM
*To:* wdmaudiodev@xxxxxxxxxxxxx
*Subject:* [wdmaudiodev] Re: Detecting and blocking microphone usage

Thank you for the reply Matthew.

Correct me if I'm wrong, but the Privacy > Microphone configuration works
only for store apps for per-app access.
IAudioSessionNotification looks interesting. Will I be able to mute the
microphone session based on the requesting application?

On Wed, Jun 20, 2018 at 2:29 PM Matthew van Eerde <
dmarc-noreply@xxxxxxxxxxxxx> wrote:

Windows supports the first two natively via Start > Settings > Privacy >
Microphone; I believe there are ways to set these via group policy as well



You can write a user-mode solution for the third using the session
manager APIs – IaudioSessionManager, IAudioSessionManager2,
IAudioSessionNotification




https://blogs.msdn.microsoft.com/matthew_van_eerde/2013/09/26/getting-peak-meters-and-volume-settings-for-all-apps-and-audio-devices-on-the-system/
<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fblogs.msdn.microsoft.com%2Fmatthew_van_eerde%2F2013%2F09%2F26%2Fgetting-peak-meters-and-volume-settings-for-all-apps-and-audio-devices-on-the-system%2F&data=02%7C01%7Cmatthew.van.eerde%40microsoft.com%7C6927b69ee7e94e12dcb408d5d6ab5120%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636650953681249344&sdata=s16ZlXw983K7l900lvqh4jx4vkgt61vHYDD9AaFxz48%3D&reserved=0>


------------------------------
*From:* wdmaudiodev-bounce@xxxxxxxxxxxxx <
wdmaudiodev-bounce@xxxxxxxxxxxxx> on behalf of Paul Jackson <
mailnew4ster@xxxxxxxxx>
*Sent:* Wednesday, June 20, 2018 1:30:04 AM
*To:* wdmaudiodev@xxxxxxxxxxxxx
*Subject:* [wdmaudiodev] Detecting and blocking microphone usage

Hi guys,

I'm trying to find a way to implement a security kernel driver (or, if
not possible, a user-mode solution) for microphone usage.

I'd like to be able to do the following:
1. Block selective applications from accessing the microphone.
2. If not possible, block all applications from using the microphone.
3. If not possible, notify the user when the microphone is being used.

Can you please shed some light on what possibilities I have?


Other related posts: