Skip to content

Commit 264bd2c

Browse files
committed
test3
1 parent 87899a7 commit 264bd2c

1 file changed

Lines changed: 30 additions & 43 deletions

File tree

docs/learn/audit.md

Lines changed: 30 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -74,28 +74,40 @@ graph TD
7474

7575
### Step three: evaluation
7676

77-
Your questions are evaluated using a straightforward positive-negative system: responses indicating 'positive' information add +1 to the positive count, while those indicating 'negative' information add +1 to the negative count.
77+
Your questions are evaluated using a straightforward positive-negative system: responses indicating 'positive' information add up to the positive count, while those indicating 'negative' information add up to the negative count.
7878

79-
These counts are used to compute the RF, based on the following formula:
79+
These counts and the SB and SDB values are used to compute the RF, based on the following formula:
8080

81-
$$
82-
R.F. = \left( \frac{\text{positives}}{\text{positives} + \text{negatives}} \right) \times 100
83-
$$
81+
\[
82+
T = P + (N \cdot S_d)
83+
\]
8484

85-
There is a `--strict` flag that can be passed to the audit command that adds an additional **risk bump**, based on the severity of the most-severe identified vulnerability, as follows:
85+
\[
86+
\text{RF} =
87+
\begin{cases}
88+
0, & \text{if } T = 0 \\
89+
\min\left(100, \max\left(0, \dfrac{N \cdot S_b}{T} \cdot 100\right)\right), & \text{otherwise}
90+
\end{cases}
91+
\]
8692

87-
$$
88-
Strict R.F. = \frac{R.F. + (R.B. \times 100)}{2}
89-
$$
93+
\[
94+
\text{donde:} \quad
95+
\begin{aligned}
96+
P &= \text{positives} \\
97+
N &= \text{negatives} \\
98+
S_d &= \text{severityDeBump (indirectly bumps RF)} \\
99+
S_b &= \text{severityBump (directly bumps RF)}
100+
\end{aligned}
101+
\]
90102

91-
RB values are as follows:
103+
SB and SDB values are as follows:
92104

93-
| Severity | RB |
94-
| :------- | ---: |
95-
| critical | 1 |
96-
| high | 0.75 |
97-
| moderate | 0.5 |
98-
| low | 0.25 |
105+
| Severity | SB | SDB |
106+
| :------- | ---: | ---: |
107+
| critical | 2.00 | 0.25 |
108+
| high | 1.75 | 0.50 |
109+
| moderate | 1.50 | 0.75 |
110+
| low | 1.25 | 1.00 |
99111

100112
---
101113

@@ -115,30 +127,5 @@ Where `EXP` indicates experimental, `CAVEAT` indicates partial support / support
115127
| v2.1.0 | EXP | NO | NO | NO | NO | NO | NO |
116128

117129
*[RF]: Risk Factor; a percentage computed by us to estimate the joint impact of all vulnerabilities of a NodeJS project.
118-
*[RB]: Risk Bump; a 0.25-1 number that's used to bump the RF based on the highest severity (as in low/moderate/high/critical) of a found vulnerability within a project.
119-
120-
---
121-
122-
testing in production be like:
123-
124-
\[
125-
\text{total} = P + (N \cdot S_d)
126-
\]
127-
128-
\[
129-
\text{percentage} =
130-
\begin{cases}
131-
0, & \text{si } \text{total} = 0 \\
132-
\min\left(100, \max\left(0, \dfrac{N \cdot S_b}{\text{total}} \cdot 100\right)\right), & \text{en otro caso}
133-
\end{cases}
134-
\]
135-
136-
\[
137-
\text{donde:} \quad
138-
\begin{aligned}
139-
P &= \text{positives} \\
140-
N &= \text{negatives} \\
141-
S_d &= \text{severityDeBump (reduce el total)} \\
142-
S_b &= \text{severityBump (aumenta el riesgo)}
143-
\end{aligned}
144-
\]
130+
*[SB]: Severity Bump; a 1.25-2 number that's used to bump the RF based on the highest severity (as in low/moderate/high/critical) of a found vulnerability within a project.
131+
*[SDB]: Severity DeBump; a 0.25-1 number that's used to de-bump the negative count prior computing the RF based on the highest severity (as in low/moderate/high/critical) of a found vulnerability within a project.

0 commit comments

Comments
 (0)