-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.sql
306 lines (262 loc) · 10.7 KB
/
init.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
CREATE DATABASE IF NOT EXISTS `risk` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `risk`;
-- MySQL dump 10.13 Distrib 5.6.19, for osx10.7 (i386)
--
-- Host: localhost Database: risk
-- ------------------------------------------------------
-- Server version 5.6.21-enterprise-commercial-advanced
/*!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 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `Assets`
--
DROP TABLE IF EXISTS `Assets`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Assets` (
`Assets_id` varchar(45) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
`System_id` varchar(45) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`Assets_type` varchar(45) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`Assets_name` varchar(45) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`confidentiality` int(11) DEFAULT NULL,
`integrality` int(11) DEFAULT NULL,
`availability` int(11) DEFAULT NULL,
`Assets_value` int(11) DEFAULT NULL,
PRIMARY KEY (`Assets_id`)
) ENGINE=InnoDB DEFAULT CHARSET=big5;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `Assets`
--
LOCK TABLES `Assets` WRITE;
/*!40000 ALTER TABLE `Assets` DISABLE KEYS */;
/*!40000 ALTER TABLE `Assets` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `Mapping`
--
DROP TABLE IF EXISTS `Mapping`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Mapping` (
`Asset_id` varchar(45) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`Vul_id` varchar(45) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`Thread_id` varchar(45) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `Mapping`
--
LOCK TABLES `Mapping` WRITE;
/*!40000 ALTER TABLE `Mapping` DISABLE KEYS */;
/*!40000 ALTER TABLE `Mapping` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `Project`
--
DROP TABLE IF EXISTS `Project`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Project` (
`Project_id` varchar(45) NOT NULL,
`Project_name` varchar(80) DEFAULT NULL,
`Project_client` varchar(80) DEFAULT NULL,
PRIMARY KEY (`Project_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `Project`
--
LOCK TABLES `Project` WRITE;
/*!40000 ALTER TABLE `Project` DISABLE KEYS */;
/*!40000 ALTER TABLE `Project` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `RISK`
--
DROP TABLE IF EXISTS `RISK`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `RISK` (
`Asset_id` varchar(45) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`Asset_value` int(11) DEFAULT NULL,
`Vul_id` varchar(45) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`Vul_level` int(11) DEFAULT NULL,
`Threat_id` varchar(45) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`Threat_level` varchar(45) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`TV` int(11) DEFAULT NULL,
`AV` int(11) DEFAULT NULL,
`R` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `RISK`
--
LOCK TABLES `RISK` WRITE;
/*!40000 ALTER TABLE `RISK` DISABLE KEYS */;
/*!40000 ALTER TABLE `RISK` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `System`
--
DROP TABLE IF EXISTS `System`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `System` (
`System_id` varchar(45) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`System_name` varchar(80) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`Project_id` varchar(45) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
PRIMARY KEY (`System_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `System`
--
LOCK TABLES `System` WRITE;
/*!40000 ALTER TABLE `System` DISABLE KEYS */;
/*!40000 ALTER TABLE `System` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `Threat`
--
DROP TABLE IF EXISTS `Threat`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Threat` (
`Asset_id` varchar(45) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`THR-01` int(11) DEFAULT NULL,
`THR-02` int(11) DEFAULT NULL,
`THR-03` int(11) DEFAULT NULL,
`THR-04` int(11) DEFAULT NULL,
`THR-05` int(11) DEFAULT NULL,
`THR-06` int(11) DEFAULT NULL,
`THR-07` int(11) DEFAULT NULL,
`THR-08` int(11) DEFAULT NULL,
`THR-09` int(11) DEFAULT NULL,
`THR-10` int(11) DEFAULT NULL,
`THR-11` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `Threat`
--
LOCK TABLES `Threat` WRITE;
/*!40000 ALTER TABLE `Threat` DISABLE KEYS */;
/*!40000 ALTER TABLE `Threat` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `Threat_possibility`
--
DROP TABLE IF EXISTS `Threat_possibility`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Threat_possibility` (
`THR-01` int(11) DEFAULT NULL,
`THR-02` int(11) DEFAULT NULL,
`THR-03` int(11) DEFAULT NULL,
`THR-04` int(11) DEFAULT NULL,
`THR-05` int(11) DEFAULT NULL,
`THR-06` int(11) DEFAULT NULL,
`THR-07` int(11) DEFAULT NULL,
`THR-08` int(11) DEFAULT NULL,
`THR-09` int(11) DEFAULT NULL,
`THR-10` int(11) DEFAULT NULL,
`THR-11` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `Threat_possibility`
--
LOCK TABLES `Threat_possibility` WRITE;
/*!40000 ALTER TABLE `Threat_possibility` DISABLE KEYS */;
/*!40000 ALTER TABLE `Threat_possibility` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `Threat_type`
--
DROP TABLE IF EXISTS `Threat_type`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Threat_type` (
`Threat_id` varchar(80) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`Threat_type` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`Threat_content` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
PRIMARY KEY (`Threat_id`)
) ENGINE=InnoDB DEFAULT CHARSET=big5;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `Threat_type`
--
LOCK TABLES `Threat_type` WRITE;
/*!40000 ALTER TABLE `Threat_type` DISABLE KEYS */;
INSERT INTO `Threat_type` VALUES ('THR-01','软硬件故障','对业务实施或系统运行产生影响的设备硬件故障、通讯链路中断、系统本身或软件缺陷等问题'),('THR-02','物理环境影响','对信息系统正常运行造成影响的物理环境问题和自然灾害'),('THR-03','无作为或操作失误','应该执行而没有执行相应的操作,或无意执行了错误的操作'),('THR-04','管理不到位','安全管理无法落实或不到位,从而破坏信息系统正常有序运行'),('THR-05','恶意代码','故意在计算机系统上执行恶意任务的程序代码'),('THR-06','越权或滥用','通过采用一些措施,超越自己的权限访问了本来无权访问的资源,或者滥用自己的权限,做出破坏信息系统的行为'),('THR-07','网络攻击','利用工具和技术通过网络对信息系统进行攻击和入侵'),('THR-08','物理攻击','通过物理的接触造成对软件、硬件、数据的破坏'),('THR-09','泄密','信息泄露给不应了解的他人'),('THR-10','篡改','非法修改信息,破坏信息的完整性使系统的安全性降低或信息不可用'),('THR-11','抵赖','不承认收到的信息和所作的操作和交易');
/*!40000 ALTER TABLE `Threat_type` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `Threat_value`
--
DROP TABLE IF EXISTS `Threat_value`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Threat_value` (
`Asset_id` varchar(45) DEFAULT NULL,
`THR-01` int(11) DEFAULT NULL,
`THR-02` int(11) DEFAULT NULL,
`THR-03` int(11) DEFAULT NULL,
`THR-04` int(11) DEFAULT NULL,
`THR-05` int(11) DEFAULT NULL,
`THR-06` int(11) DEFAULT NULL,
`THR-07` int(11) DEFAULT NULL,
`THR-08` int(11) DEFAULT NULL,
`THR-09` int(11) DEFAULT NULL,
`THR-10` int(11) DEFAULT NULL,
`THR-11` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `Threat_value`
--
LOCK TABLES `Threat_value` WRITE;
/*!40000 ALTER TABLE `Threat_value` DISABLE KEYS */;
/*!40000 ALTER TABLE `Threat_value` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `Vulnerability`
--
DROP TABLE IF EXISTS `Vulnerability`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Vulnerability` (
`Vul_id` varchar(45) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`Vul_content` varchar(80) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`Vul_level` int(11) DEFAULT NULL,
`Asset_id` varchar(45) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=big5;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `Vulnerability`
--
LOCK TABLES `Vulnerability` WRITE;
/*!40000 ALTER TABLE `Vulnerability` DISABLE KEYS */;
/*!40000 ALTER TABLE `Vulnerability` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Dumping routines for database 'risk'
--
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2015-12-13 16:16:09