Git Product home page Git Product logo

infer-no's Introduction

Infer-no

Bemnchmark suite for infer Quandary

Structure

  • /testcode test code used to build the confusion matrix. Code directly from OWASP/Benchmark
  • /csv/actual the results of the benchmark are exported as a csv file directly inside this folder. Ready to be used to generate the confusion matrix.
  • /csv/expected expected benchmark results, generated by OWASP

Setup

First of all you must install Infer

To install the project simply run python setup.py install

To install the dependencies instead run pip install -r requirements.txt

Run the benchmark

You can run Infer quandary against all the tests by using the following command: python run_tests.py

Print the results

If you want to generate and print the confusion matrix into your terminal use:

python confusion_builder.py

For each .csv file inside scv/actual the script will print:

  • The confusion matrix
  • Top 3 False Positive/False Negative misclassification errors by vulnerability category.
    • The relative incorrect classification % represents the misclassification error percentage with respect to the total number of tests for that vulnerability type.
    • The absolute incorrect classification % represents the misclassification error percentage with respect to the total False Positive, False Negative number.

For each benchmark csv result file placed into csv/actual this script will generate a matrix. Note that the csv file must match the structure of the official OWASP expectedresults-1.2.csv

Setup an infer configuration

Is possible to tune the infer quandary configuration modifying the file .inferconfig

infer-no's People

Contributors

giobart avatar laurab1 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.