Danning Sui
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # Tornadoxxed 👀 *ETHBerlin3 Hackathon Project* *Team: [@hildobby](https://twitter.com/hildobby_), [@Ktl-XV](https://twitter.com/ktl_xv), [@sui414](https://twitter.com/sui414)* ## Links Website: [tornadoxxed.xyz](tornadoxxed.xyz) Twitter: [@tornadoxxed](https://twitter.com/tornadoxxed) ENS: tornadoxxed.eth Github: https://github.com/tornadoxxed Dune Team Page: https://dune.com/tornadoxxed ## Our Initiatives We aim to: - **Bring Data Transparency** Remove the data availability barrier, so to help any Ethereum wallet owner to check if their wallets are involved - awarely or unawarely - in Tornado Cash transactions. - **Open-sourcing Address Detection Methodologies** Defined potential basic heuristics that can recognize wallet behavior patterns, and alert the risk. - **Privacy & Security Education** Therefore this website serves as an educational showcase of how users should not be using Tornado Cash, i.e. the behaviors which may leak privacy information. We strongly believe that Tornado Cash is used by good actors and we want to help showcase what you shouldn't do if privacy is your concern. This website showcases how we were able to find over 100 depositor to withdrawer address matches based on how much they deposited and withdrew amongst the pools. This is a proof of concept and other patterns can be added to expand this database and lookup tool. You can also check all Tornado Cash transactions that a speicfic address has done by either searching it, searching its ens name or connecting your own wallet. ## What We Built A website that supports: - Tornado Cash Transactions History Lookup - inclduing deposits and withdrawals - data coverage - across 6 L1s/L2s (Ethereum, Optimism, Arbitrum, BSC, Avalanche, Gnosis) - multiple lookup methods - wallet address - ens name (support w/ or w/o `.eth`) - wallet connecting - Address Linking Risk Detection - Address Balance Clearing Pattern Detection ## Heuristics ### Address Detection #### Heuristic 1: Depositor <> Withdrawal Linking ✅ (implemented) - Check each depositor (or withdrawal) address's action in each size of the pool, note as $[d_i] (or [w_i])$ - per asset - per chain - If $i>=3$ and for each $i \in I$, $$d_i=w_i$$ - and also the pair of Depositor and Withdrawal is a only match - then it's likely Depositor address is highly related to Withdrawal address. #### Heuristic 2: Same Address Depositing & Withdrawing with Balance Clearing ✅ (implemented) - Take each wallet, calculate balance $b_i$ per block, based on deposits (add balance) and withdrawals (remove balance) - per asset - per chain - Check the pool where wallet's balance $b_i>0$, for all $i \in I$ - and ending balance $b_N=0$ #### Heuristic 3: Connected Components (using BFS/DFS) Labeling , based on - Token Transfer - ETH Transfer - NFT Transfer #### Heuristic 4: Fixed Active Time Window #### Heuristic 5: Fixed Gas Price of Txs Submission <!-- - pot size - 0.1/1 ETH: usually for funding hacking wallet's initial gas - 100 ETH: efficiently transfer big funds --> ### Idenfication Features #### Token holding - Presale / Investment - NFT Communities - Bluechip NFT - Social NFT - ENS ✅ (implemented) #### Behavior Set - Interaction with DEX - Interaction with Lending Protocol - Top Token Transfer <!-- - User Intention - prefer to deposit in larger amount for gas efficiency - 100 * (0.1ETH deposits + 0.1ETH withdrawals) may not cover gas when it's high. - 1 ETH is a good size to still hide/obfuscate but then gas efficient - the highly incentiviced pools while farming - 0.1 was highest but gas inefficient - 10 was the most popular (>100% for a while, across defi - late 2020 ish) - relayer takes a cut from withdraw so 0.9 <> 1 might not match ==> check event's amount --> ## Data Set ### Input #### Tornado Cash Contracts Deposits & Withdrawals: , across - Ethereum ([etherscan list](https://etherscan.io/accounts/label/tornado-cash)) - ~~Polygon~~ (not available on Dune V2) - BSC - Avalanche - Arbitrum - Optimism - Gnosis We queried from the following 2 Dune v2 Spells tables: `tornado_cash.deposits` `tornado_cash.withdraws` #### ENS Registrant Mapping on Ethereum we decoded it based on an existing [work](https://dune.com/queries/319517) in v1, and created the following Dune v2 Spells table: `ens.resolver_addresses` **currently not including subdomain* ### Output 1. Tornado Records Search Result | Blockchain | ENS | Pool | Deposits | Withdraws | First Seen | Last Seen | |--|--|--|--|--|--|--| |string|array|string|int|int|timestamp|timestamp|| screenshot: ![](https://i.imgur.com/3yoB1Tx.png) 2. Heuristic 1: Potential Linked Address based on total amount across pool | Depositor | Recipient | 0.1ETH | 1ETH | 10ETH | 100ETH| |--|--|--|--|--|--| |string|string|int|int|int|int| screenshot: ![](https://i.imgur.com/5UN8mrC.png) 3. Heuristic 2: Self Interaction with balance clearing | block_time | chain_pot | actions | |--|--|--| |timestamp | string | int| *actions: when positive, meaning depositing into note; when negative, meaning withdrawing from note; number represents the number of actions per block_time* screenshot: ![](https://i.imgur.com/ScpSgTS.png) ## Future Work - Host server for the website, add DDOS and API Key protections; - Expand with Lens dataset on Polygon, for richer idenfitication; - Expand ENS coverage to be subdomains compatible - Implement other detection heuristics as described above, to expand the risks alert coverage; - Construct the query result into a table (or materialized view) in Dune's backend with cron job, so to improve the API response time - ... References -- [Deanonymising the Kucoin Hacker - Koh Wei Jie](https://weijiek.medium.com/deanonymising-the-kucoin-hacker-418fa5e9911d) Blockchain is Watching You: Profiling and Deanonymizing Ethereum Users [Paper](https://arxiv.org/pdf/2005.14051.pdf) | [Github](https://github.com/ferencberes/ethereum-privacy) | [Vitalik's Tweet](https://twitter.com/vitalikbuterin/status/1268335372775428096?lang=en) [OFAC Sanctioned Contract List](https://home.treasury.gov/policy-issues/financial-sanctions/recent-actions/20220808) ## Credits Mentors: [Prestwich@Nomad](https://twitter.com/_prestwich), [Meghan@Dune](https://twitter.com/Dot2DotSeurat), [Dias@Dune](https://twitter.com/0xDsalv), [Shumo@Manta](https://twitter.com/shumochu) Advising Wizards: [danner.eth](https://twitter.com/drakedanner), [Msilb7.eth](https://twitter.com/MSilb7)

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully