---
title: "Discussion on \"LLM sandbox: how to run LLM-generated code without trusting it\" | Hashnode"
description: "Discussion on \"LLM sandbox: how to run LLM-generated code without trusting it\". Short answer: treat LLM-generated code as untrusted input and run it somewhere that has nothing to lose: a fresh isolated machine per task, with no secrets in it, a time limit on every command, only t"
url: "https://hashnode.com/posts/llm-sandbox-how-to-run-llm-generated-code-without-trusting-it/6b09bffa7e198d116ab2cc00"
---

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

Discussion

# [LLM sandbox: how to run LLM-generated code without trusting it](https://sandscale.hashnode.dev/llm-sandbox-how-to-run-llm-generated-code-without-trusting-it?utm_source=hashnode&utm_medium=feed)

Short answer: treat LLM-generated code as untrusted input and run it somewhere that has nothing to lose: a fresh isolated machine per task, with no secrets in it, a time limit on every command, only t

1d ago · 5 min read · sandscale.hashnode.dev  
Read the article

-   [#llm](https://hashnode.com/tag/llm)
-   [#python](https://hashnode.com/tag/python)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#security](https://hashnode.com/tag/security)

## Written by

[Sandscale](https://hashnode.com/@sandscale)

@sandscale

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
