Thanks to visit codestin.com
Credit goes to github.com

Skip to content

GalateaWang/TSGN-master

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TSGN-master

github thanks author watchers Github stars twitter

This is a project for the paper "TSGN: Transaction Subgraph Networks Assisting Phishing Detection in Ethereum" Arxiv Link

Due to the decentralized and public nature of the Blockchain ecosystem, the malicious activities on the Ethereum platform impose immeasurable losses for the users. Existing phishing scam detection methods mostly rely only on the analysis of original transaction networks, which makes it difficult to dig deeply into the transaction patterns hidden in the network structure of transaction interaction. In this paper, we propose a Transaction SubGraph Network (TSGN) based phishing accounts identification framework for Ethereum. We first extract transaction subgraphs for target accounts and then expand these subgraphs into corresponding TSGNs based on the different mapping mechanisms. In order to make our model incorporate more important information about real transactions, we encode the transaction attributes into the modeling process of TSGNs, yielding two variants of TSGN, i.e., Directed-TSGN and Temporal-TSGN, which can be applied to the different attributed networks. Especially, by introducing TSGN into multi-edge transaction networks, the proposed Multiple-TSGN model is able to preserve the temporal transaction flow information and capture the significant topological pattern of phishing scams, while reducing the time complexity of modeling large-scale networks. Extensive experimental results show that TSGN models can provide more potential information to improve the performance of phishing detection by incorporating graph representation learning.

Rquirements

  • python--3.9.0
  • pytorch--1.12.0
  • gensim--3.8.0
  • pandas--1.4.3
  • numpy--1.22.0
  • tqdm--4.64.0
  • pickle--4.0.0
  • networkx--2.8.5
  • scikit-learn--1.0.2

Usage

Execute the following commands in the same directory where the code resides:

python SGN.py  # obtain the TSGNs
cd baseline_path  # go to the baseline path, i.e., Deepkernel, Diffpool, U2GNN, Graph2vec, or Handcraft
python baseline.py  # excute the corresponding baseline algorithm for obtaining the transaction ego network embeddings 
python baseline-classification.py  # phishing account identification

Cite

@article{wang2022tsgn,
  title={TSGN: Transaction Subgraph Networks Assisting Phishing Detection in Ethereum},
  author={Wang, Jinhuan and Chen, Pengtao and Xu, Xinyao and Wu, Jiajing and Shen, Meng and Xuan, Qi and Yang, Xiaoniu},
  journal={arXiv preprint arXiv:2208.12938},
  year={2022}
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages