Description
ScoutSuite gives incorrect label for Azure disks. We have discovered that disks are flagged as unencrypted, even though default encryption at rest with platform-managed key is in use.
The disk is encrypted using default option:
ScoutSuite flags the disk and shows the encryption as being disabled:
To Reproduce
The following CLI parameters have been used:
The full command executed to generate report:
_python3 scout.py azure --subscription xxxx -service-principal --tenant xxxx --client-id xxxx --client-secret xxxx --skip aad_
Additional context
ScoutSuite version 5.8.1 with default rules and conditions has been used.
Thank you @Dziubey, we'll look into it.
Based on a quick review the rule still looks "right":
https://github.com/nccgroup/ScoutSuite/blob/master/ScoutSuite/providers/azure/resources/virtualmachines/disks.py
https://github.com/nccgroup/ScoutSuite/blob/master/ScoutSuite/providers/azure/rules/findings/virtual-machines-disk-encryption.json
https://docs.microsoft.com/en-us/rest/api/compute/disks/get
This may be a problem with the difference between SSE and ADE that we need to specify? https://social.msdn.microsoft.com/Forums/en-US/a99a8425-bb00-4a7c-a4e1-02dc2c3e949b/azure-disk-encryption-vs-storage-service-encryption?forum=AzureDiskEncryption
@Dziubey any input would be welcome...
Hi @j4v and @ramimac,
I run some tests to verify the above statements, and it seems like ScoutSuite only accepts ADE as a valid encryption type at the moment.
ADE requires additional configuration and work to be performed in order for this type to be enabled. Additionally, it is not available for all VM sizes and operating systems.
I think it would be very helpful if ScoutSuite recognized SSE as a valid encryption type as well.
More information on the above is available here:
Adding screenshots for reference:
SSE with CMK
AED
Hi @j4v and @ramimac,
Are there any plans for working on this issue in the near future?
Thanks
Closing, this should now be fixed in develop.
Thanks for your help @Dziubey, feel free to reopen the issue if you find it's not sufficiently resolved.
hello, is this issue fixed in 5.10.2 ? I still see in report disks which are encrypted by default at rest are marked as unencrypted.
@tetlika it should, if you're still encountering this issue (or similar) please open an issue with detais.
@j4v thanks for reply, submitted issue https://github.com/nccgroup/ScoutSuite/issues/952
Most helpful comment
@j4v thanks for reply, submitted issue https://github.com/nccgroup/ScoutSuite/issues/952