Skip to content
View starkxun's full-sized avatar
🏠
Working from home
🏠
Working from home

Highlights

  • Pro

Block or report starkxun

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
starkxun/README.md

StarkXun

Smart Contract Security · DeFi Protocols · Adversarial Thinking

I work on understanding, testing, and breaking smart contracts.

Not interested in copy-paste dApps.
Not interested in “hello world” audits.
I focus on protocol mechanics, invariants, and failure modes.


What I Actually Do

  • Read real-world DeFi protocols (AMM / Vault / Bridge / Rebase)
  • Reproduce vulnerabilities from public audit reports
  • Design state-machine & invariant-based tests
  • Compare on-chain behavior vs source code
  • Write PoCs that prove something can break

If something looks “safe”, I assume I just haven’t found the bug yet.


Security Tooling & Methods

Primary

  • Solidity
  • Foundry (forge / cast / anvil)
  • Invariant & fuzz testing
  • Manual adversarial review

Thinking Framework

  • State transitions > function-level thinking
  • Accounting correctness before business logic
  • Invariants before optimizations
  • Assume hostile users, broken oracles, bad configs

Protocols I Study

  • AMM designs (constant product, variants, fee paths)
  • Vaults (deposit / redeem / share accounting)
  • Rebase tokens & interest distribution
  • Cross-chain messaging & bridge risk
  • Upgradeability & governance attack surfaces

Repositories

This GitHub is not a portfolio of finished products.

Most repos are:

  • Audit reproductions
  • Experimental protocol implementations
  • Security notes & testing patterns

If a repo looks messy, it’s probably because I was testing an edge case.


Current Focus

  • Independent auditing of mid-to-high complexity DeFi protocols
  • Competitive audits (Code4rena / similar)
  • Building a reusable audit workflow:
    • read → model → test → break → prove

Long term: protocol security research.


Find Me


Philosophy

“Most bugs are not in functions.
They are in assumptions.”

Security is not about tools.
It’s about how you think when everything goes wrong.

Pinned Loading

  1. defi-poc-lab defi-poc-lab Public

    Starkxun's defi poc lab

    Solidity 3 3

  2. foundry-defi-stablecoin foundry-defi-stablecoin Public

    my first defi project

    Solidity

  3. foundry-fund-me-f23 foundry-fund-me-f23 Public

    Solidity

  4. foundry-merkle-airdrop foundry-merkle-airdrop Public

    My first merkle arirdrop project

    Solidity

  5. my-audit-reports my-audit-reports Public

  6. cross-chain-bridge-guide cross-chain-bridge-guide Public

    this is a demo code for crypto cross chain study

    Solidity