Git Product home page Git Product logo

entropy-ip's Introduction

Entropy/IP

This code implements the Entropy/IP algorithm, as published in:

P. Foremski, D. Plonka, A. Berger, Entropy/IP: Uncovering Structure in IPv6 Addresses, Proceedings of the 2016 Internet Measurement Conference. ACM, 2016.

You can read the paper as PDF at Akamai website. This repository supports an Akamai Custom Analytics project.

License

Entropy/IP is patent pending, submitted as application number 15618303 by Akamai Technologies, Inc.

Akamai releases this code repository as open source, but for non-commercial, academic research purposes only. Please read the LICENSE file carefully.

Quick Start

  1. Install Python 2 packages using pip, apt, etc.:
  • bnfinder
  • toposort (apt install python-toposort)
  • numpy (apt install python-numpy)
  • matplotlib (apt install python-matplotlib)
  • scikit-learn (apt install python-scikits-learn)
  1. Prepare your IPv6 dataset in hex IP format (32 hex characters per line, no colons).
  2. Change working directory to this repository.
  3. Run ./ALL.sh <ips> <target>, where <ips> is your dataset file, and <target> is the output directory for storing the results.

Notes

In this repository, you can find the following files. Read the source code for more details.

  • a{1,2,3,4,5}-*: scripts for building an Entropy/IP model for a set of IPv6 addresses
  • b1-webreport.sh: script for building a web report of an Entropy/IP model
  • c{1,2}-*: scripts for generating target IPv6 addresses for scanning
  • ALL.sh: shortcut script that does a* and b* in one shot
  • bin/: supportive tools for a*, b*, and c* scripts
  • css/, js/: code needed for the web report; some files come from external projects and have different licensing (see headers)

Note that parts of the code might use different names than the paper for referring to various aspects of Entropy/IP. This is because the taxonomy evolved while developing the system.

Also, the code does not directly handle datasets larger than 100K IPs. Whenever appropriate, it will randomly sample from the input dataset if its too large. It is not a significant limitation, as usually we just approximate probabilities from their empirical frequencies in the dataset. From our experiences, 100K is way more than enough to approximate the probabilities properly. On the other hand, we identified that Aggregate Count Ratios are sensitive to sampling, thus for accurate ACR plots for large datasets, one should rather use better tools.

Author

Pawel Foremski, 2016, [email protected], @pforemski.

entropy-ip's People

Contributors

pforemski avatar plonkamai avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.