Cornucopia (C7)
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
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:
- Lack of Accurately Time-Stamped Security Event Records: The application does not maintain a detailed, time-stamped log of security events.
- Incomplete Audit Trails: There is no comprehensive audit trail capturing all user actions.
- Tamperable Logs: Mwengu has the ability to alter or delete logs, making his actions untraceable.
- 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?
- Implement comprehensive logging of all security-relevant events with accurate time-stamping.
- Ensure that audit trails are complete, immutable, and protected from unauthorized access and modification.
- Establish a centralized logging system to consolidate logs from various sources for easier monitoring and analysis.
- 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
| Code | Title | ASVS |
|---|---|---|
| 268 | Audit Log Manipulation | 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 |