Posts
-
Incident journal: events and experiences
Working notes from investigations and detection engineering, each entry mapped to a phase of the NIST incident response lifecycle.
-
Reading TLS certificates with openssl
What a certificate and its chain are, how to pull them off a live server and read them with openssl, a tested script that warns before certificates expire, a practice CA to experiment on, and the mistakes that make openssl give the wrong answer.
-
auditd: who did what
How the Linux audit framework records file changes and privileged commands, a starter rule set to copy, how to read the results with ausearch and aureport, and what to watch for with log size, noise and locked rules.
-
TOTP: the six digits behind two-factor login
How an authenticator app turns a shared secret and the clock into a six-digit code, a working implementation checked against the RFC test vectors, what a server has to get right when it checks one, and the attack the codes cannot stop.
-
systemd service hardening: sandboxing what you already run
How to lock down a systemd service with the sandboxing directives that ship in the box, how to measure the result and check it is live, and where it sits next to a firewall and a hardened SSH setup.
-
fail2ban: the lockouts iptables doesn't do
fail2ban's model of filters, jails and actions, the minimum useful config, how to confirm it is watching the right log, and where it sits beside iptables and a hardened SSH setup.
-
iptables: building rules that make sense
How iptables passes packets through tables and chains, a default-deny baseline built from scratch, and the ordering mistakes that make good rules do nothing.
-
Hardening SSH: the defaults worth changing
The sshd settings that most reduce the attack surface of a Linux host's front door, what each one actually does, and how to apply them without locking yourself out.
-
Passive OSINT: mapping an attack surface before touching anything
How passive reconnaissance with open source intelligence reveals more than most people expect without sending a single packet to the target, and what a defender should do with that.
-
Watching the wire with tcpdump
Using tcpdump to capture, filter and read live network traffic from the command line, and where the tool and its filter language came from.
-
Rootless, immutable and open: rethinking the modern stack
Where rootless containers, immutable operating systems and open source software meet, why the three together are becoming the new baseline, and what each still leaves open.
-
Checking a Linux host for rootkits with chkrootkit
What a rootkit attacks, how chkrootkit looks for the known ones, why its results need a second opinion, and how to run it on a schedule.
-
Reading logs for the first ten minutes
A Python log analyzer that reads SSH and web server logs and flags brute-force attempts, scan traces and probes of restricted URLs, and what a log can and cannot see.
-
Removing addresses from an allow list with Python
A short Python script that reads a text allow list, removes a set of unauthorized IPs and writes the cleaned list back, and what it would need before it controlled anything real.
-
Proving a file is unchanged: hashing with CertUtil
Generating and comparing file hashes with CertUtil on Windows 11 LTSC IoT, what a matching digest proves, and what it cannot.
-
Closing port 445: SMB, Windows Firewall and lateral movement
Why SMB on port 445 is the door worms walk through, how a host-based Windows Firewall rule closes it, and how to check from outside that the rule holds.
-
Credentials in the clear: what plain HTTP gives away
A Wireshark capture on Wi-Fi that turned up a username and password token sent over plain HTTP, and why TLS is the only defence that travels with the request.
-
The TCP handshake, read off the wire
Capturing a TCP three-way handshake in Wireshark, reading what each packet carries, and what a broken handshake tells you about a network.
-
SSH and DNS in a quiet capture
Reading a packet capture that holds an encrypted SSH session and plain DNS lookups side by side, and what each one leaves visible.
-
Nmap and the services nobody meant to run
A SYN, version and OS scan of a Windows machine on a home network, what Nmap found listening, and why the first machine worth scanning is your own.