Country or region and language

    Choose your country or region and your language.

    Suggested for you

      All countries and regions

        Choose your character

        It shows in the top bar and on your profile. Change it any time.

        Secure coding practice for developers

        TryHackMe and the Web Security Academy are excellent at teaching attacks. A developer's job ends one step later, with code that no longer has the flaw. Our Security Labs practice that last step.

        Prices and features checked 8 November 2026 on each company's own site.

        The short answer

        PortSwigger Web Security Academy
        Start here to understand web vulnerabilities. It is free, covers 31 topics, and its labs test you as an attacker.
        TryHackMe
        Pick it for broad security training, from beginner rooms to network rooms and an attack machine in the browser.
        The Work Gym
        Pick Security Labs if you write code for a living and want to practice the fix: change the code, then prove the attack no longer works.

        Most security practice is written for people who test systems. You get a vulnerable site and a goal: steal the data, become the admin, read the file. That’s how you learn what a flaw looks like from outside. A developer also needs the other half: finding the line that causes it, changing it without breaking the feature, and checking that the attack now fails.

        At a glance

        TryHackMe’s pricing page blocks automated reads, so its price comes from its own comparison page.

        PortSwigger Web Security Academy TryHackMe The Work Gym Security Labs
        What you do Solve labs that “test your skills as a hacker” Work through rooms and learning paths, with an attack machine in the browser Break a feature, fix the code, and prove the fix holds
        Scope 31 web security topics, such as 30 cross-site scripting labs and 16 SQL injection labs Security basics to network rooms and paths 20 labs in Java, Python and TypeScript, mapped to the OWASP Top 10 and CWE
        Free All of it: “100% free” Free rooms, part of the learning paths, and one hour a day of the attack machine The first lab of every path
        Paid A certification, Burp Suite Certified Practitioner, which needs a Burp Suite Professional subscription Premium from $10.50 a month billed yearly, and a higher MAX plan One Course in Application security, $17.99 a month, or All Access, $29.99 a month
        Tools Some labs need a tool such as Burp Suite; the free Community Edition works The AttackBox, in the browser Everything runs in your browser

        The Web Security Academy

        PortSwigger, the company behind Burp Suite, runs the Academy and calls it “free, online web security training.” Each topic explains a class of vulnerability and ends in labs, and the labs are puzzles you solve by attacking a site. Some need a tool to intercept requests, and PortSwigger suggests its free Burp Suite Community Edition. People who solve a new lab first get a place in its Hall of Fame.

        TryHackMe

        TryHackMe teaches security in rooms and learning paths. Free accounts get the free rooms and an hour a day on the AttackBox, the attack machine you use in the browser. Premium opens the beginner paths, with a certificate for each, unlimited AttackBox time, network rooms and faster machines, and 15% off its certifications.

        Their strengths

        Both cover far more security than we do. The Academy alone has more labs on cross-site scripting than our whole catalog has labs. TryHackMe reaches beyond web apps into networks and the wider security field. The Academy is entirely free, and TryHackMe’s Premium plan costs less than either of our plans.

        If you want to work in security testing, start with them.

        The Security Labs approach

        Each of our 20 labs is a small made-up app with one weakness, such as a booking search, a records page or a file upload, in Java, Python or TypeScript. You mark the lines you think are weak, send the attack and watch it work, then fix the code. The checks run every attack again and the feature’s own tests. You pass when every attack fails and the tests still pass.

        The labs are grouped into paths, such as web, API and server, and mapped to the OWASP Top 10 and CWE, so a lab on broken access control names the category it belongs to. Everything, from the app to the data, runs in your browser and is made up.

        For the interview side, the application security course has a timed mock exam on finding the flaw in code, and the Interview Hub has software engineer interviews.

        Sources

        Read on 8 November 2026. Prices change, so check the company's own page before you buy. We refresh this comparison every three months.

        Your Work Gym account

        Save your progress and pick up on another device. Your browser's progress comes with you.

        or

        You can keep practicing without an account.

        Help and feedback

        Ask a question, tell us what is not working, or share an idea. We reply by email.

        What is it about?

        We use it only to reply to you.