Preface
As I wrote in a previous blog post, I had an engagement last year where my task was to exfiltrate data from a workstation on some sort of storage media. The twist in that task was Lumension Sanctuary Device Control, and the version was 4.3.2, but I am not sure how newer version work and this seems to be a more general problem with device control solution, for example with Symantec products.
But what is a device control solution? In short, they audit I/O device use and block the attempts to use unauthorized devices. This includes hardware such as USB, PS/2, FireWire, CD/DVD so basically every I/O port of a computer. In my opinion, these are pretty good things and they offer a better looking solution than de-soldering the I/O ports from the motherboards or hot-gluing them, but on the other hand, they can be bypassed.
Bypass
OK, so what is the problem? Well the way these device control solutions work is that they load a few kernel drivers to monitor the physical ports of the machine. However... when you boot up the protected computer in safe mode, depending on the device control solution software, some of these drivers are not loaded (or if you are lucky, none of those modules will be loaded...) and this opens up the possibility to exfiltrate data.
In theory, if you have admin (SYSTEM maybe?) privileges, you might as well try to unload the kernel drivers. Just do not forget, that these device control solutions also have a watchdog process, that checks the driver and automatically loads it back if it is unloaded, so look for that process and stop or suspend it first.
In theory, if you have admin (SYSTEM maybe?) privileges, you might as well try to unload the kernel drivers. Just do not forget, that these device control solutions also have a watchdog process, that checks the driver and automatically loads it back if it is unloaded, so look for that process and stop or suspend it first.
In my case with the Lumension Sanctuary Device Control, I have found that when I boot the Workstation protected by the device control software in Safe Mode where, software's key logger protection module is not running... so I was still unable to use a USB stick, or a storage media, but I could plug in a keyboard for example...hmmm :)
As some of you probably already figured it out, now it is possible to use a pre-programmed USB HID, for example a Teensy! : ) I know about three different project, that uses this trick like these two mentioned in a Hackaday post, or this one. Unfortunately, the site ob-security.info no longer seems to be available (well, at least it is no longer related to infosec :D ), but you can still find the blog post and the files with the Wayback Machine.
For the hardware part, the wiring of the Teensy and the SD card adaptor is the same as I showed in the post on Making a USB flash drive HW Trojan or in the Binary deployment with VBScript, PowerShell or .Net csc.exe compiler post, so I will not copy it here again.
I have to note here that there are other ways to bypass these device control solutions, like the method what Dr. Phil Polstra did with the USB Impersonator, which is basically looks for an authorized device VID/PID and then impersonates that devices with the VID/PID.
Mitigation
Most probably, you will not need safe mode for the users, so you can just disable it... I mean, it is not that easy, but luckily there is a great blog post on how to do that. BTW, the first page of the post is for Windows XP, but you are not using XP anymore, aren't you? ;)
Alternatively, as I mentioned at the beginning, you might as well use some physical countermeasure (de-soldering/hot-gluing ports). That shit is ugly, but it kinda works.
Conclusion
Next time you will face a device control solution, try out these tricks, maybe they will work, and if they do, well, that's a lot of fun. :)
But don't get me wrong, these device control solutions and similar countermeasures are a good thing and you should use something like this! I know that they make doing business a bit harder as you are not able to plugin whatever USB stick you want, but if you buy a pile of hardware encrypted flash drives, and only allow those to be plugged in, you are doing it right ;)
Related articles
- Hack Tools For Mac
- Bluetooth Hacking Tools Kali
- Hacker Tool Kit
- Pentest Tools Linux
- Github Hacking Tools
- Hacking Tools For Windows
- Hacking Tools Software
- Pentest Tools Nmap
- Pentest Tools
- Pentest Tools Bluekeep
- Hacker Tools Apk
- Hacker Tools 2020
- Pentest Tools Github
- Hacker Tools Online
- Hacker Tools For Ios
- What Is Hacking Tools
- Hack Tools For Games
- Hacking Tools 2020
- Hack Tools Online
- Hacking Tools Online
- Hacker Tools Software
- Pentest Tools For Mac
- Hacking Tools For Windows
- Pentest Tools
- Pentest Tools Windows
- Hacking Tools Kit
- How To Install Pentest Tools In Ubuntu
- Hacker Tools Mac
- Computer Hacker
- Growth Hacker Tools
- Underground Hacker Sites
- Hacking Tools Hardware
- Hacker Tools Windows
- Pentest Tools Website
- Nsa Hacker Tools
- Wifi Hacker Tools For Windows
- Hacker Search Tools
- Underground Hacker Sites
- Hacker Tool Kit
- Pentest Tools For Ubuntu
- Hack Tools For Mac
- Hacking Tools Software
- Pentest Tools Windows
- Hack Tools Download
- Hacker Hardware Tools
- Tools For Hacker
- Pentest Tools Github
- Tools 4 Hack
- Pentest Tools Open Source
- New Hacker Tools
- Easy Hack Tools
- Pentest Tools Port Scanner
- Hacking Tools Github
- Hack Tools For Ubuntu
- Hacker Search Tools
- Hak5 Tools
- Hacking Tools For Windows 7
- Hacking Tools 2019
- Pentest Tools Alternative
- Hacking Tools 2019
- Ethical Hacker Tools
- Hacking Tools 2020
- Hacker Hardware Tools
- Hack Tools For Games
- Hack Tools For Windows
- Hacking Tools Software
- Hacking Tools Windows 10
- Hacking Tools For Windows
- Hacker Tools Free Download
- Hacker Tool Kit
- Pentest Tools Nmap
- Game Hacking
- Hacker Search Tools
- Bluetooth Hacking Tools Kali
- Pentest Recon Tools
- Hacker
- Hack Tools Github
- Kik Hack Tools
- Hack Tool Apk No Root
- Pentest Tools Github
- Pentest Reporting Tools
- Hacker Tools Github
- Best Hacking Tools 2019
- Hacker Tools Windows
- Underground Hacker Sites
- Pentest Tools Bluekeep
- Wifi Hacker Tools For Windows
- Easy Hack Tools
- What Is Hacking Tools
- Beginner Hacker Tools
- Tools 4 Hack
- Hacking Tools For Mac
- Hack Tool Apk
- Hacker
- Pentest Tools Find Subdomains
- Hacking Tools Name
- Hacker Tools Windows
- Hacking Tools Kit
- Pentest Tools Port Scanner
- Pentest Tools Free
- Hacking Tools Software
- Pentest Tools Find Subdomains
- Ethical Hacker Tools
- Hack Tool Apk No Root
- Pentest Tools Open Source
- Hacking Tools For Windows 7
- Hacking Apps
- Pentest Tools Online
- Usb Pentest Tools
- How To Hack
- Pentest Tools Apk
- Free Pentest Tools For Windows
- Hack Tool Apk
- Hacking App
- Hacker Tools 2019
- New Hack Tools
- Nsa Hack Tools Download
- Hacking Tools Pc
- World No 1 Hacker Software
- Pentest Tools Github
- Beginner Hacker Tools
- Best Hacking Tools 2020
- Pentest Tools Open Source
- New Hacker Tools
- Hacker Search Tools
- Nsa Hack Tools Download
- Hack Tools For Games
- Hacking Tools For Windows
- Hacker Techniques Tools And Incident Handling
- Tools Used For Hacking
- Wifi Hacker Tools For Windows
- Pentest Tools Alternative
- Hacking Apps
- Game Hacking
- Beginner Hacker Tools
- Pentest Tools Tcp Port Scanner
- Hacker Tools Software
- Hack Website Online Tool
- Hack Tools
- Pentest Tools Alternative
- Hacker Techniques Tools And Incident Handling
- Usb Pentest Tools
- Nsa Hack Tools Download
- Hack And Tools
- Tools Used For Hacking
- Hacker Tools Apk
- Hack Tools For Windows
- Hacker Tools Hardware
- Nsa Hack Tools Download
- Pentest Tools Apk
- Hacking Tools For Windows
- Black Hat Hacker Tools
- Hacker Tools
- Hacker
- Pentest Tools Bluekeep
- Pentest Tools Online
- Top Pentest Tools
- Hack Tools For Windows
- Pentest Tools Github
- Hack Tools Pc
- Computer Hacker
- Hacker Tools 2019
- Wifi Hacker Tools For Windows
- Hacker Tools For Ios
- Hacker Tools Hardware
- Pentest Recon Tools
- Hacker Security Tools
- Pentest Tools Download
- Pentest Tools Windows
No comments:
Post a Comment