Coder Social home page Coder Social logo

deepfence / flowmeter Goto Github PK

View Code? Open in Web Editor NEW
1.1K 10.0 205.0 10.53 MB

⭐ ⭐ Use ML to classify flows and packets as benign or malicious. ⭐ ⭐

License: Apache License 2.0

Go 75.45% Jupyter Notebook 10.21% Python 14.24% Makefile 0.11%
forensics-tools machine-learning network-security packet-analyser tcpdump-like infosectools security-tools machine-learning-projects awesome data-science

flowmeter's People

Contributors

fariz7154 avatar ibreakthecloud avatar noboruma avatar ogarrett avatar prathu122 avatar ramanan-ravi avatar raysofani avatar sidd0529 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flowmeter's Issues

Error decoding some part of the packet

I used flowmeter with recent pcap files from CIC but I always I get this errors and no csv file created

Error decoding some part of the packet:Packet decoding error: Layer type not currently supported 
Error decoding some part of the packet:Packet decoding error: Unable to decode EthernetType 3 

Bug in training script: TypeError in `clean_dataset` function

The training script Deepfence_ML_flowmeter.py contains a bug that causes it to fail when executed. The error occurs in the clean_dataset function, specifically with the any method.

Traceback (most recent call last): File "/home/victor/FlowMeter/assets/Deepfence_ML_flowmeter.py", line 162, in <module> X, y = clean_dataset(pd_comb_features_cp) File "/home/victor/FlowMeter/assets/Deepfence_ML_flowmeter.py", line 154, in clean_dataset indices_to_keep = ~df_X.isin([np.nan, np.inf, -np.inf]).any(1) TypeError: any() takes 1 positional argument but 2 were given

Steps to Reproduce:

  • Navigate to the FlowMeter directory.
  • Run the script Deepfence_ML_flowmeter.py using Python 3.9.

Suggested Fix:
The issue is due to incorrect usage of the any method. The any method should be called with the axis parameter explicitly specified. The correct line should be:

indices_to_keep = ~df_X.isin([np.nan, np.inf, -np.inf]).any(axis=1)

cannot import name 'plot_confusion_matrix'

When am attempting to run below command
python3 Deepfence_ML_flowmeter.py
to generate ML parameters and classify packets, I am receiving this error:
File "/home/batool/FlowMeter/assets/Deepfence_ML_flowmeter.py", line 24, in <module> from sklearn.metrics import ( ImportError: cannot import name 'plot_confusion_matrix' from 'sklearn.metrics' (/home/batool/.local/lib/python3.10/site-packages/sklearn/metrics/__init__.py)

How can I fix it please?

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.