Skip to main content

A Framework for Encrypted Internet and Malicious Traffic Classification.

Project description

OSF-EIMTC

PyPi Badge PyPI - Downloads Ariel University Home ACIC Home

Open-Source Framework for Encrypted Internet and Malicious Traffic Classification.

Examples

For usage examples please see the ./examples/ directory for various applications of extracting features from a set of PCAP files or evaluating state-of-the-art deep-learning models.

Installation

Using pip:

python3 -m pip install OSF-EIMTC

Uninstall with:

pythom3 -m pip uninstall OSF-EIMTC

Install tensorflow for deep-learning models: see the official website: https://www.tensorflow.org/install. Generally, you can install tensorflow with pip:

python3 -m pip install tensorflow

But check the offical instructions for more customized options such as for GPU utilization.

For TLS features, TShark is required. While it is possible to install and configure it for Windows usage, the framework is yet to officialy support the system.

sudo apt install tshark

Dependencies

  • Platform

    • OS: Linux (Tested with WSL Ubuntu 18.04).
    • Version: Python 3.6.6+ (3.7+ is recommended)
  • Python modules

    • NFStream>=6.5.1
    • pandas>=1.1.5
    • numpy>=1.19.5
    • scapy>=2.4.5 (for parsing higher level protocols such as DNS)
    • unittest (for tests)
    • sklearn>=1.1.0

There are some plugins that might require some additional dependancies.

  • Optional Python modules

    • pyasn (for ASN info, requires two additional DBs)
    • functools (for caching functions results)
    • click (for CLI)
  • For Deep-Learning Models

    • tensorflow>=2.4.0.
  • 3rd party tools (that need to be installed)

    • TShark 3.4.8+ (for TLS features). Try install with sudo apt update and then sudo apt install tshark, if you cannot get the 3.0+ version try to install wireshark instead via sudo apt install wireshark.
  • 3rd party data files (provided in ./tools directory)

Run Tests

python3 -m unittest discover EIMTC

Project Structure

Under ./src

└── EIMTC/             # Project's root directory.
    ├── datasets/      # Links and information for PCAP datasets.
    ├── metrics/       # Evaluation metrics for models.
    ├── models/        # State-of-the-art DL models.
    ├── preprocessing/ 
    ├── selection/ 
    ├── plugins/       # NFStream plugins.
    ├── stats/         
    ├── temp/          # Temporary files generated by the system.
    ├── tests/         # System tests.
    │   └── pcaps/     # PCAP files for tests.
    ├── tools/         # 3rd-party tools used by the system.
    └── tools/         # 3rd-party tools used by the system.

Citation

TBD

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

OSF_EIMTC-0.1.36.tar.gz (13.8 MB view details)

Uploaded Source

File details

Details for the file OSF_EIMTC-0.1.36.tar.gz.

File metadata

  • Download URL: OSF_EIMTC-0.1.36.tar.gz
  • Upload date:
  • Size: 13.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.8.1 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.9

File hashes

Hashes for OSF_EIMTC-0.1.36.tar.gz
Algorithm Hash digest
SHA256 cfcc9571f8f86a3c73006d299fb81098b7ada3dc54a3769c3814dcfeb7be96ba
MD5 a884c61a768db78f82d11cbb6a312bd4
BLAKE2b-256 a4e9717f1e18ff3f25e5e157fa5753d847a330c6e8a8244bf3d67c86b29bc563

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page