Repository navigation
Expand file tree
/
Copy pathrules.json
More file actions
1577 lines (1577 loc) · 55.4 KB
/
Copy pathrules.json
File metadata and controls
1577 lines (1577 loc) · 55.4 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
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
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"version": 2,
"behaviors": [
{
"id": "IEX",
"category": "실행",
"name": "동적 코드 실행 (Invoke-Expression)",
"description": "문자열을 코드로 해석해 즉시 실행합니다. 복호화된 다음 단계 페이로드를 실행하는 전형적인 방식입니다.",
"mitre": "T1059.001",
"mitreName": "PowerShell",
"tactic": "Execution",
"severity": "High",
"pattern": "\\bInvoke-Expression\\b|(?<![\\w-])iex(?![\\w-])",
"examples": [
"iex $payload",
"$x | Invoke-Expression"
],
"counterExamples": [
"$iexplorePath = 'C:\\x'",
"Get-Item .\\iex-notes.txt"
]
},
{
"id": "SBC",
"category": "실행",
"name": "스크립트 블록 동적 생성/실행",
"description": "[ScriptBlock]::Create 또는 InvokeScript 로 문자열을 코드로 바꿔 실행합니다 (iex 탐지 회피 기법).",
"mitre": "T1059.001",
"mitreName": "PowerShell",
"tactic": "Execution",
"severity": "High",
"pattern": "ScriptBlock\\]::Create|NewScriptBlock|InvokeScript|\\[ScriptBlock\\]\\s*\\$",
"examples": [
"[ScriptBlock]::Create($s)",
"InvokeCommand.InvokeScript($c)"
],
"counterExamples": [
"$sb = { Get-Date }"
]
},
{
"id": "ENC",
"category": "실행",
"name": "인코딩된 명령 실행 (-EncodedCommand)",
"description": "Base64(UTF-16LE)로 인코딩한 명령을 실행하여 명령줄 내용을 숨깁니다.",
"mitre": "T1027.010",
"mitreName": "Command Obfuscation",
"tactic": "Defense Evasion",
"severity": "Medium",
"pattern": "(?<=\\s)-(e|ec|enc|encodedcommand)\\s+[A-Za-z0-9+/=]{16,}",
"examples": [
"powershell -enc SQBFAFgAIAAoACcAaABpACcAKQA=",
"powershell.exe -EncodedCommand SQBFAFgAIAAoACcAaABpACcAKQA="
],
"counterExamples": [
"Get-Content -Encoding UTF8 a.txt"
]
},
{
"id": "HID",
"category": "은폐",
"name": "숨김 창으로 실행",
"description": "-WindowStyle Hidden 으로 콘솔 창을 숨겨 사용자가 실행을 인지하지 못하게 합니다.",
"mitre": "T1564.003",
"mitreName": "Hidden Window",
"tactic": "Defense Evasion",
"severity": "Medium",
"pattern": "-w(i(n(d(o(w(s(t(y(le?)?)?)?)?)?)?)?)?)?\\s+(h|hidden|1)\\b",
"examples": [
"powershell -w hidden -c x",
"powershell.exe -WindowStyle Hidden",
"powershell -w 1 -c x"
],
"counterExamples": [
"Out-File x -Width 100"
]
},
{
"id": "EPB",
"category": "은폐",
"name": "실행 정책 우회",
"description": "-ExecutionPolicy Bypass 로 스크립트 실행 제한을 무시합니다.",
"mitre": "T1059.001",
"mitreName": "PowerShell",
"tactic": "Execution",
"severity": "Medium",
"pattern": "-(ex(ecutionpolicy)?|ep)\\s+(bypass|unrestricted)|Set-ExecutionPolicy\\s+(Bypass|Unrestricted)",
"examples": [
"powershell -ExecutionPolicy Bypass -File a.ps1",
"powershell -ep bypass"
],
"counterExamples": [
"Set-ExecutionPolicy RemoteSigned"
]
},
{
"id": "NOP",
"category": "은폐",
"name": "프로필 미로드·비대화형 실행",
"description": "-NoProfile / -NonInteractive 옵션으로 흔적과 사용자 상호작용을 최소화합니다.",
"mitre": "T1059.001",
"mitreName": "PowerShell",
"tactic": "Execution",
"severity": "Low",
"pattern": "\\s-nop(rofile)?\\b|\\s-noni(nteractive)?\\b",
"examples": [
"powershell -nop -c x",
"powershell -NoProfile"
],
"counterExamples": [
"$nopValue = 1"
]
},
{
"id": "IVI",
"category": "실행",
"name": "다운로드 파일 실행 (Invoke-Item)",
"description": "저장된 파일을 기본 연결 프로그램으로 실행합니다.",
"mitre": "T1204.002",
"mitreName": "Malicious File",
"tactic": "Execution",
"severity": "High",
"pattern": "\\bInvoke-Item\\b",
"examples": [
"Invoke-Item $path"
],
"counterExamples": [
"Get-Item $path"
]
},
{
"id": "SPR",
"category": "실행",
"name": "새 프로세스 실행 (Start-Process)",
"description": "외부 프로그램을 새 프로세스로 실행합니다.",
"mitre": "T1106",
"mitreName": "Native API",
"tactic": "Execution",
"severity": "Medium",
"pattern": "\\bStart-Process\\b|\\bsaps\\b|Diagnostics\\.Process\\]::Start",
"examples": [
"Start-Process $exe",
"[Diagnostics.Process]::Start('a.exe')"
],
"counterExamples": [
"Stop-Process -Id 1"
]
},
{
"id": "EXF",
"category": "실행",
"name": "다운로드한 파일 직접 실행 (& 호출 연산자)",
"description": "호출 연산자 & 로 사용자 쓰기 가능 경로의 스크립트/실행 파일(.js .vbs .exe 등)을 바로 실행합니다. .js 는 Windows Script Host(wscript)로 실행됩니다.",
"mitre": "T1204.002",
"mitreName": "Malicious File",
"tactic": "Execution",
"severity": "High",
"pattern": "&\\s*[\"'“”‘’]?\\$\\{?env:(?:temp|tmp|appdata|localappdata|public|programdata)\\}?\\\\[^\"'“”‘’\\r\\n]*\\.(?:js|jse|vbs|vbe|exe|scr|bat|cmd|hta|ps1)\\b",
"examples": [
"& \"$env:APPDATA\\x.js\"",
"& ”$ENV:AppdATA\\x.js”",
"& $env:TEMP\\a.exe"
],
"counterExamples": [
"& \"$env:ProgramFiles\\App\\app.exe\"",
"$p = \"$env:TEMP\\a.js\"",
"& .\\build.ps1"
],
"author": "PS Deobfuscator",
"updated": "2026-10-10",
"references": [
"sample/powershell05.txt"
]
},
{
"id": "WSH",
"category": "실행",
"name": "Windows Script Host 실행 (VBS/JS)",
"description": "wscript/cscript 또는 WScript.Shell 로 스크립트를 실행합니다. VBS 런처로 창 없이 프로그램을 실행하는 데 쓰입니다.",
"mitre": "T1059.005",
"mitreName": "Visual Basic",
"tactic": "Execution",
"severity": "High",
"pattern": "\\b[wc]script(\\.exe)?\\b|WScript\\.Shell|\\.vbs\\b",
"examples": [
"wscript.exe start.vbs",
"New-Object -ComObject WScript.Shell"
],
"counterExamples": [
"$description = 'test'"
]
},
{
"id": "LOL",
"category": "실행",
"name": "시스템 기본 도구(LOLBin) 악용",
"description": "mshta/rundll32/regsvr32/certutil 등 서명된 윈도우 도구로 악성 행위를 수행합니다.",
"mitre": "T1218",
"mitreName": "System Binary Proxy Execution",
"tactic": "Defense Evasion",
"severity": "High",
"pattern": "\\b(mshta|rundll32|regsvr32|certutil|bitsadmin|msiexec|installutil|regasm|regsvcs|cmstp|msbuild)(\\.exe)?\\b",
"examples": [
"mshta.exe http://x/a.hta",
"rundll32 a.dll,Run"
],
"counterExamples": [
"Get-Date"
]
},
{
"id": "CPS",
"category": "실행",
"name": "PowerShell 자식 프로세스 실행",
"description": "새 PowerShell 프로세스를 띄워 드롭한 스크립트(-File) 또는 명령을 실행합니다.",
"mitre": "T1059.001",
"mitreName": "PowerShell",
"tactic": "Execution",
"severity": "Medium",
"pattern": ";\\s*powershell(\\.exe)?\\s+.*-f(ile)?\\s|\\bpowershell(\\.exe)?\\s+[^\\r\\n]*-f(ile)?\\s+\\$",
"examples": [
"$a | Out-File $p; powershell -ExecutionPolicy bypass -File $p",
"powershell -w h -f $file"
],
"counterExamples": [
"powershell -Command Get-Date"
]
},
{
"id": "WCL",
"category": "통신",
"name": "WebClient 객체 생성",
"description": "HTTP 통신용 System.Net.WebClient 객체를 생성합니다.",
"mitre": "T1105",
"mitreName": "Ingress Tool Transfer",
"tactic": "Command and Control",
"severity": "Medium",
"pattern": "Net\\.WebClient",
"examples": [
"New-Object Net.WebClient",
"New-Object System.Net.WebClient"
],
"counterExamples": [
"New-Object System.Text.StringBuilder"
]
},
{
"id": "DLF",
"category": "통신",
"name": "원격 파일 다운로드 후 디스크 저장",
"description": "DownloadFile 로 원격 서버의 파일(주로 실행 파일)을 로컬에 저장합니다.",
"mitre": "T1105",
"mitreName": "Ingress Tool Transfer",
"tactic": "Command and Control",
"severity": "High",
"pattern": "\\.DownloadFile(Async)?\\s*\\(|-OutFile\\b",
"examples": [
"$wc.DownloadFile($u, $p)",
"Invoke-WebRequest $u -OutFile $p"
],
"counterExamples": [
"$wc.DownloadString($u)"
]
},
{
"id": "DLS",
"category": "통신",
"name": "원격 코드 메모리 다운로드",
"description": "DownloadString/DownloadData 로 원격 코드를 메모리로 받아옵니다 (파일리스 실행 준비).",
"mitre": "T1105",
"mitreName": "Ingress Tool Transfer",
"tactic": "Command and Control",
"severity": "High",
"pattern": "\\.Download(String|Data)\\s*\\(|\\.OpenRead\\s*\\(",
"examples": [
"$wc.DownloadString('http://a')",
"$b = $wc.DownloadData($u)"
],
"counterExamples": [
"$wc.DownloadFile($u,$p)"
]
},
{
"id": "IWR",
"category": "통신",
"name": "HTTP 요청 (Invoke-WebRequest/RestMethod)",
"description": "PowerShell 웹 요청 cmdlet 으로 원격 리소스를 내려받거나 서버와 통신합니다.",
"mitre": "T1105",
"mitreName": "Ingress Tool Transfer",
"tactic": "Command and Control",
"severity": "High",
"pattern": "\\b(Invoke-WebRequest|iwr|Invoke-RestMethod|irm)\\b",
"examples": [
"iwr http://a/b -UseBasicParsing",
"Invoke-RestMethod -Uri $u"
],
"counterExamples": [
"$irmVar = 1",
"Get-Content $iwrLog"
]
},
{
"id": "BIT",
"category": "통신",
"name": "BITS 전송 악용",
"description": "BITS 백그라운드 전송으로 파일을 내려받습니다.",
"mitre": "T1197",
"mitreName": "BITS Jobs",
"tactic": "Defense Evasion",
"severity": "High",
"pattern": "Start-BitsTransfer|bitsadmin",
"examples": [
"Start-BitsTransfer -Source $u -Destination $p"
],
"counterExamples": [
"Get-BitLockerVolume"
]
},
{
"id": "TLS",
"category": "통신",
"name": "TLS 프로토콜 강제 설정",
"description": "HTTPS 서버 통신 실패를 막기 위해 TLS 1.1/1.2/1.3 사용을 강제합니다. 다운로드 직전 준비 단계로 자주 보입니다.",
"mitre": "T1071.001",
"mitreName": "Web Protocols",
"tactic": "Command and Control",
"severity": "Low",
"pattern": "SecurityProtocol",
"examples": [
"[Net.ServicePointManager]::SecurityProtocol = 'Tls12'"
],
"counterExamples": [
"Write-Host 'protocol'"
]
},
{
"id": "SOC",
"category": "통신",
"name": "소켓 통신 (리버스 셸 가능성)",
"description": "TCP 소켓으로 원격지와 직접 통신합니다.",
"mitre": "T1095",
"mitreName": "Non-Application Layer Protocol",
"tactic": "Command and Control",
"severity": "Critical",
"pattern": "Net\\.Sockets\\.TcpClient|TcpListener|\\.GetStream\\(\\)",
"examples": [
"New-Object Net.Sockets.TcpClient('1.2.3.4', 443)",
"$s = $c.GetStream()"
],
"counterExamples": [
"New-Object Net.WebClient"
]
},
{
"id": "UPL",
"category": "유출",
"name": "데이터 외부 전송",
"description": "수집한 데이터를 원격 서버로 업로드합니다.",
"mitre": "T1041",
"mitreName": "Exfiltration Over C2 Channel",
"tactic": "Exfiltration",
"severity": "High",
"pattern": "\\.Upload(String|File|Data)\\s*\\(|-Method\\s+Post",
"examples": [
"$wc.UploadString($u, $data)",
"Invoke-RestMethod -Uri $u -Method Post -Body $b"
],
"counterExamples": [
"$wc.DownloadString($u)"
]
},
{
"id": "WEB",
"category": "통신",
"name": "정상 웹 서비스 악용 (페이로드 호스팅)",
"description": "GitHub/Pastebin/Discord 등 신뢰도 높은 서비스에 페이로드를 올려 차단을 회피합니다.",
"mitre": "T1102",
"mitreName": "Web Service",
"tactic": "Command and Control",
"severity": "Medium",
"pattern": "github(usercontent)?\\.com|pastebin\\.com|discord(app)?\\.com/api/webhooks|api\\.telegram\\.org|transfer\\.sh|dropboxusercontent|drive\\.google\\.com|cdn\\.discordapp",
"examples": [
"iwr https://raw.githubusercontent.com/a/b/main/x.ps1",
"https://pastebin.com/raw/abc"
],
"counterExamples": [
"https://example.com/a"
]
},
{
"id": "RUN",
"category": "지속성",
"name": "레지스트리 Run 키 자동 실행 등록",
"description": "로그온할 때마다 악성 프로그램이 자동 실행되도록 Run 키에 등록합니다.",
"mitre": "T1547.001",
"mitreName": "Registry Run Keys / Startup Folder",
"tactic": "Persistence",
"severity": "Critical",
"pattern": "CurrentVersion\\\\Run(Once)?\\b",
"examples": [
"Set-ItemProperty 'HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Run' x y",
"HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce"
],
"counterExamples": [
"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall"
]
},
{
"id": "SCH",
"category": "지속성",
"name": "예약 작업 등록",
"description": "예약 작업으로 주기적 실행/지속성을 확보합니다.",
"mitre": "T1053.005",
"mitreName": "Scheduled Task",
"tactic": "Persistence",
"severity": "High",
"pattern": "schtasks|Register-ScheduledTask|New-ScheduledTask",
"examples": [
"schtasks /create /tn x /tr y",
"Register-ScheduledTask -TaskName x"
],
"counterExamples": [
"Get-ScheduledJob"
]
},
{
"id": "STU",
"category": "지속성",
"name": "시작프로그램 폴더 등록",
"description": "시작프로그램 폴더에 파일/바로가기를 둡니다.",
"mitre": "T1547.001",
"mitreName": "Registry Run Keys / Startup Folder",
"tactic": "Persistence",
"severity": "High",
"pattern": "Start Menu\\\\Programs\\\\Startup|shell:startup",
"examples": [
"Copy-Item a.lnk \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\"",
"explorer shell:startup"
],
"counterExamples": [
"Start-Menu"
]
},
{
"id": "WMI",
"category": "지속성",
"name": "WMI 이벤트 구독 지속성",
"description": "WMI 이벤트 필터/컨슈머로 파일 없이 지속성을 확보합니다.",
"mitre": "T1546.003",
"mitreName": "WMI Event Subscription",
"tactic": "Persistence",
"severity": "Critical",
"pattern": "__EventFilter|CommandLineEventConsumer|ActiveScriptEventConsumer|Register-WmiEvent",
"examples": [
"Set-WmiInstance -Class __EventFilter",
"CommandLineEventConsumer"
],
"counterExamples": [
"Get-WmiObject Win32_Process"
]
},
{
"id": "SVC",
"category": "지속성",
"name": "서비스 생성",
"description": "새 Windows 서비스를 등록합니다.",
"mitre": "T1543.003",
"mitreName": "Windows Service",
"tactic": "Persistence",
"severity": "High",
"pattern": "New-Service|\\bsc(\\.exe)?\\s+create",
"examples": [
"New-Service -Name x -BinaryPathName y",
"sc.exe create svc binPath= x"
],
"counterExamples": [
"Get-Service"
]
},
{
"id": "REG",
"category": "지속성",
"name": "레지스트리 값 변경",
"description": "레지스트리 값을 생성/수정합니다.",
"mitre": "T1112",
"mitreName": "Modify Registry",
"tactic": "Defense Evasion",
"severity": "Medium",
"pattern": "Set-ItemProperty|New-ItemProperty|\\breg(\\.exe)?\\s+add|RegWrite",
"examples": [
"Set-ItemProperty -Path HKCU:\\x -Name a -Value b",
"reg add HKCU\\x /v a /d b"
],
"counterExamples": [
"Get-ItemProperty HKCU:\\x"
]
},
{
"id": "AMS",
"category": "방어 회피",
"name": "AMSI 우회",
"description": "AMSI(스크립트 검사 인터페이스)를 무력화하여 백신 검사를 피합니다.",
"mitre": "T1562.001",
"mitreName": "Disable or Modify Tools",
"tactic": "Defense Evasion",
"severity": "Critical",
"pattern": "AmsiUtils|amsiInitFailed|AmsiScanBuffer|amsi\\.dll",
"examples": [
"AmsiUtils"
],
"counterExamples": [
"Write-Host 'amsterdam'"
]
},
{
"id": "SBL",
"category": "방어 회피",
"name": "PowerShell 스크립트 블록 로깅 무력화",
"description": "내부 필드 cachedGroupPolicySettings 를 조작해 ScriptBlock 로깅(이벤트 ID 4104)을 꺼서, 이후 실행되는 코드가 이벤트 로그에 남지 않게 합니다.",
"mitre": "T1562.002",
"mitreName": "Disable Windows Event Logging",
"tactic": "Defense Evasion",
"severity": "Critical",
"pattern": "cachedGroupPolicySettings|EnableScriptBlockLogging|EnableScriptBlockInvocationLogging",
"examples": [
"EnableScriptBlockLogging"
],
"counterExamples": [
"Get-WinEvent -LogName 'Microsoft-Windows-PowerShell/Operational'"
]
},
{
"id": "ETW",
"category": "방어 회피",
"name": "ETW 이벤트 추적 무력화",
"description": "PowerShell ETW 공급자를 비활성화하여 보안 제품의 실시간 모니터링을 방해합니다.",
"mitre": "T1562.006",
"mitreName": "Indicator Blocking",
"tactic": "Defense Evasion",
"severity": "Critical",
"pattern": "PSEtwLogProvider|etwProvider|EtwEventWrite",
"examples": [
"PSEtwLogProvider"
],
"counterExamples": [
"Get-EtwTraceSession"
]
},
{
"id": "PRV",
"category": "방어 회피",
"name": "리플렉션으로 내부(비공개) 멤버 조작",
"description": "[Ref].Assembly.GetType(...).GetField(..., 'NonPublic,Static') 로 PowerShell 엔진 내부 값을 바꿉니다. AMSI·로깅 우회에 쓰이는 전형적 기법입니다.",
"mitre": "T1562.001",
"mitreName": "Disable or Modify Tools",
"tactic": "Defense Evasion",
"severity": "High",
"pattern": "\\[Ref\\]\\.Assembly\\.GetType|NonPublic,\\s*Static",
"examples": [
"[Ref].Assembly.GetType('X')",
"GetField('x','NonPublic,Static')"
],
"counterExamples": [
"$obj.GetType()"
]
},
{
"id": "DYN",
"category": "실행",
"name": ".NET 메서드 동적 호출 (리플렉션)",
"description": "로드한 어셈블리에서 GetType/GetMethod 로 메서드를 찾아 Invoke 합니다. 메모리에 로드한 악성 DLL 의 진입점을 실행하는 방식입니다.",
"mitre": "T1620",
"mitreName": "Reflective Code Loading",
"tactic": "Defense Evasion",
"severity": "High",
"pattern": "\\.GetMethod\\([^)]*\\)\\s*\\.Invoke\\(|EntryPoint\\.Invoke",
"examples": [
"$t.GetMethod('Run').Invoke($null, $a)",
"$a.EntryPoint.Invoke($null, $null)"
],
"counterExamples": [
"$sb.Invoke()"
]
},
{
"id": "DEF",
"category": "방어 회피",
"name": "Windows Defender 무력화/예외 등록",
"description": "Defender 실시간 감시를 끄거나 예외 경로를 추가합니다.",
"mitre": "T1562.001",
"mitreName": "Disable or Modify Tools",
"tactic": "Defense Evasion",
"severity": "Critical",
"pattern": "Set-MpPreference|Add-MpPreference|DisableRealtimeMonitoring|ExclusionPath",
"examples": [
"Add-MpPreference -ExclusionPath C:\\x"
],
"counterExamples": [
"Get-MpComputerStatus"
]
},
{
"id": "CLR",
"category": "방어 회피",
"name": "실행 흔적·로그 삭제",
"description": "명령 기록이나 이벤트 로그를 지워 포렌식 분석을 방해합니다.",
"mitre": "T1070.003",
"mitreName": "Clear Command History",
"tactic": "Defense Evasion",
"severity": "High",
"pattern": "Clear-History|ConsoleHost_history|wevtutil\\s+cl|Clear-EventLog",
"examples": [
"Clear-History",
"wevtutil cl Application"
],
"counterExamples": [
"Get-History"
]
},
{
"id": "MAS",
"category": "방어 회피",
"name": "정상 프로그램 이름으로 위장",
"description": "시스템 프로세스/정상 앱 이름(SystemSettingsBroker, svchost, MicrosoftEdge, Office 등)으로 악성 파일을 위장합니다.",
"mitre": "T1036.005",
"mitreName": "Match Legitimate Name or Location",
"tactic": "Defense Evasion",
"severity": "High",
"pattern": "(?<!\\\\(?:System32|SysWOW64|Windows))\\\\(svchost|SystemSettingsBroker|csrss|lsass|winlogon|RuntimeBroker|dllhost|taskhostw|conhost|smss|spoolsv)\\.exe|AppData\\\\[^'\"\\r\\n]*\\\\Microsoft\\\\MicrosoftEdge|\\\\OFFICE20\\d\\d\\b",
"examples": [
"$env:APPDATA\\Microsoft\\MicrosoftEdge\\SystemSettingsBroker.exe",
"C:\\Users\\Public\\svchost.exe",
"$env:TEMP\\OFFICE2019\\a.exe"
],
"counterExamples": [
"C:\\Windows\\System32\\svchost.exe",
"notepad.exe"
]
},
{
"id": "B64",
"category": "난독화 해제",
"name": "Base64 디코딩",
"description": "Base64 로 숨겨둔 데이터를 복원합니다.",
"mitre": "T1140",
"mitreName": "Deobfuscate/Decode Files or Information",
"tactic": "Defense Evasion",
"severity": "Medium",
"pattern": "FromBase64String|-EncodedCommand",
"examples": [
"[Convert]::FromBase64String($s)"
],
"counterExamples": [
"[Convert]::ToBase64String($b)"
]
},
{
"id": "XOR",
"category": "난독화 해제",
"name": "XOR/산술 연산 기반 복호화",
"description": "바이트 단위 XOR 또는 시프트 연산으로 페이로드를 복호화합니다.",
"mitre": "T1140",
"mitreName": "Deobfuscate/Decode Files or Information",
"tactic": "Defense Evasion",
"severity": "Medium",
"pattern": "-bxor|\\[char\\]\\s*\\(\\s*\\(\\s*\\$\\w+\\[\\$\\w+\\]\\s*[-+]",
"examples": [
"$o += [char]($b[$i] -bxor $k)",
"[char](($d[$i] - $n + 256) % 256)"
],
"counterExamples": [
"$a -band 1"
]
},
{
"id": "CMP",
"category": "난독화 해제",
"name": "압축 해제로 페이로드 복원",
"description": "Deflate/GZip 으로 압축된 페이로드를 메모리에서 해제합니다.",
"mitre": "T1140",
"mitreName": "Deobfuscate/Decode Files or Information",
"tactic": "Defense Evasion",
"severity": "Medium",
"pattern": "DeflateStream|GZipStream|IO\\.Compression",
"examples": [
"New-Object IO.Compression.DeflateStream($ms, 0)",
"New-Object System.IO.Compression.GZipStream($s, 0)"
],
"counterExamples": [
"Compress-Archive a b.zip"
]
},
{
"id": "REF",
"category": "방어 회피",
"name": "메모리 내 .NET 어셈블리 로드 (파일리스)",
"description": "디스크에 파일을 남기지 않고 .NET 어셈블리를 메모리에서 직접 로드·실행합니다.",
"mitre": "T1620",
"mitreName": "Reflective Code Loading",
"tactic": "Defense Evasion",
"severity": "Critical",
"pattern": "Reflection\\.Assembly\\]::Load|AppDomain\\]::CurrentDomain\\.Load|\\[System\\.Reflection\\.Assembly\\]::Load",
"examples": [
"[System.Reflection.Assembly]::Load($bytes)",
"[AppDomain]::CurrentDomain.Load($b)"
],
"counterExamples": [
"Add-Type -AssemblyName System.Windows.Forms"
]
},
{
"id": "ADT",
"category": "실행",
"name": "Add-Type 으로 Win32 API 호출",
"description": "C# 코드를 컴파일해 Win32 API 를 직접 호출합니다.",
"mitre": "T1106",
"mitreName": "Native API",
"tactic": "Execution",
"severity": "High",
"pattern": "Add-Type[\\s\\S]{0,400}DllImport|DllImport",
"examples": [
"[DllImport(\"user32.dll\")]"
],
"counterExamples": [
"Add-Type -AssemblyName PresentationFramework"
]
},
{
"id": "INJ",
"category": "방어 회피",
"name": "프로세스 인젝션 / 쉘코드 실행",
"description": "메모리 할당 후 쉘코드를 쓰고 스레드를 생성해 실행합니다.",
"mitre": "T1055",
"mitreName": "Process Injection",
"tactic": "Defense Evasion",
"severity": "Critical",
"pattern": "VirtualAlloc|VirtualProtect|CreateThread|WriteProcessMemory|CreateRemoteThread|NtCreateThreadEx|QueueUserAPC",
"examples": [
"QueueUserAPC"
],
"counterExamples": [
"Get-Process | Select-Object Threads"
]
},
{
"id": "VMD",
"category": "방어 회피",
"name": "가상머신/샌드박스 탐지",
"description": "QEMU·VirtualBox 드라이버나 샌드박스 고유 경로를 확인하여 분석 환경이면 종료합니다.",
"mitre": "T1497.001",
"mitreName": "System Checks",
"tactic": "Defense Evasion",
"severity": "High",
"pattern": "qemu|vbox|virtualbox|vmware|vmtools|sandbox|Hybrid Analysis|ANY\\.RUN|C:\\\\Payload|viasres\\.sys|wireshark|procmon|Win32_SystemDriver",
"examples": [
"Win32_SystemDriver",
"Test-Path 'C:\\Payload'",
"-like '*vbox*'"
],
"counterExamples": [
"Get-Date"
]
},
{
"id": "SLP",
"category": "방어 회피",
"name": "실행 지연",
"description": "일정 시간 대기하여 자동 분석(샌드박스)의 관찰 시간을 회피합니다.",
"mitre": "T1497.003",
"mitreName": "Time Based Evasion",
"tactic": "Defense Evasion",
"severity": "Low",
"pattern": "Start-Sleep|(?<![\\w-])sleep\\s+\\d+",
"examples": [
"Start-Sleep -Seconds 30",
";Sleep 6;"
],
"counterExamples": [
"$sleepTime = 5"
]
},
{
"id": "ENV",
"category": "난독화",
"name": "환경 변수에 분할 저장된 페이로드",
"description": "페이로드를 여러 환경 변수에 나눠 저장한 뒤 조합합니다. 스크립트 파일만으로는 내용을 복원할 수 없습니다.",
"mitre": "T1027",
"mitreName": "Obfuscated Files or Information",
"tactic": "Defense Evasion",
"severity": "High",
"pattern": "\\$env:\\w+\\s*\\+\\s*\\$env:\\w+\\s*\\+\\s*\\$env:",
"examples": [
"$b=$env:P1+$env:P2+$env:P3"
],
"counterExamples": [
"$p = $env:TEMP + '\\a'"
]
},
{
"id": "MTX",
"category": "실행",
"name": "중복 실행 방지 (락 파일/뮤텍스)",
"description": "잠금 파일이나 뮤텍스로 하나의 인스턴스만 실행되도록 합니다.",
"mitre": "T1480",
"mitreName": "Execution Guardrails",
"tactic": "Defense Evasion",
"severity": "Low",
"pattern": "\\.lock\\b|Threading\\.Mutex|'None'\\s*\\)",
"examples": [
"[IO.File]::Open($lk,'OpenOrCreate','ReadWrite','None')",
"New-Object Threading.Mutex($false,'Global\\x')",
"$lk = \"$d\\boot.lock\""
],
"counterExamples": [
"[IO.File]::Open($p,'Open','Read','Read')"
]
},
{
"id": "UAC",
"category": "권한 상승",
"name": "UAC 우회",
"description": "fodhelper/ms-settings 등 자동 상승 프로그램을 악용해 관리자 권한을 얻습니다.",
"mitre": "T1548.002",
"mitreName": "Bypass User Account Control",
"tactic": "Privilege Escalation",
"severity": "Critical",
"pattern": "fodhelper|ms-settings\\\\shell|eventvwr\\.exe|sdclt\\.exe|ComputerDefaults",
"examples": [
"HKCU:\\Software\\Classes\\ms-settings\\shell"
],
"counterExamples": [
"Start-Process notepad.exe"
]
},
{
"id": "NET",
"category": "시스템 변경",
"name": "네트워크 설정 초기화",
"description": "IP 해제/갱신, Winsock·IP 스택을 초기화합니다. 프록시/보안 설정 우회 또는 분석 방해 목적일 수 있습니다.",
"mitre": "T1562",
"mitreName": "Impair Defenses",
"tactic": "Defense Evasion",
"severity": "Medium",
"pattern": "ipconfig\\s+/(release|renew)|netsh\\s+(winsock|int\\s+ip)\\s+reset",
"examples": [
"ipconfig /release",
"netsh winsock reset"
],
"counterExamples": [
"ipconfig /all"
]
},
{
"id": "GPU",
"category": "정보 수집",
"name": "GPU 정보 수집",
"description": "그래픽카드 정보를 조회합니다. 채굴 악성코드가 사양 확인·작업자 이름 생성에 사용합니다.",
"mitre": "T1082",
"mitreName": "System Information Discovery",
"tactic": "Discovery",
"severity": "Medium",
"pattern": "Win32_VideoController",
"examples": [
"Get-CimInstance Win32_VideoController"
],
"counterExamples": [
"Get-CimInstance Win32_Processor"
]
},
{
"id": "SYS",
"category": "정보 수집",
"name": "시스템 정보 수집",
"description": "OS·컴퓨터·사용자 정보를 수집합니다.",
"mitre": "T1082",
"mitreName": "System Information Discovery",
"tactic": "Discovery",
"severity": "Low",
"pattern": "Win32_OperatingSystem|Win32_ComputerSystem|\\bsysteminfo\\b|Get-ComputerInfo|\\$env:COMPUTERNAME|\\$env:USERNAME|\\bwhoami\\b",
"examples": [
"Get-CimInstance Win32_OperatingSystem",
"whoami /all",
"$env:COMPUTERNAME"
],
"counterExamples": [
"Get-Date"
]
},
{
"id": "PRC",
"category": "정보 수집",
"name": "프로세스 목록 조회",
"description": "실행 중인 프로세스를 확인합니다 (중복 실행·분석 도구 확인).",
"mitre": "T1057",
"mitreName": "Process Discovery",
"tactic": "Discovery",
"severity": "Low",
"pattern": "Get-Process|\\btasklist\\b",
"examples": [
"Get-Process | ? Name -eq x",
"tasklist /v"
],
"counterExamples": [
"Start-Process a.exe"
]
},
{
"id": "AVD",
"category": "정보 수집",
"name": "백신 제품 탐지",
"description": "설치된 보안 제품을 조회합니다.",
"mitre": "T1518.001",
"mitreName": "Security Software Discovery",
"tactic": "Discovery",
"severity": "Medium",
"pattern": "AntiVirusProduct|SecurityCenter2",
"examples": [
"root/SecurityCenter2 -ClassName AntiVirusProduct"
],
"counterExamples": [
"Get-MpComputerStatus"
]
},
{
"id": "MIN",
"category": "영향",
"name": "암호화폐 채굴 (Cryptojacking)",
"description": "피해 PC의 CPU/GPU 자원으로 암호화폐를 채굴합니다.",
"mitre": "T1496",
"mitreName": "Resource Hijacking",
"tactic": "Impact",
"severity": "Critical",
"pattern": "stratum\\+(tcp|ssl|tls)|xmrig|kryptex|nicehash|monero|--donate-level|cryptonight|--gpu-fan|minexmr|2miners|f2pool|nanopool|ethermine|hashvault",
"examples": [
"stratum+tcp://pool.x:3333",
"--url stratum+ssl://prl.kryptex.network:8048"
],
"counterExamples": [
"Write-Host 'stratum of rock'"
]
},
{
"id": "RAN",
"category": "영향",
"name": "백업 삭제 / 파일 암호화 (랜섬웨어 징후)",
"description": "섀도 복사본·백업을 삭제하거나 파일을 암호화합니다.",
"mitre": "T1490",
"mitreName": "Inhibit System Recovery",
"tactic": "Impact",
"severity": "Critical",
"pattern": "vssadmin[^\\r\\n]*delete|wbadmin[^\\r\\n]*delete|bcdedit[^\\r\\n]*recoveryenabled|shadowcopy[^\\r\\n]*delete",
"examples": [
"wbadmin delete catalog"
],
"counterExamples": [
"vssadmin list shadows"
]
},
{
"id": "CRD",
"category": "자격 증명",
"name": "자격 증명·브라우저 정보 탈취",
"description": "브라우저 저장 비밀번호/쿠키, 지갑 파일, LSASS 등을 노립니다.",
"mitre": "T1555",
"mitreName": "Credentials from Password Stores",
"tactic": "Credential Access",
"severity": "Critical",
"pattern": "mimikatz|sekurlsa|lsass|\\\\Login Data|\\\\Cookies|wallet\\.dat|Local State|User Data\\\\Default",
"examples": [
"wallet.dat"
],
"counterExamples": [
"Get-Credential"
]
},
{
"id": "KEY",
"category": "수집",
"name": "키로깅",
"description": "키 입력을 가로챕니다.",
"mitre": "T1056.001",
"mitreName": "Keylogging",
"tactic": "Collection",
"severity": "Critical",
"pattern": "GetAsyncKeyState|SetWindowsHookEx|GetKeyState",
"examples": [
"GetKeyState"
],
"counterExamples": [
"Read-Host 'key'"
]
},
{
"id": "SCR",
"category": "수집",
"name": "화면 캡처",
"description": "화면을 캡처합니다.",
"mitre": "T1113",
"mitreName": "Screen Capture",
"tactic": "Collection",