Research Article

CFSBFDroid: Android Malware Detection Using CFS + Best First Search-Based Feature Selection

Algorithm 6

Creating Feature Set (Dataset).
Input Download Benign Ware and Malware’s APK from CICAndMal 2017
Output Two dimensional Dataset (Row represent the Apps and columns denotes the features)
(1)Decompile all the APK and get Androidmanifest.XML
(2)Function Create_Feature_Dataset[apps[], Permission_Intents[]]
(3)Feature_Dataset[[],[]] ¢ for empty dataset
(4)N=Count(Applications)
(5)For i = 1 to N do
(6) Call AAPT2
(7) Extract permissions and Intents from each Aandriodmanifest.XML file
(8)K= Count(Permission_Intents)
(9) For j = 1 to K do
(10) If Permission_Intents[j] is a member of Aandriodmanifest.XML[j]
(11) Then
(12)  Feature_Dataset[i][j] = 1
(13) Else
(14)  Feature_Dataset[i][j] = 0
(15) end if
(16) end for
(17)end for
(18)return Feature_Dataset
(19)End function