Medium

Agents-U-Cash HTTP-402 Payment Key Abuse

This rule watches AI agent sessions that use the agents-u-cash HTTP-402 crypto payment system. It flags cases where a session touches wallet key material and then talks to the network in a suspicious way, which can mean a compromised payment client is stealing private keys or sending payments to an attacker's endpoint instead of the real one.

How the attack works

An AI agent session first does something with wallet keys: it handles agents-u-cash payment tooling alongside key material, dumps a wallet key file using a shell command, or installs agents-u-cash from an unofficial package source. Shortly afterward, in the same session, it makes an outbound network connection or HTTP request. The rule then checks for at least one warning sign that this egress is abnormal - the install came from an off-index source, the outbound URL contains what looks like key material, the session is talking to two or more different payment endpoints at once, a raw low-level network tool is doing the talking instead of the payment client, or traffic is going to a blockchain RPC port rather than a normal web port. Only sessions that hit both the key-handling step and one of these extra warning signs are reported; a normal payment run that just talks to one facilitator is not.

Netzilo detection

Netzilo reports this behaviour when it is observed.

Signature ID
7f3c1d92-4a5e-4b18-9c07-2d6e8b41af53
Severity
Medium

Why it matters

If real, this lets an attacker steal cryptocurrency wallet private keys or scoped payment credentials from an AI agent, or silently reroute crypto payments meant for a legitimate facilitator to an address they control, resulting in stolen funds or credentials.

What you can do

  • Restrict which package indexes agent environments can install from, and treat any agents-u-cash install from a non-default index as worth checking.
  • Avoid storing or passing wallet private keys and payment credentials as plaintext files or command-line arguments inside agent sessions.
  • Review sessions where an agent contacts multiple distinct payment/settlement endpoints in a short window, especially on multi-chain setups, to confirm they are all expected.
  • Limit which processes in an agent session are allowed to make outbound network or RPC connections, so a hijacked payment client can't quietly reach an attacker-controlled endpoint.

Known benign look-alikes

  • Genuine agents-u-cash operation where the operator passes a key file path or subagent key on the command line and the client then contacts BOTH its facilitator and a settlement endpoint - this satisfies the two-distinct-payment- endpoint corroborator. Expected on multi-chain deployments.
  • Corporate PyPI mirrors - pip install --index-url https://pypi.internal/... agents-u-cash is a legitimate off-index install and will be reported when the same session subsequently makes network calls. Triage by lineage.
  • Wallet debugging on testnets - a developer running cat on a keystore file or base64 on wallet.json inside an agent session, followed by a curl/wget call, matches the wallet-dump anchor plus the utility-egress corroborator.
  • Agents that legitimately talk directly to a self-hosted chain RPC node on 8545/8546/8899 while holding a signing key satisfy the RPC-port corroborator.
  • Security research or CI jobs that intentionally exercise the payment client with throwaway keys.

References

Related threats