1/ LayerZero Sybil Detector The @LayerZero_Labs Foundation selected...

@omeragoldberg
Omer Goldberg@omeragoldberg
178 views Dec 08, 2024 ~4 min read
Advertisement
1
1/ LayerZero Sybil Detector

The @LayerZero_Labs Foundation selected @chaoslabs and @nansen_ai to lead protocol usage analysis and Sybil detection.

Below, we provide our analysis principles, methodology, and heuristics, showing our commitment to transparency, integrity 🧵
Media image
2
2/ Principles of Analysis

- Real users should not be hurt; we aim to maximize precision over recall
- We aim to focus on industrial farmers and primarily rely on source of funding analysis heuristics
3
3/ Data Overview

Total Users: 4.82m
Total User-Chain Permutations: 31.55m
Total Unique LZ user funders: 2.18m
Classified Sybil Users: ~14.5%

Note: This interim analysis includes only EVM chains. @Aptos will be analyzed separately over the coming weeks
Media image
4
4/ Detecting Source of Funding

- Identify user funding origin, focusing on CEX/DEX and bridges (over 50% of funders).
- Mark the first native token transfer to each account as the funding transaction.
- Trace LZ user funding txes, over 24hr timeframe and cluster known entities
Media image
5
5/ Initial Entity Identification

Objective: Identify users funded by CEX/DEX or bridges on the same day.

Criteria: Select users who receive funds from identical sources within a 24-hour period.

Example: 200 LZ users, funded by FTX in 24 hr timeframe
Media image
6
6/ Detect Funding Anomalies

Filtering Criteria:
- Large-Scale Funding: Over X wallets funded within the same 24-hour timeframe.
- Identical Funding Sources: Txes originating from the same source
- Behavioral Similarities: Users w/ similar patterns in their transactions.
7
7/ Behavioral Patterns / Similarity Vector for Clustering

- Funding Amount: First funding amount for each wallet (in native token).
- Number of Transactions to LayerZero: A comparable number of transactions directed towards the LayerZero protocol.
Media image
8
8/ Behavioral Patterns continued..

- Total Transaction Count: The overall number of transactions each wallet engages in, both within and outside LayerZero.
- Number of OAPPs (On-chain Applications): Interaction with a similar number of decentralized applications or protocols.
9
9/ Behavioral Patterns continued...

- Number of Chains: Activity across the same or similar blockchain networks.
- Average LayerZero Transaction Volume: The typical transaction volume per interaction with LayerZero.

Note: Non-exhaustive feature list ^^
10
10/ Further Strictness for Cluster Identification

Selection Criteria: For every anomalous funding event from a CEX, DEX, or bridge, identify and select the three most significant clusters.

Example: 24-hour timeframe where a cluster of 100+ LZ users was funded by FTX.
Media image
11
11/ Same Funding Source Sybil Classifier - Concentration Req

Concentration Reqs

Silhouette Score: Ensure high cluster validity by including only samples with a Silhouette score > 0.7.
Media image
12
12/ Sybil Classifier

The Silhouette score measures how similar an object is to its own cluster compared to other clusters, with values closer to 1 indicating better-defined clusters.
13
13/ Same Funding Source Sybil Classifier - Size Req

Cluster Size Criteria: Classify a cluster as "Sybil" if it meets both conditions 👇
14
14/ Cluster Requirements

Relative Size: The cluster's size is significantly larger than that of others generated in the same funding period.

Threshold Size: The cluster exceeds a minimum size threshold of N users.
15
15/ Sybil Cluster Example 1: Funding Source @FTX_Official on Ethereum

Users in cluster 0 were funded within a 15-hour window had identical funding amounts, sent LZ txes of the same value.
Media image
16
16/ Example 1: Funding Source FTX ^

All users were funded with less than 10 dollars; the average value sent on LayerZero was less than 1K USD.
17
17/ Sybil Cluster Example 2: Funding Source @kucoincom on @avax

Users were funded within a 15-hour window, had identical funding amounts, sent LZ txes of the same value, and interacted with exactly 9 OAPPS.
Media image
18
18/ Sybil Cluster Example 2 Contd. ^^

All users were funded with less than 10 dollars; the average value sent on LayerZero was less than 1K USD.
19
19/ Initial Results

Initial Flagging: ~2M users were initially flagged as Sybil, representing ~41% of unique LayerZero users.

Top Clusters Analysis: Filtering for the top 3 clusters of each funding period yielded 1.2M Sybil users.
20
20/ Final Results

Final Filtering: To adhere to our principles of precision over recall, we applied additional filters based on funding amount and transaction volume.

Outcome: This refined the list to 704,041 users, representing approximately 14% of unique LayerZero users.
Media image
21
21/ Thanks again to the @LayerZero_Labs Foundation and @nansen_ai team for partnering closely over the past month.
22
22/ Sybil detection, user analysis, and clustering are critical for driving sound risk management, optimization, and incentive behaviors.

We'll be publishing a joint report in the coming weeks, which will provide a detailed explanation of our methodology and findings.
Actions
What You Can Do
  • Export as PDF or Markdown
  • Batch Export to Notion
  • Bookmark & Highlight
  • Screenshot Tweet
Create Free Account

Includes 7-day Premium trial

Advertisement