Add RS5 mitigation policies
@@ -216,6 +216,30 @@ INT_PTR CALLBACK PhpProcessMitigationPolicyDlgProc(
PhAddListViewItem(lvHandle, MAXINT, entry->ShortDescription->Buffer, entry);
}
+
+ if (context->SystemDllInitBlock->MitigationOptionsMap.Map[0] & PROCESS_CREATION_MITIGATION_POLICY2_ALLOW_DOWNGRADE_DYNAMIC_CODE_POLICY_ALWAYS_ON)
+ {
+ PMITIGATION_POLICY_ENTRY entry;
+
+ entry = PhAllocate(sizeof(MITIGATION_POLICY_ENTRY));
+ entry->NonStandard = TRUE;
+ entry->ShortDescription = PhCreateString(L"Dynamic code (downgrade)");
+ entry->LongDescription = PhCreateString(L"Allows a broker to downgrade the dynamic code policy for a process.");
+
+ PhAddListViewItem(lvHandle, MAXINT, entry->ShortDescription->Buffer, entry);
+ }
+
+ if (context->SystemDllInitBlock->MitigationOptionsMap.Map[0] & PROCESS_CREATION_MITIGATION_POLICY2_SPECULATIVE_STORE_BYPASS_DISABLE_ALWAYS_ON)
+ {
+ PMITIGATION_POLICY_ENTRY entry;
+
+ entry = PhAllocate(sizeof(MITIGATION_POLICY_ENTRY));
+ entry->NonStandard = TRUE;
+ entry->ShortDescription = PhCreateString(L"Speculative store bypass");
+ entry->LongDescription = PhCreateString(L"Disables spectre mitigations for the process.");
+
+ PhAddListViewItem(lvHandle, MAXINT, entry->ShortDescription->Buffer, entry);
+ }
}
ExtendedListView_SortItems(lvHandle);
