Cornucopia (C7)

CORNUCOPIA
7

As ações do Mwengu não podem ser investigadas: não existe um registo adequado de eventos de segurança com carimbo de data/hora preciso; não há um histórico de auditoria completo; estes podem ser alterados ou eliminados pelo Mwengu; ou não existe um serviço de registo central

How to play?

The key concept is that inadequate, tamperable, or missing logging and audit trails can prevent accountability by making malicious actions untraceable.

Scenario: Mwengu’s Untraceable Actions Due to Inadequate Logging and Auditing

Imagine a scenario where Mwengu’s actions within an application cannot be investigated because of insufficient logging and auditing practices. This situation arises from:

  1. Lack of Accurately Time-Stamped Security Event Records: The application does not maintain a detailed, time-stamped log of security events.
  2. Incomplete Audit Trails: There is no comprehensive audit trail capturing all user actions.
  3. Tamperable Logs: Mwengu has the ability to alter or delete logs, making his actions untraceable.
  4. Absence of Centralized Logging: The system lacks a centralized logging service, leading to fragmented or missing records.

Example

Mwengu accesses an application that lacks adequate security logging. He performs unauthorized actions, but the application does not record these events with accurate timestamps, nor does it maintain a complete audit trail. Furthermore, due to his advanced access, Mwengu can alter and delete logs to cover his tracks. The absence of centralized logging means there is no single source of truth for investigating Mwengu’s activities, making it challenging to trace his actions or understand their impact.

Threat Modeling

STRIDE

The STRIDE category applicable here is Repudiation.

Repudiation occurs when actions cannot be traced back to the responsible party, typically due to missing or inadequate logging, auditing, or accountability mechanisms.

What can go wrong?

Inadequate logging and auditing can lead to significant gaps in security oversight, hindering the ability to detect, investigate, and respond to unauthorized activities. It increases the risk of identity theft, insider threats, advanced persistent threats, and replay attacks going unnoticed.

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 comprehensive logging of all security-relevant events with accurate time-stamping.
  2. Ensure that audit trails are complete, immutable, and protected from unauthorized access and modification.
  3. Establish a centralized logging system to consolidate logs from various sources for easier monitoring and analysis.
  4. Regularly review and update logging and auditing mechanisms to ensure they capture all necessary information and are secure against tampering.

Consider all application logging best practices according to the OWAS Logging Cheat Sheet.

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): 16.1.1,16.2.1,16.2.2,16.2.3,16.2.4,16.3.1,16.3.2,16.3.3,16.3.4,16.4.1,16.4.2,16.4.3

OWASP DevGuide: A4 SL1,SL2,SL3,SL6,SL7,SL8,SL9,SL10,SL11,SL12,SL13,SLD3,SLD4,SLD8,SLD9,SLD10

STRIDE: Repudiation

CAPEC™: 268

SAFECode™: 4

CAPEC Map

ASVS (5.0) Cheat Sheet Series Index

Data tampering

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.