Inspiration

In January 2024 the SEC's X account was hacked and one fake post moved the price of Bitcoin within minutes. Vitalik's account was hacked too, and his followers lost about $700,000 to a link the attacker posted. The pattern repeats every month with crypto projects: someone gets the login, posts a fake mint or a fake token address, and followers send money because the post comes from the real account.

The root problem is that on X, the attacker's post looks exactly like the owner's. A password, a session cookie or a SIM swap is enough to speak as the project. I wanted the thing that authorizes a payment to be something a remote attacker cannot take.

What it does

Thumbprint moves approval off X and onto a Solana Seeker phone.

  • Posts. The owner writes a post, the phone shows the exact text, and a fingerprint signs it. The approval is recorded on Solana. Followers with the Thumbprint Chrome extension see a green mark on approved posts and can click through to the onchain proof. A post with no fingerprint behind it gets a red warning.
  • Payments. The owner approves a treasury address with a fingerprint. The payment page reads that approval directly from Solana, and the program's pay instruction only moves funds to that exact address. If an attacker swaps the recipient, Solana rejects the transaction with WrongRecipient and nothing moves.
  • Kill switch. If the account is taken over, one touch on the phone flags it as compromised onchain. Every follower with the extension sees a warning banner and all protected payments stop. The owner does not need to win the X account back first.
  • Lost phone. The owner's wallet enrolls a new Seeker. That replaces the key and invalidates every approval made with the old one.

An attacker with the full X login can still post. What they cannot do is get a green mark, change the approved address, reuse an old approval (each one has a counter that the program consumes), or receive a protected payment.

How I built it

  • Android app. Generates a P-256 key inside the Seeker's secure hardware with a policy that requires a biometric for every single signature. No PIN or password fallback. The exact message is shown in a native review screen before the fingerprint prompt.
  • Enrollment verifier. Before a key is registered, the server validates the Android key attestation certificate chain against Google's roots, checks revocation, the app's signing identity, verified boot state, hardware origin and the biometric-only policy. The evidence digest is stored onchain and the receipt is public.
  • Solana program (Anchor/Rust). Verifies fingerprint signatures with Solana's secp256r1 (P-256) precompile and wallet signatures with the Ed25519 precompile. It stores the approved destination, expiry, key generation and suspension state, and performs the transfer itself through a System Program CPI, so the recipient that is checked is the recipient that gets paid.
  • Chrome extension. Reads posts on x.com, looks up approvals, verifies them against Solana, and draws the marks, warnings and the compromised banner.
  • Relay and site (Bun/TypeScript). Handle proof, enrollment challenges, fee payer, post lookup, the payment page and a public evidence page.

Everything runs on devnet with a real Seeker. The repo has contract integration tests covering wrong signer, modified messages, replay, swapped recipient, expiry, revocation, suspension and key rotation.

Challenges I ran into

  • Proving the key is really in hardware. An app can claim anything. Getting Android key attestation validated end to end, and rejecting software keys, altered certificates and reused challenges, took most of the effort.
  • Binding the check to the money. Checking an approval in one instruction and transferring in another would let an attacker pair a valid check with a different transfer. The program does the transfer itself, so the address it checks is the address it pays.
  • Signature formats. Solana's P-256 precompile needs raw, canonical low-S signatures, so the phone's signatures are normalized before submission.
  • Reading X reliably. X truncates text and shortens links. The extension only shows a green mark when it can match the complete signed text and full URLs, and refuses to mark anything it cannot fully resolve.

Accomplishments that I'm proud of

  • A real payment delivered to a fingerprint-approved treasury, and the same payment with a swapped recipient rejected onchain. Both are inspectable on devnet at https://thumbprint.pyras.org/demo.
  • A real hardware attestation from a physical Seeker, validated against Google's roots, with its digest onchain.
  • The whole loop works live: approve on the phone, green mark on X seconds later, hacker post flagged, kill switch stops payments.

What I learned

Secure hardware on a consumer phone is good enough to be a signing authority for a brand, and Solana's P-256 precompile makes it cheap to verify those signatures onchain without a custom bridge. I also learned how much of security is wording: every guarantee had to be narrowed to what the program actually enforces.

Limits, stated plainly

  • Only people with the extension see marks today.
  • Payment protection covers payments made through Thumbprint's payment instruction. It does not stop someone from signing an unrelated transaction elsewhere.
  • A project has to enroll before it is hacked.
  • Devnet only.

What's next for Thumbprint

  • Put the same check inside wallets, so a wallet warns before paying an address the project never approved. That removes the need for followers to install anything.
  • A hosted project page that projects link from their bio, so followers get value before the extension is widespread.
  • Mainnet deployment and SPL token support.
  • First users: crypto projects and founders running mints or sales from an X account, where one fake post costs their community real money.

Built With

Share this project:

Updates

Submission history