Research Article

PICAndro: Packet InspeCtion-Based Android Malware Detection

Algorithm 1

Image Generation.
Input: RawTraffic.pcap
Output: Gray-ccale images
Extract NInt from RawTraffic.pcap
foreach NInt do
if NInt is empty then
  continue
end
if NInt already exists then
  continue
end
if NInt sizebytes then
  consider first bytes
end
if NInt sizebytes then
  pad 0 x 00’s till size bytes
end
 Generate N × N size gray-scale image
end