Add check if obfuscation is enabled

This commit is contained in:
Ned Wright
2023-07-27 15:41:41 +00:00
parent 71d198f41a
commit abe275c828
4 changed files with 17 additions and 0 deletions

View File

@@ -25,6 +25,8 @@ RuleSelector::selectSignatures() const
{
vector<IPSSignatureSubTypes::SignatureAndAction> res;
if (!IPSHelper::hasDeobfuscation()) return res;
auto all_signatures = getResource<IPSSignaturesResource>("IPS", "protections");
if (!all_signatures.ok()) return res;
auto signatures_version = getResourceWithDefault<string>("", "IPS", "VersionId");