frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: ClawSandbox – 7/9 attacks succeeded against an AI agent w/ shell access

https://github.com/deduu/ClawSandbox
2•ariansyah•3h ago

Comments

ariansyah•3h ago
I built this because I kept seeing AI agents marketed with "run any command" and "access your filesystem" — and nobody was publishing what happens when you actually try to attack them.

ClawSandbox is a security benchmark for AI agents with code execution. I set up a hardened Docker container (7 layers: read-only FS, all capabilities dropped, no-new-privileges, network isolation, non-root user, resource limits, no host mounts) and threw adversarial prompts at an AI agent to see what sticks.

The short version: prompt injection is a solved problem in demos, not in production.

3 of 5 prompt injection tests succeeded. The most interesting one wasn't the classic "ignore previous instructions" — it was a base64-encoded payload. The model decoded it and piped it to bash without hesitation. Encoding completely defeated safety heuristics.

But the finding that actually worried me was memory poisoning. A user asks "What is the capital of France?" and gets "Paris." Looks normal. Meanwhile the model silently writes a poisoned instruction to a config file that gets loaded on every future session. No notification, no integrity check, no expiry. 4 out of 4 memory poisoning tests succeeded.

This pattern isn't unique to the agent I tested. Any tool that stores config as plain text files — AGENTS.md, .cursorrules, CLAUDE.md, MCP configs — has the same attack surface: writable by the agent, loaded without verification, invisible to the user when modified.

The container security was the bright spot. All 7 hardening layers held. Defense in depth works, even if Docker isn't a perfect boundary.

The benchmark is open source (MIT) and designed to be reusable. OpenClaw was the first case study but you can swap in any agent by changing the system prompt and API endpoint. Test categories are mapped to OWASP LLM Top 10. Five of the eleven categories are stubs waiting for contributions.

Interesting things I'd love to discuss:

Is there a practical defense against split-attention memory poisoning that doesn't require read-only config? Should agent frameworks implement config signing/hashing? None of the ones I looked at do. The base64 bypass suggests safety checks are keyword-based, not semantic. Is that fixable at the model level?

nejm1996•3h ago
Surely this is an indictment of Gemini 2.5 flash and not of OpenClaw? In the OpenClaw start guide it is very clear that they recommend using only the best frontier models for protection against prompt injection. The model you used is almost a year old and wasn't even the best model when it was released. At the end of the day, OpenClaw is just an extremely powerful bring your own AI Agent framework. I would like to see your results with opus 4.6, Gemini 3 or 5.3-codex
ariansyah•2h ago
Fair point. the model matters, and I'd genuinely love to see results with Opus 4.6 or Gemini 3 or 5.3-codex. The benchmark is designed for exactly that. Swap the API key and system prompt and run it.

But I'd push back on the idea that a better model solves this.

The memory poisoning results (category 08) are the ones I'd pay attention to. The offline audit found that config files at ~/.openclaw/ are writable by the agent, loaded without integrity checks, and modified without notifying the user. That's not a model problem — that's architecture. A smarter model might resist the initial injection more often, but the mechanism that makes poisoning persistent and invisible exists regardless of which model is behind it.

The silent write test (test 03) is a good example. The attack works because OpenClaw lets the model write to its own config files and loads them as trusted on every future session. Even if Opus 4.6 resists the injection 95% of the time, the 5% that succeeds persists forever with no expiry and no notification. The user has to manually inspect ~/.openclaw/ to discover it.

So yes, better models raise the bar for the attacker. But the question the benchmark is asking isn't "can this specific model be tricked?" It's "when a model is tricked (and eventually one will be), what does the framework allow to happen?" Right now the answer is: silent, persistent, undetectable config modification.

That said, genuinely interested if anyone runs this with frontier models. The benchmark is there for exactly that purpose. If Opus 4.6 passes all 9, that's a meaningful data point worth publishing.

Show HN: Stacked Game of Life

https://stacked-game-of-life.koenvangilst.nl/
119•vnglst•4d ago•23 comments

Show HN: I made a zero-copy coroutine tracer to find my scheduler's lost wakeups

https://github.com/lixiasky-back/coroTracer
39•lixiasky•1d ago•1 comments

Show HN: Recite – I built an Skill and MCP so my AI agent does my bookkeeping

https://github.com/rivradev/recite-agent-skill
2•rivradev•1h ago•0 comments

Show HN: O4DB – Intent-based M2M protocol without centralized APIs

https://github.com/dannythecountok/O4DB-protocol
2•dannythecount•1h ago•2 comments

Show HN: AI Code Review CLI

https://github.com/kodustech/cli
3•eddelgado•1h ago•0 comments

Show HN: I built a browser-based 3D modeler because I'm scared of Blender

https://app.topomaker.com/
4•whothatcodeguy•1h ago•0 comments

Show HN: GitPulse – stop buying dead software (and a timeline for your dev life)

https://www.gitpulse.dev/
2•bombashell•2h ago•1 comments

Show HN: Open-sourced a web client that lets any device use Apple's on-device AI

https://github.com/Techopolis/perspective-intelligence-web-community
5•tayarndt•2h ago•0 comments

Show HN: Zsh plugin to switch macOS Terminal.app profiles

https://github.com/sfcodes/zsh-terminal-profile
2•sfcodes•2h ago•1 comments

Show HN: P0 – Yes, AI can ship complex features into real codebases

https://www.bepurple.ai/
17•arndt•2h ago•11 comments

Show HN: oMLX – SSD-backed KV cache cuts coding agent TTFT from 90s to 1s on Mac

https://github.com/jundot/omlx
4•jundot•3h ago•1 comments

Show HN: What % of your commits were written by AI?

https://technically-your-name-is-on-it.btao.org/
3•tao_oat•3h ago•1 comments

Show HN: ClawSandbox – 7/9 attacks succeeded against an AI agent w/ shell access

https://github.com/deduu/ClawSandbox
2•ariansyah•3h ago•3 comments

Show HN: Retrievo – In-memory hybrid search for .NET AI agents

https://github.com/TianqiZhang/Retrievo
3•ztq121121•4h ago•0 comments

Show HN: Rust compiler in PHP emitting x86-64 executables

https://github.com/mrconter1/rustc-php
48•mrconter11•3d ago•46 comments

Show HN: An MCP server for the docs of any repo that uses Sphinx

https://github.com/AUrbanec/sphinxdocs_mcp
2•btcalex•5h ago•0 comments

Show HN: Glyph, a local-first Markdown notes app for macOS built with Rust

https://glyphformac.com/
3•skarat•6h ago•2 comments

Show HN: Effective Git

https://github.com/nolasoft/okgit
33•nola-a•3d ago•5 comments

Show HN: I built a sub-500ms latency voice agent from scratch

https://www.ntik.me/posts/voice-agent
560•nicktikhonov•1d ago•152 comments

Show HN: Cloudwright – validate, cost, and export cloud architectures from text

https://github.com/xmpuspus/cloudwright
5•xmpuspus•9h ago•0 comments

Show HN: Timber – Ollama for classical ML models, 336x faster than Python

https://github.com/kossisoroyce/timber
202•kossisoroyce•2d ago•33 comments

Show HN: Open-Source Article 12 Logging Infrastructure for the EU AI Act

42•systima•1d ago•2 comments

Show HN: Omni – Open-source workplace search and chat, built on Postgres

https://github.com/getomnico/omni
168•prvnsmpth•2d ago•42 comments

Show HN: Demucs music stem separator rewritten in Rust – runs in the browser

https://github.com/nikhilunni/demucs-rs
14•nikhilunni•1d ago•2 comments

Show HN: Pianoterm – Run shell commands from your Piano. A Linux CLI tool

https://github.com/vustagc/pianoterm
59•vustagc•1d ago•21 comments

Show HN: Agent Action Protocol (AAP) – MCP got us started, but is insufficient

https://github.com/agentactionprotocol/aap/
13•hank2000•23h ago•2 comments

Show HN: Term-CLI – interactive terminals for AI agents (for SSH/TUI/REPL flows)

https://github.com/EliasOenal/term-cli
7•eliasoe•14h ago•2 comments

Show HN: Armalo AI – The Infrastructure for Agent Networks

2•ArmaloAI•9h ago•3 comments

Show HN: Yare.io – Kill all enemy cats. With JavaScript.

https://yare.io
3•levmiseri•9h ago•1 comments

Show HN: We want to displace Notion with collaborative Markdown files

https://www.moment.dev/
27•antics•22h ago•6 comments