# SmartCart

- **Event:** [Gemini 4 NYC Hackathon](https://cerebralvalley.ai/e/gemini-4-nyc)
- **When:** Sat, Nov 21 at 9:00 AM – 10:00 PM (EST)
- **Where:** New York, NY
- **Team:** [Shivam Manish Sarang](https://cerebralvalley.ai/u/shivamsrng), [Adish Padalia](https://cerebralvalley.ai/u/Adish26), [Devansh Goel](https://cerebralvalley.ai/u/DevG), [Udaya Raja](https://cerebralvalley.ai/u/Udaya)
- **GitHub:** https://github.com/Dev-22-goel/SmartCart
- **Demo video:** https://drive.google.com/file/d/1M1uhcndMoO7fPsk2D7aWiRjlTvPunZRO/view?usp=sharing
- **Gallery:** https://cerebralvalley.ai/e/gemini-4-nyc/hackathon/gallery
- **Page:** https://cerebralvalley.ai/e/gemini-4-nyc/hackathon/gallery/89

AI shopping agents can now browse stores and buy things for you, which makes them a new target. A scammer doesn't need to hack anything. They just hide instructions or fake deals inside a product photo, a voice note or a PDF, and the agent believes it and spends your money.

SmartCart is a firewall for AI shopping agents on Shopify's Shop MCP. The agent can browse freely, but every action that moves money (adding to cart, checkout, spend requests) has to pass SmartCart first. It checks the action against three things: what you actually asked for and your budget, the real Shopify price, and what's really in the media. Then it approves, asks you to confirm, or blocks. If anything errors or times out, it blocks.

When it blocks, SmartCart explains in plain words why it's a scam, shows where the scam was hidden in the photo, audio or video, and swaps in a safe cart from a real Shopify merchant. A red-team agent keeps attacking it with new poisoned media, and when one gets through, SmartCart writes a new rule to catch it next time.

Results: we tested SmartCart on realistic real and fake product photos generated with Nano Banana, mixing honest listings with poisoned ones. In our held-out test it blocked every attack while still approving normal purchases, and a fake sale that tricked the unprotected shopper into breaking a $60 budget was blocked in under a second. It never completes a checkout on its own.

## More from Gemini 4 NYC Hackathon

- [Dry Run](https://cerebralvalley.ai/e/gemini-4-nyc/hackathon/gallery/86)
- [Seen IT](https://cerebralvalley.ai/e/gemini-4-nyc/hackathon/gallery/87)
- [Pit Crew](https://cerebralvalley.ai/e/gemini-4-nyc/hackathon/gallery/88)
- [Ledgerer](https://cerebralvalley.ai/e/gemini-4-nyc/hackathon/gallery/90)
- [3D SHOP](https://cerebralvalley.ai/e/gemini-4-nyc/hackathon/gallery/91)
- [Shopexa](https://cerebralvalley.ai/e/gemini-4-nyc/hackathon/gallery/92)

---

Markdown version of https://cerebralvalley.ai/e/gemini-4-nyc/hackathon/gallery/89. Site index for agents: https://cerebralvalley.ai/llms.txt · full text: https://cerebralvalley.ai/llms-full.txt
