Writing
cryptography
6 articles on this subject.
Kerberoasting: any domain user can ask for the crackable hash, and the request looks normal
Kerberoasting turns one ordinary domain account into offline password cracking against every service account with an SPN. What makes it work, why RC4 is the tell, and how to shrink the attack surface with AES, gMSAs and event 4769.
9 min read
SAML signature wrapping and Golden SAML: a valid signature on the wrong assertion
A SAML response can carry a genuine, valid signature and still be a forgery, because the service checks that a signature exists rather than that it covers the assertion it trusts. That gap is signature wrapping. Golden SAML is its post-compromise cousin. Here are the real CVEs, a lab, and the verification logic that closes both.
9 min read
CERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate is not corruption, and verify=False is not a fix
CERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate means no path to a trusted root. The five real causes, and why verify=False is not a fix.
13 min read
ECB byte-at-a-time: recovering a secret you are never shown
If an application encrypts your input concatenated with a secret, and does it in ECB mode, you can extract that secret one character at a time. A complete walkthrough with runnable code. The clearest demonstration of why ECB is not encryption.
7 min read
Encrypted is not authenticated: padding oracles, ViewState, and why leaked machine keys became a 2025 problem
CBC without a MAC lets an attacker decrypt and forge ciphertext using nothing but the server's error behaviour. The mechanism from first principles, the Telerik and ASP.NET cases, and the one rule that removes the class.
7 min read
JWT: alg confusion, kid injection, and the day Java accepted a signature of zero
A JSON Web Token is only as good as the verification code. Five failure modes with concrete examples, including CVE-2022-21449, where an all-zero ECDSA signature validated against any key on Java 15 through 18.
9 min read