Skip to content

SYN-5692, SYN-5609: vectToScore returns normalized vector #3211

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
10 commits merged into from
Jul 6, 2023
Merged

Conversation

ghost
Copy link

@ghost ghost commented Jun 30, 2023

  • Update vectToScore to return normalized vector
  • Update CVSS validate function with better errors that return detailed info
  • Create synapse.lookup.cvss and move a bunch of the CVSS constants into it.
  • Move CVSS validate function into synapse.lib.chop
  • Add CVSS normalize function in synapse.lib.chop
  • Update tests

Addresses SYN-5692 and SYN-5609. Prepares for SYN-5701 model updates.

- Update vectToScore to return normalized vector
- Update CVSS validate function with better errors that return detailed info
- Create synapse.lookup.cvss and move a bunch of the CVSS constants into it.
- Move CVSS validate function into synapse.lib.chop
- Add CVSS normalize function in synapse.lib.chop
- Update tests

Addresses SYN-5692 and SYN-5609. Prepares for SYN-5701 model updates.
@codecov
Copy link

codecov bot commented Jun 30, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.11 ⚠️

Comparison is base (caed65f) 97.30% compared to head (2b9fc15) 97.20%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3211      +/-   ##
==========================================
- Coverage   97.30%   97.20%   -0.11%     
==========================================
  Files         224      225       +1     
  Lines       44967    44998      +31     
==========================================
- Hits        43757    43740      -17     
- Misses       1210     1258      +48     
Flag Coverage Δ
linux 97.20% <100.00%> (-0.01%) ⬇️
linux_replay ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
synapse/lib/chop.py 99.13% <100.00%> (+1.05%) ⬆️
synapse/lib/stormlib/infosec.py 99.43% <100.00%> (-0.06%) ⬇️
synapse/lookup/cvss.py 100.00% <100.00%> (ø)

... and 10 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ghost ghost marked this pull request as ready for review July 3, 2023 13:22
@ghost ghost requested review from vEpiphyte and invisig0th July 3, 2023 13:22
@ghost ghost requested a review from vEpiphyte July 5, 2023 19:52
invisig0th
invisig0th previously approved these changes Jul 5, 2023
@ghost ghost changed the title vectToScore returns normalized vector SYN-5692, SYN-5609: vectToScore returns normalized vector Jul 6, 2023
@ghost ghost merged commit b43baff into master Jul 6, 2023
@ghost ghost deleted the blackout/SYN-5609 branch July 6, 2023 16:40
@vEpiphyte vEpiphyte added enhancement reqChangelog requires changelog labels Jul 7, 2023
@vEpiphyte vEpiphyte added this to the v2.141.0 milestone Jul 7, 2023
@vEpiphyte vEpiphyte removed the reqChangelog requires changelog label Jul 27, 2023
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants