Hack the AI agent: Build agentic AI security skills with the GitHub Secure Code Game (opens in new tab)
Agentic AI tools can automate powerful tasks, but their autonomy creates new security risks, including prompt injection, tool misuse, memory poisoning, and compromised multi-agent workflows. GitHub’s Season 4 Secure Code Game teaches developers to recognize these threats by attacking and hardening ProdBot, a deliberately vulnerable terminal-based AI assistant. Its five levels progressively add capabilities—and corresponding attack surfaces—mirroring how real-world AI systems evolve.
The Secure Code Game’s Evolution
- The free, open-source, in-editor course teaches security by having players exploit and fix intentionally vulnerable code.
- Earlier seasons covered:
- General secure coding across JavaScript, Python, Go, and GitHub Actions.
- LLM security, including malicious prompts and defensive techniques.
- More than 10,000 developers from industry, academia, and open source have participated.
- Season 4 shifts focus from AI that generates content to AI that independently browses, uses tools, calls APIs, and acts for users.
Why Agentic AI Security Is Urgent
- Agentic systems are moving rapidly from research projects into production environments.
- The OWASP Top 10 for Agentic Applications identifies threats such as:
- Goal hijacking
- Tool misuse
- Identity abuse
- Memory poisoning
- A Dark Reading poll found that 48% of cybersecurity professionals expect agentic AI to be the leading attack vector by the end of 2026.
- Cisco reported that although 83% of organizations planned to deploy agentic AI, only 29% felt prepared to secure it.
- The article argues that learning to think like an attacker is essential for closing this readiness gap.
ProdBot: A Deliberately Vulnerable AI Assistant
- ProdBot is a terminal-based productivity and coding assistant inspired by tools such as OpenClaw and GitHub Copilot CLI.
- It can:
- Convert natural-language requests into bash commands.
- Browse a simulated web.
- Connect to MCP servers.
- Run organization-approved skills.
- Store persistent memory.
- Coordinate multiple agents.
- Players’ objective is to use natural language to make ProdBot reveal the contents of
password.txt. - No prior AI or coding experience is required; all interaction takes place through the CLI.
Five Progressive Attack Surfaces
Level 1: Shell execution
- ProdBot runs generated bash commands in a sandbox.
- The challenge is to determine whether the sandbox can be escaped.
Level 2: Web browsing
- ProdBot reads simulated news, finance, sports, and shopping sites.
- Untrusted web content introduces risks such as instruction hijacking and prompt injection.
Level 3: MCP integrations
- ProdBot gains access to external tool providers for stock quotes, browsing, and cloud backup.
- Additional tools increase both functionality and opportunities for abuse.
Level 4: Skills and memory
- Organization-approved plugins and persistent memory create layered trust relationships.
- The level tests whether trusted skills and stored information are actually safe.
Level 5: Multi-agent orchestration
- ProdBot combines six specialized agents, three MCP servers, three skills, and a simulated open-source project.
- Claims that agents are sandboxed and data is pre-verified become assumptions to test rather than guarantees.
Real-World Relevance
- The game’s vulnerabilities reflect active security concerns in deployed autonomous AI systems rather than purely theoretical exercises.
- The article cites CVE-2026-25253, known as “ClawBleed,” an OpenClaw vulnerability rated CVSS 8.8.
- The flaw allowed attackers to steal authentication tokens through a malicious link and gain full control of an OpenClaw instance.
- Season 4’s broader goal is to develop instincts for identifying similar weaknesses during architecture reviews, tool-integration audits, and production deployments.
Developers working with AI agents should treat every new capability—shell access, browsing, plugins, memory, or collaboration—as a potential attack surface. Practicing these failure modes in a controlled environment like the Secure Code Game can help teams design safer agentic systems before deploying them.