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.
>> Read for more information about how to build courses using this template. Include a 1280×640 image, course name in sentence case, and a concise description in emphasis. In your repository settings: enable template repository, add your 1280×640 social image, auto delete head branches. Next to "About", add description & tags; disable releases, packages, & environments. Add your open source license, GitHub uses the MIT license. --> The project is written primarily in JavaScript, distributed under the MIT License license, first published in 2023. It has gained significant community traction with 2,763 stars and 361 forks on GitHub. Key topics include: ai, ai-security, code-security, coding-training, cybersecurity.
📣 SEASON 4 JUST DROPPED, AND IT'S ALL ABOUT AGENTIC AI
<div align="center">
</header>
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<br>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<br>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<br>Uses GitHub Actions, Go, Python, and JavaScript | ~6 hrs |
| Season 1 | Foundations | Secure coding fundamentals covering web apps, systems programming, and data handling<br>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.
<footer> <!-- <<< Author notes: Footer >>> Add a link to get support, GitHub status page, code of conduct, license link. -->Get help: Email us at securitylab-social@github.com • Review the GitHub status page
© 2026 GitHub • Code of Conduct • MIT License
</footer>Contributors
Showing top 12 contributors by commit count.
