Skip to content

Code for model safeguards for packet-level DNN classifiers

License

Notifications You must be signed in to change notification settings

SRI-CSL/trinity-packet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Context PCAP

cnn.py: Discriminative CNN model for payload classification.

dataset.py:

ContextPCAPDataset: class for PCAP dataset (CIC, UNSW, etc.). Inherits from data_structures/dataset.py:NetflowDataset.

ContextPCAPTorchDataset: class for PyTorch DataLoader. 

experiment.py:

ContextPCAPExperiment: class for experiment (Baseline, OOD, etc.). Inherits from data_structures/dataset.py:NetflowExperiment.

fnn.py: Descriminative FNN model for payload classification.

preproces.py: Functions to transform PCAP + flow files into usable datasets.

transformer.py: Descriminative Transformer model for payload classification.

Data Structures

dataset.py:

NetflowDataset: parent class for othery types of datasets (ContextPCAP, SequencePCAP, etc.).

experiment.py:

NetflowExperiment: parent class that contains functions for training, inference, OOD experiments.

network_model.py:

NetworkModel: wrapper class for training/inference/feature extraction.

util.py: Miscellaneous parsing functions.

Detectors

iaf.py:

IAFDataset: A normalizing flows implementation that allows for model distributions.

About

Code for model safeguards for packet-level DNN classifiers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages