-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSecurityAssessmentTool.sql
executable file
·46 lines (38 loc) · 1.24 KB
/
SecurityAssessmentTool.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
create database VulnerabilityRuleMatrix;
CREATE TABLE VulnerabilityRuleMatrix.ProgrammingFeature (
iPFID int PRIMARY KEY AUTO_INCREMENT,
cPFDescription varchar(225) NOT NULL,
cRegExp varchar(225) NOT NULL,
cPLanguage varchar(25) NOT NULL,
cRCD_DEL char default 'N'
);
create table VulnerabilityRuleMatrix.FeatureRule (
iRuleID int PRIMARY KEY AUTO_INCREMENT,
cRuleDescription varchar(225) NOT NULL,
cRiskSeverity varchar(25) NOT NULL,
cRuleSolution varchar(225) NOT NULL,
cRCD_DEL char default 'N'
);
create table VulnerabilityRuleMatrix.ValidationStep (
iValidationID int PRIMARY KEY AUTO_INCREMENT,
cValidationOrder int NOT NULL,
cRegExp varchar(225) NOT NULL,
cScope varchar(25) NOT NULL,
cRCD_DEL char default 'N'
);
create table VulnerabilityRuleMatrix.PF_FR_Rel (
iPF_FR_Rel_ID int PRIMARY KEY AUTO_INCREMENT,
iPFID int,
iRuleID int,
FOREIGN KEY (iPFID) REFERENCES ProgrammingFeature(iPFID),
FOREIGN KEY (iRuleID) REFERENCES FeatureRule(iRuleID),
cRCD_DEL char default 'N'
);
create table VulnerabilityRuleMatrix.FR_VS_Rel (
iFR_VS_Rel_ID int PRIMARY KEY AUTO_INCREMENT,
iRuleID int,
FOREIGN KEY (iRuleID) REFERENCES FeatureRule(iRuleID),
iValidationID int,
FOREIGN KEY (iValidationID) REFERENCES ValidationStep(iValidationID),
cRCD_DEL char default 'N'
);