Title :
A new string distance for computing binary code similarities
Author :
Oprisa, Ciprian ; Cabau, George ; Pal, Gheorghe Sebestyen
Author_Institution :
Bitdefender, Romania
Abstract :
A binary program can be represented as a string of operation codes by disassembling it and removing the instruction operands. Using this representation, the problem of detecting if two programs are similar can be reduced to computing the distance between two strings. The most common types of edit distance are fit for this task but unfortunately their running time is quadratic. A new type of edit distance called deq distance is proposed and it can be computed in linear time. This distance also measures the number of operations required to transform a string into another but only allows the operations that can be performed on a double ended queue. The new distance has been tested in clustering algorithms and produced quality clusters, very similar to the ones produced by a regular edit distance. The performance evaluation also showed that the new distance can be computed faster for strings longer than 300 characters, making it appropriate for finding similarities between malware samples.
Keywords :
invasive software; program diagnostics; queueing theory; binary code similarities computation; binary program; deq distance; double ended queue; edit distance; linear time; malware samples; operation codes; quality clusters; string distance; Benchmark testing; Binary codes; Clustering algorithms; Equations; Malware; Measurement; Transforms;
Conference_Titel :
Intelligent Computer Communication and Processing (ICCP), 2014 IEEE International Conference on
Conference_Location :
Cluj Napoca
Print_ISBN :
978-1-4799-6568-7
DOI :
10.1109/ICCP.2014.6936986