For graph and advanced features, download the full Intel Codex Vault and open it in Obsidian.
CTF Getting Started Guide
What is CTF?
Capture The Flag (CTF) is a cybersecurity competition where participants solve security-related challenges to find hidden "flags" (usually text strings in a specific format like flag{this_is_a_flag}).
Types of CTF Events
- Jeopardy Style: Individual challenges in different categories
- Attack-Defense: Teams attack each other's systems while defending their own
- King of the Hill: Compete for control of a shared system
Common Categories
🔐 Cryptography
- Description: Decrypt ciphers, break encryption, analyze cryptographic protocols
- Common Challenges: Caesar cipher, RSA, AES, hash functions
- Skills Needed: Mathematics, pattern recognition, cryptographic theory
🌐 Web Exploitation
- Description: Find vulnerabilities in web applications
- Common Challenges: SQL injection, XSS, CSRF, directory traversal
- Skills Needed: HTML/CSS, JavaScript, HTTP protocols, web security
💾 Binary Exploitation / Pwn
- Description: Exploit vulnerabilities in compiled programs
- Common Challenges: Buffer overflows, format string bugs, ROP chains, stack/heap overflows
- Skills Needed: Assembly language, debugging, memory management
🕵️ Reverse Engineering
- Description: Analyze programs to understand their functionality
- Common Challenges: Decompiling, anti-debugging, obfuscation
- Skills Needed: Assembly language, debuggers, static analysis
🔍 Forensics
- Description: Analyze digital evidence and recover hidden data
- Common Challenges: File recovery, steganography, memory dumps, PCAP analysis
- Skills Needed: File formats, hex analysis, data recovery
🔧 Misc
- Description: Challenges that don't fit other categories
- Examples: OSINT, programming puzzles, steganography, network analysis
🧭 Newer Categories
Many events now add categories beyond the classic six. The vault already has deep-dive SOPs for each; first moves are in Methodology → Newer Categories.
| Category | Typical challenges | Go deeper |
|---|---|---|
| AI / LLM | Prompt injection, system-prompt or tool abuse, getting a guarded model to reveal a flag | [AI Red-Team Field Guide](../sop-ai-vulnerability-evasion-guide) |
| Blockchain / Web3 | Vulnerable smart contracts on a challenge chain; on-chain tracing | [Smart Contract Audit](../sop-smart-contract-audit), [Blockchain Investigation](../sop-blockchain-investigation) |
| Cloud | Misconfigured storage, over-permissive IAM, metadata endpoints | [Cloud Pentest](../sop-cloud-pentest), [Cloud Forensics](../sop-cloud-forensics) |
| Hardware / RF | Radio captures to decode, firmware images to unpack | [Wireless & RF](../sop-wireless-rf-pentest), [Firmware RE](../sop-firmware-reverse-engineering) |
| Mobile | APKs/IPAs hiding keys, logic or flags | [Mobile Security](../sop-mobile-security) |
| OSINT | Geolocating photos, pivoting on domains, DNS and WHOIS | [Image & Video OSINT](../sop-image-video-osint), [Web, DNS & WHOIS OSINT](../sop-web-dns-whois-osint) |
These SOPs are written for authorized real-world work. In a CTF, the challenge scope is your authorization: never attack the platform's own infrastructure or other players.
Quick Start Steps
1. Setup Your Environment
- VM: Ubuntu/Debian + Exegol, Kali Linux, Parrot Security
- Essential Tools: See CTF Tools
2. Learn the Basics
- Understand common file types and encodings
- Learn basic command-line tools (cat, grep, strings, file)
- Practice with hex editors and network tools
- Study basic cryptography and web security
3. General Methodology
See CTF_Challenge_Methodology for detailed approach.
Basic workflow:
- Read the challenge description carefully
- Download and examine all provided files
- Identify the category and likely vulnerability
- Research relevant techniques and tools
- Try common exploits and encodings
- Document your process
- Submit the flag
4. Team Coordination (Optional)
If competing with a team, see CTF_Team_Coordination for:
- Role assignments and communication setup
- Challenge tracking and time management
- Crisis protocols and collaboration templates
5. Document Your Work
- Keep detailed notes of what you tried
- Screenshot important findings
- Write writeups after solving challenges
- Start from the writeup template; structure and tips in Writeups Index
Essential Skills to Develop
Technical
- Command-line proficiency (Linux/Windows)
- Programming (Python, C, JavaScript)
- Networking fundamentals (TCP/IP, HTTP, DNS)
- Assembly language basics (x86, ARM)
- Web technologies (HTML, SQL, JavaScript)
Problem-Solving
- Pattern recognition
- Lateral thinking
- Persistence and patience
- Research skills
- Trial and error mindset
Common Beginner Mistakes
- ❌ Giving up too quickly - Many challenges require persistence
- ❌ Not reading the description - Often contains critical hints
- ❌ Ignoring file metadata - Run
file,strings,exiftoolon everything - ❌ Skipping documentation - Write notes even when you fail
- ❌ Working in isolation - Join communities, ask for hints (not solutions)
- ❌ Ignoring the flag format - Match the event's exact format; some events cap or rate-limit wrong submissions
🤖 AI-Assisted Solving
- Rules first - Some CTFs ban or restrict LLM use, others allow it. Read the event's rules before you start; if unclear, ask the organizers.
- Good uses - Explaining unfamiliar code, assembly or crypto math; rubber-ducking a stuck approach.
- Verify everything - LLMs invent tool flags, misread disassembly and get math confidently wrong. Test every claim before relying on it.
- Mind the data - If the rules forbid it, don't paste live-event challenge files, flags or infrastructure details into third-party services.
- Write your own writeup - The reasoning should be yours; that's where the learning sticks.
Resources
Practice Platforms
| Platform | Best for |
|---|---|
| CyLab Security Academy (formerly picoCTF.org) [verify 2026-12-01] | Beginners - free CMU platform; self-paced CTF challenges and live competitions |
| OverTheWire | Wargames over SSH - Linux basics (Bandit), web (Natas), binary (Narnia, Behemoth) |
| Hack The Box | Vulnerable machines plus category challenges |
| TryHackMe | Guided learning paths, labs run in your browser |
| CryptoHack | Cryptography - from encodings to RSA and elliptic curves |
| pwn.college | Binary exploitation and systems security, structured course |
| PortSwigger Web Security Academy | Web vulnerabilities - free labs built around Burp Suite |
| CTFtime | Live event calendar, team rankings and writeup archive |
More platforms: Tired of Boring Security Training? Try These 20+ Engaging CTF Platforms
Communities
- Discord servers for major CTF platforms
- Reddit: r/securityCTF, r/netsec
- CTF team channels
Learning
- LiveOverflow YouTube - Binary exploitation
- IppSec YouTube - HackTheBox walkthroughs
- Trail of Bits CTF Guide
Sample Writeups
Worked examples - read them after attempting a similar challenge. Template and structure: Writeups Index.
- Crypto - Caesar cipher
- Web - SQL injection
- Reverse Engineering - crackme
- Binary exploitation - ret2win
- Forensics - steganography
Tips for Success
- ✅ Start with easy challenges and build confidence
- ✅ Master one category before spreading too thin
- ✅ Read writeups AFTER attempting challenges
- ✅ Build a personal toolkit and cheat sheets
- ✅ Participate in live CTFs for experience
- ✅ Join or form a team for collaborative learning
- ✅ Focus on understanding, not just solving
Where to Next
| Need | Page |
|---|---|
| A step-by-step approach to any challenge | [Challenge Methodology](../CTF_Challenge_Methodology) |
| What to install and when to use it | [Tools](../CTF_Tools) |
| Commands and payloads at a glance | [Cheat Sheets](../CTF_Cheat_Sheets) |
| Playing as a team | [Team Coordination](../CTF_Team_Coordination) |
| Worked solutions and a writeup template | [Writeups](../Writeups-Index) |
| A blank writeup to fill in | [Writeup Template](../Writeup-Template) |
Navigation: 🏠 Home | 📖 Methodology | 🛠️ Tools | 📋 Cheat Sheets | 🤝 Team | 📝 Writeups
Last Updated: 2026-12-01