diff --git a/skills/plz-3d-explain/assets/example-agent-sandbox.en.html b/skills/plz-3d-explain/assets/example-agent-sandbox.en.html index 80a2f17..c5e12ca 100644 --- a/skills/plz-3d-explain/assets/example-agent-sandbox.en.html +++ b/skills/plz-3d-explain/assets/example-agent-sandbox.en.html @@ -369,7 +369,7 @@

For example

{
   "sandbox": {
     "enabled": true,
-    "filesystem": { "denyRead": ["~/.ssh"] },
+    
     "network": {
       "allowedDomains": ["pypi.org", "files.pythonhosted.org"]
     }
@@ -406,16 +406,16 @@ 

For example

10How to choose

-

Send the same escape attempt to all four approaches and the differences show at a glance. When the code tries to get out of the box and reach the host's key file, all four stop it, but the layer that stops it differs. The lower the stopping layer, and the more layers there are between the code and the host, the harder it is to break through.

+

Send the same two-step attempt to all four approaches: first read the host key file, then send the key it read to example.net. The container and microVM stop access to the host file at their boundary, assuming the key file was not passed into the guest. WASM cannot use the key file or an external network function unless the runtime explicitly provides them. The default OS sandbox shown here allows the key file to be read, but its proxy blocks the request to the unlisted example.net. To block the read in the OS sandbox too, configure denyRead. The lower the stopping layer, and the more layers there are between the code and the host, the harder it is to break through.

The tables below sum up the chapters so far. There are no confirmed comparison figures for weight and start speed, so they are written qualitatively, and that is this page's own judgment. It does not recommend any particular product. When choosing, first decide "what am I trying to protect (my laptop, or a server shared by several users)" and "what tools does the code need".

Who answers, and what has to be crossed

- + - - - - + + + +
ApproachWho answers system callsWhat to cross to reach the host
ApproachWho answers system callsWhat to cross to reach the hostKey read / external send
Container + gVisorgVisor's stand-in kernel (the host kernel if absent)The namespace wall, the stand-in kernel
MicroVMA separate guest kernel for each VMThe guest kernel, the hypervisor
WASMFunctions the runtime hands inThe WASM box, the outside runtime's permissions
OS sandboxThe host kernel (with a policy applied)The write and network policy. The kernel is shared
Container + gVisorgVisor's stand-in kernel (the host kernel if absent)The namespace wall, the stand-in kernelThe host key file cannot be read because it is not passed into the container.
MicroVMA separate guest kernel for each VMThe guest kernel, the hypervisorThe host key file cannot be read because it is not passed into the guest.
WASMFunctions the runtime hands inThe WASM box, the outside runtime's permissionsThe key file and network access are unavailable unless the runtime explicitly provides them.
OS sandboxThe host kernel (with a policy applied)The write and network policy. The kernel is sharedBy default, the key can be read, but the proxy blocks sending it to an unlisted domain. Adding denyRead also blocks the read.

Weight and available tools (judgment)

@@ -439,7 +439,7 @@

Requirements and typical examples

For example, if all you want is to have an agent run tests on my laptop, the OS sandbox takes the least effort. If you run several users' code on one server, a microVM that divides the kernel, or a container with a stand-in kernel inserted, is the better fit. For short code that only needs to compute, WASM may be enough. This paragraph is also a judgment.

-

All four approaches stop the attempt, but the layer that stops it differs. Choose by what you are protecting and what tools the code needs.

+

For the same key-exfiltration attempt, the container, microVM, and WASM restrict access to the host key; the default OS sandbox restricts the later network send. Add denyRead to block the read in the OS sandbox too.

@@ -1625,7 +1625,7 @@

Sources (checked 2026-10-28)

say('WASM: the capsule wall has no door, so it was stopped. Next, the OS sandbox.'); await a.wait(500); await shot(a, O, homes[3].clone().add(V(0, 0.3, 0)), [[-0.95, K + 0.7, 0.85], [1.05, K + 0.5, -0.9]], [[O.key, COLOR.actor], [px, COLOR.bound]]); - say('OS sandbox: the key file could be read, but the request to send it out was stopped at the proxy. All four stopped it, but the layer that stopped it differed.'); + say('OS sandbox: the key file could be read under the default settings, but the proxy stopped the send to an unlisted domain. The container, microVM, and WASM stopped the key read; the OS sandbox stopped the later send.'); }, }; }, diff --git a/skills/plz-3d-explain/assets/example-agent-sandbox.html b/skills/plz-3d-explain/assets/example-agent-sandbox.html index cdfe8ff..4d14b77 100644 --- a/skills/plz-3d-explain/assets/example-agent-sandbox.html +++ b/skills/plz-3d-explain/assets/example-agent-sandbox.html @@ -369,7 +369,7 @@

예를 들면

{
   "sandbox": {
     "enabled": true,
-    "filesystem": { "denyRead": ["~/.ssh"] },
+    
     "network": {
       "allowedDomains": ["pypi.org", "files.pythonhosted.org"]
     }
@@ -406,16 +406,16 @@ 

예를 들면

10무엇을 고를까

-

네 방식에 같은 탈출 시도를 보내 보면 차이가 한눈에 보입니다. 코드가 상자를 벗어나 호스트의 키 파일에 닿으려 할 때, 네 방식 모두 막지만 막는 층이 다릅니다. 막는 층이 아래에 있을수록, 그리고 코드와 호스트 사이의 층이 많을수록 뚫기 어렵습니다.

+

네 방식에 같은 두 단계 시도를 보내 봅시다. 먼저 호스트의 키 파일을 읽고, 다음으로 읽은 키를 example.net으로 보냅니다. 컨테이너와 마이크로VM은 키 파일이 게스트에 전달되지 않았다는 전제에서 호스트 파일 읽기를 경계에서 막고, WASM은 키 파일이나 외부 전송 기능을 런타임이 따로 건네지 않는 한 쓸 수 없습니다. 반면 여기서 다루는 기본 OS 샌드박스는 키 파일 읽기를 허용하지만, 허용 목록에 없는 example.net으로 보내는 요청은 프록시에서 막습니다. OS 샌드박스에서 읽기까지 막으려면 denyRead를 설정해야 합니다. 막는 층이 아래에 있을수록, 그리고 코드와 호스트 사이의 층이 많을수록 뚫기 어렵습니다.

아래 표는 지금까지의 장을 정리한 것입니다. 무게와 시작 속도는 확인된 비교 수치가 없어서 정성적으로 적었고, 이것은 이 페이지의 판단입니다. 특정 제품을 추천하지 않습니다. 고를 때는 "무엇을 지키려는가(내 노트북, 여러 사용자가 함께 쓰는 서버)"와 "코드에 어떤 도구가 필요한가"를 먼저 정합니다.

누가 대답하고, 무엇을 넘어야 하나

- + - - - - + + + +
방식시스템 콜에 대답하는 쪽호스트에 닿으려면 넘을 것
방식시스템 콜에 대답하는 쪽호스트에 닿으려면 넘을 것키 읽기 / 외부 전송
컨테이너 +gVisorgVisor의 대리 커널(없으면 호스트 커널)네임스페이스 벽, 대리 커널
마이크로VMVM마다 따로 있는 게스트 커널게스트 커널, 하이퍼바이저
WASM런타임이 넣어 준 함수WASM 상자, 바깥 런타임의 권한
OS 샌드박스호스트 커널(정책을 걸어 둠)쓰기·네트워크 정책. 커널은 공유
컨테이너 +gVisorgVisor의 대리 커널(없으면 호스트 커널)네임스페이스 벽, 대리 커널호스트 키 파일은 컨테이너에 전달되지 않아 읽을 수 없습니다.
마이크로VMVM마다 따로 있는 게스트 커널게스트 커널, 하이퍼바이저호스트 키 파일은 게스트에 전달되지 않아 읽을 수 없습니다.
WASM런타임이 넣어 준 함수WASM 상자, 바깥 런타임의 권한키 파일과 네트워크 기능은 런타임이 명시적으로 제공하지 않는 한 쓸 수 없습니다.
OS 샌드박스호스트 커널(정책을 걸어 둠)쓰기·네트워크 정책. 커널은 공유기본 설정은 키 읽기를 허용하지만, 허용 목록 밖으로 보내는 요청은 프록시에서 막습니다. denyRead를 추가하면 읽기도 막습니다.

무게와 쓸 수 있는 도구 (판단)

@@ -439,7 +439,7 @@

필요 조건과 대표 예

예를 들어 내 노트북에서 에이전트에게 테스트를 돌리게 하는 정도라면 OS 샌드박스가 가장 손이 덜 갑니다. 여러 사용자의 코드를 한 서버에서 돌린다면 커널을 나누는 마이크로VM이나 대리 커널을 낀 컨테이너 쪽이 맞습니다. 계산만 하면 되는 짧은 코드라면 WASM으로 충분할 수 있습니다. 이 문단도 판단입니다.

-

네 방식은 모두 막지만 막는 층이 다릅니다. 지키려는 대상과 코드에 필요한 도구로 고릅니다.

+

같은 키 유출 시도라도 컨테이너·마이크로VM·WASM은 호스트 키 접근을 제한하고, 기본 OS 샌드박스는 읽은 뒤의 외부 전송을 제한합니다. 읽기까지 막으려면 OS 샌드박스에 denyRead가 필요합니다.

@@ -1625,7 +1625,7 @@

출처 (2026-10-28 확인)

say('WASM: 캡슐 벽에 문이 없어 막혔습니다. 다음은 OS 샌드박스.'); await a.wait(500); await shot(a, O, homes[3].clone().add(V(0, 0.3, 0)), [[-0.95, K + 0.7, 0.85], [1.05, K + 0.5, -0.9]], [[O.key, COLOR.actor], [px, COLOR.bound]]); - say('OS 샌드박스: 키 파일은 읽혔지만, 밖으로 보내는 요청이 프록시에서 막혔습니다. 네 곳 모두 막았지만 막는 층이 달랐습니다.'); + say('OS 샌드박스: 기본 설정에서는 키 파일을 읽었지만, 허용 목록 밖으로 보내는 요청은 프록시에서 막혔습니다. 컨테이너·마이크로VM·WASM은 키 읽기 단계에서 막았고, OS 샌드박스는 전송 단계에서 막았습니다.'); }, }; },