Skip to main content

V1 Architecture

⚠️ WARNING: This document is not finished. The details in this document are subject to change.

V1.1 Secure Software Development Lifecycle

Reference

#DescriptionL1L2L3CWENotes
1.1.1Verify the use of a secure software development lifecycle that addresses security in all stages of development. (C1)
1.1.2Verify the use of threat modeling for every design change or sprint planning to identify threats, plan for countermeasures, facilitate appropriate risk responses, and guide security testing.1053
1.1.3Verify that all user stories and features contain functional security constraints, such as "As a user, I should be able to view and edit my profile. I should not be able to view or edit anyone else's profile"1110
1.1.4Verify documentation and justification of all the application's trust boundaries, components, and significant data flows.1059
1.1.5Verify definition and security analysis of the application's high-level architecture and all connected remote services. (C1)1059
1.1.6Verify implementation of centralized, simple (economy of design), vetted, secure, and reusable security controls to avoid duplicate, missing, ineffective, or insecure controls. (C10)637
1.1.7Verify availability of a secure coding checklist, security requirements, guideline, or policy to all developers and testers.637

V1.2 Authentication Architecture

#DescriptionL1L2L3CWENotes
1.2.1Verify the use of unique or special low-privilege operating system accounts for all application components, services, and servers. (C3)250
1.2.2Verify that communications between application components, including APIs, middleware and data layers, are authenticated. Components should have the least necessary privileges needed. (C3)306
1.2.3Verify that the application uses a single vetted authentication mechanism that is known to be secure, can be extended to include strong authentication, and has sufficient logging and monitoring to detect account abuse or breaches.306
1.2.4Verify that all authentication pathways and identity management APIs implement consistent authentication security control strength, such that there are no weaker alternatives per the risk of the application.306

V1.3 Session Management Architecture

This is a placeholder for future architectural requirements.

V1.4 Access Control Architecture

#DescriptionL1L2L3CWENotes
1.4.1Verify that trusted enforcement points, such as access control gateways, servers, and serverless functions, enforce access controls. Never enforce access controls on the client.602
1.4.2[DELETED, NOT ACTIONABLE]
1.4.3[DELETED, DUPLICATE OF 4.1.3]
1.4.4Verify the application uses a single and well-vetted access control mechanism for accessing protected data and resources. All requests must pass through this single mechanism to avoid copy and paste or insecure alternative paths. (C7)284
1.4.5Verify that attribute or feature-based access control is used whereby the code checks the user's authorization for a feature/data item rather than just their role. Permissions should still be allocated using roles. (C7)275

V1.5 Input and Output Architecture

#DescriptionL1L2L3CWENotes
1.5.1Verify that input and output requirements clearly define how to handle and process data based on type, content, and applicable laws, regulations, and other policy compliance.1029
1.5.2Verify that serialization is not used when communicating with untrusted clients. If this is not possible, ensure that adequate integrity controls (and possibly encryption if sensitive data is sent) are enforced to prevent deserialization attacks including object injection.502
1.5.3Verify that input validation is enforced on a trusted service layer. (C5)602
1.5.4Verify that output encoding occurs close to or by the interpreter for which it is intended. (C4)116

V1.6 Cryptographic Architecture

#DescriptionL1L2L3CWENotes
1.6.1Verify that there is an explicit policy for management of cryptographic keys and that a cryptographic key lifecycle follows a key management standard such as NIST SP 800-57.320
1.6.2Verify that consumers of cryptographic services protect key material and other secrets by using key vaults or API based alternatives.320
1.6.3Verify that all keys and passwords are replaceable and are part of a well-defined process to re-encrypt sensitive data.320
1.6.4Verify that the architecture treats client-side secrets--such as symmetric keys, passwords, or API tokens--as insecure and never uses them to protect or access sensitive data.320

V1.7 Errors, Logging and Auditing Architecture

#DescriptionL1L2L3CWENotes
1.7.1Verify that a common logging format and approach is used across the system. (C9)1009
1.7.2Verify that logs are securely transmitted to a preferably remote system for analysis, detection, alerting, and escalation. (C9)

V1.8 Data Protection and Privacy Architecture

#DescriptionL1L2L3CWENotes
1.8.1Verify that all sensitive data is identified and classified into protection levels.
1.8.2Verify that all protection levels have an associated set of protection requirements, such as encryption requirements, integrity requirements, retention, privacy and other confidentiality requirements, and that these are applied in the architecture.

V1.9 Communications Architecture

#DescriptionL1L2L3CWENotes
1.9.1Verify the application encrypts communications between components, particularly when these components are in different containers, systems, sites, or cloud providers. (C3)319
1.9.2Verify that application components verify the authenticity of each side in a communication link to prevent person-in-the-middle attacks. For example, application components should validate TLS certificates and chains.295

V1.10 Malicious Software Architecture

#DescriptionL1L2L3CWENotes
1.10.1Verify that a source code control system is in use, with procedures to ensure that check-ins are accompanied by issues or change tickets. The source code control system should have access control and identifiable users to allow traceability of any changes.284

V1.11 Business Logic Architecture

#DescriptionL1L2L3CWENotes
1.11.1Verify the definition and documentation of all application components in terms of the business or security functions they provide.1059
1.11.2Verify that all high-value business logic flows, including authentication, session management and access control, do not share unsynchronized state.362
1.11.3Verify that all high-value business logic flows, including authentication, session management and access control are thread safe and resistant to time-of-check and time-of-use race conditions.367

V1.12 Secure File Upload Architecture

#DescriptionL1L2L3CWENotes
1.12.1[DELETED, DUPLICATE OF 12.4.1]
1.12.2Verify that user-uploaded files - if required to be displayed or downloaded from the application - are served by either octet stream downloads, or from an unrelated domain, such as a cloud file storage bucket. Implement a suitable Content Security Policy (CSP) to reduce the risk from XSS vectors or other attacks from the uploaded file.646

V1.13 API Architecture

This is a placeholder for future architectural requirements.

V1.14 Configuration Architecture

#DescriptionL1L2L3CWENotes
1.14.1Verify the segregation of components of differing trust levels through well-defined security controls, firewall rules, API gateways, reverse proxies, cloud-based security groups, or similar mechanisms.923
1.14.2Verify that binary signatures, trusted connections, and verified endpoints are used to deploy binaries to remote devices.494
1.14.3Verify that the build pipeline warns of out-of-date or insecure components and takes appropriate actions.1104
1.14.4Verify that the build pipeline contains a build step to automatically build and verify the secure deployment of the application, particularly if the application infrastructure is software defined, such as cloud environment build scripts.
1.14.5Verify that application deployments adequately sandbox, containerize and/or isolate at the network level to delay and deter attackers from attacking other applications, especially when they are performing sensitive or dangerous actions such as deserialization. (C5)265
1.14.6Verify the application does not use unsupported, insecure, or deprecated client-side technologies such as NSAPI plugins, Flash, Shockwave, ActiveX, Silverlight, NACL, or client-side Java applets.477