Microsoft announced that it will introduce a new feature in Windows 11 - security auditing to track suspicious
The feature is currently implemented inOS pre-build on the Dev Channel. In addition to auditing, the feature will display warning messages to the user if applications attempt to gain unauthorized access to the device.
You can enable it in the system settings by selectingthe "Privacy and Security" option, then the "Application Permissions" section. In this section, you can monitor the activity of applications, including attempts to access computer hardware.