-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathindex.html
233 lines (219 loc) · 11.3 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
<!doctype html>
<html class="no-js" lang="">
<head>
<script src="js/graph/basic.js" type="module"></script>
<meta charset="utf-8">
<title>CTI STIX Diamond Activity Attack Graph</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:title" content="CTI STIX Diamond Activity Attack Graph">
<meta property="og:type" content="">
<meta property="og:url" content="">
<meta property="og:image" content="">
<!-- <link rel="manifest" href="site.webmanifest">-->
<link rel="icon" type="image/x-icon" href="favicon.ico">
<!-- Place favicon.ico in the root directory -->
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet"
href="https://unpkg.com/bootstrap-material-design@4.1.1/dist/css/bootstrap-material-design.min.css"
integrity="sha384-wXznGJNEXNG1NFsbm0ugrLFMQPWswR3lds2VeinahP8N0zJw9VWSopbjv2x7WCvX" crossorigin="anonymous">
<meta name="theme-color" content="#fafafa">
</head>
<body>
<script src="js/vendor/modernizr-3.11.2.min.js"></script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
<script src="https://d3js.org/d3.v6.min.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
<script src="https://unpkg.com/popper.js@1.12.6/dist/umd/popper.js"
integrity="sha384-fA23ZRQ3G/J53mElWqVJEGJzU0sTs+SvzG8fXVWP+kJQ1lwFAOkcUOysnlKJC33U"
crossorigin="anonymous"></script>
<script src="https://unpkg.com/bootstrap-material-design@4.1.1/dist/js/bootstrap-material-design.js"
integrity="sha384-CauSuKpEqAFajSpkdjv3z9t8E7RlpJ1UP0lKM/+NdtSarroVKu069AlsRPKkFBz9"
crossorigin="anonymous"></script>
<script>$(document).ready(function () {
$('body').bootstrapMaterialDesign();
});</script>
<div class="bmd-layout-container bmd-drawer-f-l bmd-drawer-overlay">
<header class="bmd-layout-header">
<div class="navbar navbar-light ">
<button class="btn btn-raised btn-primary" type="button" data-toggle="drawer" data-target="#dw">
Parse STIX
</button>
<b><span id="currentSelection" class="selectionText"></span></b>
<button class="btn btn-secondary dropdown-toggle" type="button" id="graphDropdown" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
Graph selection
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" id="attack-graph" href="#attack_graph">Attack Graph</a>
<a class="dropdown-item" id="activity-thread" href="#activity_thread">Activity Thread Graph</a>
</div>
</div>
</header>
<!-- Parse STIX area-->
<div id="dw" class="bmd-layout-drawer bg-faded">
<div class="container mt-2">
<div>
<label for="stixContent" class="bmd-label-floating">STIX 2.1 JSON</label>
<textarea class="form-control" id="stixContent" rows="35"></textarea>
<button type="button" class="mt-2 btn btn-raised btn-primary"
id="parseButton">Parse
</button>
<div class="mt-2 mb-2">
<span >OR</span>
</div>
<div id="drop-region">
<div id="drop-message">
Drag & Drop STIX 2.1 .txt file
</div>
<div id="txt-preview"></div>
</div>
<div id="syntaxError"></div>
</div>
</div>
</div>
<main class="bmd-layout-content overflow-y-hidden">
<div id="workspace">
<div class="col-12 row pt-2">
<div id="zoom-buttons" class="col-2">
<span>Zoom</span>
<button class="btn btn-raised btn-primary" id="zoom-in">+</button>
<button class="btn btn-raised btn-primary" id="zoom-out">-</button>
<span>or</span>
<img class="control-icon mb-1" src="img/scroll.png">
</div>
<div class="col-2">
<span>Object selection</span>
<img class="control-icon mb-1" src="img/leftclick.png">
</div>
<!-- <div class="col-7"></div>-->
<!-- <div class="col-1">-->
<!-- <button class="btn btn-raised btn-primary" type="button" id="create-stix-btn">-->
<!-- Create STIX object-->
<!-- </button>-->
<!-- </div>-->
</div>
<div id="svg-container">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg">
<g>
<image y="91%" id="logo" xlink:href="img/logo.png" height="30" width="30" opacity="0.3"
style="cursor: pointer"/>
<text y="98%" x="0.5%" id="logo-text" font-size="0.5em" fill="grey" style="cursor: pointer">
CTI STIX Diamond Activity Attack Graph
</text>
</g>
<defs id="mdef">
<pattern id="logoImage" height="200" width="200" x="0" y="0">
<image width="200" height="200" x="0" y="0" xlink:href="img/logo.png"></image>
</pattern>
<pattern id="groupingImage" height="24" width="24" x="0" y="0">
<image width="21" height="21" x="0" y="-1" xlink:href="img/grouping.png"></image>
</pattern>
<pattern id="attackPatternImage" height="24" width="24" x="0" y="0">
<image width="21" height="21" x="0" y="-1" xlink:href="img/attack_pattern.png"></image>
</pattern>
<pattern id="campaignImage" height="24" width="24" x="0" y="0">
<image width="22" height="22" x="-1" y="-2" xlink:href="img/campaign.png"></image>
</pattern>
<pattern id="toolImage" height="24" width="24" x="0" y="0">
<image width="22" height="22" x="-1" y="-1" xlink:href="img/tool.png"></image>
</pattern>
<pattern id="malwareImage" height="24" width="24" x="0" y="0">
<image width="21" height="21" x="-0.5" y="-1" xlink:href="img/malware.png"></image>
</pattern>
<pattern id="vulnerabilityImage" height="24" width="24" x="0" y="0">
<image width="22" height="22" x="-1" y="-2" xlink:href="img/vulnerability.png"></image>
</pattern>
<pattern id="identityImage" height="24" width="24" x="0" y="0">
<image width="22" height="22" x="-1" y="-2" xlink:href="img/identity.png"></image>
</pattern>
<pattern id="indicatorImage" height="24" width="24" x="0" y="0">
<image width="20" height="20" x="0" y="0" xlink:href="img/indicator.png"></image>
</pattern>
<pattern id="observedDataImage" height="24" width="24" x="0" y="0">
<image width="22" height="22" x="-1" y="-2" xlink:href="img/observed_data.png"></image>
</pattern>
<pattern id="userAccountImage" height="24" width="24" x="0" y="0">
<image width="22" height="22" x="-1" y="-2" xlink:href="img/user_account.png"></image>
</pattern>
<pattern id="threatActorImage" height="24" width="24" x="0" y="0">
<image width="22" height="22" x="-1" y="-2" xlink:href="img/threat_actor.png"></image>
</pattern>
<pattern id="infrastructureImage" height="24" width="24" x="0" y="0">
<image width="22" height="22" x="-1" y="-2" xlink:href="img/infrastructure.png"></image>
</pattern>
<pattern id="locationImage" height="24" width="24" x="0" y="0">
<image width="22" height="22" x="-1" y="-1" xlink:href="img/location.png"></image>
</pattern>
<pattern id="malwareAnalysisImage" height="24" width="24" x="0" y="0">
<image width="22" height="22" x="-1" y="-2" xlink:href="img/malware_analysis.png"></image>
</pattern>
<pattern id="noteImage" height="24" width="24" x="0" y="0">
<image width="22" height="22" x="-1" y="-2" xlink:href="img/note.png"></image>
</pattern>
<pattern id="opinionImage" height="24" width="24" x="0" y="0">
<image width="22" height="22" x="-1" y="-2" xlink:href="img/opinion.png"></image>
</pattern>
<pattern id="fileImage" height="24" width="24" x="0" y="0">
<image width="22" height="22" x="-1" y="-2" xlink:href="img/file.png"></image>
</pattern>
<pattern id="directoryImage" height="24" width="24" x="0" y="0">
<image width="22" height="22" x="-1" y="-2" xlink:href="img/directory.png"></image>
</pattern>
<pattern id="networkTrafficImage" height="24" width="24" x="0" y="0">
<image width="22" height="22" x="-1" y="-2" xlink:href="img/networktraffic.png"></image>
</pattern>
<pattern id="processImage" height="24" width="24" x="0" y="0">
<image width="22" height="22" x="-1" y="-2" xlink:href="img/process.png"></image>
</pattern>
<pattern id="domainImage" height="24" width="24" x="0" y="0">
<image width="22" height="22" x="-1" y="-2" xlink:href="img/domain.png"></image>
</pattern>
<pattern id="ipImage" height="24" width="24" x="0" y="0">
<image width="22" height="22" x="-1" y="-2" xlink:href="img/ip.png"></image>
</pattern>
<pattern id="urlImage" height="24" width="24" x="0" y="0">
<image width="22" height="22" x="-1" y="-2" xlink:href="img/url.png"></image>
</pattern>
<pattern id="softwareImage" height="24" width="24" x="0" y="0">
<image width="22" height="22" x="-1" y="-2" xlink:href="img/software.png"></image>
</pattern>
<pattern id="autonomousImage" height="24" width="24" x="0" y="0">
<image width="22" height="22" x="-1" y="-2" xlink:href="img/autonomous.png"></image>
</pattern>
<pattern id="codeImage" height="24" width="24" x="0" y="0">
<image width="22" height="22" x="-1" y="-2" xlink:href="img/code.png"></image>
</pattern>
<pattern id="questionImage" height="24" width="24" x="0" y="0">
<image width="22" height="22" x="-1" y="-2" xlink:href="img/question.png"></image>
</pattern>
<pattern id="emailMessageImage" height="24" width="24" x="0" y="0">
<image width="22" height="22" x="-1" y="-2" xlink:href="img/email-message.png"></image>
</pattern>
<pattern id="artifactImage" height="24" width="24" x="0" y="0">
<image width="22" height="22" x="-1" y="-2" xlink:href="img/artifact.png"></image>
</pattern>
<pattern id="winRegKey" height="24" width="24" x="0" y="0">
<image width="22" height="22" x="-1" y="-2" xlink:href="img/windows-reg-key.png"></image>
</pattern>
<pattern id="courseOfAction" height="24" width="24" x="0" y="0">
<image width="22" height="22" x="-1" y="-2" xlink:href="img/course_of_action.png"></image>
</pattern>
</defs>
</svg>
</div>
</div>
</main>
</div>
<div class="footer">
<div>
<span id="copyright"></span>
<a href="https://github.com/yukh1402/cti-stix-diamond-activity-attack-graph" target="_blank">Github</a>
</div>
</div>
</body>
</html>