Back to Checks
Credential auto-rotation is enabled
credentials_auto_rotate_enabled
Service: credentialsSeverity: high
Categories:identity-access
Resource Type:Credential
Managed credentials in VCF have automatic password rotation enabled to reduce exposure of compromised or long-lived secrets.
Risk
Without auto-rotation, credentials may remain unchanged indefinitely, allowing an attacker who has obtained them to retain access over a long period and breaking confidentiality and integrity of authenticated channels.
Run this check with Prowler
Run in Prowler CloudInstall
pip install --extra-index-url https://__token__:${PROWLER_REGISTRY_DOWNLOAD_API_KEY}@registry.prowler.com/simple/ "prowler-provider-vcf[runtime]"Run
prowler vcf --checks credentials_auto_rotate_enabledRecommendation
Enable automatic credential rotation for all managed credentials to keep secret lifetimes bounded and reduce the impact of credential compromise.
Remediation
Other
1Enable auto-rotation for credentials in the **SDDC Manager** UI under **Security > Credential Management**, or call `PATCH /v1/credentials/{id}` with `autoRotatePolicy.enabled` set to `true`.
Check Code
from prowler.lib.check.models import Check
from prowler_provider_vcf.check_report import CheckReportVCF
from prowler_provider_vcf.services.credentials.credentials_client import (
credentials_client,
)
class credentials_auto_rotate_enabled(Check):
def execute(self) -> list[CheckReportVCF]:
findings = []
for credential in credentials_client.credentials:
report = CheckReportVCF(
metadata=self.metadata(),
resource=credential,
)
if credential.auto_rotate_enabled:
report.status = "PASS"
report.status_extended = (
f"Credential {credential.name} has auto-rotation enabled."
)
else:
report.status = "FAIL"
report.status_extended = (
f"Credential {credential.name} does not have auto-rotation enabled."
)
findings.append(report)
return findings