Skip to content

Commit

Permalink
[FEATURE] Filter out cache from obfuscated regions detection
Browse files Browse the repository at this point in the history
  • Loading branch information
hasherezade committed Jul 16, 2023
1 parent b2aa69e commit 8d27203
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scanners/workingset_scanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@ bool pesieve::WorkingSetScanner::checkAreaContent(IN MemPageData& memPage, OUT W
pesieve::RuleMatchersSet obfMatcher(rules);
if (obfMatcher.findMatches(my_report->stats, my_report->area_info)) {
obfuscated = true;
// filter out cache:
if (memPage.mapping_type == MEM_MAPPED // mapped memory
&& !util::is_executable(memPage.mapping_type, memPage.protection) // non executable page
&& memPage.loadMappedName()) //named
{
obfuscated = false;
}
}
}
}
Expand Down

0 comments on commit 8d27203

Please sign in to comment.