-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[vSphere][7.0][ESXI-70-000054] InSpec should determine if iSCSI is actually used #123
Comments
Hi @pbarrette what kind of NICs are you using? Just curious which ones do not allow you to disable iSCSI. |
HPE FlexFabric 10Gb 2-port 556FLR-SFP+ It shows up in Storage adapters as: I don't see any obvious way to disable it. I've temporarily bypassed it with:
But I don't have any iSCSI datastores, so I can't verify that it will still flag a true positive. |
Ok I believe there should be a way on those. Something similar to this https://support.hpe.com/hpesc/public/docDisplay?docId=kc0105837en_us&docLocale=en_US I recall being able to change the "personality" on those to enable/disable things like FCoE and iSCSI but its been a while and i don't have any to look at now. |
I'll look into that, but the control is still NA because iSCSI is not in use even though an adapter is present. I still believe that the scan should account for this. |
Not sure if this will help your use case, but I use the following:
This allowed it to pass the check if no iSCSI HBAs are present. My ckl output:
|
There are other requirements though to disable unneeded functionality or capabilities where we would really want to not see iSCSI HBAs potentially with an IP hanging out on the network and being another vector for attack. |
There's no way to disable iSCSI on the NIC of the 556FLR. In the end, I just ended up disabling the driver in ESXi. Not the ideal solution for somebody who might have an iSCSI target on one NIC, but not attached to a different, identical NIC. |
Is your feature request related to a problem? Please describe.
The ESXI-70-000054 control is only marked as NA if there are no iSCSI HBAs present.
Many systems have NICs which provide hardware iSCSI functionality that cannot be disabled, but the functionality is not used. Additionally, when not connected to a target, the authentication cannot be set to require Mutual CHAP.
If there are no iSCSI targets or datastores, then the control should be marked as NA and the authentication method of the NIC is irrelevant.
Describe the solution you'd like
The control should first determine if iSCSI targets or datastores exist.
If no targets exist, the control should be marked as NA.
Describe alternatives you've considered
As this is a CAT-I item, it takes time to explain and display to auditors that the result is a false positive.
Additional context
It may be possible to use "Get-VMHost -Name #{vmhost} | Get-VMHostHba -Type iSCSI | Get-IScsiHbaTarget"
If there is nothing returned, iSCSI is not in use.
The text was updated successfully, but these errors were encountered: