Skip to content

Commit 421dcac

Browse files
committed
Add evidence possiblity for assessments
1 parent 4d6470c commit 421dcac

5 files changed

Lines changed: 28 additions & 2 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ Go to https://dsomm.timo-pagel.de or clone [this repository](https://github.com/
1717

1818
In this [video](https://www.youtube.com/watch?v=tX9RHZ_O5NU) Timo Pagel describes different strategic approaches for your secure DevOps strategy. The use OWASP DSOMM in combination with [OWASP SAMM](https//owaspsamm.org) is explained.
1919

20+
In case you have evidence or review questions to gather evidence, you can add the attribute "evidence" to an activity which will be attached to an activity to provide it to your CISO or your customer's CISO.
21+
You can switch on to show open TODO's for evidence by changing IS_SHOW_EVIDENCE_TODO to true 'bib.php' `define(IS_SHOW_EVIDENCE_TODO, true);`
22+
2023
# Community
2124
Join #dsomm in [OWASP Slack](https://owasp.slack.com/join/shared_invite/zt-g398htpy-AZ40HOM1WUOZguJKbblqkw#/).
2225
Create issues or even better Pull Requests in [github](https://github.com/wurstbrot/DevSecOps-MaturityModel/).

bib.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22
error_reporting(E_ERROR);
33
define(NUMBER_LEVELS, 4);
4+
define(IS_SHOW_EVIDENCE_TODO, false);
5+
46
function readCSV($filename, $delimiter)
57
{
68
if (!file_exists($filename) || !is_readable($filename))

data.php

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,27 @@ function build_table_tooltip($array, $headerWeight = 2)
138138
$mapResources = $mapTime;
139139
$mapUsefulness = $mapTime;
140140

141+
$evidenceContent = "";
142+
if(array_key_exists("evidence", $array)) {
143+
if( is_array($array['evidence'])) {
144+
$evidenceContent .= "<ul>";
145+
foreach($array['evidence'] as $content) {
146+
$evidenceContent .= "<li>".str_replace("\"", "'", $content) . "</li>";
147+
}
148+
$evidenceContent .= "</ul>";
149+
}else {
150+
$evidenceContent = str_replace("\"", "'", $array['evidence']);
151+
}
152+
}else {
153+
$evidenceContent = "TODO";
154+
}
155+
141156
$html = "";
142157
$html .= "<h" . $headerWeight . ">Risk and Opportunity</h$headerWeight>";
143-
$html .= "<div><b>" . gettext("Risk") . ":</b> " . $array['risk'] . "</div>";
144-
$html .= "<div><b>" . gettext("Opportunity") . ":</b> " . $array['measure'] . "</div>";
158+
$html .= "<div><b>" . "Risk" . ":</b> " . $array['risk'] . "</div>";
159+
$html .= "<div><b>" . "Opportunity" . ":</b> " . $array['measure'] . "</div>";
160+
if(IS_SHOW_EVIDENCE_TODO || $evidenceContent != "TODO")
161+
$html .= "<div><b>" . "Evidence" . ":</b> " . $evidenceContent . "</div>";
145162
$html .= "<hr />";
146163
$html .= "<h$headerWeight>Exploit details</h$headerWeight>";
147164
$html .= "<div><b>Usefullness:</b> " . ucfirst($mapUsefulness[$array['usefulness']-1]) . "</div>";

data/BuildandDeployment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Build:
2121
For example, as a result of incorrect security related configuration.
2222
measure: A well defined build process lowers the possibility of errors during the build
2323
process.
24+
evidence: The build process is defined in <a href="REPLACE-ME">REPLACE-ME Pipeline</a> in the folder <i>vars</>. Projects are using a <i>Jenkinsfile</i> to use the defined process.
2425
difficultyOfImplementation:
2526
knowledge: 2
2627
time: 3

data/CultureandOrg.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ Education and Guidance:
4747
Regular security training of security champions:
4848
risk: Understanding security is hard, even for security champions.
4949
measure: Regular security training of security champions.
50+
evidence:
51+
- Process Documentation: TODO
52+
- Training Content: TOODO
5053
difficultyOfImplementation:
5154
knowledge: 3
5255
time: 2

0 commit comments

Comments
 (0)