-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
96 lines (86 loc) · 3.61 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8">
<title>Threat Modeling Framework | Main View</title>
<link rel='stylesheet prefetch' href='http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css'>
<link rel='stylesheet prefetch' href='http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css'>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container">
<section contenteditable="true">
<h1>Threat Model Framework - Diagram</h1>
<p> Draw the diagram with entities, trust borders, etc.</p>
<p> Embedded below there's diagram.html, exported from <a href="http://draw.io">draw.io</a>. Edit this space with a description. </p>
</section>
<div id="diagram">
</div>
<section contenteditable="true">
<h1>Threat Model Framework - Threat Table</h1>
<p> Identify threats and address them in the editable table below, using indexes from the main diagram. Refer to the documentation for information about how to compile fields. </p>
<p> Edit this space afterwards to include notes on how to read during reporting. Print the page to keep a copy.</p>
<br>
</section>
<div id="table" class="table-editable">
<span class="table-add glyphicon glyphicon-plus"></span>
<table class="table">
<tr>
<th>Diagram Element</th>
<th>Threat Type (<a href="https://www.owasp.org/index.php/Threat_Risk_Modeling#STRIDE" target="_blank" >STRIDE</a>)</th>
<th>Threat Description</th>
<th>Assumption</th>
<th><a href="https://www.owasp.org/index.php/Threat_Risk_Modeling#DREAD" target="_blank">DREAD</a> Score</th>
<th>Bug Tracking/Vuln CVE/CWE</th>
<th></th>
<th></th>
</tr>
<tr>
<td contenteditable="true">default</td>
<td contenteditable="true">default</td>
<td contenteditable="true">default</td>
<td contenteditable="true">default</td>
<td contenteditable="true">0</td>
<td contenteditable="true">default</td>
<td>
<span class="table-remove glyphicon glyphicon-remove"></span>
</td>
<td>
<span class="table-up glyphicon glyphicon-arrow-up"></span>
<span class="table-down glyphicon glyphicon-arrow-down"></span>
</td>
</tr>
<!-- This is our clonable table line -->
<tr class="hide">
<td contenteditable="true">default</td>
<td contenteditable="true">default</td>
<td contenteditable="true">default</td>
<td contenteditable="true">default</td>
<td contenteditable="true">0</td>
<td contenteditable="true">default</td>
<td>
<span class="table-remove glyphicon glyphicon-remove"></span>
</td>
<td>
<span class="table-up glyphicon glyphicon-arrow-up"></span>
<span class="table-down glyphicon glyphicon-arrow-down"></span>
</td>
</tr>
</table>
</div>
<!-- <button id="export-btn" class="btn btn-primary">Export Data</button>
<p id="export"></p> -->
</div>
<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js'></script>
<script src='http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.6.0/underscore.js'></script>
<script src="js/index.js"></script>
<!-- load diagram -->
<script>
$(document).ready( function() {
$("#diagram").load("diagram.html");
});
</script>
</body>
</html>