Skip to content

Commit 1e5c1b0

Browse files
committed
Fix Regex Problem
Fix MFT Rules to Forward Slash
1 parent 2714c15 commit 1e5c1b0

17 files changed

+59
-59
lines changed

rules/mft/adamntds_dit_mft.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ filter:
4949

5050
adamntds_2:
5151
FullPath:
52-
- 'iProgram Files\Microsoft ADAM\*'
53-
- 'iWindows\WinSxS*'
54-
- 'iWindows\servicing\LCU\*'
52+
- 'iProgram Files/Microsoft ADAM/*'
53+
- 'iWindows/WinSxS*'
54+
- 'iWindows/servicing/LCU/*'
5555

5656
adamntds_3:
5757
FileSize:

rules/mft/ntds_dit_mft.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ filter:
4949

5050
ntds_2:
5151
FullPath:
52-
- 'iWindows\NTDS\NTDS.dit'
53-
- 'iWindows\WinSxS*'
54-
- 'iWindows\servicing\LCU\*'
52+
- 'iWindows/NTDS/NTDS.dit'
53+
- 'iWindows/WinSxS*'
54+
- 'iWindows/servicing/LCU/*'
5555
- 'i*adamntds.dit*'
5656

5757
ntds_3:

rules/mft/sup_script_exec_intel_mft.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,4 @@ filter:
115115

116116
directory:
117117
FullPath:
118-
- 'iIntel\*'
118+
- 'iIntel/*'

rules/mft/sup_script_exec_perflogs_mft.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ authors:
77

88

99
kind: mft
10-
level: high
10+
level: medium
1111
status: stable
1212
timestamp: StandardInfoCreated
1313

@@ -115,4 +115,4 @@ filter:
115115

116116
directory:
117117
FullPath:
118-
- 'iPerfLogs\*'
118+
- 'iPerfLogs/*'

rules/mft/sup_script_exec_program_files_root_mft.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ filter:
115115

116116
directory:
117117
FullPath:
118-
- 'iProgram Files\*'
119-
- 'iProgram Files (x86)\*'
118+
- 'iProgram Files/*'
119+
- 'iProgram Files (x86)/*'
120120

121121
regex:
122122
FullPath:
123-
- 'i?^[^\\]+\\[^\\]+\.[^\\]+$'
123+
- 'i?^[^\x00/?%*:|"<>\.]+/[^\x00/?%*:|"<>\.]+(?:\.[^\x00/?%*:|"<>\.]+)?$'

rules/mft/sup_script_exec_programdata_mft.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ filter:
114114

115115
directory:
116116
FullPath:
117-
- 'iProgramData\*'
117+
- 'iProgramData/*'
118118

119119
directoryexc:
120120
FullPath:
121-
- 'iProgramData\Microsoft\Windows Defender\*'
121+
- 'iProgramData/Microsoft/Windows Defender/*'

rules/mft/sup_script_exec_public_mft.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,4 @@ filter:
114114

115115
directory:
116116
FullPath:
117-
- 'iUsers\Public\*'
117+
- 'iUsers/Public/*'

rules/mft/sup_script_exec_recyclebin_mft.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ filter:
115115

116116
directory:
117117
FullPath:
118-
- 'i$Recycle.Bin\*'
118+
- 'i$Recycle.Bin/*'
119119

120120
name:
121121
FullPath:
122-
- 'i*\$I*'
123-
- 'i*\$R*'
122+
- 'i*/$I*'
123+
- 'i*/$R*'

rules/mft/sup_script_exec_recyclebin_nonstand_mft.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ filter:
115115

116116
directory:
117117
FullPath:
118-
- 'i$Recycle.Bin\*'
118+
- 'i$Recycle.Bin/*'
119119

120120
name:
121121
FullPath:
122-
- 'i*\$I*'
123-
- 'i*\$R*'
122+
- 'i*/$I*'
123+
- 'i*/$R*'

rules/mft/sup_script_exec_root_mft.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ filter:
115115

116116
directory:
117117
FullPath:
118-
- 'i*\*'
118+
- 'i*/*'
119119
- 'i$Recycle.bin'
120120
- 'ipagefile.sys'
121121
- 'iswapfile.sys'

rules/mft/sup_script_exec_root_nonstand_fold_mft.yml

+15-15
Original file line numberDiff line numberDiff line change
@@ -115,21 +115,21 @@ filter:
115115

116116
directory:
117117
FullPath:
118-
- 'i*\*'
118+
- 'i*/*'
119119

120120
directoryexc:
121121
FullPath:
122-
- 'i$Recycle.Bin\*'
123-
- 'iDocuments and Settings\*'
124-
- 'iUsers\*'
125-
- 'iPerfLogs\*'
126-
- 'iProgram Files\*'
127-
- 'iProgram Files (x86)\*'
128-
- 'iProgramData\*'
129-
- 'iRecovery\*'
130-
- 'iSystem Volume Information\*'
131-
- 'iWindows\*'
132-
- 'i[Unknown]\*'
133-
- 'iIntel\*'
134-
- 'iTemp\*'
135-
- 'iWindows.old\*'
122+
- 'i$Recycle.Bin/*'
123+
- 'iDocuments and Settings/*'
124+
- 'iUsers/*'
125+
- 'iPerfLogs/*'
126+
- 'iProgram Files/*'
127+
- 'iProgram Files (x86)/*'
128+
- 'iProgramData/*'
129+
- 'iRecovery/*'
130+
- 'iSystem Volume Information/*'
131+
- 'iWindows/*'
132+
- 'i[Unknown]/*'
133+
- 'iIntel/*'
134+
- 'iTemp/*'
135+
- 'iWindows.old/*'

rules/mft/sup_script_exec_root_temp_mft.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,4 @@ filter:
115115

116116
directory:
117117
FullPath:
118-
- 'iTemp\*'
118+
- 'iTemp/*'

rules/mft/sup_script_exec_user_desktop_mft.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,15 @@ filter:
114114

115115
directory:
116116
FullPath:
117-
- 'iUsers\*'
117+
- 'iUsers/*'
118118

119119
desktop:
120120
FullPath:
121-
- 'i*\Desktop\*'
121+
- 'i*/Desktop/*'
122122

123123
directoryexc:
124124
FullPath:
125-
- 'iUsers\Public\*'
126-
- 'iUsers\All Users\*'
127-
- 'i*\AppData\*'
128-
- 'i*\Downloads\*'
125+
- 'iUsers/Public/*'
126+
- 'iUsers/All Users/*'
127+
- 'i*/AppData/*'
128+
- 'i*/Downloads/*'

rules/mft/sup_script_exec_user_downloads_mft.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,15 @@ filter:
115115

116116
directory:
117117
FullPath:
118-
- 'iUsers\*'
118+
- 'iUsers/*'
119119

120120
downloads:
121121
FullPath:
122-
- 'i*\Downloads\*'
122+
- 'i*/Downloads/*'
123123

124124
directoryexc:
125125
FullPath:
126-
- 'iUsers\Public\*'
127-
- 'iUsers\All Users\*'
128-
- 'i*\AppData\*'
129-
- 'i*\Desktop\*'
126+
- 'iUsers/Public/*'
127+
- 'iUsers/All Users/*'
128+
- 'i*/AppData/*'
129+
- 'i*/Desktop/*'

rules/mft/sup_script_exec_user_mft.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,12 @@ filter:
114114

115115
directory:
116116
FullPath:
117-
- 'iUsers\*'
117+
- 'iUsers/*'
118118

119119
directoryexc:
120120
FullPath:
121-
- 'iUsers\Public\*'
122-
- 'iUsers\All Users\*'
123-
- 'i*\AppData\*'
124-
- 'i*\Downloads\*'
125-
- 'i*\Desktop\*'
121+
- 'iUsers/Public/*'
122+
- 'iUsers/All Users/*'
123+
- 'i*/AppData/*'
124+
- 'i*/Downloads/*'
125+
- 'i*/Desktop/*'

rules/mft/sup_script_exec_windows_root_mft.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ filter:
115115

116116
directory:
117117
FullPath:
118-
- 'iWindows\*'
118+
- 'iWindows/*'
119119

120120
regex:
121121
FullPath:
122-
- 'i?^[^\\]+\\[^\\]+\.[^\\]+$'
122+
- 'i?^[^\x00/?%*:|"<>\.]+/[^\x00/?%*:|"<>\.]+(?:\.[^\x00/?%*:|"<>\.]+)?$'
123123

124124
filesexc:
125125
FullPath:

rules/mft/sup_script_exec_windows_temp_mft.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,4 @@ filter:
115115

116116
directory:
117117
FullPath:
118-
- 'iWindows\Temp\*'
118+
- 'iWindows/Temp/*'

0 commit comments

Comments
 (0)