Beyond good ol’ Run key, Part 59

In my last post I talked about Bluetooth. I have a mixed luck testing anything related to this technology…

You see, there is that one more potential persistence mechanism associated with Bluetooth which I was unable to test successfully. Despite my efforts it didn’t work, but this is probably because I don’t have a proper set up. Perhaps people owning a laptop with the Windows 8 on it (and not Windows 8.1 or newer) could give it a go… It is another documented feature of Windows, so it should work.

So… there is a thing called ‘Bluetooth Software Radio Switch Function Prototypes’ described on the Microsoft page here.

Adding the entry

  • HKLM\SYSTEM\CurrentControlSet\Services\
    
    BTHPORT\Parameters\Radio Support\
    
    SupportDLL = Path to DLL

should allow vendors to register a DLL that will handle requests to Bluetooth radio to switch it on or off.

The Microsoft page provides a link to another page that is describing the sample source code demonstrating to programmers how to build your own supporting DLL. The funny thing is that the demo code uses a different key (BthServ instead of BTHPORT service) than the previous page, and a Unicode path instead of an ANSI path provided in the documentation. Searching for strings within c:\windows directory I could find references to BTHPORT\Parameters\Radio Support and not BthServ\Parameters\Radio Support so the documentation is probably okay, and the demo is not.

Well, in any case. It should work.

Beyond good ol’ Run key – All parts

Updated 2019-10-12

Here are the links to all the ‘Beyond good ol’ Run key’ posts so far.

Also see discussion on how many of these persistence techniques can be also Lateral Movement techniques:

You may also want to visit the new series Beyond good ol’ LaunchAgent by Pasquale Stirparo – the series is dedicated to MAC ‘autoruns’ tricks and is a must read for anyone who is doing forensics or reverse engineering on OSX