Skip to content
/ bitsniff Public

Detecting cryptocurrency-related communications in network traffic

Notifications You must be signed in to change notification settings

m417z/bitsniff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

BitSniff

Bitcoin Embassy Hackathon 2019

BitSniff is a tool for detecting cryptocurrency-related communications in network traffic. We exploit traffic patterns during block propagation to determine the correlation between sniffed communications and the underlying blockchain activity. As blocks delivery time is consensus-critical for nodes, and economically important for miners, such attack can not easily be avoided. The attack is fully passive, may be applied to historical data, and should work with most popular cryptocurrencies.

Use cases

  • BitSniff can be used for Bitcoin nodes detection by anyone having access to the traffic shape. The implication is the ability of ISP/government to detect Bitcoin nodes even if the communications are encrypted (e.g. running via VPN).
  • BitSniff can be used to detect unwanted mining activity on a machine (e.g. Monero mining malware). Current antivirus programs mostly rely on binary signatures or well-known endpoints, which can easily be tricked.

Usage

First, install the programs required to run the application:

Next, clone this repository:

git clone https://github.com/m417z/bitsniff.git

Now install dependencies for the web app and run it:

cd web-app
npm install
npm run dev

The application should open automatically in the browser.

Traffic capturing

BitSniff uses the .pcap file format. You can capture traffic on your machine using tcpdump (for Unix) or WinDump (for Windows). For example, to capture 100000 packets on port 8333 (default Bitcoin port) with tcpdump:

tcpdump -q -c 100000 -w ./bitsniff_test.pcap port 8333

Team

About

Detecting cryptocurrency-related communications in network traffic

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published