Concept and mechanism
A secure architecture makes trust boundaries and dependencies explicit. Two machines on one power circuit and switch remain vulnerable to common failures. Two sites depending on one key service can also fail together.
Testing must match the loss event the requirement intends to withstand. Stopping a VM does not prove site recovery. Define failure behavior by context: an API may need to deny operations without confirmed authorization, while an emergency exit requires human-safety analysis and physical requirements.
Do not generalize a fail-closed rule without considering the loss it could cause in another system.
Guided application
Cryptography provides specific properties. Encryption alone does not guarantee modification detection; choose authenticated-integrity mechanisms where needed. A shared-key MAC does not distinguish exclusive authorship between both holders.
Signatures use a different key model, but evidence still depends on custody, identity, and validation. Plan key generation, protection, use, rotation, and recovery. An encrypted backup without recoverable keys may have no operational value.
In cloud, identify the specific service boundary: on customer-managed EC2, guest-system patches still need an owner. For an AI service, also include models, inference data, and processing dependencies in trust boundaries. The diagram and responsibility matrix should let APS recognize what it operates and what depends on third parties.
Define the property before drawing the boundary
In a fictional fund-processing project, “secure architecture” is too broad to serve as acceptance. Write an observable property: a document converter cannot alter instructions already approved by the close engine. Then identify components whose failure could invalidate that property. This trusted base can include the kernel, the write-control mechanism, its governing configuration and a privileged maintenance tool. It does not necessarily match every inventory component or every SLA dependency.
Draw permitted operations, alternate paths and who can change protection itself. A plugin loaded inside the enforcement mechanism can enlarge the trusted base even when marketed as telemetry. Conversely, an isolated dashboard does not start deciding permissions merely because it displays that mechanism’s metrics. For each dependency, record the capability justifying inclusion and available evidence. Review becomes concrete: remove unnecessary authority, reduce interfaces and check paths capable of bypassing the decision. A short list helps analysis, but component count alone does not establish protection. During handover, identify who can introduce a new dependency through configuration or deployment, and which acceptance argument must be revisited when they do.
Separate workloads, resources and failure consequences
Two containers can have separate processes, directories and networks while still depending on the same kernel. This does not make containers useless; it defines a boundary that must match risk. If acceptance says compromising the converter-accessible kernel must not compromise the financial engine, keeping both on that kernel does not satisfy the condition. A separate-kernel boundary can remove that direct sharing. Hypervisor, management plane, storage and shared administrative permissions still require analysis.
Availability calls for another question. An authorized parser can consume memory needed by daily close without exploiting a vulnerability. Verifiable limits and reservations can contain that effect. Exercise the critical workload while the less trusted consumer reaches its limit, observing failures, queues and recovery. Replicas within the same failure domain do not establish independence. Nor should confidentiality be inferred solely from absence of shared files: queue contention can make activity observable through timing. Keep the requirement, isolation mechanism and collected evidence separate. In this course, kernel isolation and timing channels are design analysis; no hypervisor was executed and no actual side channel was measured.
Control confidentiality and integrity flows
A person authorized to read restricted positions does not automatically gain authority to publish them. In a statistical-release example, fictional policy requires a transformation removing prohibited elements and approval by the authority for that dataset, purpose and destination. Transformation addresses content; approval addresses authority. A hash, signature or capacity approval does not replace those two conditions. Define which fields and relationships may leave, what output is permitted and how review handles unexpected residual information.
In the opposite direction, a high-trust decision may receive data from a lower-quality source. Authenticating a supplier channel establishes a property of origin and transport; it does not establish that a submitted price is correct, current or fit for the operation. Identify content checks, usage limits and discrepancy handling. Avoid resolving a discrepancy by silently raising the input’s trust level. For a technical manager, a useful artifact is a matrix containing source, destination, transformation, authority and acceptance evidence. These rules are explicit scenario choices. They are neither an internal bank policy nor a universal obligation imposed merely by naming a security model.
Nonce uniqueness is a system property
AES-GCM requires nonce use to satisfy the algorithm’s contract for each key. A local counter can look correct in a simple test and fail after snapshot restoration. Two senders can also produce the same value even when each individual counter is persisted. The unit of analysis is the set of senders and recovery paths using that key. Document range or identifier allocation, persistence, limits and behavior when a safe next value cannot be guaranteed. Do not turn an approximate clock into a uniqueness guarantee.
The lab deliberately uses two equal-length synthetic messages under the same key and nonce. Both tags validate. However, ciphertext XOR matches plaintext XOR, allowing one plaintext to be recovered when the other is known in that pair. This demonstrates a confidentiality failure despite accepted authentication; it does not demonstrate AES key recovery. The operational decision is to prevent further collisions and scope affected messages while coordinating continuity and recovery. Rotating a key can help establish a new usage namespace but cannot undo information already exposed. Intentional reuse exists only in the teaching fixture and is not recommended production code.
Bind context without releasing provisional data
An AEAD operation distinguishes protected plaintext, nonce and authenticated associated data, or AAD. AAD is bound into authentication but is not encrypted by that operation. If a client identifier is also confidential, leaving it readable in AAD does not satisfy the requirement. Choose minimal visible context and put confidential information inside protected content. Then define an unambiguous representation: concatenating tenant and type without structure makes (ab,c) and (a,bc) produce identical bytes. Cryptography cannot reconstruct a semantic distinction that serialization lost.
The contract should include tag length and error rules. The exercise requires 16 bytes, with no silent reduction to accommodate another sender. Some interfaces return decrypted bytes before final tag verification. The wrapper retains those bytes until authentication completes; an instruction must not produce effects while still provisional. Authentication is also not replay control: the same intact envelope can validate twice. Identifiers, freshness or idempotency need application rules and appropriate state. Test each claim separately rather than treating an integrity result as proof of AAD confidentiality or single execution.
Evaluate the TLS profile and remaining information
“TLS 1.3 with AES-GCM” does not by itself describe every property of a session. Actual negotiated key exchange matters: a PSK-based profile without an (EC)DHE contribution does not support the same forward-secrecy claim against later compromise of that PSK. Distinguish secret establishment from the cipher protecting records. Retain evidence of the permitted profile, observed negotiation and exceptions older clients might introduce.
Early data, or 0-RTT, needs its own replay analysis. An endpoint named GET may be incorrectly implemented as instruction confirmation; the method name does not make repeating that effect safe. Identify eligible operations, state needed to control effects and behavior when the condition is not satisfied. Finally, encrypted content does not eliminate observable size, timing or other metadata. If the requirement seeks to reduce inference of operation type, evaluate padding and transmission patterns with measured costs and outcomes. Statistical improvement does not prove anonymity. This unit’s lab does not negotiate TLS: these are specification-supported protocol decisions requiring their own execution on the target platform. A project acceptance record should retain that outstanding integration evidence explicitly. Even when PSK resumption includes (EC)DHE, the ephemeral contribution does not retroactively protect 0-RTT data: that early data lacks forward secrecy. If the instruction requires that property, wait for the phase protected by the completed exchange.
Exercise files
Extract the ZIP into a new directory and open README.en.md. The package includes this exercise’s program, modules, data and historical records, retaining the content/labs paths used in the lesson. Node.js 25.8.0 and permission to open two temporary HTTP servers on 127.0.0.1. This is the version used for the HTTP parser expectation; there are no npm dependencies. Package verification also uses Python 3.
Download cissp-architecture-contracts lab
SHA-256 (ZIP)
6d9b1d1e789f2881eb516f1d7879d1ad5b45392fa0ae107ec86c8dc49d39998d
node content/labs/cissp-architecture-contracts/run.mjs /tmp/cissp-boundaries-my-run.jsonThe secondary site has compute available but cannot decrypt data without the primary site: the key service is a resilience dependency.
Common pitfalls
Quantity treated as independence; encryption treated as universal integrity; MAC treated as exclusive authorship; cloud treated as transfer of every responsibility.
Related topics: Networks, channels, and access boundaries · Identity, sessions, and privileges · Isolation and TCB · AEAD, replay and TLS profile
Demonstrate required properties and dependencies that must survive failure. Relate the property to the trusted base, nonce lifecycle and data-release conditions.
References
- Engineering Trustworthy Secure Systems · SP800-160v1r1, November 2022
- Application Container Security Guide · SP 800-190, September 2017; final status checked 2026-10-08
- An Interface and Algorithms for Authenticated Encryption · RFC5116, January 2008
- The Transport Layer Security (TLS) Protocol Version 1.3 · RFC8446, August 2018; selected protocol properties checked 2026-10-08
- Node.js crypto API documentation, version25.8.0 · Pinned Node25.8.0 documentation; executed Node25.8.0 / OpenSSL3.5.5