Information
The ESXi host must deny shell access for the dcui account.
GROUP ID: V-265976
RULE ID: SV-265976r1003584
The dcui user is used for process isolation for the DCUI itself. The account has shell access which can be deactivated to reduce attack surface.
Solution
From an ESXi shell, run the following command:
esxcli system account set -i dcui -s false
or
From a PowerCLI command prompt while connected to the ESXi host, run the following commands:
$esxcli = Get-EsxCli -v2
$arguments = $esxcli.system.account.set.CreateArgs()
$arguments.id = "dcui"
$arguments.shellaccess = "false"
$esxcli.system.account.set.invoke($arguments)