Skip to content

Commit 5f5dc7d

Browse files
Improve Hexalock detection slightly (#347)
* Improve Hexalock detection via checking different known sections for mfint.dll * Add sabre's suggestion Improve code with sabre's code suggestion Co-authored-by: Matt Nadareski <[email protected]> * Add extra check for instances in UPX executables. * Add newlines between if blocks. --------- Co-authored-by: Matt Nadareski <[email protected]>
1 parent d505707 commit 5f5dc7d

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

BinaryObjectScanner/Protection/HexalockAutoLock.cs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,25 @@ public class HexalockAutoLock : IExecutableCheck<PortableExecutable>, IPathCheck
5757
if (strs.Exists(s => s.Contains("mfint.dll")))
5858
return "Hexalock Autolock";
5959
}
60-
60+
61+
// Get the code/CODE section strings, if they exist
62+
strs = pex.GetFirstSectionStrings("code") ?? pex.GetFirstSectionStrings("CODE");
63+
if (strs != null)
64+
{
65+
// Found in "launcher.exe" in "Sea Adventure / Adventure de la Mer" by Compedia.
66+
if (strs.Exists(s => s.Contains("mfint.dll")))
67+
return "Hexalock Autolock";
68+
}
69+
70+
// Get the UPX1 section strings, if they exist
71+
strs = pex.GetFirstSectionStrings("UPX1");
72+
if (strs != null)
73+
{
74+
// Found in "postmanpat.exe" in "Postman Pat" by Compedia.
75+
if (strs.Exists(s => s.Contains("mfint.dll")))
76+
return "Hexalock Autolock";
77+
}
78+
6179
return null;
6280
}
6381

0 commit comments

Comments
 (0)