Skip to content

Commit fdb5608

Browse files
authored
Update bitlocker.py - Corrected BitLocker EncryptionMethods
According to https://learn.microsoft.com/en-us/windows/win32/secprov/win32-encryptablevolume, the correct mapping is as follows. Signed-off-by: Powett <66013658+Powett@users.noreply.github.com>
1 parent b0263cb commit fdb5608

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

nxc/modules/bitlocker.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,16 @@ def check_bitlocker_status(self):
105105
# Query to get BitLocker status
106106
classQuery = "SELECT DriveLetter, ProtectionStatus, EncryptionMethod FROM Win32_EncryptableVolume"
107107
iEnumWbemClassObject = iWbemServices.ExecQuery(classQuery)
108-
encryptionTypeMapping = {0: "None", 1: "AES_256_WITH_DIFFUSER", 2: "AES_256_WITH_DIFFUSER", 3: "AES_128", 4: "AES_256", 5: "HARDWARE_ENCRYPTION", 6: "XTS_AES_128", 7: "XTS_AES_256"}
108+
encryptionTypeMapping = {
109+
0: "None",
110+
1: "AES_128_WITH_DIFFUSER",
111+
2: "AES_256_WITH_DIFFUSER",
112+
3: "AES_128",
113+
4: "AES_256",
114+
5: "HARDWARE_ENCRYPTION",
115+
6: "XTS_AES_128",
116+
7: "XTS_AES_256_WITH_DIFFUSER"
117+
}
109118

110119
try:
111120
while True:

0 commit comments

Comments
 (0)