Cryptography (CRQ)
How to play?The card is related to protection of master cryptographic secrets, within the application and more widely in management processes.
Scenario: Artim’s Access to Master Cryptographic Secrets
Imagine a scenario where Artim, exploiting weaknesses in cryptographic secret management, gains access to or predicts the master cryptographic secrets of a system. This vulnerability arises from:
- Inadequate Protection of Master Secrets: The central cryptographic keys or secrets, which secure the entire system, are not adequately safeguarded.
- Predictability of Secrets: The master secrets are generated or stored in a way that makes them susceptible to prediction or deduction.
Example
Artim discovers that a financial application uses a master cryptographic key for securing user transactions and data encryption. However, this key is stored in a poorly secured server repository and is generated using a predictable algorithm. Exploiting these weaknesses, Artim gains access to the repository and uses his knowledge of the algorithm to predict the master key. With this key, he decrypts sensitive user data and manipulates transaction processes.
Threat Modeling
STRIDE
That scenario clearly maps to Information Disclosure in STRIDE.
The primary violation is exposure of sensitive credentials (database passwords, API keys, service credentials). Once Justin can read those secrets, he can then leverage them for further attacks (like Tampering, Elevation of Privilege, etc.), but the root threat is that information that should have been protected is disclosed in plaintext or source code.
What can go wrong?
Access to master cryptographic secrets can lead to widespread system compromise, unauthorized data access, and the potential decryption of sensitive information.
For more things that can go wrong, see the Common Attack Patterns related to this card in the table below.
What are we going to do about it?
- Secure master cryptographic secrets with the highest level of protection, including physical and logical security measures.
- Utilize strong, non-predictable algorithms for generating master secrets and ensure they are stored in highly secure, access-controlled environments.
- Regularly rotate and update master secrets while keeping backups and recovery processes secure and confidential.
For detailed advice on how to mitigate threats related to the card, see the ASVS and OWASP Developer Guide requirements in the table below.
Mappings
OWASP ASVS (v4.0): 1.6.1,1.6.2,1.6.3,6.2.3,8.3.6
OWASP DevGuide: SC12,SCM2,SCM6,SCM7
STRIDE: Information Disclosure
OWASP SCP: 35,102
OWASP AppSensor: -
CAPEC™: 20,37,57,97,155,204,474,639