Cryptography (CR3)

CRYPTOGRAPHY
3

O Axel pode modificar dados transitórios ou permanentes (armazenados ou em trânsito); código fonte; atualizações ou correções; e dados de configuração, porque não estão sujeitos a verificações de integridade

How to play?

The key concept is that the absence of integrity checks allows attackers to tamper with data, code, and configurations without detection, compromising system trust and security.

Scenario: Axel's Data and Code Manipulation Due to Lack of Integrity Checks

Envision a situation where Axel manipulates various types of data and code within a system, exploiting the absence of integrity checking. This lack of verification allows for:

  1. Alteration of Data in Transit or Storage: Axel can modify data being transmitted or stored, as there are no checks to validate data integrity.
  2. Source Code Tampering: The source code, including updates and patches, can be altered without detection.
  3. Configuration Data Changes: Axel can change configuration settings without triggering any alerts.

Example

Axel targets an application that does not implement integrity checks on its data transmissions. He intercepts data being sent to the server and modifies it, injecting malicious content or altering transaction details. Additionally, he tampers with source code updates before they are applied, introducing vulnerabilities into the system. The lack of integrity verification means these alterations go unnoticed and are executed as if legitimate.

Threat Modeling

STRIDE

The applicable STRIDE category for this scenario is Tampering.

Axel is modifying data, source code, updates, or configuration in a way that the system cannot detect because integrity checks are missing. The core threat is unauthorized alteration of information or code, which could lead to malicious execution or corruption.

What can go wrong?

The possibility for tampering with state, source code, interpreted code, libraries, executables, updates, patches, configuration data, logs, etc undermines any trust in the application. Consider the file system, database content, information in memory, in page code, and data in transit.

Such vulnerabilities can lead to unauthorized data manipulation, introduction of malware, corrupted system updates, and compromised system functionality.

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. Implement cryptographic hash functions and digital signatures to ensure data integrity for stored and in-transit data.
  2. Apply integrity checks to source code, updates, patches, and configuration data, verifying their authenticity before acceptance and execution.
  3. Regularly audit and update security protocols to maintain effective protection against data and code tampering.

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): 4.1.5,6.7.1,9.1.1,9.1.2,9.1.3,11.3.3,11.4.3,11.3.5,14.2.4,16.3.1,16.3.2,16.3.3,16.3.4

OWASP DevGuide: SFL3,SFL4,VSD1

STRIDE: Tampering

CAPEC™: 39,68,75,94,145,184,438,442,475,523,594,690

SAFECode™: 12,14

CAPEC Map

CodeTitleASVS
39Manipulating Opaque Client-based Data Tokens
68Subvert Code-signing Facilities
75Manipulating Writeable Configuration Files
94Adversary in the Middle (AiTM)
145Checksum Spoofing
184Software Integrity Attack
438Modification During Manufacture
442Infected Software
475Signature Spoofing by Improper Validation
523Malicious Software Implanted
594Traffic Injection
690Metadata Spoofing

ASVS (5.0) Cheat Sheet Series Index

Data tampering

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.