-
Notifications
You must be signed in to change notification settings - Fork 11
/
simplerisk-en-20140413-001.sql
708 lines (583 loc) · 21.3 KB
/
simplerisk-en-20140413-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
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
--
-- Table structure for table `audit_log`
--
CREATE TABLE IF NOT EXISTS `audit_log` (
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`risk_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`message` text CHARACTER SET utf8 NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `category`
--
CREATE TABLE IF NOT EXISTS `category` (
`value` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) CHARACTER SET utf8 NOT NULL,
PRIMARY KEY (`value`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=9 ;
--
-- Dumping data for table `category`
--
INSERT INTO `category` (`value`, `name`) VALUES
(1, 'Access Management'),
(2, 'Environmental Resilience'),
(3, 'Monitoring'),
(4, 'Physical Security'),
(5, 'Policy and Procedure'),
(6, 'Sensitive Data Management'),
(7, 'Technical Vulnerability Management'),
(8, 'Third-Party Management');
-- --------------------------------------------------------
--
-- Table structure for table `close_reason`
--
CREATE TABLE IF NOT EXISTS `close_reason` (
`value` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) CHARACTER SET utf8 NOT NULL,
PRIMARY KEY (`value`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 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`
--
CREATE TABLE IF NOT EXISTS `closures` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`risk_id` int(11) NOT NULL,
`user_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 CHARACTER SET utf8 NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `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 CHARACTER SET utf8 NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `CVSS_scoring`
--
CREATE TABLE IF NOT EXISTS `CVSS_scoring` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`metric_name` varchar(30) CHARACTER SET utf8 NOT NULL,
`abrv_metric_name` varchar(3) CHARACTER SET utf8 NOT NULL,
`metric_value` varchar(30) CHARACTER SET utf8 NOT NULL,
`abrv_metric_value` varchar(3) CHARACTER SET utf8 NOT NULL,
`numeric_value` float NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=56 ;
--
-- Dumping data for table `CVSS_scoring`
--
INSERT INTO `CVSS_scoring` (`id`, `metric_name`, `abrv_metric_name`, `metric_value`, `abrv_metric_value`, `numeric_value`) VALUES
(1, 'AccessComplexity', 'AC', 'High', 'H', 0.35),
(2, 'AccessComplexity', 'AC', 'Medium', 'M', 0.61),
(3, 'AccessComplexity', 'AC', 'Low', 'L', 0.71),
(4, 'AccessVector', 'AV', 'Local', 'L', 0.395),
(5, 'AccessVector', 'AV', 'Adjacent Network', 'A', 0.646),
(6, 'AccessVector', 'AV', 'Network', 'N', 1),
(7, 'Authentication', 'Au', 'None', 'N', 0.704),
(8, 'Authentication', 'Au', 'Single Instance', 'S', 0.56),
(9, 'Authentication', 'Au', 'Multiple Instances', 'M', 0.45),
(10, 'AvailabilityRequirement', 'AR', 'Undefined', 'ND', 1),
(11, 'AvailabilityRequirement', 'AR', 'Low', 'L', 0.5),
(12, 'AvailabilityRequirement', 'AR', 'Medium', 'M', 1),
(13, 'AvailabilityRequirement', 'AR', 'High', 'H', 1.51),
(14, 'AvailImpact', 'A', 'None', 'N', 0),
(15, 'AvailImpact', 'A', 'Partial', 'P', 0.275),
(16, 'AvailImpact', 'A', 'Complete', 'C', 0.66),
(17, 'CollateralDamagePotential', 'CDP', 'Undefined', 'ND', 0),
(18, 'CollateralDamagePotential', 'CDP', 'None', 'N', 0),
(19, 'CollateralDamagePotential', 'CDP', 'Low (light loss)', 'L', 0.1),
(20, 'CollateralDamagePotential', 'CDP', 'Low-Medium', 'LM', 0.3),
(21, 'CollateralDamagePotential', 'CDP', 'Medium-High', 'MH', 0.4),
(22, 'CollateralDamagePotential', 'CDP', 'High', 'H', 0.5),
(23, 'ConfidentialityRequirement', 'CR', 'Undefined', 'ND', 1),
(24, 'ConfidentialityRequirement', 'CR', 'Low', 'L', 0.5),
(25, 'ConfidentialityRequirement', 'CR', 'Medium', 'M', 1),
(26, 'ConfidentialityRequirement', 'CR', 'High', 'H', 1.51),
(27, 'ConfImpact', 'C', 'None', 'N', 0),
(28, 'ConfImpact', 'C', 'Partial', 'P', 0.275),
(29, 'ConfImpact', 'C', 'Complete', 'C', 0.66),
(30, 'Exploitability', 'E', 'Undefined', 'ND', 1),
(31, 'Exploitability', 'E', 'Unproven that exploit exists', 'U', 0.85),
(32, 'Exploitability', 'E', 'Proof of concept code', 'POC', 0.9),
(33, 'Exploitability', 'E', 'Functional exploit exists', 'F', 0.95),
(34, 'Exploitability', 'E', 'Widespread', 'H', 1),
(35, 'IntegImpact', 'I', 'None', 'N', 0),
(36, 'IntegImpact', 'I', 'Partial', 'P', 0.275),
(37, 'IntegImpact', 'I', 'Complete', 'C', 0.66),
(38, 'IntegrityRequirement', 'IR', 'Undefined', 'ND', 1),
(39, 'IntegrityRequirement', 'IR', 'Low', 'L', 0.5),
(40, 'IntegrityRequirement', 'IR', 'Medium', 'M', 1),
(41, 'IntegrityRequirement', 'IR', 'High', 'H', 1.51),
(42, 'RemediationLevel', 'RL', 'Undefined', 'ND', 1),
(43, 'RemediationLevel', 'RL', 'Official fix', 'OF', 0.87),
(44, 'RemediationLevel', 'RL', 'Temporary fix', 'TF', 0.9),
(45, 'RemediationLevel', 'RL', 'Workaround', 'W', 0.95),
(46, 'RemediationLevel', 'RL', 'Unavailable', 'U', 1),
(47, 'ReportConfidence', 'RC', 'Undefined', 'ND', 1),
(48, 'ReportConfidence', 'RC', 'Unconfirmed', 'UC', 0.9),
(49, 'ReportConfidence', 'RC', 'Uncorroborated', 'UR', 0.95),
(50, 'ReportConfidence', 'RC', 'Confirmed', 'C', 1),
(51, 'TargetDistribution', 'TD', 'Undefined', 'ND', 1),
(52, 'TargetDistribution', 'TD', 'None (0%)', 'N', 0),
(53, 'TargetDistribution', 'TD', 'Low (0-25%)', 'L', 0.25),
(54, 'TargetDistribution', 'TD', 'Medium (26-75%)', 'M', 0.75),
(55, 'TargetDistribution', 'TD', 'High (76-100%)', 'H', 1);
-- --------------------------------------------------------
--
-- Table structure for table `impact`
--
CREATE TABLE IF NOT EXISTS `impact` (
`name` varchar(20) CHARACTER SET utf8 NOT NULL,
`value` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- 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 `languages`
--
CREATE TABLE IF NOT EXISTS `languages` (
`value` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(2) NOT NULL,
`full` varchar(50) NOT NULL,
PRIMARY KEY (`value`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
--
-- Dumping data for table `languages`
--
INSERT INTO `languages` (`value`, `name`, `full`) VALUES
(1, 'en', 'English'),
(2, 'bp', 'Brazilian Portuguese');
-- --------------------------------------------------------
--
-- Table structure for table `likelihood`
--
CREATE TABLE IF NOT EXISTS `likelihood` (
`name` varchar(20) CHARACTER SET utf8 NOT NULL,
`value` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- 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 `location`
--
CREATE TABLE IF NOT EXISTS `location` (
`value` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) CHARACTER SET utf8 NOT NULL,
PRIMARY KEY (`value`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `location`
--
INSERT INTO `location` (`value`, `name`) VALUES
(1, 'All Sites');
-- --------------------------------------------------------
--
-- Table structure for table `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,
`next_step` int(11) NOT NULL,
`comments` text CHARACTER SET utf8 NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `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,
`mitigation_effort` int(11) NOT NULL,
`current_solution` text CHARACTER SET utf8 NOT NULL,
`security_requirements` text CHARACTER SET utf8 NOT NULL,
`security_recommendations` text CHARACTER SET utf8 NOT NULL,
`submitted_by` int(11) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `mitigation_effort`
--
CREATE TABLE IF NOT EXISTS `mitigation_effort` (
`value` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(20) CHARACTER SET utf8 NOT NULL,
PRIMARY KEY (`value`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
--
-- Dumping data for table `mitigation_effort`
--
INSERT INTO `mitigation_effort` (`value`, `name`) VALUES
(1, 'Trivial'),
(2, 'Minor'),
(3, 'Considerable'),
(4, 'Significant'),
(5, 'Exceptional');
-- --------------------------------------------------------
--
-- Table structure for table `next_step`
--
CREATE TABLE IF NOT EXISTS `next_step` (
`value` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) CHARACTER SET utf8 NOT NULL,
PRIMARY KEY (`value`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
--
-- Dumping data for table `next_step`
--
INSERT INTO `next_step` (`value`, `name`) VALUES
(1, 'Accept Until Next Review'),
(2, 'Consider for Project'),
(3, 'Submit as a Production Issue');
-- --------------------------------------------------------
--
-- Table structure for table `password_reset`
--
CREATE TABLE IF NOT EXISTS `password_reset` (
`username` varchar(20) CHARACTER SET utf8 NOT NULL,
`token` varchar(20) CHARACTER SET utf8 NOT NULL,
`attempts` int(11) NOT NULL DEFAULT '0',
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `planning_strategy`
--
CREATE TABLE IF NOT EXISTS `planning_strategy` (
`value` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(20) CHARACTER SET utf8 NOT NULL,
PRIMARY KEY (`value`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 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 `projects`
--
CREATE TABLE IF NOT EXISTS `projects` (
`value` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) CHARACTER SET utf8 NOT NULL,
`order` int(11) NOT NULL DEFAULT '999999',
PRIMARY KEY (`value`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `projects`
--
INSERT INTO `projects` (`value`, `name`, `order`) VALUES
(0, 'Unassigned Risks', 0);
-- --------------------------------------------------------
--
-- Table structure for table `regulation`
--
CREATE TABLE IF NOT EXISTS `regulation` (
`value` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) CHARACTER SET utf8 NOT NULL,
PRIMARY KEY (`value`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
--
-- Dumping data for table `regulation`
--
INSERT INTO `regulation` (`value`, `name`) VALUES
(1, 'PCI DSS'),
(2, 'Sarbanes-Oxley (SOX)'),
(3, 'HIPAA'),
(4, 'ISO 27001');
-- --------------------------------------------------------
--
-- Table structure for table `review`
--
CREATE TABLE IF NOT EXISTS `review` (
`value` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(20) CHARACTER SET utf8 NOT NULL,
PRIMARY KEY (`value`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 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`
--
CREATE TABLE IF NOT EXISTS `review_levels` (
`value` int(11) NOT NULL,
`name` varchar(20) CHARACTER SET utf8 NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `review_levels`
--
INSERT INTO `review_levels` (`value`, `name`) VALUES
(90, 'High'),
(180, 'Medium'),
(360, 'Low');
-- --------------------------------------------------------
--
-- Table structure for table `risks`
--
CREATE TABLE IF NOT EXISTS `risks` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`status` varchar(20) CHARACTER SET utf8 NOT NULL,
`subject` varchar(100) CHARACTER SET utf8 NOT NULL,
`reference_id` varchar(20) CHARACTER SET utf8 NOT NULL DEFAULT '',
`regulation` int(11) DEFAULT NULL,
`control_number` varchar(20) CHARACTER SET utf8 DEFAULT NULL,
`location` 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 CHARACTER SET utf8 NOT NULL,
`notes` longtext CHARACTER SET utf8 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,
`project_id` int(11) NOT NULL DEFAULT '0',
`close_id` int(11) NOT NULL,
`submitted_by` int(11) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `risk_levels`
--
CREATE TABLE IF NOT EXISTS `risk_levels` (
`value` int(11) NOT NULL,
`name` varchar(20) CHARACTER SET utf8 NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `risk_levels`
--
INSERT INTO `risk_levels` (`value`, `name`) VALUES
(7, 'High'),
(4, 'Medium'),
(0, 'Low');
-- --------------------------------------------------------
--
-- Table structure for table `risk_models`
--
CREATE TABLE IF NOT EXISTS `risk_models` (
`value` int(11) NOT NULL,
`name` varchar(50) CHARACTER SET utf8 NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- 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 `risk_scoring`
--
CREATE TABLE IF NOT EXISTS `risk_scoring` (
`id` int(11) NOT NULL,
`scoring_method` int(11) NOT NULL,
`calculated_risk` float NOT NULL,
`CLASSIC_likelihood` float NOT NULL DEFAULT '5',
`CLASSIC_impact` float NOT NULL DEFAULT '5',
`CVSS_AccessVector` varchar(3) CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`CVSS_AccessComplexity` varchar(3) CHARACTER SET utf8 NOT NULL DEFAULT 'L',
`CVSS_Authentication` varchar(3) CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`CVSS_ConfImpact` varchar(3) CHARACTER SET utf8 NOT NULL DEFAULT 'C',
`CVSS_IntegImpact` varchar(3) CHARACTER SET utf8 NOT NULL DEFAULT 'C',
`CVSS_AvailImpact` varchar(3) CHARACTER SET utf8 NOT NULL DEFAULT 'C',
`CVSS_Exploitability` varchar(3) CHARACTER SET utf8 NOT NULL DEFAULT 'ND',
`CVSS_RemediationLevel` varchar(3) CHARACTER SET utf8 NOT NULL DEFAULT 'ND',
`CVSS_ReportConfidence` varchar(3) CHARACTER SET utf8 NOT NULL DEFAULT 'ND',
`CVSS_CollateralDamagePotential` varchar(3) CHARACTER SET utf8 NOT NULL DEFAULT 'ND',
`CVSS_TargetDistribution` varchar(3) CHARACTER SET utf8 NOT NULL DEFAULT 'ND',
`CVSS_ConfidentialityRequirement` varchar(3) CHARACTER SET utf8 NOT NULL DEFAULT 'ND',
`CVSS_IntegrityRequirement` varchar(3) CHARACTER SET utf8 NOT NULL DEFAULT 'ND',
`CVSS_AvailabilityRequirement` varchar(3) CHARACTER SET utf8 NOT NULL DEFAULT 'ND',
`DREAD_DamagePotential` int(11) DEFAULT '10',
`DREAD_Reproducibility` int(11) DEFAULT '10',
`DREAD_Exploitability` int(11) DEFAULT '10',
`DREAD_AffectedUsers` int(11) DEFAULT '10',
`DREAD_Discoverability` int(11) DEFAULT '10',
`OWASP_SkillLevel` int(11) DEFAULT '10',
`OWASP_Motive` int(11) DEFAULT '10',
`OWASP_Opportunity` int(11) DEFAULT '10',
`OWASP_Size` int(11) DEFAULT '10',
`OWASP_EaseOfDiscovery` int(11) DEFAULT '10',
`OWASP_EaseOfExploit` int(11) DEFAULT '10',
`OWASP_Awareness` int(11) DEFAULT '10',
`OWASP_IntrusionDetection` int(11) DEFAULT '10',
`OWASP_LossOfConfidentiality` int(11) DEFAULT '10',
`OWASP_LossOfIntegrity` int(11) DEFAULT '10',
`OWASP_LossOfAvailability` int(11) DEFAULT '10',
`OWASP_LossOfAccountability` int(11) DEFAULT '10',
`OWASP_FinancialDamage` int(11) DEFAULT '10',
`OWASP_ReputationDamage` int(11) DEFAULT '10',
`OWASP_NonCompliance` int(11) DEFAULT '10',
`OWASP_PrivacyViolation` int(11) DEFAULT '10',
`Custom` float DEFAULT '10',
UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `sessions`
--
CREATE TABLE IF NOT EXISTS `sessions` (
`id` varchar(32) CHARACTER SET utf8 NOT NULL,
`access` int(10) unsigned DEFAULT NULL,
`data` text CHARACTER SET utf8,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `settings`
--
CREATE TABLE IF NOT EXISTS `settings` (
`name` varchar(20) CHARACTER SET utf8 NOT NULL,
`value` varchar(40) CHARACTER SET utf8 NOT NULL,
PRIMARY KEY (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `settings`
--
INSERT INTO `settings` (`name`, `value`) VALUES
('risk_model', '3'),
('db_version', '20140413-001');
-- --------------------------------------------------------
--
-- Table structure for table `team`
--
CREATE TABLE IF NOT EXISTS `team` (
`value` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) CHARACTER SET utf8 NOT NULL,
PRIMARY KEY (`value`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 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`
--
CREATE TABLE IF NOT EXISTS `technology` (
`value` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) CHARACTER SET utf8 NOT NULL,
PRIMARY KEY (`value`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 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`
--
CREATE TABLE IF NOT EXISTS `user` (
`value` int(11) NOT NULL AUTO_INCREMENT,
`enabled` tinyint(1) NOT NULL DEFAULT '1',
`type` varchar(20) CHARACTER SET utf8 NOT NULL DEFAULT 'simplerisk',
`username` varchar(20) CHARACTER SET utf8 NOT NULL,
`name` varchar(50) CHARACTER SET utf8 NOT NULL,
`email` varchar(200) CHARACTER SET utf8 NOT NULL,
`salt` varchar(20) CHARACTER SET utf8 DEFAULT NULL,
`password` binary(60) NOT NULL,
`last_login` datetime NOT NULL,
`teams` varchar(200) CHARACTER SET utf8 NOT NULL DEFAULT 'none',
`lang` varchar(2) CHARACTER SET utf8 DEFAULT NULL,
`admin` tinyint(1) NOT NULL DEFAULT '0',
`review_high` tinyint(1) NOT NULL DEFAULT '0',
`review_medium` tinyint(1) NOT NULL DEFAULT '0',
`review_low` tinyint(1) NOT NULL DEFAULT '0',
`submit_risks` tinyint(1) NOT NULL DEFAULT '0',
`modify_risks` tinyint(1) NOT NULL DEFAULT '0',
`plan_mitigations` tinyint(1) NOT NULL DEFAULT '0',
`close_risks` tinyint(1) NOT NULL DEFAULT '1',
`multi_factor` int(11) NOT NULL DEFAULT '1',
PRIMARY KEY (`value`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`value`, `enabled`, `type`, `username`, `name`, `email`, `salt`, `password`, `last_login`, `teams`, `lang`, `admin`, `review_high`, `review_medium`, `review_low`, `submit_risks`, `modify_risks`, `plan_mitigations`, `close_risks`, `multi_factor`) VALUES
(1, 1, 'simplerisk', 'admin', 'Admin', '[email protected]', 'sAbwTbIFywWKcheyQw9a', '$2a$15$7b2601b4979b1ad031b2fuqf1XkeSa4iNxsHK27tq5Va2jLhzkShW', '2014-04-13 12:47:03', 'all', NULL, 1, 1, 1, 1, 1, 1, 1, 1, 1);