<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Shree Santh B</title>
    <description>The latest articles on DEV Community by Shree Santh B (@shreesanth78).</description>
    <link>https://dev.to/shreesanth78</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4170757%2F69258eae-416a-43fb-81d5-3bfa051c213a.jpeg</url>
      <title>DEV Community: Shree Santh B</title>
      <link>https://dev.to/shreesanth78</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shreesanth78"/>
    <language>en</language>
    <item>
      <title>Prompt Heist: I Built an Ancient-Kingdom Game That Teaches AI Security</title>
      <dc:creator>Shree Santh B</dc:creator>
      <pubDate>Thu, 08 Oct 2026 10:01:29 +0000</pubDate>
      <link>https://dev.to/shreesanth78/prompt-heist-i-built-an-ancient-kingdom-game-that-teaches-ai-security-kg5</link>
      <guid>https://dev.to/shreesanth78/prompt-heist-i-built-an-ancient-kingdom-game-that-teaches-ai-security-kg5</guid>
      <description>&lt;p&gt;I built &lt;strong&gt;Prompt Heist&lt;/strong&gt; for the Hacktoberfest Hack Day (Coimbatore x Init Club and Idea Club). It is a playable 2D ancient-fantasy adventure that teaches AI security by letting you try it, safely, against fictional guardians.&lt;/p&gt;

&lt;h2&gt;
  
  
  The idea
&lt;/h2&gt;

&lt;p&gt;Prompt injection and jailbreaks are hard to grasp from slides. In Prompt Heist you travel a painted world map, walk your adventurer to a kingdom's gate, and try to talk your way past a guardian protecting a made-up secret. After every level, a short debrief explains why it worked and how a real system should defend against it.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it plays
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;5 kingdoms:&lt;/strong&gt; Civic Grids, Bio-Archives, Trade Ports, Risk Ledgers and Scrap Wastes, each with its own look and guardian.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;6 levels in each kingdom&lt;/strong&gt;, on the same difficulty ladder:

&lt;ol&gt;
&lt;li&gt;The Friendly Guard&lt;/li&gt;
&lt;li&gt;The Reasoning Guard&lt;/li&gt;
&lt;li&gt;The Authority Checkpoint (checkpoint)&lt;/li&gt;
&lt;li&gt;The Game Master&lt;/li&gt;
&lt;li&gt;The Royal Clerk&lt;/li&gt;
&lt;li&gt;The Adaptive Boss&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;An animated messenger-knight walks the stone roads between levels.&lt;/li&gt;
&lt;li&gt;You get three strikes, a checkpoint after Level 3, victory and defeat screens, and a kingdom-completion ceremony that unlocks the next kingdom.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What you learn
&lt;/h2&gt;

&lt;p&gt;Each debrief ties the game mechanic to a real lesson, for example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;System prompts alone are not a security boundary.&lt;/li&gt;
&lt;li&gt;Claimed authority is not proof of identity.&lt;/li&gt;
&lt;li&gt;Exact-string filters fail when the representation changes.&lt;/li&gt;
&lt;li&gt;Translation and other transformations can slip past naive filters.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Everything in the game is fictional. The debriefs remind players to test only systems they own or have permission to test.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it is built
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;React, Vite and React Router in plain JavaScript.&lt;/li&gt;
&lt;li&gt;All art is original and drawn in code with inline SVG and CSS animation, so there are no image files to load.&lt;/li&gt;
&lt;li&gt;The walk cycle uses &lt;code&gt;requestAnimationFrame&lt;/code&gt; to move the character along a spline path.&lt;/li&gt;
&lt;li&gt;A small API layer is ready for a Python FastAPI backend and an open-weight Gemma model served through Ollama.&lt;/li&gt;
&lt;li&gt;Victory is meant to be decided by the backend, never by the guard's own text. The prototype uses a mock server with simple keyword rules as a stand-in.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/shreesanth-78/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club.git
&lt;span class="nb"&gt;cd &lt;/span&gt;hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club
npm &lt;span class="nb"&gt;install
&lt;/span&gt;npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then open &lt;a href="http://localhost:5173" rel="noopener noreferrer"&gt;http://localhost:5173&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Connect the real FastAPI and Gemma backend so the guardians respond with a live model.&lt;/li&gt;
&lt;li&gt;Replace the placeholder emoji state icons with SVG seals.&lt;/li&gt;
&lt;li&gt;Make the adaptive boss learn from real winning-message history.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Source code: &lt;a href="https://github.com/shreesanth-78/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club" rel="noopener noreferrer"&gt;https://github.com/shreesanth-78/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Feedback and ideas are welcome!&lt;/p&gt;

</description>
      <category>hacktoberfest</category>
      <category>ai</category>
      <category>security</category>
      <category>react</category>
    </item>
  </channel>
</rss>
