Check provider logo

ObjectStorage access keys should have an expiration date

objectstorage_access_key_expiration

Severityhigh
by Prowler

ObjectStorage access keys should have an explicit expiration date. Long-lived credentials increase the blast radius of a credential compromise because they cannot expire on their own. Setting an expiration date enforces periodic rotation and limits the exposure window if a key is leaked.

Risk

If an ObjectStorage access key is leaked, stolen, or forgotten without an expiration date, it remains usable indefinitely. An attacker can retain persistent access to object storage resources until the key is manually revoked.

Run this check with Prowler CLI

prowler stackit --checks objectstorage_access_key_expiration

Recommendation

Create ObjectStorage access keys with an explicit expiration date and establish a rotation process. Delete non-expiring keys and replace them with time-limited credentials. A rotation period of 90 days or less is recommended.

Remediation

Other
  1. In the STACKIT Portal navigate to Object Storage > Access Keys. 2. Delete the non-expiring access key. 3. Create a new access key with an expiration date appropriate for your rotation policy (e.g. 90 days). 4. Update all applications and services that use the old key with the new credentials.

Source Code

Resource Type

NotDefined

References