ETHGlobal Mumbai 2026
Stolen keys that switch themselves off.
When a software package you installed turns out to be hacked, Shankh proves it and raises an alarm the attacker can’t silence. Then the AWS keys it could reach switch themselves off, before anyone can use them.
Latest alarm · live from Arkiv
shankh-demo 1.0.0
- Installed
- Caught
- Alarm raised
- Keys off
“Keys off” happens on the machine that caught it, so this public alarm can’t show it.
01 · What happened
October 2026: a popular AI package got hacked.
LiteLLM — used by AI apps everywhere — shipped a poisoned update. For about two hours, anyone who installed it had their cloud keys quietly copied. A stolen key was first used roughly 4.5 hours later, and nothing stopped it. (It had happened to the same package in March, too.)
- What actually happened — LiteLLM 1.107.0, October 2026
- 11:39 · poisoned update goes live
- 13:20 · PyPI pulls it
- ~14:20 · Docker image pulled
- ~4.5h · a stolen key is used
- With Shankh — how it is designed to go (not yet measured)
- caught by the rebuild, minutes in
- alarm raised, minutes in
- keys switched off, minutes in
- The gap between the keys going off and the attacker using one: hours to spare.
Historical timestamps: Datadog, Help Net Security, CSA write-ups; stolen-key timing is a single Wiz observation.
Keys that leak in public get shut off in seconds.Keys stolen by malware get nothing.
02 · What Shankh does
Check it. Raise the alarm. Shut the keys off.
Three steps, all running today. Below, Shankh is watching a machine when a poisoned test package gets installed: it catches it on its own seconds later, and the stolen AWS key is switched off 13 seconds after the install.
Check
Rebuild the package from its public source code and spot any file that shouldn't be there.
Raise the alarm
Post a signed alert to Arkiv, and let the real maintainer flag the bad build on ENS. Every other machine can read both.
Shut the keys off
Switch off the AWS keys registered with Shankh: quarantined, then deactivated — not deleted, so a false alarm can be undone.
All three steps, for real
Alarms on Arkiv · live
- shankh-demo@1.0.0criticalsigned by 0xDcbe…Ea91
- shankh-demo@1.0.0criticalsigned by 0xD729…bC5c
- shankh-demo@1.0.0criticalsigned by 0xDcbe…Ea91
- shankh-demo@1.0.0criticalsigned by 0xD729…bC5c
Trusted reporters · on ENS, live
A machine only acts on alarms from reporters it chooses. Each one is an ENS name that publishes the wallet they sign with — and only they can change it.
Couldn’t read ENS just now.
sitecustomize.py runs automatically every time Python starts — and it isn’t in the package’s public source. That’s the same trick the real LiteLLM attack used.
03 · Built on three partners
Three partners, three jobs.
ENS holds the switch. Arkiv carries the evidence. And open Ethereum networks mean there's no one in the middle.
How the three fit together
Shankh runs on your own machine. On one side, ENS holds what maintainers and reporters say about themselves. On the other, Arkiv carries the alarms machines send each other. Dashed parts aren’t built yet.
The package's real maintainer
Names nobody can seize
PyPI · the public source code
bad-builds list for every package
which reporters you trust
public source, to rebuild against
Shankh
1 Check
Rebuild each package from its public source and compare, file by file.
shankh verify
2 Sweep
Compare everything installed against every flagged build on ENS, and every trusted alarm on Arkiv, re-checked here.
shankh scan --trust
3 Act
Switch off the AWS keys registered with Shankh: quarantined, then deactivated.
shankh.kill.respond()
signs what it found
alarms from reporters you trust
Signed alarms anyone can read
Every other machine running Shankh
Ethereum Foundation · CROPSEvery arrow is a direct call to a public network. There’s no Shankh server in the picture to hack or switch off.
Next private chain reads (Anon-RPC)
ENS · Best Use of ENSv2
The switch nobody can seize
Every package gets an ENS name. The real maintainer flags bad builds there, from a wallet the attacker never stole — and we locked the name space so even we can't interfere.
Without it, the alarm would sit on someone's server, and whoever controls that server controls the alarm.
Arkiv · Build on Arkiv
The shared evidence
When one machine catches a bad package, it signs what it found onto Arkiv. Any other machine can read that alarm and check it for itself — no central feed to trust.
Without it, every machine would catch the attack alone, or rely on a single feed that could be faked or switched off.
Ethereum Foundation · Best CROPS App
No one in the middle
Shankh runs on your own machine and talks straight to public networks — PyPI, Sepolia, Arkiv. There's no Shankh server to take down, pressure or hack. This page is only a window: switch it off and the check still runs.
Without it, Shankh would be one more service you'd have to trust.
Ethereum Foundation · CROPS, letter by letter
Censorship-resistant
Nobody can delete the alarm — not the hacked publisher, and not us. It lives on ENS and Arkiv, not on a server.
Open source
Every line is public on GitHub under the MIT license — run it yourself, no account needed.
Private
What's installed on your machine and which keys you hold stay on it. Only the verdict on a package is published. Private chain reads (Anon-RPC) come next.
Secure
Proven, not trusted: packages are rebuilt from source, only the maintainer's switch can flag a build on ENS, and a stolen AWS key switches itself off in seconds. Next: finding keys without registering them.
04 · Why the alarm can't be silenced
The alarm lives on ENS, where the attacker — and even we — can't touch it.
Someone who steals a maintainer's PyPI or GitHub login can publish bad code. They still can't change what's on ENS, because that's controlled by a separate wallet.
We locked the name space
We created pypi.shankh.eth, then gave up our own power to change it or take back names in it — permanently.
✓ Locked · checked just nowTwo keys, two locks
The package's maintainer can only set where its code lives. Our kill-switch contract can only set the list of bad builds. Neither can touch the other's.
✓ Source set by maintainerFlag fast, unflag slow
Only the maintainer can flag a bad build, and it works instantly. Unflagging waits 48 hours, so someone with a stolen wallet can't quietly undo it.
3 builds flaggedWe tried to break it — using our own deploy key.
Every time this page loads, both attacks are re-tried against the live Sepolia network. This is what the chain says right now.
Show the raw error
EACCannotGrantRoles(0, 7237005577332262213973186563140405376786684291341514916453779499572452659456, 0xDcbe075a907960951Cd4df379BB21461097eEa91)Show the raw error
EACUnauthorizedAccountRoles(2844021095337237841129806607665185525430769143835556004274213054207323074410, 16, 0xDcbe075a907960951Cd4df379BB21461097eEa91)Every package in the registry, checked live
20 alarms on Arkiv
05 · Where it stands
One catches it. Everyone is saved.
What you just saw is real. Here’s what’s live, and what’s next.
Live today
- Catches a real malicious package by rebuilding it from source
- Switches the stolen AWS key off in seconds: quarantined, then deactivated
- Watches installs on its own and checks each one as it lands
- Signs the alarm onto Arkiv, and acts on trusted reporters' alarms after re-checking them
- Reads every maintainer's ENS kill switch, and treats a flagged build as critical
- ENS namespace we provably can't take back
Next
- Finding every key a package could reach on its own (today you register them)
- Docker images and other ecosystems beyond Python
- Private chain reads (Anon-RPC)
More detail
For the technically curious.
01 · How it works, step by step+
- 01
Noticenot yet
Watch installs; map which credentials each package could reach.
- 02
Verifybuilt
Rebuild from the public sdist, diff file-by-file against what's installed.
- 03
Provebuilt
Fold in the maintainer's ENS revocation; a revoked artifact is critical regardless of the diff.
- 04
Killnot yet
Quarantine, then deactivate the reachable AWS key. Deactivate, never delete.
- 05
Reportbuilt
Sign the result to Arkiv so every other machine can check it.