-
Notifications
You must be signed in to change notification settings - Fork 9
/
package.json
262 lines (262 loc) · 10.5 KB
/
package.json
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
{
"name": "sigma",
"displayName": "sigma",
"description": "Support for Sigma Signature Format",
"version": "1.7.4",
"engines": {
"vscode": "^1.66.0"
},
"icon": "images/Sigma_Icon_trans.png",
"publisher": "humpalum",
"license": "MIT License - full document in LICENSE",
"categories": [
"Programming Languages",
"Snippets"
],
"browser": "./dist/extension.js",
"activationEvents": [
"onLanguage:sigma",
"onLanguage:plaintext",
"onLanguage:yaml"
],
"repository": {
"type": "git",
"url": "https://github.com/humpalum/vscode-sigma"
},
"bugs": {
"url": "https://github.com/humpalum/vscode-sigma/issues"
},
"main": "./dist/extension.js",
"contributes": {
"languages": [
{
"id": "sigma",
"aliases": [
"sigma",
"sigma-syntax",
"sigmalang",
"SIGMA",
"Sigma"
],
"icon": {
"light": "./images/Sigma_Icon_trans.png",
"dark": "./images/Sigma_Icon_trans.png"
},
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"comments": [
"YAML syntax as base for Sigma",
"scopeName changed so that we can use it as base for injections"
],
"language": "sigma",
"scopeName": "source.sigma",
"path": "./syntaxes/external/YAML.tmLanguage.json"
}
],
"commands": [
{
"command": "sigma.AddTag",
"title": "Add Tag"
},
{
"command": "sigma.sigmaCompile",
"title": "Compile Sigma Rule"
},
{
"command": "sigma.OpenSigConverter",
"title": "Open Rule in sigconverter.io"
}
],
"keybindings": [
{
"command": "sigma.onEnterKey",
"key": "enter",
"when": "editorTextFocus && !editorReadonly && editorLangId == sigma && !suggestWidgetVisible && !editorHasMultipleSelections && vim.mode != 'Normal' && vim.mode != 'Visual' && vim.mode != 'VisualBlock' && vim.mode != 'VisualLine' && vim.mode != 'SearchInProgressMode' && vim.mode != 'CommandlineInProgress' && vim.mode != 'Replace' && vim.mode != 'EasyMotionMode' && vim.mode != 'EasyMotionInputMode' && vim.mode != 'SurroundInputMode'"
},
{
"command": "sigma.onCtrlEnterKey",
"key": "ctrl+enter",
"mac": "cmd+enter",
"when": "editorTextFocus && !editorReadonly && editorLangId == sigma && !suggestWidgetVisible && !editorHasMultipleSelections"
},
{
"command": "sigma.onShiftEnterKey",
"key": "shift+enter",
"when": "editorTextFocus && !editorReadonly && editorLangId == sigma && !suggestWidgetVisible && !editorHasMultipleSelections"
}
],
"snippets": [
{
"language": "sigma",
"path": "./snippets/sigma.json"
}
],
"configuration": {
"title": "sigma",
"properties": {
"sigma.debug": {
"type": "bool",
"default": false,
"description": "Sigma Extension Debug Mode"
},
"sigma.author": {
"type": "string",
"default": "",
"description": "Sets the Sigma author"
},
"sigma.sigmasearchengineurl": {
"type": "string",
"default": "https://sigmasearchengine.com/",
"description": "URL to Sigma-Search-Engine"
},
"sigma.compileConfig": {
"type": "array",
"description": "SigmaC configurations. Example: \"sigma.compileConfig\": [{\"target\": \"kibana\", \"config\":\"/mnt/yara/sigma/tools/config/winlogbeat.yml\", \"additionalArgs\": \"\"}]",
"items": {
"target": {
"type": "string",
"description": "target of the config (--target in sigmac)"
},
"config": {
"type": "string",
"description": "Path to the sigma config (--config in sigmac)"
},
"additionalArgs": {
"type": "string",
"description": "Any additional args you want to use for that sigmac"
}
}
},
"sigma.sigconverterBackend": {
"type": "string",
"default": "splunk",
"enum": [
"azure",
"carbonblack",
"cortexxdr",
"elasticsearch",
"ibm-qradar-aql",
"insight_idr",
"loki",
"lucene",
"microsoft365defender",
"opensearch",
"qradar",
"sentinelone",
"sentinelone_pq",
"splunk",
"uberagent"
],
"description": "Default backend in sigconverter "
},
"sigma.sigconverterUrl": {
"type": "string",
"default": "https://sigconverter.io/",
"description": "URL to Sigconverter Instance"
},
"sigma.sigconverterVersion": {
"type": "string",
"description": "Overwrite for the version of sigconverter"
},
"sigma.sigconverterEnabled": {
"type": "boolean",
"default": false,
"description": "Enable/Disable the sigconverter.io integration"
},
"sigma.sigconverterConfigs": {
"type": "array",
"description": "Sigconverter.io configurations. Example: \"sigma.sigconverterConfig\": [{\"url\":\"\", \"backend\":\"splunk\", \"pipeline\": [\"/home/tobias/Whatever/pipeline.yml\",\"/home/tobias/Whatever/pipeline.yml\"], \"format\": \"default|savedsearches|data_model|string\"}]",
"items": {
"name": {
"type": "string",
"description": "Optional name for the output"
},
"url": {
"type": "string",
"description": "The URL to the sigconverter instance (For example: https://beta.sigconverter.io/). Defaults to https://sigconverter.io/"
},
"pipeline": {
"type": "array",
"description": "Names of the predefined sigma pipelines. Refer to sigconverter pipeline dropdown for possible values",
"items": {
"type": "string",
"description": ""
}
},
"pipelineYML": {
"type": [
"string",
"array"
],
"description": "Paths to custom sigma pipelines. Multiple will be concatenated and applied",
"items": {
"type": "string",
"description": "Path to a custom sigma pipeline"
}
},
"backend": {
"type": "string",
"description": "Target Backend to be used for this config"
},
"format": {
"type": "string",
"description": "The output format of the backend. For example for Splunk one of: default|savedsearches|data_model. Please refer to the target backend for possible values"
}
}
}
},
"configurationDefaults": {
"[sigma]": {
"editor.insertSpaces": true,
"editor.tabSize": 4,
"editor.quickSuggestions": {
"other": true,
"comments": false,
"strings": true
},
"editor.autoIndent": "keep"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"compile-web": "webpack",
"watch": "webpack --watch",
"watch-web": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"package-web": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^7.2.0",
"@types/mocha": "^9.1.0",
"@types/node": "14.x",
"@types/sanitize-html": "^2.8.1",
"@types/vscode": "^1.66.0",
"@typescript-eslint/eslint-plugin": "^5.12.1",
"@typescript-eslint/parser": "^5.12.1",
"@vscode/test-electron": "^2.1.2",
"eslint": "^8.9.0",
"glob": "^7.2.0",
"mocha": "^9.2.1",
"ts-loader": "^9.2.6",
"typescript": "^4.5.5",
"webpack": "^5.93.0",
"webpack-cli": "^4.10.0"
},
"dependencies": {
"axios": "^1.3.4",
"sanitize-html": "^2.10.0",
"yaml": "^2.1.1",
"yo": "^4.3.0"
}
}