Users are experiencing issues with the execInstalledOnly feature on ESXi 7.0. Despite enabling execInstalledOnly and configuring Secure Boot, unsigned Python scripts can still be executed on the ESXi host. This behavior occurs on both systems with and without TPM modules.
- VMware ESXi 7.0 or newer
- Servers with and without TPM modules
- UEFI Secure Boot enabled
The execInstalledOnly feature in ESXi 7.0 is designed to prevent the execution of unsigned binaries, but it does not prevent the execution of scripts run through interpreters like Python. This limitation exists in ESXi versions up to and including 8.x.
Currently, there is no built-in method in ESXi 7.0 to prevent the execution of unsigned scripts run through interpreters. However, you can take the following steps to enhance security:
esxcli system settings kernel set -s execInstalledOnly -v TRUE
esxcli system settings kernel list -o execinstalledonly
esxcli system settings encryption set --require-secure-boot=TRUE
esxcli system settings encryption set --require-exec-installed-only=TRUE
esxcli system settings encryption get
Note: These steps will enhance overall system security but will not prevent the execution of unsigned scripts run through interpreters.