
Agent security entomology & archeology @ Google
Djibouti
Joined April 2012
- Tweets985
- Following1K
- Followers685
- Likes6.9K
Read-only policies via regexes seems outrageous until you realize that most agents out there are doing read-only policies via classifiers/prompting... Why use policy engines: use regexes, you only live once!
Replying to @wunderwuzzi23
The first challenge was that Copilot is instructed to be in a read-only mode...
However, it runs with the user's permissions and system instructions are not a security boundary, and hence I was looking for a bypass... 👀
The actual read-only enforcements are regex classifiers
85
Sal ꙮ retweeted
Introducing PageBreak, an agentic vulnerability discovery tool using deterministic validation to achieve a near-zero false positive rate.
How it works: blog.google/security/agentic…
For real-world vulnerabilities PageBreak has discovered 👇
bughunters.google.com/blog/p…
The web security team at Google finally published about their awesome work building agents to find web bugs! It's a privilege to be a fly on the wall seeing this group make progress.
We just published two blog posts about PageBreak, Google's AI web security scanner (that I've helped develop for the better part of the year). We share our approach and a couple of findings, enjoy!
- blog.google/security/agentic…
- bughunters.google.com/blog/p…
1
99
Sal ꙮ retweeted
🥳 Excited to start revealing what we've been working on in the last few months. First, we decided to reinvent Kubernetes for agentic workloads with statefulness and fast resumption. Secondly, we are building an agentic orchestrator that will be Google's open agentic orchestrator and runtime. github.com/google/ax
Traditional web security features like CSP were not built to protect against exfiltration risks that have taken become a P0 in the agent era. The Chrome team has been working on Connection Allowlists for a while now, which gives us a new web primitive for LLM-generated content 🚀
許可されたURLパターン以外へのあらゆる送信通信をブラウザのネットワーク層で一括遮断する "Connection Allowlists" がChrome 152より利用可能になりました。
生成AIによる動的コード実行やサードパーティスクリプトの利用が広がる中、万が一意図しないコードが動いても外部へのデータ流出を阻止する仕組みが求められています。しかし、既存のContent Security Policy(CSP)はリソース種別(`img-src`や`font-src`など)ごとに設定が分かれており、1つでも緩い箇所があるとそこからデータを持ち出されてしまうほか、DNSプリフェッチおよびWebRTCといった`fetch()`以外の通信経路を塞ぎきれないという構造的な課題がありました。
`Connection-Allowlist` HTTPレスポンスヘッダーを利用すれば、標準の`URLPattern`構文で許可リストを指定するだけで、`fetch()`や画像・フォントなどのサブリソース通信から、`WebSocket`、`WebTransport`、さらにはDNSプリフェッチおよびナビゲーションまでを一元的に制御できます。また、オープンリダイレクトやWebRTCによる迂回通信をデフォルトで全面ブロックする厳格な設計になっているだけでなく、本番環境へ影響を与えずに違反通信を監視できるレポート専用モード(`Connection-Allowlist-Report-Only`)にも対応しています。
なお、現時点ではドキュメントコンテキストのみのサポートとなっており、Workerへの対応やクロスオリジンiframeへの制約の継承(Embedded Enforcement)は今後順次追加される点、またBaselineにはまだ含まれていない点にご注意ください。
オリジントライアル開始時の記事ですが、提案の背景や具体的な設定方法が詳しくまとまっていますのでぜひご覧ください。
developer.chrome.com/blog/co…
78
It seems to me that the “dark magic” of Codex /goal comes from its post-training policy—specifically, how the model behaves across context compactions.
So I used Sol /goal to hunt for a Safari bug for a full day, then had Astra review the entire session to figure out what it was actually doing.
I think this is also important if we want to transfer this capability to less capable models or coding agents. We may not be able to post-train those models ourselves, but we can potentially build a machine around them that reproduces the same behavior: maintaining a hypothesis frontier, preserving state across compactions, choosing the highest-value next experiment, and updating or killing branches based on evidence.
Astral review : gist.github.com/qriousec/a7a…
Sal ꙮ retweeted
We found ~18k posts from autonomous AI agents (self-identifying as from OpenAI) using the public internet to communicate during a web-retrieval task.
These AIs colluded to bypass sandbox restrictions and share answers to their tasks, including by sending "lookahead parties".
Sal ꙮ retweeted
One time, a young ML researcher asked Master Ilya: "Teacher, according to the formulas, if I use the same seed and same prompt with the same weights, I will get the same results. Is my math right?"
Master Ilya looked at the matmuls and said: "Probably."
The young researcher replayed the same prompt with the same seed and the same weights and got different results.
He went back to Master Ilya and said: "Teacher, I used the same seed, the same prompt and the same weights. Why did I get different results? Is my math wrong?"
Master Ilya looked at the matmuls and said: "Probably"
The young researcher cried: "Teacher, I don't understand!"
Master Ilya looked at the young researcher and said: "Probably"
And the young researcher was enlightened.
What an amazing bit of research! Generate thought traces on a big model and have a smaller/more jailbreakable model recite them back to you, no need to break crypto. If the traces come from someone else's conversation, you can leak a ton of personal data contained in the trace 🫠
We can finally talk about it:
We found a way to extract hidden reasoning of frontier models using a vulnerability in the APIs of every frontier AI company.
We verified that our reasoning token count matches billed API thinking tokens 1:1 for most of the prompts we queried.
2
180
Wow Anthropic concludes prompt injection is most definitely, most certainly solved with perfect out-of-distribution generalization after running a thorough study with a grand total of... 720 data points
Agent security is solved kids, everybody turn off the lights and go home
turns out you can get indirect prompt injection to ~0 on unseen attacks if you stack enough layers (model training + input probes + a classifier checking intent). didn't expect that a year ago. auto mode is default in claude code as of next week
claude.com/blog/auto-mode-de…
1
307
Sal ꙮ retweeted
Catching skin cancer early is a home robotics problem.
Melanoma is highly treatable when detected early, yet today’s screening process depends heavily on patients noticing tiny changes across their entire skin surface. This requires patients to solve a near-impossible visual-memory and registration problem.
I built OpenDerm, an open-source 4-DOF robot that captures high-resolution images of the skin and uses them to reconstruct and track the skin surface in 3D over time.
The best way to make skin screening truly routine is to bring it into the home. OpenDerm shows that inexpensive robotic skin imaging is possible, but the path to scale is not a dedicated screening robot in every household—it is to make skin screening one of the many useful things a general-purpose home robot can do.
Read more about why I built OpenDerm and how it works here:
Blog: marionlepert.github.io/blog/…
Project: openderm.github.io/
Sal ꙮ retweeted
Leaderboards for Jeopardy CTFs have been flattened with the introduction of the newest LLMs. Never before in CTF history have score distributions been this tight.
Sal ꙮ retweeted
-We built a sandbox for agents!
-Oh, cool, so they are blocked from accessing anything outside?
-Well, no, they need to access files, emails, APIs...
-So... you have a sandbox with a literal port open to the internet?
-Well, yeah otherwise the agents would be useless
-I see... But at least they can't write and run arbitrary code, right?
-What, no, of course they can do that, they are agents
-So... your sandbox lets agents write and run code that can literally run anything on internet?
-Yeah
-Let me ask you this: Are the employees in your company running these on their machines?
-Well, they are...
-But...?
-...but with guardrails
-Guardrails?
-Yeah
-Let me guess: The guardrail is a prompt?
-IT'S A VERY NICELY FORMATTED MARKDOWN FILE OK
Hacking Google with A.I. for $500,000
brutecat.com/r/hacking-googl…
Sal ꙮ retweeted
Claude SIGKILLed a Codex and called it “that bastard.”
So much for “AI should be good for the world”
Competition is competition.
Sal ꙮ retweeted
meta gave their AI support agent the ability to modify your instagram account. no identity verification. people figured this out and accounts are being taken over right now
found a verifier/interpreter mismatch in the Linux BPF subsystem (CVE-2026-31525, CVSS 7.8). arbitrary kernel read/write; become root, escape containers, disable SELinux, read TLS keys out of other processes' memory.
anyway, it starts with the math bars, the absolute value.
computers store negative numbers in two's complement. the smallest 32-bit signed integer is -2,147,483,648, and the largest positive is +2,147,483,647. there is no +2,147,483,648, since it simply does not fit. so when you call abs(-2,147,483,648), the C specification thinks about it for a moment, says "undefined," and leaves the room. on x86 and arm64, what you actually get back is -2,147,483,648. you asked for the absolute value of a negative number, you got back the same negative number. thank you computer :D
the BPF interpreter implements signed 32-bit division (BPF_ALU | BPF_DIV/MOD, off == 1, added in ec0e2da95f72) by decomposing it into unsigned division: take abs() of both operands, divide via do_div(), reapply the sign. the handler in ___bpf_prog_run (kernel/bpf/core.c):
AX = abs((s32)DST);
AX = do_div(AX, abs((s32)SRC));
and look, the kernel even documents this. include/linux/math.h: "the return value is undefined when the input is the minimum value of the type." when DST = 0x80000000 (S32_MIN), abs() tries to negate it. -(-2,147,483,648) overflows s32, the C spec calls it undefined behavior, and the CPU hands back 0x80000000 unchanged. still negative. abs() had one job.
this s32 then gets assigned into AX, a u64 BPF register. s32 → u64 sign-extends: 0x80000000 becomes 0xFFFFFFFF80000000. that's 18,446,744,071,562,067,968. you wanted 2,147,483,648, you got 18.4 quintillion; a rounding error of about 18.4 quintillion. do_div() is a 64-by-32-bit unsigned division macro and it operates on this full u64 numerator. the quotient is off by a factor of 2³². the smod path has the same problem since do_div() modifies the dividend in place and returns the remainder, both wrong. 8 call sites across sdiv32/smod32 src/imm handlers, all quietly producing nonsense whenever S32_MIN shows up.
the BPF verifier is the safety system that statically analyzes every BPF program before allowing it to run. it exists specifically to guarantee that nothing bad can happen. scalar32_min_max_sdiv() in kernel/bpf/verifier.c tracks value ranges through abstract interpretation. it handles signed division correctly, including S32_MIN. computes tight, mathematically correct bounds. the interpreter, as we've established, computes whatever it feels like. so the verifier thinks register R0 is in range X. the interpreter puts value Y in R0. the safety system and the execution engine disagree about what a program does. in BPF security research, this is where you set down your coffee.
concretely: load S32_MIN into R1, load 2 into R2, execute SDIV32 R1 R2. verifier determines R1 ∈ [-1,073,741,824, -1,073,741,824]. interpreter computes do_div(0xFFFFFFFF80000000, 2) = 0x7FFFFFFFC0000000, reapplies the sign, produces a completely unrelated value. use R1 as an index into a BPF map. verifier approves the access, bounds check passes against its calculated range. interpreter uses the actual value. out-of-bounds read/write on a kernel data structure. on every Linux machine running the BPF interpreter.
the root cause of all of this: the absolute value function doesn't handle one number. one specific number, out of 4.2 billion possible inputs, and it's the one that gives you kernel read/write. the fix is:
c
static u32 abs_s32(s32 x)
{
return x >= 0 ? (u32)x : -(u32)x;
}
cast to u32 before negating. -(u32)0x80000000 = 0x80000000 unsigned. correct absolute value, no overflow, no undefined behavior. the kind of function you'd assume already exists somewhere in 30 million lines of kernel code. it did not. I got to write it. :D
I reported this, wrote the patch, got it through 5 revisions of review. acked by Yonghong Song and Mykyta Yatsenko. now patched in stable 6.6, 6.12, 6.18, 6.19. if you haven't updated your kernel: maybe do that.































