ACCESS GRANTED

press any key to skip

// you have arrived in

NEO YUSUF CITY

15 districts · 0/0 flags captured · population: hackers

ARIA // CITY AIBooting city systems…click for more ▸
hover a district · click to travel

// city directory

Where do you want to go?

NEO YUSUF CITY ✦ SQLi ✦ XSS ✦ CSRF ✦ SSRF ✦ CLICKJACKING ✦ RACE CONDITIONS ✦ BUFFER OVERFLOW ✦ PHISHING ✦ FIREWALLS ✦ CSP ✦  NEO YUSUF CITY ✦ SQLi ✦ XSS ✦ CSRF ✦ SSRF ✦ CLICKJACKING ✦ RACE CONDITIONS ✦ BUFFER OVERFLOW ✦ PHISHING ✦ FIREWALLS ✦ CSP ✦ 

// AI CORE · neural archive

Fifteen ways software breaks

Click a card to watch the attack play out as an animated sequence diagram, with the vulnerable code, the fix, and the defenses that actually work.

// SENTINEL SPIRE · threat landscape

Attacks never sleep

A simulated security operations dashboard. Drag the globe to spin it. Every arc is randomly generated to show the kind of noise defenders watch all day. None of it is real traffic.

SIMULATED drag to rotate
Event feed live sim
    Events by type
    0events
    0blocked
    0%block rate

    // CHAIN BRIDGE · the cyber kill chain

    Anatomy
    of an attack→

    Lockheed Martin's seven-phase model of an intrusion. Break any link and the attack fails.

    // THE DISTRICTS · hands-on labs

    Capture the flags

    Twelve districts, each with a mission: offense, crypto and blue-team defense. Capture flags to rank up; your progress is saved in this browser. Everything is simulated in this page and nothing is sent anywhere.

    WEB · CWE-89

    SQL Injection

    This login runs one SQL query against a real (tiny) database engine inside this page. The app logs you in as the first row the query returns. Table: users(id, name, pass, role).

    ⚑ Mission
      Payloads:
      Query sent to the database
      Rows returned
        Under the hood: how pros find and fix SQLi
        Why parameters are immune

        The driver sends the SQL text and the values separately. In PostgreSQL's protocol that's three messages: Parse, Bind, Execute. The query plan is fixed before your input arrives, so input can never change its structure.

        Blind SQLi

        No data or errors on the page? Attackers ask yes/no questions like ' AND SUBSTRING(pass,1,1)='T'-- and watch whether the page changes, or use delays such as SLEEP(5). Tools like sqlmap automate thousands of these requests.

        UNION-based extraction

        ' UNION SELECT number, cvv FROM cards-- appends rows from a different table to the results, as long as the column counts match.

        Second-order

        Input is stored safely, then later concatenated into a different query. The injection fires on a page far from where it was entered.

        Not just login forms

        Search boxes, sort parameters, cookies and HTTP headers are all inputs. ORDER BY columns can't be bound as parameters, so allowlist them.

        WEB · CWE-79

        Cross-Site Scripting

        Your comment is inserted into every visitor's page. The lab shows the DOM their browser would build. It's parsed in an inert document, so nothing actually runs here.

        ⚑ Mission
          Payloads:
          HTML the server sends to the victim
          What the victim's browser builds (DOM)
            Under the hood: the three kinds of XSS and how CSP stops them
            Stored

            The payload is saved (comments, profiles, product reviews) and served to everyone who views the page. This lab is stored XSS, the most dangerous kind.

            Reflected

            The payload rides in a link, such as /search?q=<script>…, and the server echoes it back. The victim has to click the attacker's link.

            DOM-based

            The page's own JavaScript writes attacker-controlled data (like location.hash) into innerHTML. The server never sees the payload.

            Context matters

            HTML body, attribute, JavaScript string and URL each need different encoding. Encoding for the wrong context still leaves a hole.

            Content-Security-Policy

            script-src 'self' blocks inline scripts and event handlers like onerror. Nonces or hashes can allow specific scripts. It's a seatbelt, not a substitute for encoding.

            HttpOnly isn't enough

            HttpOnly hides cookies from JavaScript, but injected script can still send requests as the user from inside the page.

            MEMORY · CWE-121

            Stack Buffer Overflow

            A C function copies your name into a 16-byte stack buffer with strcpy, which never checks length. Watch the x86-64 stack frame byte by byte as you type.

            ⚑ Mission
              
                            
                            
              Inputs:
              Stack frame of greet(): low addresses → high
              bufcanarysaved rbpreturn addressoverwritten
                Under the hood: endianness, ROP and the mitigation arms race
                Why bytes look reversed

                x86-64 is little-endian: the least significant byte sits at the lowest address. 0x0000555555555189 is stored as 89 51 55 55 55 55 00 00.

                Stack layout

                Locals sit below the saved frame pointer and the return address, so writing upward past buf runs straight into them.

                NX/DEP → ROP

                With a non-executable stack, attackers chain existing code snippets ending in ret (“gadgets”) into a program. That's return-oriented programming.

                ASLR + PIE

                Code and stack addresses are randomized on every run, so attackers first need an information leak to learn where things are.

                Shadow stacks

                Hardware features like Intel CET keep a protected copy of return addresses and kill the process if they don't match.

                The real fix

                Bounds-checked copies (snprintf, strlcpy) or memory-safe languages remove the bug class entirely.

                CRYPTO

                Hashing & Cracking

                A hash turns any input into a fixed-size fingerprint. It's one-way, so attackers can't reverse it; they guess and compare. All hashes here are real (Web Crypto).

                ⚑ Mission
                  1 · Avalanche effect
                  Hash of A
                  Hash of B (changed hex digits highlighted)
                  Bit-by-bit difference
                  2 · Crack a leaked hash

                  This unsalted SHA-256 hash leaked from a breached database. Guess the password, or run a wordlist attack the way real crackers do.

                  waiting…
                  Not cracked yet
                  Under the hood: why fast hashes are bad for passwords
                  Speed is the enemy

                  SHA-256 is built to be fast. A single modern GPU computes billions per second, so a stolen database of unsalted SHA-256 hashes falls quickly.

                  Salts

                  A unique random salt per user means identical passwords get different hashes, and precomputed lookup tables (rainbow tables) become useless. Each user has to be attacked separately.

                  Slow, memory-hard hashing

                  bcrypt, scrypt and Argon2 are deliberately slow and tunable. Argon2 also needs lots of memory, which blunts GPU and ASIC cracking.

                  Broken hashes

                  MD5 and SHA-1 have practical collision attacks (SHAttered, 2017), so don't use them for signatures or integrity.

                  AUTH

                  Password Strength

                  Estimates an offline brute-force attack at 10 billion guesses per second (a GPU rig against a fast, unsalted hash). It runs entirely in this page, but don't type a password you really use.

                  ⚑ Mission
                    Try:
                    Average time to crack–
                    0bits of entropy
                    0charset size
                    0length
                      Under the hood: how accounts actually get broken into
                      Credential stuffing

                      Most account takeovers don't crack anything. Attackers replay email/password pairs leaked from other sites, which is why reuse is the real killer.

                      Password managers

                      A unique random password per site makes stuffing useless. You only need to remember one strong passphrase.

                      MFA

                      A second factor stops most stolen-password logins. Phishing-resistant options (passkeys, security keys) also stop fake login pages.

                      Breach checks without leaking

                      Have I Been Pwned's range API takes only the first 5 hex characters of a password's SHA-1 hash and returns all matching suffixes, so the full password never leaves your machine.

                      DEFENSE · SOCIAL ENGINEERING

                      Phishing Detector

                      Most breaches start with a message, not an exploit. Inspect each message in this inbox and decide: legit or phish? Hover links to see where they really lead. Every brand and domain here is fictional.

                      ⚑ Mission
                        Inbox
                          Under the hood: how to spot phishing every time
                          Read the real domain

                          What matters is the registered domain at the end of the hostname: in novabank.example.verify-login.example the site is verify-login.example. Watch for lookalikes like c1ouddrive, or rn posing as m.

                          Hover before you click

                          Link text can say anything. The status bar, or a long-press on mobile, shows where the link really goes.

                          Pressure is the payload

                          Urgency, fear, secrecy and authority (“the CEO needs this now”) are designed to make you skip checking.

                          Verify out of band

                          An unexpected request for money, codes or credentials? Contact the person or company through a channel you already trust, never the one in the message.

                          Phishing-resistant login

                          Passkeys and hardware security keys are bound to the real domain, so a fake login page can't use them even if you're fooled.

                          DEFENSE · SOC ANALYSIS

                          Log Hunter

                          You're on shift at the Log Citadel. These are 20 lines from the web server's access log. Click every line that shows malicious activity, then check your analysis. grep filters the view.

                          ⚑ Mission
                            Top talkers (requests per IP)
                              Under the hood: what SOC analysts look for
                              Payloads in URLs

                              URL-decode suspicious parameters: %27 is a quote and %3C is <. Quotes, angle brackets and dot-dot-slashes in parameters are classic probe signs.

                              Tool fingerprints

                              Scanners often announce themselves in the User-Agent (sqlmap, zgrab, nikto). Scripts show up as python-requests or curl instead of a browser.

                              Rate and pattern

                              Many failures in seconds from one IP is brute force. Many IPs each trying one password is credential stuffing, which is harder to spot.

                              Failure, then success

                              A 200 right after a burst of 401s is the most important line in the log: the attacker got in.

                              Alert fatigue

                              Not every 404 is an attack. Too many false positives and real alerts start getting ignored.

                              DEFENSE · NETWORK

                              Firewall Gate

                              Nine kinds of traffic hit your servers: four you need and five you don't. Write firewall rules that let the good in and keep the bad out. Rules are checked top to bottom, and the first match wins.

                              ⚑ Mission
                                Rules

                                Port: any or a number. Source: internet, vpn (your admins), internal (your own servers) or any.

                                  Under the hood: real-world firewalls
                                  Stateful filtering

                                  Modern firewalls track connections, so replies to traffic you started are allowed back in automatically. Rules only describe who may start a connection.

                                  Egress filtering

                                  Filtering outbound traffic too stops malware from phoning home and data from leaking out.

                                  Segmentation

                                  Split the network into zones (web, app, database) so one compromised server can't reach everything.

                                  In the cloud

                                  Security groups and network ACLs are the same idea. Misconfigured ones (a database open to 0.0.0.0/0) are among the most common cloud mistakes.

                                  DEFENSE · BROWSER SECURITY

                                  CSP Builder

                                  Attackers injected four things into your page, and someone is trying to frame it. Build a Content-Security-Policy that blocks every attack while your own scripts keep working.

                                  ⚑ Mission
                                    Directives (click to toggle)
                                    Response header you're sending
                                    
                                                
                                    What loads on your page
                                      Under the hood: rolling out CSP for real
                                      Report-only first

                                      Content-Security-Policy-Report-Only reports violations without blocking anything, so you can test a policy on real traffic before enforcing it.

                                      Nonces and hashes

                                      A nonce is random per response. A hash ('sha256-…') allows one exact inline script. Both beat 'unsafe-inline'.

                                      strict-dynamic

                                      'strict-dynamic' lets a trusted, nonced script load the scripts it needs, so you don't have to maintain long host allowlists.

                                      Trusted Types

                                      In Chromium-based browsers, require-trusted-types-for 'script' forces DOM sinks like innerHTML to only accept sanitized values.

                                      CRYPTO · CLASSICAL

                                      Caesar & Frequency Analysis

                                      An intercepted message, encrypted with a Caesar cipher: every letter is shifted by the same secret amount. There are only 25 possible keys, but frequency analysis finds the right one without trying them all.

                                      ⚑ Mission
                                        Intercepted ciphertext
                                        
                                                      
                                                      Your decryption attempt
                                                      
                                        
                                                      
                                        Letter frequencies: your attempt (bars) vs normal English (lines)
                                        • In English, E makes up about 12.7% of letters, then T, A, O, I, N. A simple shift moves those peaks but keeps their shape.
                                        • Slide until the bars line up with the lines. The χ² (chi-squared) score measures how far the bars are from normal English, and the lowest score wins.
                                        • The Arab scholar Al-Kindi described frequency analysis back in the 9th century.
                                        • Modern ciphers like AES are designed so the output looks statistically random, which leaves frequency analysis nothing to grab onto.
                                        DEFENSE · SECURE CODE

                                        Code Review

                                        Six snippets from a pull request at Audit Tower. For each one, click the line with the security bug, then choose the fix that actually works.

                                        ⚑ Mission
                                          Pull request #1337 · 6 files
                                          Proposed fixes
                                          CRYPTO

                                          Encoding ≠ Encryption

                                          Base64, hex and URL-encoding only change how data is written. There's no key, so anyone can reverse them. Attackers see “obfuscated” secrets in apps all the time.

                                          ⚑ Mission
                                            1 · Encoder
                                            2 · Intercepted transmission: decode it
                                            Apply:
                                            
                                                          
                                            Find out what it says. Hint: it's wrapped in three layers.
                                            EncodingReversible by anyone · no keyBase64, hex, URL
                                            EncryptionReversible only with the keyAES-GCM, ChaCha20
                                            HashingNot reversible · guess & compareSHA-256, Argon2
                                            0TCP ports per host
                                            0IPv4 addresses that exist
                                            0bits in a SHA-256 hash
                                            0phases in the kill chain

                                            // BEYOND THE CITY · keep going

                                            Where to level up

                                            OWASP Top 10 ↗

                                            The industry's shortlist of the most critical web application risks.

                                            Web Security Academy ↗

                                            PortSwigger's free, hands-on labs for every bug class on this page.

                                            MITRE CWE ↗

                                            The catalogue behind all those CWE numbers: every weakness, classified.

                                            OverTheWire ↗

                                            Wargames that teach Linux, crypto and exploitation from zero.