Defensive Security
Harden systems, detect intrusions, and respond to incidents before damage is done. Where offensive security breaks things, defensive security builds the walls, cameras, and alarm systems — and trains the people who monitor them.
SIEM & Log Analysis
Splunk, ELK Stack — aggregating logs, detecting anomalies, and finding attacker activity in the noise.
Incident Response
Contain, eradicate, and recover from security breaches. Playbooks, forensics, and post-mortem analysis.
Threat Modelling
STRIDE, attack trees, and MITRE ATT&CK — systematically identifying what could go wrong before it does.
System Hardening
Reducing attack surface. Firewall rules, least-privilege access, patch management, and CIS benchmarks.
SOC Analyst Skills
Security Operations Centre fundamentals. Alert triage, threat hunting, and the first line of organisational defence.
Interview Scenarios
Real-world questions for Defensive Security
1What is your immediate containment playbook if a web server shows active Cobalt Strike beaconing to an external IP?
ps -ef --forest) and terminate malicious PIDs. 4. Credential Invalidation: Revoke all service account tokens and SSH keys active on that host. 5. Firewall Lockdown: Block C2 destination IP/domain at perimeter firewall.2How do you configure UFW / IPTables to harden a Linux production server so only SSH (port 22) and HTTPS (port 443) are accessible?
sudo ufw default deny incoming; sudo ufw default allow outgoing; sudo ufw allow 22/tcp; sudo ufw allow 443/tcp; sudo ufw enable. IPTables: iptables -P INPUT DROP; iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT; iptables -A INPUT -p tcp --dport 22 -j ACCEPT; iptables -A INPUT -p tcp --dport 443 -j ACCEPT.3How do you construct a SIEM query in Splunk / ELK to detect SSH brute-force attacks followed by a successful login?
index=os (sourcetype=syslog OR EventCode=4625 OR EventCode=4624) | stats count(eval(action="failure")) as Failures count(eval(action="success")) as Successes by src_ip, user | where Failures > 50 AND Successes > 0. This flags IPs that triggered over 50 failed logins before achieving authentication.4What is the step-by-step incident response playbook when ransomware starts encrypting network file shares?
vssadmin delete shadows). 3. Identify Ransomware Strain: Upload ransom note and sample encrypted header to ID Ransomware to identify extension and potential decrypters. 4. Restoration: Re-image compromised machines and restore data from isolated off-site backups.5How do you harden an SSH server configuration according to CIS Security Benchmarks?
/etc/ssh/sshd_config: Set PermitRootLogin no, PasswordAuthentication no, MaxAuthTries 3, ClientAliveInterval 300, ClientAliveCountMax 0, disable X11Forwarding, enforce SSH Protocol 2, and restrict login access to specific groups using AllowGroups sshusers.6How do you apply the STRIDE Threat Model to a modern web API ecosystem?
7How do you detect Pass-the-Ticket and Golden Ticket attacks in Active Directory Domain Controller logs?
krbtgt account password twice sequentially.8How do you perform memory forensics using Volatility to detect hidden DLL injection in a compromised Windows process?
volatility -f memory.vmem windows.pslist to view active processes. 2. volatility -f memory.vmem windows.malfind to scan memory regions for PAGE_EXECUTE_READWRITE permissions containing MZ headers or injected shellcode. 3. Dump the process executable using windows.dumpfiles --pid for YARA scanning.9How do you guarantee Log Integrity so an attacker who gains root access cannot wipe auth logs to cover their tracks?
@syslog-server:6514) to a dedicated, write-only centralized SIEM server. Append-only permissions and SIEM immutability prevent an attacker from modifying historical logs even if local /var/log/auth.log is deleted.