惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

雷峰网
雷峰网
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
大猫的无限游戏
大猫的无限游戏
Google DeepMind News
Google DeepMind News
V
V2EX
T
The Blog of Author Tim Ferriss
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Hugging Face - Blog
Hugging Face - Blog
Stack Overflow Blog
Stack Overflow Blog
I
InfoQ
博客园_首页
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Last Week in AI
Last Week in AI
Recent Announcements
Recent Announcements
Vercel News
Vercel News
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
Tailwind CSS Blog
美团技术团队
Martin Fowler
Martin Fowler
宝玉的分享
宝玉的分享
Blog — PlanetScale
Blog — PlanetScale
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
J
Java Code Geeks

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Why Agent Payment Authorization Cannot Come from the Agen...
Kavin Kim · 2026-05-19 · via DEV Community

Kavin Kim

There is a moment in security design when a single observation changes everything. NanoClaw 2.0 shipped recently with a capability that stops most developers cold: a gateway that intercepts API credentials before they reach the agent. The agent sees only a placeholder. The real key never touches the application layer.

The founder explained the reason in one sentence: "If the agent generates the approval UI, it could swap the Accept and Reject buttons."

Read that again. If the agent controls the authorization interface, the agent controls the authorization decision. The concept of checking with the agent before proceeding collapses when the agent is both the actor and the approver. This applies directly to payments. More directly than most developers realize.

The Authorization Paradox

When AI agents make payments through application-level controls, the execution flow looks like this:

You have just asked the agent to audit itself. The guardrails live inside the same process that generated the intention to spend. This is not security. It is theater.

The consequences are not theoretical. In 2026, a Meta internal agent posted to employee forums without authorization after misinterpreting a task. This triggered a Severity 1 security incident. A bad post can be deleted. A bad payment cannot be reversed. Stablecoin transactions on Base are final.

What Infrastructure-Level Authorization Actually Means

NanoClaw treats authorization as a layer that exists below the application. The agent cannot inspect or manipulate it. When the agent sends an action, the gateway intercepts, evaluates the policy, and either injects the real credential or rejects the request. The agent never touches the decision.

The same architecture applies to payments in rosud-pay. Payment credentials are not stored in the agent. The agent holds a scoped token that defines what it can do: which merchants, what amounts, what frequency. When the agent initiates a payment, rosud-pay evaluates the token against the policy at the infrastructure layer. The agent's own logic is irrelevant to the authorization decision.

// Agent receives a scoped payment token at deployment time
const agent = new RosudAgent({
  paymentToken: process.env.ROSUD_SCOPED_TOKEN,
  // Token pre-configured: maxAmount, allowedMerchants, spendWindow
});

// Agent initiates payment -- authorization happens at infrastructure layer
const result = await agent.pay({
  to: 'vendor-123',
  amount: 0.50,
  currency: 'USDC',
  memo: 'API call to data provider'
});

// Agent cannot override a policy rejection
if (!result.authorized) {
  console.log('Payment rejected:', result.reason);
  // e.g. "exceeds spendWindow limit" or "merchant not in allowList"
}

Enter fullscreen mode Exit fullscreen mode

The agent never sees the underlying USDC wallet. It never accesses the cryptographic signing keys. It cannot construct a payment outside the defined scope. Even if the agent's reasoning is compromised by a prompt injection attack, the payment rail does not move.

Why Payments Are Harder Than API Access

NanoClaw's design protects API credentials. rosud-pay protects something harder: real monetary value on-chain.

When an agent calls an API incorrectly, you get a failed request. You retry. You fix the logic. The cost is latency and compute. When an agent executes an unauthorized payment, you have moved USDC from one wallet to another. There is no chargeback, no dispute window, no fraud team to call.

The enterprise is beginning to understand this. Retool's 2026 developer survey found that 60% of enterprise AI tools were deployed without IT oversight. Shadow IT became shadow AI. The next step in that progression is shadow payment: agents making financial decisions that no human approved and no audit trail covers.

The Pattern That Actually Works

The architecture is straightforward:

  • Payment authorization lives at the infrastructure layer, not inside the agent
  • Agents receive scoped tokens with defined limits: merchant, amount, time window
  • Every payment attempt is logged to an immutable audit trail before execution
  • Limits are enforced cryptographically, not by trusting the agent's self-reported behavior
// Define the token scope at deployment, not at runtime
const scopedToken = await rosud.createAgentToken({
  agentId: 'procurement-agent-v2',
  policy: {
    maxSinglePayment: 50,        // USDC
    dailySpendLimit: 500,        // USDC
    allowedMerchants: ['data-provider-a', 'api-service-b'],
    expiresIn: '7d'
  }
});

// Deploy agent with token -- agent never sees the private key
await deployAgent({ paymentToken: scopedToken.value });

// All payment attempts are logged and enforced at infrastructure level
// Violations are rejected before execution, not after

Enter fullscreen mode Exit fullscreen mode

This is not about distrusting your agents. It is about recognizing that an agent's authorization boundary should be established at deployment time, not derived from the agent's in-context judgment.

The Line That Should Not Move

NanoClaw proved the principle for API access. rosud-pay applies it where the stakes are highest: the moment an autonomous agent moves money.

The rule is simple. An agent should never be the entity deciding whether the agent should pay. That decision belongs at a layer the agent cannot reach.

If you are building autonomous agents that handle real transactions, rosud-pay is the infrastructure-level payment authorization layer designed for exactly this. The full documentation is at rosud.com/docs.