Skip to main content

A Python package for CNN-LSTM model pre-trained on CICIDS2017 and finetuned on UNSW-NB15 for network intrusion detection.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Intrusion Detection Package

This package provides a CNN-LSTM-based intrusion detection model that can be used to classify network traffic as benign or malicious.

Installation

You can install the package using pip:

pip install net_intrusion_detection

Usage

To use the model, follow these steps:

  1. Load your pre-trained model (.h5 file).
  2. Preprocess your network traffic data (CSV format).
  3. Make predictions on the data.

Example:

import net_intrusion_detection
from net_intrusion_detection.model import load_model, preprocess_data, predict_traffic

# Load the pre-trained model
model = load_model('path/to/model.h5')

# Preprocess the data
data = preprocess_data('path/to/network_data.csv')

# Make predictions
predictions = predict_traffic(model, data)

# Output predictions
print(predictions)

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

net_intrusion_detection-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

net_intrusion_detection-0.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file net_intrusion_detection-0.1.0.tar.gz.

File metadata

  • Download URL: net_intrusion_detection-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for net_intrusion_detection-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c13c38a82212099c1da365f67bcb3ffb89106d9d28137dc2759b950b4747e4b1
MD5 469855077242f67543c33bc01a2b1266
BLAKE2b-256 dcef901ff594d5a85db8c5c389e5b085b441d350ca55987c71cb9f0e3cdb0d29

See more details on using hashes here.

File details

Details for the file net_intrusion_detection-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for net_intrusion_detection-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e69ae246dec7155cc94bfd2c24b084cca5d25d1ec69ec16b7f91587d992dc4d9
MD5 149cf475f36a84b25dd310e56cb5fe3a
BLAKE2b-256 efa654077e5dfeb548c923b1f23653cdd61a8473e25564f029c597ffd5ccb8b1

See more details on using hashes here.

Supported by

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