Open a Case File
Enter your name to open a personal lab ledger. Your work in each stage will be logged so you can download a completed report at the end.
Incident Brief 07-C
You've joined the incident response team at a small logistics company. Overnight, an analyst intercepted unencrypted chatter between a former contractor and an unknown external address. Leadership wants the team's communications — and its software update pipeline — properly secured before the next shift. You'll work through six cryptographic techniques used to do exactly that.
XOR: The Building Block
Every byte of plaintext can be combined with a key byte using the XOR (exclusive-OR) operation. XOR is reversible: applying the same key a second time restores the original data. This is the mathematical seed that real ciphers build on — and, used alone, one of the weakest.
Hint: why does re-applying XOR decrypt it?
XOR has the property A ⊕ K ⊕ K = A. Encrypting is ciphertext = plaintext ⊕ key. Decrypting is plaintext = ciphertext ⊕ key — the exact same operation, run again with the same key.
Symmetric Encryption with AES-256
Modern symmetric encryption (AES, the current NIST standard) uses one shared secret key for both encryption and decryption. It's fast and well suited to bulk data — but both parties need the exact same key beforehand, which raises the key-distribution problem you'll solve in Stage 4.
Hint: what is the IV for?
The initialization vector randomizes each encryption so that encrypting the same message twice with the same key never produces the same ciphertext. It doesn't need to be secret, but it must never be reused with the same key.
SHA-256: Fingerprinting Data
A cryptographic hash function takes input of any size and produces a fixed-length "fingerprint." A secure hash is one-way (you can't reverse it to get the input back), deterministic (same input always gives the same output), and exhibits the avalanche effect — a tiny change in input produces a wildly different hash.
Hint: what does this prove about integrity?
If a published hash and a locally-computed hash of a downloaded file don't match, the file was altered or corrupted in transit — that's how software vendors let you verify updates haven't been tampered with.
RSA: Solving Key Exchange
Asymmetric (public-key) encryption uses a mathematically linked key pair. Anything encrypted with the public key can only be decrypted with the matching private key. The public key can be shared openly — even over an insecure channel — which is exactly the problem symmetric encryption couldn't solve on its own.
Hint: why not just use RSA for everything?
RSA is far slower than AES and can only encrypt small amounts of data at once. In practice, systems like TLS use RSA (or similar) just to securely exchange a symmetric AES key, then switch to AES for the actual bulk traffic — this hybrid approach is why HTTPS is both secure and fast.
Digital Signatures: Proof of Origin
A digital signature flips the RSA key pair around: you sign a message's hash with your private key, and anyone can verify it with your public key. A valid signature proves three things at once — authentication (it came from you), integrity (it wasn't altered), and non-repudiation (you can't credibly deny signing it).
Hint: why does editing even one character break verification?
Verification recomputes the hash of the message you provide and checks it against what the signature guarantees. Any change in the message produces a different hash, so it no longer matches what was signed — the same avalanche effect from Stage 3, now used to catch tampering.
Final Case Review
Match each real-world scenario to the technique that solves it. This is exactly the judgment call you'll be expected to make on the job — and on the exam.
| Technique | Best for | Key limitation |
|---|---|---|
| Symmetric (AES) | Bulk data, fast, at-scale encryption | Requires secure key exchange first |
| Asymmetric (RSA) | Key exchange, small secure messages | Slow; limited message size |
| Hashing (SHA-256) | Verifying data integrity | Doesn't prove who sent it, or hide it |
| Digital Signature | Authentication + integrity + non-repudiation | Doesn't provide confidentiality by itself |
Lab Complete
Nice work. Here's your final case summary.