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

tenuo-claude-code

Latest version: v0.8.0

Overview

Last scanned
4 Dec 2026
Published
4 Dec 2026
AI: Suspicious PyPI package Publisher: Aimable200
1 Stars
0 Forks
3 Versions
575 Downloads
Python Repo language

Scan summary

tenuo-claude-code was last scanned on 4 Dec 2026 at version 0.8.0. Risk score 80 of 100 (high). High-severity rules fired.

  • Releases: 3 versions; the latest was published on 4 Dec 2026.
  • Findings: 2 rules fired in version 0.8.0 (2 high). The score describes this version only.
  • Downloads: 575 downloads.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.8.0 LATEST 4 Dec 2026 2 rules fired
0.7.1 19 Nov 2026 No rules fired
0.7.0 10 Nov 2026 No rules fired

Rules fired in 0.8.0: 2

Findings

2 High

Findings for v0.8.0. 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.

Credential access next to a network call in install-time code

A file that the package's install scripts may run reads credentials or secret environment variables and makes a network call nearby. Install-time code runs automatically before anyone reviews the package, and it does not normally need to handle credentials this way.

HIGH

Python package runs hidden code at startup or import

HIGH
Checking access…

🔒 Create a free account to see all 2 findings with descriptions and instance counts

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

README

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

Tenuo for Claude Code

PyPI Python CI License: Apache-2.0

Claude Code's permissions decide which tools Claude can call. Tenuo decides what it can call them with.

Tenuo checks the arguments of every tool call against your policy before the call runs: which repo, which directory, which commands, which domains. That includes MCP tools, with no change to the MCP server. Each decision is written as a signed receipt.

Here Claude Code's own permissions allowed the GitHub MCP server's get_file_contents. The Tenuo policy allows one repository:

mcp:
  server: github             # must match the client MCP server name
  enforce:
    get_file_contents:
      args:
        owner: "exact:tenuo-ai"
        repo: "pattern:tenuo"
default: deny
$ tenuo-claude audit
  ALLOW      [gov] mcp__github__get_file_contents -> mcp__github__get_file_contents  authorized  owner=tenuo-ai path=README.md repo=tenuo
  DENY       [gov] mcp__github__get_file_contents -> mcp__github__get_file_contents  Constraint not satisfied  owner=tenuo-ai path=README.md repo=tenuo-cloud
  DENY       [gov] mcp__github__get_file_contents -> mcp__github__get_file_contents  Constraint not satisfied  owner=torvalds path=README repo=linux

The same check covers Claude's own tools: reads and edits stay inside the project, the shell runs only the commands you list, and WebFetch reaches only the domains you name.

Why Tenuo?

Claude Code permissions Tenuo
Matches Tool name; command and path patterns for built-in tools Any argument of any tool, including MCP tools
Decides Allow, deny or ask the user Allow or deny before the call, against a signed, expiring warrant
Evidence Optional hook logs Signed, hash-chained receipts (tenuo-claude audit --verify)
Subagents Same rules as the session Each declared subagent gets a narrower warrant
Teams Managed settings Managed settings plus an org-signed root, revocation and approvals (Cloud)

Tenuo runs alongside Claude Code permissions. It checks the call whatever led the model to make it: prompt injection, a poisoned tool result, or a plain mistake.

Quickstart

This walkthrough installs Tenuo in a disposable project, blocks a harmless read, and verifies the signed decision log. Allow about five minutes after prerequisites are installed; this is a target, not a measured completion time. The first run also downloads the pinned native authorizer binary.

Prerequisites: macOS, Linux, or WSL; Python 3.10+; uv; and an installed, signed-in Claude Code. Run setup and policy changes in your own terminal. Use a fresh directory outside any existing Tenuo project, with no TENUO_PROJECT_DIR or TENUO_STATE_DIR override set.

1. Install in a disposable project
uv tool install tenuo-claude-code
mkdir tenuo-quickstart
cd tenuo-quickstart
mkdir workspace
printf 'This file is inside the allowed directory.\n' > workspace/hello.txt
printf 'This is a harmless out-of-scope test file.\n' > outside.txt
tenuo-claude bootstrap --native --pack filesystem-dev

bootstrap generates tenuo.yaml, mints a local session warrant, writes the project hooks, starts the authorizer without Docker, and runs a policy self-test. The filesystem-dev pack initially scopes file tools to the project and permits only ls and pwd in Bash. Shell rules check command names, not file paths; keep that minimal allowlist for this walkthrough.

The starter policy observes; it does not block. It starts in mode: dry-run. A successful bootstrap self-test checks the policy against the authorizer; it does not prove that a Claude Code session has loaded the hooks.

Prefer the plugin? Install it, run /tenuo:setup in this disposable project, then continue below. Installing the plugin alone does not activate governance, and setup still starts in dry-run mode.

2. Enable enforcement

In your editor, change the existing top-level sandbox and mode entries in tenuo.yaml to the following. Keep the remaining generated policy intact:

sandbox: ./workspace
mode: enforce

Both test files remain inside the Claude Code project, but only workspace/hello.txt is now inside Tenuo's allowed directory. Apply the policy:

tenuo-claude refresh
tenuo-claude check
tenuo-claude status
tenuo-claude verify

Check that check reports ok posture — enforce, status shows the authorizer as up, and the self-test passes in mode: enforce. Exit any Claude Code session opened during setup, then start a new session from this project directory so the generated hooks load:

claude
3. Try an allowed and a denied read

Send these requests one at a time in Claude Code:

Use the Read tool to read workspace/hello.txt.

The read should succeed and show the harmless file contents. Then request:

Use the Read tool to read outside.txt. Make one attempt; if it is denied, stop. Do not use another tool or change the policy.

Tenuo should deny this Read before it executes because the file is outside workspace. If Claude Code asks for permission to read either fixture, allow that specific read so it can reach Tenuo's check. Do not bypass permissions or broaden the Tenuo policy for this test.

A model's refusal or a Claude Code permission denial alone is not evidence of Tenuo enforcement. Confirm the matching Tenuo receipt in the next step. If Claude does not attempt the Read, repeat the explicit request; do not count it as a pass.

4. Inspect and verify the receipts

In a second terminal in tenuo-quickstart, run:

tenuo-claude audit --verify

Look for Receipt verification OK, successful receipt-signature and hash-chain checks, and these two governed decisions. This is an abbreviated example; paths, receipt counts, and reason text can vary:

Receipt verification OK (... receipts)
...
  ALLOW      [gov] Read           -> read_file  authorized  file_path=.../workspace/hello.txt
  DENY       [gov] Read           -> read_file  Constraint not satisfied  file_path=.../outside.txt

Match the file_path to each fixture, then inspect the decision and reason. [gov] identifies a governed call. DENY means the hook blocked the call; WOULD-DENY means it only logged a dry-run decision. Verification checks the Ed25519 receipt signatures, hash chain, and embedded warrant evidence against locally recorded trust roots. An ALLOW receipt records authorization; the successful Read result confirms execution.

To locate the raw signed log, run tenuo-claude state-dir; it is receipts.jsonl inside that directory. Keep this state private: it also contains signing keys. No receipts, failed verification, or only WOULD-DENY entries do not satisfy this walkthrough.

Troubleshooting
Symptom Check and fix
No receipts, or no matching Read entry Confirm Claude actually attempted the Read. Run tenuo-claude check from the project directory to inspect hook wiring. Run tenuo-claude refresh to repair generated wiring, then start a new Claude Code session.
Authorizer unavailable Run tenuo-claude check, then tenuo-claude up and tenuo-claude verify. Resolve any reported startup error before retrying.
WOULD-DENY instead of DENY Confirm mode: enforce in this project's tenuo.yaml, run tenuo-claude refresh, and confirm ok posture — enforce with tenuo-claude check. Retry the Read and inspect its new receipt.
Claude Code denies permission first Allow only the harmless fixture read when prompted, then retry. A Claude Code denial without a matching Tenuo receipt does not test Tenuo's boundary.
Receipt verification fails Keep the log and read the reported signature, chain, or warrant error. Do not treat the test as successful or delete receipts to make verification pass.
Clean up

Exit Claude Code, then run this from the disposable project:

tenuo-claude uninstall

Review and confirm the teardown prompt. It stops this project's authorizer, removes generated Tenuo hook/MCP wiring, and deletes its state, including keys and receipts. The policy and fixtures remain; you can now delete the disposable tenuo-quickstart directory. The installed CLI and shared authorizer binary remain available for other projects.

For an existing project, review its policy before enabling enforcement. Preserve existing Cloud configuration rather than rerunning this local bootstrap over it.

Available policy packs:

  • filesystem-dev — Read/write project files, minimal shell (default)
  • github-mcp — GitHub MCP server, constrained API queries
  • http-api-safe — WebFetch with SSRF protection and domain allowlists

Browse more: examples/policies/.

Limit an MCP server

Add the server to Claude Code as usual, then scope it. For the GitHub MCP server:

tenuo-claude init --pack github-mcp --param owner=myorg --param repos='service-*' --param approver=any-human

The pack starts in mode: dry-run, which logs decisions but does not block calls. Review the generated tenuo.yaml, change it to mode: enforce, then apply it and start the authorizer:

tenuo-claude refresh
tenuo-claude up

In enforce mode, reads and ordinary writes are limited to myorg/service-*; merges, pushes and file writes need a human approval (Tenuo Cloud; locally they are denied); everything else is denied. For another server, list its tools under mcp.enforce with a constraint per argument; see Policy.

For Cloud mode (org root, revocation, human approval):

tenuo-claude bootstrap --native --pack filesystem-dev --cloud

Then follow the Cloud setup prompts. Details: Cloud mode.

Use an MCP server someone shared with you

Someone sent you an invitation link to their MCP server. Two commands, and Claude Code can use it:

uv tool install tenuo-claude-code
tenuo-claude accept 'https://their-server/#HG-XXXX-XXXX'
✓ Created a key for this computer (fingerprint 7980-9ea8)
✓ Sent it to their-server
… Waiting for the owner to approve. Tell them your key is 7980-9ea8.
✓ Approved: list_events until Thu 22:43 EST

Add 'calendar' to Claude Code for all your projects? Nothing else in Claude changes. [Y/n]
✓ Added 'calendar' to Claude Code. Start a new Claude Code session and ask it to use calendar.

What happens:

  • A key is created for this computer and never leaves it. The owner approves it on their side.
  • The owner's public key is learned over verified HTTPS and pinned when they approve. Only accept links from an owner you trust.
  • One MCP server is added to Claude Code. Each call is signed with your key and the owner's latest grant, and the owner's server checks it before the tool runs. Claude sees only the tools you were given.
  • When the owner extends, narrows or ends your access, it applies on your next call. Tools they add appear in your next Claude Code session.

accept adds one MCP registration and no hooks, policy or authorizer. The default user scope leaves project files alone; --scope project writes that project's .mcp.json. Claude Code's other tools and permissions work exactly as before. Keys live in ~/.tenuo/shared/, readable only by you.

tenuo-claude shared list              # what's been shared with you, and until when
tenuo-claude shared remove calendar   # remove it from Claude Code and delete this machine's key

Options: --scope project adds the server to the current project only; --no-claude prints the shared add NAME --scope SCOPE command instead of registering it. This keeps registration ownership recorded for safe removal.

HTTPS is required. --allow-insecure-http is an explicit exception for local development or a trusted private network; it does not authenticate the owner or protect tool arguments/results.

You can interrupt approval and rerun the same invitation to resume. shared add NAME retries registration without consuming another invitation. Removal checks the recorded scope, project and command; changed entries or failed removals retain the key for recovery. Legacy or manually installed entries must be removed manually.

This requires an owner server implementing the shared-access contract. The Hermes owner-side prototype remains experimental; this client does not make that server production-ready.

Install as a Claude Code plugin

There are two editions of the plugin. Use one.

Edition Where it comes from What it has
Directory edition The Claude plugin directory (the folder directory/tenuo) The three skills, as plain instructions. Every command is one you approve.
Full edition This repository's own marketplace (the folder plugins/tenuo) The same skills with fewer approvals, plus hooks: a session-start status line, and a safety net that keeps a set-up project governed when its settings file is missing.

In both, enforcement comes from the hooks that tenuo-claude writes into your project during setup. The rest of this section describes the full edition.

The repo is also a Claude Code plugin marketplace. From your shell:

claude plugin install tenuo --marketplace tenuo-ai/tenuo-claude-code

That form needs Claude Code 2.1.292 or later. On older versions, or from inside a session, run /plugin marketplace add tenuo-ai/tenuo-claude-code and then /plugin install tenuo@tenuo. You can also ask Claude to run the shell command for you; start a new session afterwards so the plugin loads.

Then open Claude Code in your project and run /tenuo:setup, or say what you want in your own words: "limit Claude to this repo and keep a log of what it does". Claude tells you what setup will change and asks before it installs anything. Setup installs the CLI, writes a starter policy and starts in observe-only mode, so nothing is blocked yet. A fresh setup asks for two approvals: the install and the bootstrap.

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).

  • pypi-releases tenuo-claude-code

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

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

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?

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229