Cryptography (CRQ)

CRYPTOGRAPHY
Q

Artim can access or predict the master cryptographic secrets

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:

  1. Inadequate Protection of Master Secrets: The central cryptographic keys or secrets, which secure the entire system, are not adequately safeguarded.
  2. 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?

  1. Secure master cryptographic secrets with the highest level of protection, including physical and logical security measures.
  2. Utilize strong, non-predictable algorithms for generating master secrets and ensure they are stored in highly secure, access-controlled environments.
  3. 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 (v5.0): 11.1.1,11.1.2,11.1.3,11.1.4,11.2.1,11.2.2,11.2.3,11.2.4,11.2.5,11.3.1,11.3.2,11.3.3,11.3.4,11.3.5,11.4.1,11.4.3,11.4.4,11.5.1,11.5.2,11.6.1,11.6.2,13.1.4,13.3.1,13.3.3,14.2.2,16.2.5,16.3.3,17.2.1

OWASP DevGuide: SC12,SCM2,SCM6,SCM7

STRIDE: Information Disclosure

CAPEC™: 20,37,57,97,155,204,474,639

SAFECode™: 21,29

CAPEC Map

ASVS (5.0) Cheat Sheet Series Index

Password Guessing/Brute Force Attacks

Insider Threats

Social engineering attack

OWASP Cornucopia

OWASP Cornucopia is a mechanism in the form of a card game to assist software development teams identify security requirements in Agile, conventional and formal development processes. It is language, platform and technology-agnostic, and is free to use. OWASP Cornucopia is licensed under the Creative Commons Attribution-ShareAlike 4.0 license, so you can copy, distribute and transmit the work, and you can adapt it, and use it commercially, but all provided that you attribute the work and if you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar licence to this one.

© 2012-2025 OWASP Foundation. The Open Worldwide Application Security Project (OWASP) is a nonprofit foundation that works to improve the security of software.