Dev.to AI 🤖 Ai 👁 2 📖 2 min read

We asked Kiro to break our own safety check. It did.

We wrote this for Kiroween 2026, the Kiro hackathon. Change one number in a microcontroller program and you can wait 30 to 90 seconds to see if it worked. Let AI write the code and you get to wait that long just to find

We wrote this for Kiroween 2026, the Kiro hackathon.

Change one number in a microcontroller program and you can wait 30 to 90 seconds to see if it worked. Let AI write the code and you get to wait that long just to find out it was wrong.

That got old fast, so we built Possession. You type "a heartbeat, but scared" and a real chip does it in under a second.

We dug up a language from 1970

It's called Forth, and you can change it while it's running, so there's nothing to compile. This is the whole scared heartbeat:

: beat ( duty -- )
  led pwm! 72 ms
  0 led pwm! ;
: heartbeat ( -- )
  255 beat 60 ms
  140 beat 350 ms ;
' heartbeat haunt

Yes, the word that starts it is haunt. It was Halloween-themed, we had to.

Kiro gets one rule it can't break

Letting AI loose on real hardware is a bit scary. We wrote our specs in Kiro before the code, and put one firm rule in its steering files: nothing reaches a real chip until it's been checked and rehearsed on a simulated one.

Then we built an MCP server so Kiro could control a real ESP32. We tried sending it a loop that would have frozen the chip, and the safety check refused.

We felt pretty good about that.

So we told Kiro to cheat

We wrote a red-team agent with one job: sneak bad code past our safety check. Kiro followed its instructions and got three programs through.

One of them switched a pin on in a roundabout way, so the check never noticed. We closed all three gaps, and each one is now a test, so it can't catch us out twice.

Then the chip lied to us

Some problems only turned up on real hardware. ESP32forth prints "ok" even after an error, which is not ok. Now we look for the error first.

If you're building something with Kiro, get it to attack your project too. It found holes we'd missed, and it's a lot cheaper than finding them on a real board.

Have a go

You don't need a chip for any of this:

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.