Attack and Defense
How a class of attack works, how it is detected, and how it is closed, written for the people running the systems.
Attack and Defense explains one class of attack per article, at the level the people running the systems need: how it works, what it leaves in the logs, and which controls close it. Every piece is written from the defender's side and cites the references a security team already works from (OWASP, MITRE ATT&CK, CISA and NIST). None of them is a recipe for attacking anyone.
There are six so far. SQL injection for people who write queries shows how a string-built query lets input change the SQL, the parameterised fix, and a regression test that proves it. Credential stuffing shows the shape that reused passwords leave in an authentication log and ends with a rate limiter you can adapt. MFA that fails explains the relay page that captures a one-time code and the session behind it, the push prompts repeated until someone approves one, and the controls that hold against both. Session tokens picks up from there: a stolen cookie is a logged-in user, and an idle timeout does not bound the thief. The ransomware kill chain maps eight stages of an intrusion to ATT&CK mitigations and CISA's guide, with a script that shows which stages your controls leave open. SPF, DKIM and DMARC explains why alignment is the part that stops spoofing and what the May 2026 DMARC standard changed.
If you run a login page, read credential stuffing first, then the MFA-phishing and session-token pieces, in that order; together they follow one chain from a leaked password to a hijacked session. The credentials themselves are covered in Passwords and Auth. Planned for this section: DNS security basics, supply-chain attacks on package registries seen from the defender's side, and a backup strategy that survives ransomware.
-
SPF, DKIM and DMARC explained, with what RFC 9989 changed
What SPF, DKIM and DMARC each check, why alignment is the part that stops spoofing, what the May 2026 DMARC standard changed, and a script to read your records.
-
Session tokens: what a stolen cookie can do, and what limits it
A stolen session cookie is a logged-in user. Why an idle timeout does not bound the thief, and what absolute timeouts, rotation and device binding change.
-
Ransomware kill chain mapped to the controls that interrupt each step
Eight stages of a ransomware intrusion mapped to MITRE ATT&CK v19.2 mitigations and CISA's guide, with a script that shows which stages your controls leave open.
-
SQL injection for people who write queries: mechanism, fix, test
How a string-built query lets input change the SQL, why parameterised queries end it, how often CISA's exploited record lists it, and a test to run.
-
Credential stuffing: how it works, how logs show it, how to slow it
Why reused passwords from old breaches become logins on your site, the shape the attack leaves in your auth logs, and the OWASP and ATT&CK controls that limit it.
-
MFA that fails: relay phishing, push bombing, and what holds
How a relay phishing page and repeated push prompts each get past MFA, what ATT&CK, CISA and NIST say, and the settings and the factor that hold.