---
title: "Discussion on \"AI Output Is Untrusted Input: How ext0 Lets an LLM Query Your Database\" | Hashnode"
description: "Discussion on \"AI Output Is Untrusted Input: How ext0 Lets an LLM Query Your Database\". An LLM writing your database queries is easy; trusting it is hard. ext0 wraps every generated query in four safety gates; code holds the final veto."
url: "https://hashnode.com/posts/ai-output-is-untrusted-input/6a57cb51e2a0716523ccf37c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [AI Output Is Untrusted Input: How ext0 Lets an LLM Query Your Database](https://malharmorey.hashnode.dev/ai-output-is-untrusted-input?utm_source=hashnode&utm_medium=feed)

An LLM writing your database queries is easy; trusting it is hard. ext0 wraps every generated query in four safety gates; code holds the final veto.

Jun 24 · 8 min read · malharmorey.hashnode.dev  
Updated Oct 15  
Read the article

-   [#ai](https://hashnode.com/tag/ai)
-   [#llm](https://hashnode.com/tag/llm)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#agentic-workflow](https://hashnode.com/tag/agentic-workflow)
-   [#databases](https://hashnode.com/tag/databases)
-   [#sql](https://hashnode.com/tag/sql)
-   [#mongodb](https://hashnode.com/tag/mongodb)
-   [#postgresql](https://hashnode.com/tag/postgresql)
-   [#mysql](https://hashnode.com/tag/mysql)
-   [#security](https://hashnode.com/tag/security)
-   [#opensource](https://hashnode.com/tag/opensource)
-   [#backend](https://hashnode.com/tag/backend)
-   [#prompt-engineering](https://hashnode.com/tag/prompt-engineering)
-   [#developer-tools](https://hashnode.com/tag/developer-tools)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#software-architecture](https://hashnode.com/tag/software-architecture)
-   [#data-engineering](https://hashnode.com/tag/data-engineering)
-   [#ai-tools](https://hashnode.com/tag/ai-tools)

## Written by

[Malhar Morey](https://hashnode.com/@malharmorey)

@malharmorey · Pune, India

  
[View profile](https://hashnode.com/@malharmorey)

JavaScript internals, side projects, and the bugs in between.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
