<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>LLM セキュリティ on Negi AI Lab</title><link>https://ai.negi-lab.com/tags/llm-%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3/</link><description>Recent content in LLM セキュリティ on Negi AI Lab</description><image><title>Negi AI Lab</title><url>https://ai.negi-lab.com/images/og-default.png</url><link>https://ai.negi-lab.com/images/og-default.png</link></image><generator>Hugo -- 0.154.5</generator><language>ja</language><lastBuildDate>Mon, 06 Jul 2026 21:47:37 +0900</lastBuildDate><atom:link href="https://ai.negi-lab.com/tags/llm-%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3/index.xml" rel="self" type="application/rss+xml"/><item><title>DockerとPythonでAIエージェント用セキュア・サンドボックスを構築する方法</title><link>https://ai.negi-lab.com/posts/build-secure-ai-agent-sandbox-docker-python/</link><pubDate>Mon, 06 Jul 2026 00:00:00 +0900</pubDate><guid>https://ai.negi-lab.com/posts/build-secure-ai-agent-sandbox-docker-python/</guid><description>&lt;p&gt;&lt;strong&gt;所要時間:&lt;/strong&gt; 約40分 | &lt;strong&gt;難易度:&lt;/strong&gt; ★★★☆☆&lt;/p&gt;
&lt;h2 id="この記事で作るもの"&gt;この記事で作るもの&lt;/h2&gt;
&lt;p&gt;AIエージェントが生成したPythonコードを、メインPC（ホスト環境）から完全に隔離された場所で実行し、実行結果だけを安全に回収する「使い捨て型サンドボックス環境」を構築します。
PythonのDocker SDKを使い、プログラムからオンデマンドでコンテナを立ち上げ、0.5秒以内にコードを実行して即座に破棄する仕組みを実装します。&lt;/p&gt;</description></item></channel></rss>