Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@upoch/guard

Latest version: v0.5.1

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: anzerd
15 Versions
2.8K Downloads

Scan summary

@upoch/guard was last scanned on 29 Nov 2026 at version 0.5.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 15 versions; the latest 5 were published within 5 days (25–29 Nov 2026).
  • Findings: No rules fired in version 0.5.1.
  • Downloads: 2,780 downloads.

Versions

15 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.5.1 LATEST 29 Nov 2026 No rules fired
0.5.0 29 Nov 2026 No rules fired
0.4.0 28 Nov 2026 No rules fired
0.3.3 25 Nov 2026 Not shown
0.3.2 25 Nov 2026 Not shown

No rules fired in 0.5.1

Findings

Findings for v0.5.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.5.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@upoch/guard: Upoch Guard

Give your AI agent a memory and an undo button.

Upoch Guard saves verifiable checkpoints of an agent's work on Robinhood Chain. If the agent crashes, gets a bad prompt or makes a bad trade, it restores the last good state, checked against the chain, or rolls back to the checkpoint before the mistake and keeps going. It also knows which of its actions already happened.

With Risk Check, the agent's actions and payments are checked against rules you set (approved recipients, limits per payment and per day, allowed action types) before anything is signed. A blocked action is recorded on-chain, and the agent can be tricked into trying a payment without it ever going out.

With approvals, larger payments wait for your Approve / Deny in Telegram, and a kill switch on your phone stops every action the agent takes until you resume it.

This package is the upoch command you set Upoch up with, an MCP server, and the engine behind the Upoch framework plugins:

Agent One line
Claude Code claude mcp add upoch -- upoch mcp
Cursor, Codex, Claude Desktop, any MCP client an MCP server with the command upoch mcp (stdio)
ElizaOS plugins: ["@upoch/plugin-elizaos"] in your character (@upoch/plugin-elizaos)
LangChain / LangGraph callbacks: [new UpochCallbackHandler()] (@upoch/langchain)
Python agents (and LangChain in Python) pip install upoch (upoch on PyPI)

Website and debugger: https://upoch.tech. Contract (Robinhood Chain, 4663): 0x6179d9123c3c1f9e82f948101a4350cb55aa8c27

Setup

Needs Node.js 24 or later. In your own terminal:

npm install -g @upoch/guard
upoch setup

upoch setup creates your keys in ~/.upoch, shows the owner address, and waits while you send it a little ETH on Robinhood Chain (0.001 ETH is plenty). Then it registers your agent and, if Claude Code is installed, offers to add the MCP server to it. After that, connecting an agent is one line (table above).

Prefer separate steps? Run upoch init, then upoch register.

Recommended: upoch setup --owner 0xYourWallet does the same, then moves ownership to your own wallet so the owner key does not stay on the agent's machine (see Owner key off this machine).

How it works

Each checkpoint is encrypted on your machine and stored on IPFS. Its fingerprint is committed to the Upoch contract, and then the checkpoint is read back and verified. Only someone with your checkpoint key can read it, and anyone can check that it has not been changed. Every checkpoint opens in the Time-Travel Debugger.

Two keys are created on your machine and never leave it:

  • Owner: registers the agent and approves rollbacks. You fund it once, then hand it over to your own wallet (upoch handover), which deletes it from this machine.
  • Executor: the agent's key. It submits checkpoints and, through upoch_send, makes the payments your Risk Check rules allow. The agent never holds the owner key.

A rollback restores the agent's state and memory. It cannot reverse transactions that already happened on-chain; those are listed so the agent can account for them.

MCP tools

Tool What it does On-chain
upoch_restore Restores the latest checkpoint after verifying it: state, note, completed and unresolved actions read
upoch_checkpoint Saves the current state as a checkpoint (progress, before_action, after_action, manual) 1 transaction
upoch_check_action Risk Check for an action the agent is about to take: passed, it is recorded as planned; blocked, the refusal is checkpointed and the agent is told not to run it 1 transaction when blocked
upoch_send Pays ETH or a token from the agent's Upoch wallet through Risk Check, with a checkpoint before and after. Nothing is sent without rules 3 transactions (1 when blocked)
upoch_record_action Records an external action (submitted, confirmed, failed) with its transaction hash no (goes into the next checkpoint)
upoch_rollback Goes back to an earlier checkpoint (e.g. before a bad trade) and continues from it; lists actions since then that were not undone on-chain 1 transaction
upoch_complete Saves a final checkpoint and marks the run finished 1 transaction
upoch_history Lists recent checkpoints read
upoch_verify Verifies one checkpoint without restoring it read
upoch_status Shows the workflow, executor funds, today's usage and whether approvals and the kill switch are on read

The server tells the agent when to use them: restore at the start, checkpoint after meaningful progress, check each consequential action before it runs and record how it went, pay through upoch_send, roll back when something went wrong, and complete at the end.

Risk Check

upoch rules                              # show the rules
upoch rules allow 0xRecipient…           # approve a recipient (upoch rules disallow 0x… removes one)
upoch rules limit native 0.01 0.05       # at most 0.01 ETH per payment and 0.05 ETH per day
upoch rules limit 0xToken… 25 100        # the same for a token, in whole tokens
upoch rules types transfer,swap          # the only action types allowed (upoch rules types any: no limit)
upoch rules clear                        # remove every rule

The rules live in ~/.upoch/config.json under riskCheck (amounts in base units) and apply to the agent's next check, without a restart. The agent has no tool to change them, and upoch rules changes them only in an interactive terminal.

  • Fail closed. upoch_send refuses every payment until the token has a per-payment limit and you have approved recipients. A spend in a token without limits, or a daily total that cannot be read, is blocked.
  • What triggered it (0.5.1+). When an action comes from something the agent read (a message, email, web page or tool result), the agent passes its exact text as trigger to upoch_check_action or upoch_send. It is saved, encrypted, with the checkpoint, so the owner reads the wording that fooled the agent next to the refusal. Never public, never returned to the agent by restore; text that looks like a key is not stored.
  • On the record. A blocked action is checkpointed with Risk Check's verdict and shown as BLOCKED in the agent's Effect Ledger. A payment that goes out is checkpointed before and after, with its receipt (token, amount, recipient).
  • Once rules are set, every new action goes through upoch_check_action first: recording one that skipped it is refused.
  • Daily limits count every payment that passed Risk Check in the trailing 24 hours (kept in ~/.upoch/spends.json) until it is recorded as failed.
  • Risk Check guards what goes through Upoch Guard. For hard enforcement, give the agent its funds only in its Upoch wallet (the executor) and no other wallet tool, so upoch_send is the only way it can pay.

Trading kit: a seatbelt for your trading bot (0.5.0+)

Guardrails for an agent that trades, on top of Risk Check, approvals and the kill switch:

upoch rules loss native 0.02            # daily loss limit: no new trades once today's net loss reaches 0.02 ETH
upoch rules loss 0xToken… 25            # the same in a token, in whole tokens
upoch rules trades swap,close           # which action types count as trades (default swap, trade, order, buy, sell)
upoch approvals above native 0.05       # trades above this wait for your Approve in Telegram
  • Daily loss limit. The agent records each confirmed trade with its realised profit or loss (upoch_record_action with pnl: { token, amount: "-0.004" }); while a limit is set, a confirmed trade without it is refused. Once the net loss in the trailing 24 hours reaches the limit, upoch_check_action blocks every new trade with the rule daily-loss, and the refusal is checkpointed. Profits count against losses. An unreadable pnl.json blocks trading (fail closed).
  • The numbers come from the agent. The limit holds an honest bot to your rules and stops a runaway one; it does not stop a key thief. The hard cap on what a fooled agent can lose is an on-chain allowance on its funds (next).
  • Kill switch (/kill in Telegram), approvals for big trades and the full record (every trade checkpointed before it runs, every refusal on-chain) work as for any Upoch agent.

Try it without real trades: examples/paper-trading-bot.mjs (in this package) runs simulated trades through your guard, checkpoint by checkpoint, until the loss limit stops it. Replace its simulate() with your strategy.

Memory that matches the state (0.3.3+)

If the agent keeps long-term memory in a store that pins versions, it passes the pinned version's pointer as memory in upoch_checkpoint (for example mem://store.example/<folder>@<version>#sha256:<hash>). The pointer is stored inside the encrypted checkpoint, so its hash is anchored on-chain with the state, and later checkpoints keep it until the agent gives a new one. upoch_restore returns it, and upoch_rollback returns the pointer that belonged to the checkpoint it goes back to: the agent restores its memory at exactly that version and checks the hash. A pointer that looks like it holds a key is refused.

Approvals and kill switch

upoch approvals pair                     # link your Telegram chat (signed by the owner key; no transaction)
upoch approvals above native 0.01        # payments of more than 0.01 ETH wait for your Approve
upoch approvals above 0xToken… 25        # the same for a token, in whole tokens
upoch approvals timeout 10               # minutes you have to answer (default 5, at most 60)
upoch approvals                          # show them: chat linked, kill switch, thresholds
upoch approvals off                      # remove them here, then send /unlink <workflow id> in the chat
  • Approve / Deny. A payment that passes your Risk Check rules but is above your threshold sends you a message through @UpochAlertsBot: the agent's name, the amount, the recipient and the agent's note. Nothing is sent until you tap Approve. Deny, or no answer in time, blocks it.
  • Kill switch. /kill <workflow id> in the chat stops the agent: every new action is blocked, and pending approvals are refused, until /resume <workflow id>. Actions already done stay as they are.
  • Fail closed. Once a chat is linked, the kill switch is checked before every action, and if upoch.tech cannot be reached it counts as on.
  • Off only from your chat. Approvals are switched off with /unlink <workflow id> in the linked chat. If they are removed from ~/.upoch/config.json while the chat is still linked, the agent runs nothing (0.3.1+), so an agent that edits the file cannot turn them off.
  • Thresholds from your chat. /above <workflow id> 0.01 (ETH) or /above <workflow id> USDG 25 in the linked chat keeps your threshold on upoch.tech. The stricter of that and the file applies (0.3.2+), so raising it in the file asks no less often. /above <workflow id> off removes it. Thresholds set only with upoch approvals above live in the file alone; set them with /above for one the agent cannot loosen. From 0.3.3 the service is read once per action, and with approvals on a failed read counts as the kill switch on.
  • On the record. A denied, unanswered or stopped action is checkpointed as BLOCKED with the reason, and an approved payment's checkpoint notes the approval.

Owner key off this machine (0.4.0+)

The owner key controls the workflow: guardians, the recovery timelock, executors, pause and ownership. Move it to your own wallet, so the file next to the agent no longer holds it:

upoch handover 0xYourWallet
  1. The owner key on this machine offers ownership to your wallet (one transaction, its last).
  2. You open the Owner page it prints (https://upoch.tech/app/agents/<id>/owner), connect that wallet and press Accept ownership.
  3. The command sees the new owner on-chain and deletes the owner key from secrets.json (it prints the address the key was for, never the key).

Nothing changes hands until the wallet accepts, so a typo cannot lose the agent: upoch handover cancel withdraws the offer, and upoch handover continues an interrupted handover. New agents: upoch setup --owner 0xYourWallet.

Right after accepting, check the Owner page: before the handover, whoever had the agent's machine had the owner key and could have added a guardian or executor, offered the workflow elsewhere or started a recovery. The page reads all of it from the chain and removes what you did not add. Use a phone or hardware wallet: a wallet in a browser on the agent's machine is within an agent's reach too. Guardians recover the workflow; keep the wallet's recovery phrase safe.

After the handover, upoch protect, guardian, timelock, export-owner and approvals pair point to the Owner page. upoch status shows whether the owner key is still on the machine; since the agent can edit anything the CLI prints, the Owner page (which reads the chain) is where to check. Restored state (upoch_restore, upoch_rollback) comes labelled as a record of what happened, never instructions.

Keep the agent out of ~/.upoch

The rules, the approval settings and the keys live in ~/.upoch. Claude Code, Cursor and Codex give agents file and shell tools that run as your user, so fence that folder off before you fund the agent: in Claude Code, deny Read(~/.upoch/**) and Edit(~/.upoch/**) in ~/.claude/settings.json and turn on /sandbox; elsewhere, run the agent in a container or as another OS user. Details: https://upoch.tech/docs/mcp#isolate

  • Signed both ways. Each request is signed by the agent's executor and the chat link by the owner; Upoch checks both against the chain. No keys or tokens are shared with Upoch.

Commands

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @upoch/guard

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229