mirror of
https://github.com/horsicq/Detect-It-Easy.git
synced 2026-06-24 01:54:08 +00:00
Optimize signature pattern checks
Adjust signature pattern handling in scanForMaliciousCode_NET_and_Native. - Remove the added "??" prefix when building njRatDataSeparatorPattern so the pattern uses the substring directly. - Remove the trailing " **" wildcard from the Unicode " RAT" signature passed to PE.isSignatureInSectionPresent to narrow matching.
This commit is contained in:
parent
6774f5bfb8
commit
61509245aa
1 changed files with 2 additions and 2 deletions
|
|
@ -6150,7 +6150,7 @@ function scanForMaliciousCode_NET_and_Native() {
|
|||
var njRatDataSeparator = "|'|'|",
|
||||
njRatDataSeparatorPattern = generateUnicodeSignatureMask(njRatDataSeparator) + "00";
|
||||
|
||||
njRatDataSeparatorPattern = "??" + njRatDataSeparatorPattern.substring(2);
|
||||
njRatDataSeparatorPattern = njRatDataSeparatorPattern.substring(2);
|
||||
|
||||
// NjRAT Generic: Detect NjRAT via requests-separator or assembly name
|
||||
if (verdicts.length === 0) {
|
||||
|
|
@ -6556,7 +6556,7 @@ function scanForMaliciousCode_NET_and_Native() {
|
|||
}
|
||||
|
||||
|
||||
if (PE.isSignatureInSectionPresent(0, "00" + generateUnicodeSignatureMask(" RAT") + "00 **") && (
|
||||
if (PE.isSignatureInSectionPresent(0, "00" + generateUnicodeSignatureMask(" RAT") + "00") && (
|
||||
PE.isNetObjectPresent("System.Net.Sockets") ||
|
||||
PE.isNetObjectPresent("GetWindowText") ||
|
||||
PE.isNetObjectPresent("avicap32.dll")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue