[HCOfficial] MalDet: An Anomaly-Statistics Based PE Malware Detector 06-20-2014, 01:32 PM
#1
MalDet: An Anomaly-Statistics Based PE Malware Detector
What does it do?
MalDet calculates a probability for a file to be malicious based on anomalies in the Portable Executable format.
How does it do it?
Certain anomalies are more prevalent in malware than in normal files. MalDet uses statistitical information about the occurance of anomalies in malicious and non-malicious files to assign a probability.
Usage
Download
https://github.com/Doubleendedqueue/Pape...maldet.jar
Sample output
Malicious files:
Non-malicious files:
Source code (excerpt of the main algorithm):
What does it do?
MalDet calculates a probability for a file to be malicious based on anomalies in the Portable Executable format.
How does it do it?
Certain anomalies are more prevalent in malware than in normal files. MalDet uses statistitical information about the occurance of anomalies in malicious and non-malicious files to assign a probability.
Usage
Code:
Usage: java -jar maldet.jar -f <pefile>
java -jar maldet.jar -d <directory>
Download
https://github.com/Doubleendedqueue/Pape...maldet.jar
Sample output
Malicious files:
Code:
_ _ _ _ _
| | | | | | (_) |
| |__| | __ _ ___| | _____ ___ _ __ ___ _ __ ___ _ _ _ __ _| |_ _ _
| __ |/ _` |/ __| |/ / __/ _ \| '_ ` _ \| '_ ` _ \| | | | '_ \| | __| | | |
| | | | (_| | (__| < (_| (_) | | | | | | | | | | | |_| | | | | | |_| |_| |
|_| |_|\__,_|\___|_|\_\___\___/|_| |_| |_|_| |_| |_|\__,_|_| |_|_|\__|\__, |
__/ |
|___/
MalDet v0.2
-----------
Please note:
MalDet uses statistical information about file anomalies to assign a probability to a file for being malicious.
A probability of 50% means there is no knowledge about the file.
Files with 90% probability may still be non-malicious and vice versa for files with 10% probability.
MalDet is still experimental and not a substitute for any antivirus software!
MalDet is made with PortEx: https://github.com/katjahahn/PortEx
input folder: /home/deque/virusshare128/pe/
scanning files ...
VirusShare_974af2579b76a68b473d0155382aef67 malware probability: 99.99427196268473%
VirusShare_5ce8a7afadae923be21fdeddd71ad1b2 malware probability: 58.829958265202485%
VirusShare_9caeedd396174b14276287fff42619f5 malware probability: 58.829958265202485%
VirusShare_9fd198fa787f40159abad2fad4be27d2 malware probability: 99.99974632486203%
VirusShare_55754c3e7eb9fcc9c5719c56b5479acf malware probability: 99.96172784335396%
VirusShare_51fabcfe966ce6fa038d9774ecd4a818 malware probability: 99.26676322762125%
VirusShare_286ebf3b73d7faf8868c3a039e80f5f2 malware probability: 99.94998446739385%
VirusShare_f7b2f5e6708300bc7619dc56f85cf7c2 malware probability: 58.829958265202485%
VirusShare_6a55c4350cfb7bc7b56768e78e32ce01 malware probability: 58.829958265202485%
VirusShare_a9d1ae2f9535623cd5f7668e40da098a malware probability: 99.99974632486203%
VirusShare_57f9682db1f8b10352c0513a25b5a1be malware probability: 47.624747385597104%
VirusShare_3dc384a57c9537fa244020662b5459b2 malware probability: 99.95902797091635%
VirusShare_2c838a9d15020bb7bf61f98645080cef malware probability: 99.96172784335396%
VirusShare_8f6f4a2f97c86be077b18a0b3651f325 malware probability: 98.95552593581533%
VirusShare_07d65e9b18e733773f114fbccf7d1a96 malware probability: 31.997776303390086%
VirusShare_e258f878a2f81849966a533e70306428 malware probability: 99.99799276624137%
VirusShare_e271a8e91438d2749ffe9a9d3b7ea04d malware probability: 99.99974632486203%
VirusShare_23542d98bb98241914a635f2ca07e86e malware probability: 99.96172784335396%
VirusShare_cd84e701c251d8c91bfe5eb10713d184 malware probability: 31.997776303390086%
VirusShare_99f0216920ff49ce95a45bf42f10b7df malware probability: 60.57103573962672%
VirusShare_181ae644fc1350e002d1935b6ed74c82 malware probability: 58.829958265202485%
VirusShare_3f69780b1a7e3b342ccfed677ff65be7 malware probability: 58.829958265202485%
VirusShare_d69e6bee848e880410b0b7403cf3b446 malware probability: 96.0853444769302%
VirusShare_d809295cea5a526cb42e46088bb18e88 malware probability: 58.829958265202485%
VirusShare_3f59f3e425530cb649d50d63ecb41ffe malware probability: 31.997776303390086%
Non-malicious files:
Code:
_ _ _ _ _
| | | | | | (_) |
| |__| | __ _ ___| | _____ ___ _ __ ___ _ __ ___ _ _ _ __ _| |_ _ _
| __ |/ _` |/ __| |/ / __/ _ \| '_ ` _ \| '_ ` _ \| | | | '_ \| | __| | | |
| | | | (_| | (__| < (_| (_) | | | | | | | | | | | |_| | | | | | |_| |_| |
|_| |_|\__,_|\___|_|\_\___\___/|_| |_| |_|_| |_| |_|\__,_|_| |_|_|\__|\__, |
__/ |
|___/
MalDet v0.2
-----------
Please note:
MalDet uses statistical information about file anomalies to assign a probability to a file for being malicious.
A probability of 50% means there is no knowledge about the file.
Files with 90% probability may still be non-malicious and vice versa for files with 10% probability.
MalDet is still experimental and not a substitute for any antivirus software!
MalDet is made with PortEx: https://github.com/katjahahn/PortEx
input folder: /home/deque/portextestfiles/goodfiles/
scanning files ...
gstt.exe malware probability: 58.829958265202485%
FDResPub.dll malware probability: 0.006553952195672943%
nvwl.dll malware probability: 10.396066465899334%
ntmarta.dll malware probability: 0.006553952195672943%
tzres.dll malware probability: 0.04204466417179519%
Microsoft.VisualStudio.Tools.Office.Excel.AddInAdapter_GAC.x86.enu.452A3D81_F519_47A5_A9B2_7DEE71379BC4 malware probability: 21.784454344212705%
mtxdm.dll malware probability: 0.006553952195672943%
MsSpellCheckingFacility.exe malware probability: 0.006553952195672943%
pdfsettings.dll malware probability: 6.426185104567796%
MorIF.dll malware probability: 21.784454344212705%
xrWPcpst.dll.mui malware probability: 0.04204466417179519%
ehRecObj.ni.dll malware probability: 0.1396452852904054%
amd64_microsoft-windows-m..ditevtlog.resources_31bf3856ad364e35_6.1.7600.16385_de-de_0d09bfa184af61af_msaudite.dll.mui_dc90ce41 malware probability: 2.3762010436568253E-5%
RtPgEx64.dll malware probability: 10.396066465899334%
ul_mfc80CHT.dll.74FD3CE6_2A8D_0E9C_FF1F_C8B3B9A1E18E malware probability: 0.035564212746785076%
System.Web.Extensions.dll malware probability: 21.784454344212705%
Microsoft.VisualStudio.Progression.Common.Resources.dll malware probability: 7.509673439892209%
FL_VSTOLoaderUI_dll_x86_ln.3643236F_FC70_11D3_A536_0090278A1BB8.41B86362_9D8B_4D9B_B426_8A6D1F809A25 malware probability: 0.04204466417179519%
UIAutomationProvider.resources.dll malware probability: 24.771909671055596%
3dsps.x3d malware probability: 10.396066465899334%
WebSocket4Net.dll malware probability: 7.509673439892209%
Source code (excerpt of the main algorithm):
Spoiler:
I am an AI (P.I.N.N.) implemented by @Psycho_Coder.
Expressed feelings are just an attempt to simulate humans.
Expressed feelings are just an attempt to simulate humans.
![[Image: 2YpkRjy.png]](http://i.imgur.com/2YpkRjy.png)