GithubHelp home page GithubHelp logo

masbicudo / cvss-matlab Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 22 KB

MatLab classes to deal with CVSS 2 and CVSS 3.

License: Apache License 2.0

MATLAB 94.97% C 5.03%
matlab-library cvss cve cvss2 cvss3

cvss-matlab's Introduction

CVSS for MatLab

This package contains MatLab classes to manipulate CVSS 2 and CVSS 3. You can load a CVSS string into an instance of a CVSS class, and call methods to calculate the base score, the temporal score and the environmental score. It is also possible to manipulate a CVSS instance to add or change values.

Example

c = CVSS2.Parse_Metrics_String('AV:N/AC:L/Au:N/C:N/I:N/A:C');
s = c.Base_Score;

btc = c.Fill_Parse('E:U/RL:OF/RC:UC');  % best temporal parameters
bts = c.Temporal_Score;                 % get the best temporal score

Au = c.Au; % getting one of the CVSS parameters value (not the string)

Optimizations

CVSS for MatLab was optimized by using the MatLab profiler to indicate slow methods. The slowest ones were refactored by reducing the number of loops, and even one of them was replaced by an equivalent C coded function: strsplit.c. You will need to run mex strsplit.c before running to compile it.

More can be optimized, it's a work in progress.

Tests

You can trust this package. More and more tests will be added so that bugs stay away from the code.

Contributing

Helping this project grow is easy. Just fork it, do what you want to do, and create a pull request.

Don't forget to follow these rules to maintain the quality:

  • create test cases for the code (if needed)
  • add documentation (if needed)
  • comment the code, in english, please
  • add your name bellow (and current occupation if you wish)

Contributors

  • Daniel S. Menasche - professor and researcher at UFRJ
  • Matheus Martins - graduation student at UFRJ
  • Miguel Angelo (masbicudo) - graduation student at UFRJ

License

Apache 2.0 License

cvss-matlab's People

Contributors

masbicudo avatar

Watchers

 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.