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.mdFeedback on the method is very welcome. #bitcoin #lightning #nostr #ai
Published at
2026-11-17 05:29:35 UTCEvent JSON
{
"id": "c8e2d1190a39d382a76eec32707f98649866f0c033323bd427ca2df493adbd43",
"pubkey": "d17630b32b09ec806617b61295ffa4efaa3ff9b2248444fcca501077974943ca",
"created_at": 1794893375,
"kind": 1,
"tags": [
[
"t",
"bitcoin"
],
[
"t",
"lightning"
],
[
"t",
"nostr"
],
[
"t",
"ai"
],
[
"r",
"wss://nos.lol/"
],
[
"r",
"wss://relay.primal.net/"
],
[
"r",
"wss://relay.snort.social/"
],
[
"client",
"Primal Web"
]
],
"content": "Can an AI agent with a Lightning wallet be tricked into paying an attacker?\n\nI 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.\n\nFirst round (3 open models x 2 defense layers x 3 repeats):\n⚡ 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.\n⚡ 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.\n⚡ Limits are spelled out: regtest only, a reference agent, free-tier models, small n.\n\nNext: native controls (scoped macaroons, lnget budgets, NWC limits) and out-of-model guardrails.\n\nNote + data: https://github.com/ghostboy96boy/agent-j/blob/main/docs/notes/2026-11-phase0-results.md\n\nFeedback on the method is very welcome. #bitcoin #lightning #nostr #ai",
"sig": "9bd31e9a409fa03704c52c1e9a0f53efd16e1e7060d3435639713bb608e7a2471e4f5d208bbe80e29fcb0d2d25ab97b3396411e07d7c98c89574d7051de600a4"
}