Learn to code securely while having fun through our popular open source in-editor experience, designed for developers, students, and anyone curious about security. Get started for free in under 2 minutes, playing right from your browser.
npm install secure-code-game📣 SEASON 4 JUST DROPPED, AND IT'S ALL ABOUT AGENTIC AI
Secure Code Game
Learn to code securely while having fun through our popular open source in-editor experience, designed for developers, students, and anyone curious about security. Get started for free in under 2 minutes, playing right from your browser. Over 10,000 players across industry and academia have already played. Visit gh.io/scg for testimonials and FAQs, and feel free to open a contribution to help make the game better for everyone.
In the latest season, you step inside a fully interactive AI coding assistant that turns natural language into bash commands, browses the web, connects to live data sources, runs org-approved skills, stores persistent memory, and orchestrates multi-agent workflows. Practice securing Agentic Workflows and Multi-Agent Communications as you work through five progressively harder levels. No AI or coding experience needed, just curiosity. Each season is self-contained, so you can jump straight into Season 3 or 4 without covering the earlier ones.
Pathways
🤖 Artificial Intelligence
| Season | Focus | What you'll learn | Duration |
|---|---|---|---|
| Season 4 | Agentic AI | Secure AI agents that execute commands, browse the web, use tools, and coordinate other agents No AI or coding experience needed, just curiosity |
~2 hrs |
| Season 3 | LLM Security | Defend LLM-powered apps through prompt design, input/output handling, and connected data sources No AI or coding experience needed, just curiosity |
~1.5 hrs |
🛡️ Secure Coding
| Season | Focus | What you'll learn | Duration |
|---|---|---|---|
| Season 2 | Multi-Stack | Security across CI/CD, backend services, and web apps with CodeQL Uses GitHub Actions, Go, Python, and JavaScript |
~6 hrs |
| Season 1 | Foundations | Secure coding fundamentals covering web apps, systems programming, and data handling Uses Python and C |
~6 hrs |
Getting started
1. Create your own copy
Click Use this template at the top of this repository, then select Create a new repository. Choose your personal account or an organization as the owner, and we recommend making it public so that it does not use Actions minutes.
2. Open a Codespace
All seasons are configured to run instantly in GitHub Codespaces. Be aware this will count towards your 60 hours of monthly free allowance.
- In your new repository, click the Code button and select Create codespace on main.
- Wait for extensions and background installations to complete. This takes less than three minutes.
- Pick any season from the table above, open its folder, and read the
README.mdto begin.
💡 If a banner asks you to create a virtual environment, dismiss it. You don't need one.
Need help? Email us at securitylab-social@github.com, start a thread in GitHub Discussions, or join us on Slack in the #secure-code-game channel.