-
Notifications
You must be signed in to change notification settings - Fork 1
/
indicator.sql
150 lines (125 loc) · 3.83 KB
/
indicator.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
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: May 14, 2016 at 08:59 PM
-- Server version: 10.1.10-MariaDB
-- PHP Version: 7.0.4
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!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 utf8mb4 */;
--
-- Database: `indicator`
--
-- --------------------------------------------------------
--
-- Table structure for table `indicators`
--
CREATE TABLE `indicators` (
`id` int(11) NOT NULL,
`name` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
`type` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`value` text COLLATE utf8_unicode_ci,
`hidden` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `reports`
--
CREATE TABLE `reports` (
`id` int(11) NOT NULL,
`org` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
`device` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`setname` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
`ioc_id` int(11) NOT NULL,
`result` tinyint(1) NOT NULL DEFAULT '0',
`data` text COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `sets`
--
CREATE TABLE `sets` (
`name` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
`id` int(11) NOT NULL,
`parent_id` int(11) NOT NULL,
`type` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`ioc_id` int(11) DEFAULT NULL,
`hidden` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `types`
--
CREATE TABLE `types` (
`type` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`values_count` int(11) NOT NULL,
`values_desc` varchar(500) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `types`
--
INSERT INTO `types` (`type`, `values_count`, `values_desc`) VALUES
('cert-ca', 1, 'CA name|'),
('cert-dom', 1, 'Domain name|'),
('dns', 1, 'DNS entry|'),
('file', 4, 'Path|Name|Hash type|Hash|'),
('file-regex', 3, 'Full path regex|Hash type|Hash|'),
('mutex-name', 1, 'Mutex name|'),
('network-ip', 1, 'IP address|'),
('network-name', 1, 'Domain name|'),
('network-regex', 1, 'Domain name regex|'),
('process-hash', 2, 'Hash type|Executable hash|'),
('process-name', 1, 'Process name|'),
('process-regex', 1, 'Process name regex|'),
('registry', 3, 'Path|Name|Value|'),
('registry-regex', 3, 'Path regex|Name regex|Value regex|');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `indicators`
--
ALTER TABLE `indicators`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `reports`
--
ALTER TABLE `reports`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `sets`
--
ALTER TABLE `sets`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `types`
--
ALTER TABLE `types`
ADD PRIMARY KEY (`type`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `indicators`
--
ALTER TABLE `indicators`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `reports`
--
ALTER TABLE `reports`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `sets`
--
ALTER TABLE `sets`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
/*!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 */;