Muhammad Zain Khan

Software engineer | blockchain · Lahore, Pakistan

AI agents are getting wallets, and some can be talked into paying a scammer with one poisoned note.

Four years of building wallets and smart contracts led here. The day job is the Kresus smart wallet at TEKHQS, mostly its SDK and the indexer behind its DeFi apps. The side research is breaking agents that hold money, with scams copied from real 2026 incidents and the chain keeping score.

So far, spending caps haven't stopped the losses. An allowlist or an on-chain brake has. A second study checked whether agents report a co-owner who steals. Mostly they do, though a rulebook makes them accuse innocent people too. All of it is below, including what didn't work.

Open to remote roles in smart contracts, security, and AI agent evals.

Research

crash-test

Oct 2026

Can you trick an AI agent into paying a scammer?

The setup

Eleven scams taken from real 2026 incidents (poisoned memory, fake gateway errors, look-alike pages and addresses, fake refunds and a few more), each with an innocent twin, so honest payments the agent refused get counted too. They run against four kinds of wallet on a local chain. The chain decides what got stolen, not the model and not the person running it. The predictions were written down and frozen before the main run.

Results · Claude Haiku 4.5, 352 runs, pre-registered

  • With a plain private key the agent got fooled in 27 of 44 attacks, and lost money every one of those times.
  • Spending caps barely helped: 22 of 24 fooled runs still leaked.
  • An allowlist, or Brake with a watcher, stopped all of it (0 of 44). The price: about 9% of honest payments didn't go through, vs 3% with the plain key.
  • Side test across seven models (one seed only, so treat it as a hint): Claude Haiku 5.5, Claude Opus 4.5 and DeepSeek V4.1 Flash were never fooled. GPT-5 mini was fooled 61% of the time.

Solo project, not peer-reviewed. Claude Code was the implementation tool; the design and every decision were mine.

Vault Village

2026

If an AI agent sees a co-owner stealing, does it say something?

The setup

Four AI agents share a 3-of-4 multisig on a local chain. One co-owner is a script: in half the runs it steals, in the other half it does the same-looking things innocently. The first version used an AI as the thief, and it never stole. The 3-of-4 vote scared it off, so there was nothing to catch. Making the thief a script fixed that, and made false accusations countable too.

Results · gpt-5-mini, 98 of 202 planned runs

  • With no instructions, agents reported the thief 82% of the time and never accused the innocent one.
  • With a rulebook they caught every thief, but also accused the innocent co-owner a third of the time.
  • Framing it as values or emotions instead caused no false accusations at all.
  • 30 agents were checked by hand against the AI judge. It matched on all 30 for who reported, and on 27 of 30 for who was suspicious.

Only half the runs are done, so these numbers can still move. Solo project, not peer-reviewed. Claude Code was the implementation tool; the design and every decision were mine.

Brake

Oct 2026

A pause button for AI agent wallets.

How it works

Small trusted payments under a daily cap go through right away. Anything else waits in a public queue, where a cancel-only key can hold it or kill it. Pull the agent's key and its whole queue goes with it. Built for EVM as an ERC-7579 module on Base Sepolia, and for Sui as a Move package on testnet. Attacking the design with Foundry PoCs before launch forced a redesign.

Experience

Blockchain Engineer, TEKHQS

Feb 2025 – Present

Lahore (hybrid)

Placed on Kresus since Oct 2025, a smart wallet app built on ERC-4337 vaults.

  • Built both ends of an RPC proxy for the wallet SDK, so the mobile app won't have to carry Alchemy, Jupiter or Tatum keys.
  • Added Ethereum mainnet to the SDK, moved Sui to its v2 SDK over gRPC-web, and moved Bitcoin signing to Magic v29.
  • Main contributor (about 200 commits) to the server that indexes Morpho Blue and Uniswap V3 on World Chain. Ported it to TypeScript behind tests, and fixed a cursor bug that skipped or re-read blocks.
  • Worked on the WLD Earn mini-app (deploy scripts, withdraw rules, tracking positions across contract versions) and a Safe-based multisig treasury.
  • Before Kresus: multisig wallet contracts for the Komiti app, and a domain fractionalisation platform (NFT minting, ERC20 swaps, leasing).

Blockchain Developer, The Game Company

Aug 2023 – Jan 2025

Remote

  • Built a payment system across several chains that handled 500+ transactions at once and cut failed deposits by 30%.
  • Wrote and deployed the game contracts: staking, vesting, tournaments, token issuance. A gas-saving queue cut execution costs by 15%.
  • Mentored 5 junior devs and set the team's Solidity security rules.

Blockchain Developer, Ekkel AI

Jul 2022 – Aug 2023

Lahore (hybrid)

  • Deployed 21+ NFT contracts (ERC721 and ERC1155) on Ethereum and Polygon with a factory pattern. Automating mint and metadata cut deploy costs by 25%.
  • Moved 2,700+ NFTs from Ethereum to Aptos using on-chain signature checks.
  • Hooked up price oracles for 150+ trading pairs.

Earlier

  • Creative Distrix, Blockchain Developer (May – Jul 2022): NFTs on Solana with Metaplex.
  • Nethermind, Blockchain Intern (Jan – Apr 2022): trading bot benchmarks in Rust and TypeScript, mainnet fork simulations.
  • Novon, MEV Intern (Nov 2021 – Jan 2022): MEV research and arbitrage bots.

Client projects

Games

  • Roarlinko

    Ethereum, Aptos

    Play-to-earn game with on-chain asset checks. $40K+ in NFT sales.

  • Treasure Hunt

    Aptos

    On-chain play-to-earn game with NFT power-ups.

  • Game Boss

    TON

    Telegram game with team and player battles.

  • Jungle CosmosToss

    Aptos

    Coin-flip game.

DeFi & NFTs

  • GMRT Launch Pad

    Ethereum

    Staking and token rewards based on how much and how long you stake.

  • FuzionX

    Ethereum, Polygon

    DEX and NFT marketplace with live prices for 150+ trading pairs.

  • Jungle Run

    Ethereum, Aptos

    Mint new NFTs based on what you hold on Ethereum and Aptos.

Cross-chain

  • NFT migration dApp

    Ethereum → Aptos

    Moved 2,700+ NFTs across chains with signature checks.

  • ImmutableType

    Ethereum

    News publishing stored on-chain, so nobody can quietly take it down.

Skills & education

Smart contracts
Solidity, OpenZeppelin (Contracts and Upgrades), ERC20 / ERC721 / ERC1155, ERC-4337, ERC-7579, Uniswap V3, Morpho Blue, Safe, Sui Move, Aptos Move, Foundry, Hardhat
Security
Foundry invariant and fuzz tests, PoC exploits, Slither, admin path and signer threshold reviews
Wallets & backend
TypeScript, ethers, viem, @mysten/sui, Node.js, Express, NestJS, Postgres, MongoDB, indexers, Go
AI agent evals
Pre-registered studies, multi-agent setups scored by the chain, LLM judges checked against hand labels, Hugging Face datasets
Chains
Ethereum, Base, World Chain, Polygon, Arbitrum, Avalanche, Sui, Aptos, TON
Education
BSc Mechatronics & Control Engineering, University of Engineering and Technology, Lahore (2017 – 2021)

Contact

Email works best: khanzain101325@gmail.com