Scan your whole stack
Are you using tenkyu?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.3.0
tenkyu was last scanned on 28 Nov 2026 at version 0.3.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.3.0 LATEST | 28 Nov 2026 | No rules fired |
| 0.2.1 | 26 Nov 2026 | No rules fired |
| 0.2.0 | 26 Nov 2026 | No rules fired |
| 0.1.0 | 16 Oct 2026 | Not shown |
Findings for v0.3.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.
The score describes 0.3.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Stops fake accounts from grabbing your free AI credits.
Tenkyu scores each signup allow, review or block and says how much of the free credit to give. It is a small Python library that runs inside your app and tells you the reason for every decision.
Status: Early Access.
pip install tenkyuinstalls 0.3.0 (Python 3.11 or newer, no dependencies; see the CHANGELOG). It uses fixed rules, not machine learning, and makes no network calls. Read Honest limits before you rely on it.
pip install tenkyu
tenkyu audit --sample
This replays a bundled synthetic export (939 signups with known farms, not real users) offline, and prints what Tenkyu would have flagged. Real output, trimmed:
Using the bundled sample (synthetic signups with known farms, not real users).
Audited 939 signups (replayed in time order, nothing left this machine)
allow 689
review 11
block 239
Flagged for review or block: 26.6% (review is a softer check; some honest users land there)
Free credits these decisions would have withheld: $741.75 at $3 per grant
The free credit is your own number: every dollar figure in this README uses an example $3 grant, and you give your own with --grant (or, on the hosted dashboard, in Settings, where new accounts start at $5.00 until you change it).
If tenkyu is not on your PATH, use python -m tenkyu audit --sample. The full output and how to run it on your own signup export are in First, find out what you already lost. Honest users flagged by review get partial credit, and docs/flagged-users.md says what to do about them. Early users: please share your shadow-week numbers with the shadow-week results form (counts and rates only).
New here? Three ways in:
examples/supabase-edge-function or examples/vercel-nextjs. Each creates the account first, then checks it with the hosted API and grants credits by verdict. The hosted API is built but not deployed yet, and the JS client is not on npm yet, so you cannot run a recipe against a live service today.Guard(shadow=True). Nobody is refused. In the first week, label the signups you know and read your accuracy: Your first week with Tenkyu.Export your signups to CSV (an email column and a time column; IP, device id and user agent help) and replay them. Nothing leaves your machine. Try it on the bundled synthetic sample first:
$ python -m tenkyu audit --sample --grant 3
Using the bundled sample (synthetic signups with known farms, not real users).
Audited 939 signups (replayed in time order, nothing left this machine)
allow 689
review 11
block 239
Flagged for review or block: 26.6% (review is a softer check; some honest users land there)
Free credits these decisions would have withheld: $741.75 at $3 per grant
Main reason per flagged signup:
110 this email (or an alias of it) already signed up
51 N similar-looking emails from this IP
14 N signups from this IP in Ns
14 N signups from this IP in Nh
5 N accounts on this device
4 automation-style user agent (python-requests)
Then run it on your own export: python -m tenkyu audit signups.csv --grant 3 --out flagged.csv. The screen shows counts only; flagged.csv holds the flagged rows of your export with Tenkyu's action and reason. Common column names are matched (created_at, timestamp, signup_ip, visitor_id, primary_email_address and more), unused columns are listed, and --link card=card_fingerprint joins accounts on any column you have.
audit counts what Tenkyu would flag. evaluate tells you how often it is right. Add a label column to your export that says which accounts were farmers and which were real users, then run:
$ python -m tenkyu evaluate labelled_signups.csv --grant 3
Evaluated 9 labelled signups (7 farmers, 2 real users), replayed in time order, preset default; nothing left this machine
Flagged = review or block:
precision 100.0% of flagged accounts, the share that were farmers
recall 85.7% of farmers, the share flagged
honest users wrongly flagged 0.0% 0 of 2 real users
Blocked only:
precision 100.0%
recall 57.1%
honest users wrongly blocked 0.0% 0 of 2 real users
Free credits at $3 per grant:
withheld from farmers $16.50
withheld from real users $0.00
By tactic (recall = farmers flagged; false positives = real users flagged):
(none) farmers 0 recall n/a real 2 false positives 0.0%
alias farmers 3 recall 66.7% real 0 false positives n/a
bot farmers 4 recall 100.0% real 0 false positives n/a
That sample is a nine-row toy file; your numbers will come from your own rows. The file needs the same columns as audit (email and a time column; ip, device_id and user_agent help), plus label. Write farmer or real in it (1/0, true/false, yes/no and fraud/legit work too, in any case). Optional columns: phone and card (treated as verified links), and tactic for a breakdown by how each farmer operated.
Rows are replayed in time order, so each signup is judged only on what came before it. Flagged means review or block. "Withheld" dollars use the share of the grant Tenkyu would hold back, at the --grant you give, so a flagged real user shows up as lost money. Rows with an unreadable time or an unclear label are skipped and counted. Use --preset ai to test Guard.for_ai_apps() instead of the default settings; with it, "withheld from real users" includes the starter hold (half the grant for every unverified user), which is by design and not a false positive. Use --json for machine-readable output. From Python: from tenkyu.evaluate import evaluate_csv, evaluate_rows.
You can also score decisions you already recorded. tenkyu evaluate --decisions export.csv reads the hosted dashboard's labelled export (columns action, would_action, shadow and label, no email or IP) and reports the same precision, recall and honest-users-flagged lines; in shadow mode it judges what Tenkyu would have done. With a library DecisionLog, use tenkyu shadow-report instead (see shadow mode).
from tenkyu import Guard, Signup
guard = Guard() # in memory, so a restart forgets everyone. Reuse one Guard per process.
# In your app, keep the history on disk instead: Guard(store=SQLiteStore("tenkyu.db"))
UA = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) Chrome/120.0 Safari/537.36"
first = guard.check(Signup(email="john@gmail.com", ip="203.0.113.7", device_id="dev-1", user_agent=UA))
print(first.action, first.reasons) # allow []
# Same person, new alias, hoping for another batch of free credits:
again = guard.check(Signup(email="j.o.h.n+free2@gmail.com", ip="203.0.113.7", device_id="dev-1", user_agent=UA))
print(again.action, again.reasons) # block ['this email (or an alias of it) already signed up']
if again.action != "allow":
print("withhold free credits; send to manual review" if again.action == "review" else "reject signup")
Keep state on disk. Guard() forgets everyone when the process stops. In your app, use Guard(store=SQLiteStore("tenkyu.db")) (from tenkyu import SQLiteStore). The history then survives restarts and is shared by all workers on one machine. For several machines, use PostgresStore (see Several servers).
Pass the request headers through. A missing user agent is itself a weak signal (no_user_agent, 0.25). signup_from_request reads the user agent and the client IP from your headers for you (see Using it behind a web framework).
Where guard.check goes. Call it after you have validated the sign-up and before you grant credits. Do not block account creation on it unless you want to. Withhold or reduce the credits instead: decision.credit_fraction says how many to give.
Use a recipe if you run Supabase or Vercel. Webhooks carry no IP, so the recipes put a small endpoint in front of sign-up (a Supabase Edge Function, or a Next.js route). It sends the IP, user agent and a device id to Tenkyu and writes the grant. If Tenkyu cannot be reached, the client grants 25% of the credits, not all of them.
Start in shadow mode. Guard(shadow=True) (library) and every new hosted account (7 days, live keys only) score each signup but refuse nobody. Label what you can in the first week and run tenkyu shadow-report. The plan is in docs/first-week.md.
Install from source: pip install -e . (no dependencies; Python 3.11 or newer, tested on 3.11, 3.12 and 3.13).
No code needed to see it work:
python -m tenkyu demo
scene email action score credits main reason
------------ ------------------------- ------ ----- ------- -----------
honest user ana@acme.io ALLOW 0.00 100% -
alias farmer john@gmail.com ALLOW 0.00 100% -
alias farmer j.o.h.n+free1@gmail.com BLOCK 0.90 0% this email (or an alias of it) already signed up
alias farmer john+free2@googlemail.com BLOCK 0.95 0% this email (or an alias of it) already signed up
bot burst bot0@acme.io REVIEW 0.45 25% automation-style user agent (python-requests)
bot burst user1x@mailinator.com BLOCK 0.89 0% disposable email domain (mailinator.com)
bot burst bot2@acme.io BLOCK 0.97 0% 3 signups from this IP in 60s
bot burst user3x@mailinator.com BLOCK 1.00 0% 4 signups from this IP in 60s
Score a single signup from a shell or a script (--db remembers signups between runs; exit code is 0 allow, 10 review, 20 block, 3 if the --db file cannot be opened):
python -m tenkyu score --email j.o.h.n+x@gmail.com --ip 203.0.113.7 --db tenkyu.db
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.