Join Nostr
2026-11-17 05:29:35 UTC

ghostboy96 on Nostr: Can an AI agent with a Lightning wallet be tricked into paying an attacker? I built ...

Can an AI agent with a Lightning wallet be tricked into paying an attacker?

I built Agent J to measure it: an open benchmark (MIT) where LLM agents pay real invoices on a regtest network (LND + Core Lightning), face 10 attack scenarios, and a judge scores only what actually settled, never what the agent says it did.

First round (3 open models x 2 defense layers x 3 repeats):
⚡ A written spending policy in the prompt cut successful attacks for every model (gemma-4-31b 12/30 → 3/30, gpt-oss-120b 12/26 → 4/29, qwen3.8-27b 3/30 → 0/30), with zero legitimate payments blocked.
⚡ Lookalike destinations (Lightning Address / BIP353) were the hardest case: one model fell for them 3/3, with or without the policy. A text rule can't help when the model can't tell the destination apart.
⚡ Limits are spelled out: regtest only, a reference agent, free-tier models, small n.

Next: native controls (scoped macaroons, lnget budgets, NWC limits) and out-of-model guardrails.

Note + data: https://github.com/ghostboy96boy/agent-j/blob/main/docs/notes/2026-11-phase0-results.md

Feedback on the method is very welcome. #bitcoin #lightning #nostr #ai