|
| 1 | +# These rules are converted from RegRipper |
| 2 | +Preamble: |
| 3 | + - | |
| 4 | + LET GetProviderDllForGUID(GUID) = GetValue( |
| 5 | + OSPath="HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\CLSID\\" + GUID + "\\InProcServer32\\@") |
| 6 | +
|
| 7 | + - | |
| 8 | + LET _CharToString(X) = SELECT |
| 9 | + format(format="%c", args=_value) AS C FROM foreach(row=X) |
| 10 | + - LET CharsToString(X) = join(array=_CharToString(X=X).C) |
| 11 | + |
| 12 | +Rules: |
| 13 | +- Description: Parse AmCache InventoryApplicationFile |
| 14 | + Author: M. Cohen & H. Carvey |
| 15 | + Reference: https://github.com/keydet89/RegRipper4.0/blob/main/plugins/amcache.pl |
| 16 | + Category: ASEP |
| 17 | + Root: Amcache |
| 18 | + Glob: Root\\InventoryApplication*\\* |
| 19 | + Filter: x=>true |
| 20 | + Details: | |
| 21 | + x=>FetchKeyValuesWithRegex(OSPath=OSPath, Regex='.') |
| 22 | +
|
| 23 | +- Description: Parse AmCache DriverBinary |
| 24 | + Author: M. Cohen & H. Carvey |
| 25 | + Reference: https://github.com/keydet89/RegRipper4.0/blob/main/plugins/amcache.pl |
| 26 | + Category: ASEP |
| 27 | + Root: Amcache |
| 28 | + Glob: Root\\InventoryDriverBinary\\* |
| 29 | + Filter: x=>IsDir |
| 30 | + Details: | |
| 31 | + x=>FetchKeyValuesWithRegex(OSPath=OSPath, Regex='.') + dict(Driver=OSPath.Basename) |
| 32 | +
|
| 33 | +- Description: Parse AmCache InventoryApplicationShortcut |
| 34 | + Author: M. Cohen & H. Carvey |
| 35 | + Reference: https://github.com/keydet89/RegRipper4.0/blob/main/plugins/amcache.pl |
| 36 | + Category: ASEP |
| 37 | + Root: Amcache |
| 38 | + Glob: Root\\InventoryApplicationShortcut\\* |
| 39 | + Filter: x=>true |
| 40 | + Details: | |
| 41 | + x=>FetchKeyValuesWithRegex(OSPath=OSPath, Regex='.') |
| 42 | +
|
| 43 | +- Description: Active Setup Installed Components |
| 44 | + Category: ASEP |
| 45 | + Root: HKEY_LOCAL_MACHINE\Software |
| 46 | + Glob: Microsoft\Active Setup\Installed Components\* |
| 47 | + Filter: x=>true |
| 48 | + Details: | |
| 49 | + x=>FetchKeyValuesWithRegex(OSPath=OSPath, Regex='.') |
| 50 | +
|
| 51 | +- Description: Active Setup Installed Components |
| 52 | + Category: ASEP |
| 53 | + Root: HKEY_LOCAL_MACHINE\Software |
| 54 | + Glob: Wow6432Node\Microsoft\Active Setup\Installed Components\* |
| 55 | + Filter: x=>true |
| 56 | + Details: | |
| 57 | + x=>FetchKeyValuesWithRegex(OSPath=OSPath, Regex='.') |
| 58 | +
|
| 59 | +- Description: AMSI Providers |
| 60 | + Comment: | |
| 61 | + The AMSI provider for Windows Defender seems to have been |
| 62 | + removed/could not be found. |
| 63 | +
|
| 64 | + Analysis Tip: AMSI providers can be used for persistence. |
| 65 | +
|
| 66 | + The FeatureBit check determines if Authenicode signing is enabled or not. |
| 67 | + 0x01 - signing check is disabled; this is the default behavior (applies if value not found) |
| 68 | + 0x02 - signing check is enabled |
| 69 | + Reference: | |
| 70 | + https://pentestlab.blog/2021/05/17/persistence-amsi/ |
| 71 | +
|
| 72 | + Author: M. Cohen & H. Carvey |
| 73 | + Category: System Info |
| 74 | + Root: HKEY_LOCAL_MACHINE/SOFTWARE |
| 75 | + Filter: x=>true |
| 76 | + Glob: 'Microsoft\AMSI\Providers\*' |
| 77 | + Details: | |
| 78 | + x=>dict( |
| 79 | + FeatureBits=GetValue(OSPath=OSPath + "FeatureBits"), |
| 80 | + ProviderDll=GetProviderDllForGUID(GUID=OSPath.Basename)) |
| 81 | +
|
| 82 | +- Description: Adobe app cRecentFiles values |
| 83 | + Category: Third Party Applications |
| 84 | + Root: HKEY_USERS |
| 85 | + Glob: /*/Software/Adobe/*/*/AVGeneral/cRecent{Files,Folders}/* |
| 86 | + Filter: x=>true |
| 87 | + Details: | |
| 88 | + x=>FetchKeyValuesWithRegex(OSPath=OSPath, Regex='.') + |
| 89 | + dict(Version=OSPath[-4], Software=OSPath[-5], |
| 90 | + sDI=CharsToString(X=GetValue(OSPath=OSPath + "sDI")), |
| 91 | + sDate=CharsToString(X=GetValue(OSPath=OSPath + "sDate"))) |
| 92 | +
|
| 93 | +- Description: Check for Windows 11 requirement bypass values |
| 94 | + Author: M. Cohen & H. Carvey |
| 95 | + Category: System Info |
| 96 | + Comment: | |
| 97 | + Analysis Tip: The "AllowUpgradesWithUnsupportedTPMOrCPU" value set |
| 98 | + to 1 is a hack to allow Windows 11 updates to be installed on |
| 99 | + systems that did not meet the TPM or CPU checks. This could be |
| 100 | + interpreted as an attempt at defense evasion, by upgrading the |
| 101 | + system image to provide additional capabilities, such as Windows |
| 102 | + Subsystem for Android. |
| 103 | +
|
| 104 | + Reference: https://support.microsoft.com/en-us/windows/ways-to-install-windows-11-e0edbbfb-cfc5-4011-868b-2ce77ac7c70e |
| 105 | + Root: HKEY_LOCAL_MACHINE/System |
| 106 | + Glob: Setup\{MoSetup,LabConfig}\{AllowUpgradesWithUnsupportedTPMOrCPU,BypassRAMCheck,BypassTPMCheck,BypassSecureBootCheck} |
| 107 | + |
| 108 | +- Description: Gets user's AMSIEnable value |
| 109 | + Author: M. Cohen & H. Carvey |
| 110 | + Category: System Info |
| 111 | + Root: HKEY_USERS |
| 112 | + Glob: "*/Software/Microsoft/Windows Script/Settings/AmsiEnable" |
| 113 | + Comment: | |
| 114 | + Analysis Tip: If the AmsiEnable value is 0, AMSI is disabled. |
| 115 | +
|
| 116 | +- Description: Gets contents of user's ApplicationAssociationToasts key |
| 117 | + Author: M. Cohen & H. Carvey |
| 118 | + Category: System Info |
| 119 | + Root: HKEY_USERS |
| 120 | + Glob: /*/Software\\Microsoft\\Windows\\CurrentVersion\\ApplicationAssociationToasts |
| 121 | + Filter: x=>true |
| 122 | + Details: | |
| 123 | + x=>FetchKeyValuesWithRegex(OSPath=OSPath, Regex='.') |
0 commit comments