-
Notifications
You must be signed in to change notification settings - Fork 11
/
simplerisk-en-20130319-001.sql
509 lines (410 loc) · 11.6 KB
/
simplerisk-en-20130319-001.sql
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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
-- phpMyAdmin SQL Dump
-- version 3.2.4
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Mar 19, 2013 at 10:23 PM
-- Server version: 5.1.41
-- PHP Version: 5.3.1
--
-- SimpleRisk Database Export v2
--
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `simplerisk`
--
-- --------------------------------------------------------
--
-- Table structure for table `category`
--
DROP TABLE IF EXISTS `category`;
CREATE TABLE IF NOT EXISTS `category` (
`value` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
PRIMARY KEY (`value`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
--
-- Dumping data for table `category`
--
INSERT INTO `category` (`value`, `name`) VALUES
(1, 'Confidentiality of Documents'),
(2, 'Data Security & Assurance'),
(3, 'Disaster Recovery & Business Continuity Management'),
(4, 'Information Asset Management & Control'),
(5, 'Network Defence & Security'),
(6, 'Personnel Security & Awareness'),
(7, 'Physical & Environmental Security'),
(8, 'Registration & Authentication');
-- --------------------------------------------------------
--
-- Table structure for table `close_reason`
--
DROP TABLE IF EXISTS `close_reason`;
CREATE TABLE IF NOT EXISTS `close_reason` (
`value` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
PRIMARY KEY (`value`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--
-- Dumping data for table `close_reason`
--
INSERT INTO `close_reason` (`value`, `name`) VALUES
(1, 'Fully Mitigated'),
(2, 'System Retired'),
(3, 'Cancelled'),
(4, 'Too Insignificant');
-- --------------------------------------------------------
--
-- Table structure for table `closures`
--
DROP TABLE IF EXISTS `closures`;
CREATE TABLE IF NOT EXISTS `closures` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`risk_id` int(11) NOT NULL,
`closure_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`close_reason` int(11) NOT NULL,
`note` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `closures`
--
-- --------------------------------------------------------
--
-- Table structure for table `comments`
--
DROP TABLE IF EXISTS `comments`;
CREATE TABLE IF NOT EXISTS `comments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`risk_id` int(11) NOT NULL,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`user` int(11) NOT NULL,
`comment` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `comments`
--
-- --------------------------------------------------------
--
-- Table structure for table `impact`
--
DROP TABLE IF EXISTS `impact`;
CREATE TABLE IF NOT EXISTS `impact` (
`name` varchar(20) NOT NULL,
`value` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `impact`
--
INSERT INTO `impact` (`name`, `value`) VALUES
('Insignificant', 1),
('Minor', 2),
('Moderate', 3),
('Major', 4),
('Extreme/Catastrophic', 5);
-- --------------------------------------------------------
--
-- Table structure for table `likelihood`
--
DROP TABLE IF EXISTS `likelihood`;
CREATE TABLE IF NOT EXISTS `likelihood` (
`name` varchar(20) NOT NULL,
`value` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `likelihood`
--
INSERT INTO `likelihood` (`name`, `value`) VALUES
('Remote', 1),
('Unlikely', 2),
('Credible', 3),
('Likely', 4),
('Almost Certain', 5);
-- --------------------------------------------------------
--
-- Table structure for table `mgmt_reviews`
--
DROP TABLE IF EXISTS `mgmt_reviews`;
CREATE TABLE IF NOT EXISTS `mgmt_reviews` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`risk_id` int(11) NOT NULL,
`submission_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`review` int(11) NOT NULL,
`reviewer` int(11) NOT NULL,
`comments` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `mgmt_reviews`
--
-- --------------------------------------------------------
--
-- Table structure for table `mitigations`
--
DROP TABLE IF EXISTS `mitigations`;
CREATE TABLE IF NOT EXISTS `mitigations` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`risk_id` int(11) NOT NULL,
`submission_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`last_update` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`planning_strategy` int(11) NOT NULL,
`current_solution` text NOT NULL,
`security_requirements` text NOT NULL,
`security_recommendations` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `mitigations`
--
-- --------------------------------------------------------
--
-- Table structure for table `planning_strategy`
--
DROP TABLE IF EXISTS `planning_strategy`;
CREATE TABLE IF NOT EXISTS `planning_strategy` (
`value` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(20) NOT NULL,
PRIMARY KEY (`value`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--
-- Dumping data for table `planning_strategy`
--
INSERT INTO `planning_strategy` (`value`, `name`) VALUES
(1, 'Research'),
(2, 'Accept'),
(3, 'Mitigate'),
(4, 'Watch');
-- --------------------------------------------------------
--
-- Table structure for table `review`
--
DROP TABLE IF EXISTS `review`;
CREATE TABLE IF NOT EXISTS `review` (
`value` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(20) NOT NULL,
PRIMARY KEY (`value`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Dumping data for table `review`
--
INSERT INTO `review` (`value`, `name`) VALUES
(1, 'Approve Risk'),
(2, 'Reject Risk');
-- --------------------------------------------------------
--
-- Table structure for table `review_levels`
--
DROP TABLE IF EXISTS `review_levels`;
CREATE TABLE IF NOT EXISTS `review_levels` (
`value` int(11) NOT NULL,
`name` varchar(20) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `review_levels`
--
INSERT INTO `review_levels` (`value`, `name`) VALUES
(90, 'High'),
(180, 'Medium'),
(360, 'Low');
-- --------------------------------------------------------
--
-- Table structure for table `risks`
--
DROP TABLE IF EXISTS `risks`;
CREATE TABLE IF NOT EXISTS `risks` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`status` varchar(20) NOT NULL,
`subject` varchar(100) NOT NULL,
`likelihood` int(11) NOT NULL,
`impact` int(11) NOT NULL,
`category` int(11) NOT NULL,
`team` int(11) NOT NULL,
`technology` int(11) NOT NULL,
`owner` int(11) NOT NULL,
`manager` int(11) NOT NULL,
`assessment` longtext NOT NULL,
`notes` longtext NOT NULL,
`submission_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`last_update` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`review_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`mitigation_id` int(11) NOT NULL,
`mgmt_review` int(11) NOT NULL,
`close_id` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `risks`
--
-- --------------------------------------------------------
--
-- Table structure for table `risk_levels`
--
DROP TABLE IF EXISTS `risk_levels`;
CREATE TABLE IF NOT EXISTS `risk_levels` (
`value` int(11) NOT NULL,
`name` varchar(20) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `risk_levels`
--
INSERT INTO `risk_levels` (`value`, `name`) VALUES
(15, 'High'),
(8, 'Medium'),
(4, 'Low');
-- --------------------------------------------------------
--
-- Table structure for table `risk_lookup`
--
DROP TABLE IF EXISTS `risk_lookup`;
CREATE TABLE IF NOT EXISTS `risk_lookup` (
`impact` int(11) NOT NULL,
`likelihood` int(11) NOT NULL,
`risk` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `risk_lookup`
--
INSERT INTO `risk_lookup` (`impact`, `likelihood`, `risk`) VALUES
(1, 1, 2),
(1, 2, 3),
(1, 3, 4),
(1, 4, 5),
(1, 5, 6),
(2, 1, 4),
(2, 2, 6),
(2, 3, 8),
(2, 4, 10),
(2, 5, 12),
(3, 1, 6),
(3, 2, 9),
(3, 3, 12),
(3, 4, 15),
(3, 5, 18),
(4, 1, 8),
(4, 2, 12),
(4, 3, 16),
(4, 4, 20),
(4, 5, 24),
(5, 1, 10),
(5, 2, 15),
(5, 3, 20),
(5, 4, 25),
(5, 5, 30);
-- --------------------------------------------------------
--
-- Table structure for table `risk_models`
--
DROP TABLE IF EXISTS `risk_models`;
CREATE TABLE IF NOT EXISTS `risk_models` (
`value` int(11) NOT NULL,
`name` varchar(50) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `risk_models`
--
INSERT INTO `risk_models` (`value`, `name`) VALUES
(1, 'Likelihood x Impact + 2(Impact)'),
(2, 'Likelihood x Impact + Impact'),
(3, 'Likelihood x Impact'),
(4, 'Likelihood x Impact + Likelihood'),
(5, 'Likelihood x Impact + 2(Likelihood)');
-- --------------------------------------------------------
--
-- Table structure for table `settings`
--
DROP TABLE IF EXISTS `settings`;
CREATE TABLE IF NOT EXISTS `settings` (
`name` varchar(20) NOT NULL,
`value` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `settings`
--
INSERT INTO `settings` (`name`, `value`) VALUES
('risk_model', 2),
('db_version', 2),
('app_version', 2);
-- --------------------------------------------------------
--
-- Table structure for table `team`
--
DROP TABLE IF EXISTS `team`;
CREATE TABLE IF NOT EXISTS `team` (
`value` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
PRIMARY KEY (`value`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;
--
-- Dumping data for table `team`
--
INSERT INTO `team` (`value`, `name`) VALUES
(1, 'Branch Management'),
(2, 'Collaboration'),
(3, 'Data Center & Storage'),
(4, 'Database'),
(5, 'Information Security'),
(6, 'IT Systems Management'),
(7, 'Network'),
(8, 'Unix'),
(9, 'Web Systems'),
(10, 'Windows');
-- --------------------------------------------------------
--
-- Table structure for table `technology`
--
DROP TABLE IF EXISTS `technology`;
CREATE TABLE IF NOT EXISTS `technology` (
`value` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
PRIMARY KEY (`value`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=20 ;
--
-- Dumping data for table `technology`
--
INSERT INTO `technology` (`value`, `name`) VALUES
(1, 'All'),
(2, 'Anti-Virus'),
(3, 'Backups'),
(4, 'Blackberry'),
(5, 'Citrix'),
(6, 'Datacenter'),
(7, 'Mail Routing'),
(8, 'Live Collaboration'),
(9, 'Messaging'),
(10, 'Mobile'),
(11, 'Network'),
(12, 'Power'),
(13, 'Remote Access'),
(14, 'SAN'),
(15, 'Telecom'),
(16, 'Unix'),
(17, 'VMWare'),
(18, 'Web'),
(19, 'Windows');
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
DROP TABLE IF EXISTS `user`;
CREATE TABLE IF NOT EXISTS `user` (
`value` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(20) NOT NULL,
`name` varchar(50) NOT NULL,
`password` binary(60) NOT NULL,
`last_login` datetime NOT NULL,
`admin` tinyint(1) NOT NULL,
`review_high` tinyint(1) NOT NULL,
`review_medium` tinyint(1) NOT NULL,
`review_low` tinyint(1) NOT NULL,
PRIMARY KEY (`value`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`value`, `username`, `name`, `password`, `last_login`, `admin`, `review_high`, `review_medium`, `review_low`) VALUES
(1, 'admin', 'Administrator', '$2a$15$UjsRCpde.wRhaXmvFf1nve0TDM26QiGSgR8uErh7Y9muBF5qwa4OW', '0000-00-00 00:00:00', 1, 1, 1, 1);