Skip to content

Commit

Permalink
v1.0.0 : Add support for full CVSS vector
Browse files Browse the repository at this point in the history
  • Loading branch information
3isenHeiM committed Dec 2, 2022
2 parents 50f45b2 + 650dedc commit ed3652d
Show file tree
Hide file tree
Showing 8 changed files with 355 additions and 295 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@
*.fmt
*.fot
*.cb
*.hd
*.sty
*.cb2
.*.lb
.*.ins

## Intermediate documents:
*.dvi
Expand Down
31 changes: 31 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added

*None*

### Fixed

*None*


## [1.1.0] - 2022-12-02

### Added

- Support for full CVSS vector

## [1.0.0] - Initial release - 2022-10-22


[unreleased]: https://github.com/3isenHeiM/CVSS-latex/compare/v1.1.0...HEAD
[1.1.0]: https://github.com/3isenHeiM/CVSS-latex/compare/v1.0.0...v1.1.0
[1.0.0]: https://github.com/3isenHeiM/CVSS-latex/releases/tag/v1.0.0

35 changes: 33 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,46 @@

This aims to become a LaTeX package allowing anyone to use and nicely print the CVSS ratings for a given CVSS string.

## Usage


### Direct forms

```latex
\cvssScore{CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N}
\cvssLevel{CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N}
\cvssLevelpretty{CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H}
\cvssTag{CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H}
The vuln has a \textbf{\cvssLevel{CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N}}-level and we can output it inline.
```


![Direct forms](https://github.com/3isenHeiM/CVSS-latex/raw/main/img/direct-form.png)

### Imbricated Form

```latex
\cvssFrame{Low}
\category{9.9}
We can even combine them:
\category{\cvssScore{CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N}}
\cvssFrame{\category{\cvssScore{CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N}}}
```

![Imbricated forms](https://github.com/3isenHeiM/CVSS-latex/raw/main/img/imbricated-form.png)


## To-do

- [x] Fix the expansion error preventing nested commands like `\category{\computeCVSS{AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N}}`
- [ ] Add support for CVSS complete string
- [x] Add support for CVSS complete string (starting wiht `CVSS:3.1`)
- [ ] Add CVSS values as variables (future CVSS version)
- [ ] Add support for full CVSS vector (temporal and environmental score)
- [ ] Turn this into a latex package
- [x] Turn this into a latex package


## Licence
This package is licensed under the [LPPL-1.3c](https://www.latex-project.org/lppl/lppl-1-3c/).
The author of this package is [Pierre VIVEGNIS](https://ctan.org/author/vivegnis).
Loading

0 comments on commit ed3652d

Please sign in to comment.