Explorer09 / usb_vaccine

(Moved to https://gitlab.com/Explorer09/usb_vaccine) USB malware immunity script and hidden files revealer.
GNU Lesser General Public License v2.1
12 stars 5 forks source link

Compatibility with BitLocker volumes #8

Open Explorer09 opened 6 years ago

Explorer09 commented 6 years ago

BitLocker in Windows 7 or later allows encrypting a FAT16, FAT32 or exFAT partition. When encrypting, an outer "discovery volume" will be created in place of the partition to be encrypted. This volume contains a BitLocker To Go Reader, files that map to the encrypted blocks, and serveral dummy files to stuff the directory entries so that the file system will appear to be full.

The discovery volume can be mounted like ordinary FAT32 partition (which is part of the design to let BitLocker To Go work in Windows XP and Vista). Because of this, usb_vaccine.cmd will interact with it, however we did not specify how the script should behave when it encounters a BitLocker encrypted volume. We didn't test usb_vaccine.cmd with such a volume yet, and the script's ordinary behavior may not give the best benefit to the volume.

Here are the potential problems specifically:

To-dos:

Explorer09 commented 6 years ago

Update (2018-Apr-03): Editing the template of BitLocker Discovery Volume Contents is more difficult than I think. "%WinDir%\BitLockerDiscoveryVolumeContents" is in fact only a temporary directory. The actual file map is "%WinDir%\WinSxS\FileMaps\$$_bitlockerdiscoveryvolumecontents_4ba1a520585d23cf.cdf-ms". Another interesting location is "%WinDir%\WinSxS\x86_microsoft-windows-s..ccessagent-binaries_31bf3856ad364e35_<version>_none_<16 hex digits>", which stores autorun.inf, BitLockerToGo.exe and Read Me.url.