-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathblackmatter-linux_structs.go
More file actions
78 lines (67 loc) · 3.22 KB
/
blackmatter-linux_structs.go
File metadata and controls
78 lines (67 loc) · 3.22 KB
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
/*
Copyright (C) <2021-2022> <Marius Genheimer>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>
*/
package main
// Structures to accept extracted BlackMatter Ransomware configuration data
// different feature sets (cfg_*) can be individually enabled or disabled
type cfg_disk struct {
Enable string `json:"enable"`
Type string `json:"type"`
DarkSize string `json:"dark-size"`
WhiteSize string `json:"white-size"`
MinSize string `json:"min-size"`
ExtensionList string `json:"extension-list"` // Files with these extensions will be encrypted
}
type cfg_log struct {
Enable string `json:"enable"`
Level string `json:"level"` // Verbosity of the log output
Path string `json:"path"` // Path for the log file
}
type cfg_message struct {
Enable string `json:"enable"`
Name string `json:"file-name"` // File name of the ransomnote
Content string `json:"file-content,omitempty"` // Contents of the ransomnote
}
type cfg_landing struct {
Enable string `json:"enable"`
ID string `json:"bot-id"` // Identifier for C2 communication
Key string `json:"key"` // AES key to encrypt C2 communication
URLs []string `json:"urls"` // C2 URLs
}
type cfg_killvm struct {
Enable string `json:"enable"`
Ignore []string `json:"ignore-list"` // Ignore virtual machines with these names
}
type cfg_killprocess struct {
Enable string `json:"enable"`
List []string `json:"list"` // Kill processes / daemons
}
type BlackmatterConfigEnc struct {
RSAKey string `json:"rsa"` // RSA-4096 Public Key
SelfDelete string `json:"remove-self"` // remove the executable after encryption
Concurrency string `json:"worker-concurrency"` // multi-threaded operation
Disk cfg_disk `json:"disk"` // Encryption
Log cfg_log `json:"log"` // Logging
Message cfg_message `json:"message"` // Ransomnote
Landing cfg_landing `json:"landing"` // Command&Control
KillVM cfg_killvm `json:"kill-vm"` // VM Allow-List
KillProcess cfg_killprocess `json:"kill-process"` // Process Block-list
}
type BlackmatterConfigDec struct {
RSAKey string `json:"rsa"` // RSA-4096 Private Key
SelfDelete string `json:"remove-self"` // remove the executable after encryption
Concurrency string `json:"worker-concurrency"` // multi-threaded operation
Disk cfg_disk `json:"disk"` // Encryption
Log cfg_log `json:"log"` // Logging
Message cfg_message `json:"message"` // Ransomnote
}