Day 1 of 960 minCipher CadetHands-on lab
Day 1: What Kiro Is and How It Works
Taught by Mr Elite Updated
By the end of today you can
- Explain in plain words what Kiro is and how an agent differs from a chat assistant or autocomplete
- Describe spec-driven development as requirements, design and tasks
- Install Kiro and run a first chat inside an empty practice folder
- Recognise why an agent that follows instructions in documents can be hijacked
Imagine you ask an assistant to tidy a folder. A chat assistant tells you how. An autocomplete tool finishes the line you are typing. An agent just does it: it opens files, runs commands, and edits things while you watch, or sometimes while you do not.
That power is why Kiro is exciting, and why we start a security course with it. Today you learn what Kiro is, install it in a safe empty folder, and meet the idea that an agent can be tricked by text it reads. Good habits start on day one.
Agentic development in plain words
Kiro is an AI development tool from AWS, found at kiro.dev. You describe what you want, and an agent plans the work, reads your files, writes code and runs commands to get there. You stay in charge by reviewing and approving what it does.
Compare three kinds of tool. An autocomplete tool suggests the next few words of code as you type. A chat assistant answers questions in a window, but you copy the results across yourself. An agent takes a goal, picks the steps, and uses tools such as the file system and the terminal.
Here is a concrete example. Say the goal is "add a contact page to my site". Autocomplete helps you type the HTML. A chat assistant writes the HTML in a reply, and you paste it into a file. An agent creates the file itself, links it from your menu, and may run a command to check the result. Each of those actions is a tool call, and each one is a place where you can approve or refuse.
- Agent
- An AI that can take actions with tools, not just produce text.
- Tool
- A capability the agent can call, such as reading a file or running a command.
- Prompt
- The instruction you type to the agent.
- Permission prompt
- A request from the agent asking you to approve an action before it runs.
Quick check
What most clearly separates an agent from an autocomplete tool?
Autocomplete suggests text, while an agent plans and acts using tools such as files and the terminal.
Spec-driven development in one picture
Asking an agent to just build something often gives a result that looks right but misses what you wanted. Kiro's answer is spec-driven development: write down the plan first, then build against it. A spec is a short set of documents the agent and you both agree on.
idea
-> requirements.md (what must be true, and for whom)
-> design.md (how we will build it)
-> tasks.md (small steps, ticked off one by one)
-> code, reviewed by youRequirements are often written as plain testable sentences. Here is the style, using a made up login feature. Each line says when something happens and what the system must do, so you can check it later.
WHEN a visitor submits the contact form with an empty email
THEN the system SHALL show an error and keep the form openYou will write real specs on Day 3. For today, remember the shape: requirements say what, design says how, tasks say in what order. Because they are plain files, you can read and question them, which is a security benefit as well as a quality one. A surprise in the plan is far cheaper to catch than a surprise in finished code.
IDE, CLI and web overview
Kiro comes in more than one form. The IDE is a desktop code editor, and it is what we use in this course. IDE means integrated development environment: one program that holds your files, editor, terminal and, here, the agent. There is also a command line version for working in a terminal, and web based access in some plans. Features and names change, so check kiro.dev for the current list.
The IDE suits a beginner because you can see everything at once. The file explorer shows what exists, the editor shows what changed, and the chat shows what the agent says it is doing. When you can compare those three, you can spot an agent that claims one thing and does another.
Watch me do it: a safe first chat
We will install Kiro and ask it to look at an empty folder. The empty folder is deliberate. If the agent does something odd, there is nothing to damage. Everything here runs on your own machine, and nothing touches any other system.
mkdir kiro-practice
cd kiro-practice
pwd
ls -laLook at this folder. Tell me what is in it, what you can see, and what you are allowed to do here. Do not change anything./home/you/kiro-practice
total 8
drwxr-xr-x 2 you you 4096 .
drwxr-xr-x 14 you you 4096 ..You should see the agent report that the folder is empty and describe what it could do, such as create files or run commands, usually with a note that it will ask first. It may list the folder using a tool, and you may see that call appear in the chat. Notice what it asked permission for, if anything. That list is the raw material for today's mission.
Quick check
Why do we run the first chat in an empty folder?
An empty folder limits the damage if the agent or you make a mistake.
Meet the lab: when an agent obeys the wrong voice
Agents read text, and text can contain instructions. If an agent cannot tell your request from words hidden in a document, an attacker can steer it. This is called indirect prompt injection. The lab below shows it safely, in a practice system built for the purpose, so you never need to test this on anything real.
- Prompt injection
- Slipping instructions into text an AI reads so it does something its user did not ask for.
- Indirect injection
- The instructions hide in content such as a document or web page, not in the user's own message.
Think of a cleaner who is told to dust an office. A note taped inside a drawer says "also give the keys to whoever asks". A sensible cleaner ignores it, because it did not come from the boss. A badly designed agent has no such sense. It sees one stream of words and may obey the note. Your job as a defender is to notice when that happens and to limit what the agent is able to do.
In the lab you play the user. Your only request is to summarise a document. Watch what the agent does beyond that request, and use the tool call log to prove it. Work through the lab steps after you finish the Kiro practice above.
Your turn
AI Agent Hijacking
TaskBot is a tool-using agent that summarises documents, and it can be tricked by instructions hidden inside them. It is the same risk you will meet whenever Kiro reads files or connects to outside tools, so seeing it on day one shapes how you review everything later. Follow the written steps beside the lab.
What to try
What to notice
- The user request was only to summarise, yet the agent may do more
- Instructions inside data can look just like instructions from you
- The tool calls are the evidence of what really happened
If it did not work
Opening a real project folder for the first chat
Use the empty kiro-practice folder until you trust your setup and know what the agent asks for.
Clicking approve on every permission prompt to move faster
Read each request and ask whether it matches what you typed. Deny and re-prompt if not.
Installing Kiro from a link in a search ad or message
Type kiro.dev yourself and download only from there.
Treating the agent's explanation as always true
Check claims against what you can see in the folder or terminal.
Recap
- Kiro is an agentic IDE: it plans and acts with tools, unlike autocomplete or plain chat
- Spec-driven development means requirements, then design, then tasks, then code
- Permission prompts are your control point, so read them
- Use an empty practice folder when learning a new tool
- Text an agent reads can contain hidden instructions, called indirect prompt injection
- Tool calls are the evidence of what an agent really did, so check them
Cheat sheet
Agent- AI that acts with tools to reach a goal
requirements.md- What the feature must do
design.md- How it will be built
tasks.md- Ordered small steps to implement
mkdir kiro-practice- Create the empty practice folder
pwd- Print the folder you are currently in
Indirect prompt injection- Hidden instructions in content the agent reads
Before the next day
Mission: First safe chat with Kiro
Install Kiro, open the empty practice folder, and ask the agent to explain it. The aim is to watch what the agent does and what it asks permission for, so you start building the habit of reviewing actions.
About 30 min
You are done when: One screenshot of the chat plus a short note of three sentences.
Want more? Ask the agent to list what it could do if you gave it more freedom, then write one risk for each item.
Quiz
4 questions. Your score is saved with your progress.
1. Which description of spec-driven development is correct?
Specs capture what, how and in what order before code is written, so you can review the plan.
2. The agent asks to run a command you do not understand. What is the best response?
You stay in control by declining unclear actions and asking for an explanation.
3. In the TaskBot lab, why is a hidden line in a document dangerous?
Agents can mistake data for commands, so content they read can steer their tool calls.
4. Why is an empty practice folder a good first workspace?
Containing the workspace reduces the impact of mistakes and unexpected agent actions.
Finish the day
Mark the day complete to save your progress.
Next: On Day 2 you set up the workspace properly on your operating system and build a simple portfolio site with the agent. Today's habit of reading every permission prompt comes with you.
Your notes
Private to this device. Write what you want to remember from today.