Skip to content

Commit

Permalink
[FEATURE] Apply the same exclusion rules (and/or with Stats) on custo…
Browse files Browse the repository at this point in the history
…m patterns as on the hardcoded ones
  • Loading branch information
hasherezade committed Feb 15, 2024
1 parent 9664a78 commit 76ff351
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions scanners/workingset_scanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,6 @@ bool pesieve::WorkingSetScanner::checkAreaContent(IN MemPageData& memPage, OUT W
}
my_report->has_shellcode = code;

if (custom_matched_count && this->args.pattern_file.length) {
my_report->has_patterns = true;
my_report->status = SCAN_SUSPICIOUS;
}
if ( (this->args.obfuscated != OBFUSC_NONE && obfuscated) || ((this->args.shellcode != SHELLC_NONE) && code) ){
my_report->status = SCAN_SUSPICIOUS;
}
Expand Down
2 changes: 1 addition & 1 deletion scanners/workingset_scanner.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ namespace pesieve {
bool is_listed_module;
bool has_pe;
bool has_shellcode;
bool has_patterns;

util::ByteBuffer data_cache;
std::vector<sig_finder::Match> custom_matched;
size_t all_matched_count;
Expand Down

0 comments on commit 76ff351

Please sign in to comment.