forked from humpalum/vscode-sigma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
181 lines (181 loc) · 6.59 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
{
"name": "sigma",
"displayName": "sigma",
"description": "Support for Sigma Signature Format",
"version": "1.4.1",
"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 Attack Tag"
},
{
"command": "sigma.sigmaCompile",
"title": "Compile Sigma Rule"
}
],
"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"
}
}
}
},
"configurationDefaults": {
"[sigma]": {
"editor.insertSpaces": true,
"editor.tabSize": 3,
"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.69.1",
"webpack-cli": "^4.9.2"
},
"dependencies": {
"axios": "^1.3.4",
"sanitize-html": "^2.10.0",
"yaml": "^2.1.1",
"yo": "^4.3.0"
}
}