OSSN-0021: Owners of compromised accounts should verify Keystone trusts

Summary

The Keystone ‘trusts’ API allows for delegation of privileges to one user on behalf of another. This API can allow for an attacker of a compromised account to set up backdoor access into the account. This backdoor may not be easily detected, even if the account compromise is detected.

Affected Services / Software

Keystone, Grizzly, Havana, Icehouse

Discussion

The Keystone trusts system allows for delegation of roles to Keystone users without disclosing the main token, or sharing the account secret key with those users. That means, after an account is compromised, the change of the secret key and the invalidation of existing tokens may not be enough to prevent future access from an attackers.

If an attacker obtains access to the account (via stolen credentials or service exploitation), they can create a new Keystone trust. This new trust may grant access not dependent on any knowledge of the compromised user’s secret key and can also be set to never expire. In this case, the trust has to be manually found and removed by the account owner.

Information about using trusts can be found at: https://wiki.openstack.org/wiki/Keystone/Trusts

Contacts / References

Author: Stanislaw Pitucha, HPE