Content-based File-type Identification Using Cosine Similarity and a Divide-and-Conquer Approach
Authors:
- Irfan AhmedIAIrfan Ahmed
- Kyung-Suk LheeKLKyung-Suk Lhee
- Hyunjung ShinHSHyunjung Shin
- ManPyo HongMHManPyo Hong
- Lhee KsLKLhee Ks
- 1 January 2010
- journal article
- research article
- Published by Medknow in IETE Technical Review
- Vol. 27 (6) , 465
Abstract
Identifying the file type (TXT, EXE, JPEG, etc.) is important for computer security applications such as computer forensics, steganalysis, and antivirus programs. The common approach for this is to use file extensions, magic numbers, or other header information. However, these are susceptible to tampering or corruption; for instance, the file extension can be easily spoofed and the magic numbers can be obfuscated. A more reliable approach may be to analyze the file content instead of using only the tip of the information (metadata). This paper proposes two methods based on the file content. First, we use the cosine distance as a similarity metric when comparing the file content rather than the Mahalanobis distance that is popular and has been used by the other related approaches. The cosine similarity (unlike the Mahalanobis distance) retains the classification accuracy on a small number of highly frequent byte patterns which leads to a smaller model size and faster detection rate. Second, we decompose the identification procedure into two steps by taking the divide and conquer: in the first step, the similar files in terms of byte pattern frequencies are grouped into several clusters. In the next step, the cluster which contains different file types is fed to the neural network in order for finer classification. The experiments showed that the classification followed by clustering leads to higher accuracies.Keywords
This publication has 16 references indexed in Scilit:
- On Improving the Accuracy and Performance of Content-Based File Type Identification2009
- Predicting the types of file fragmentsDigital Investigation, 2008
- SÁDI - Statistical Analysis for Data Type Identification2008
- Statistical Disk Cluster Classification for File Carving2007
- Reduction of False Alarm Rate in Detecting Network Anomaly using Mahalanobis Distance and Similarity Measure2007
- Forensic Analysis of Document Fragment Based on SVM2006
- Oscar — File Type Identification of Binary Data in Disk Clusters and RAM Pages2006
- Anagram: A Content Anomaly Detector Resistant to Mimicry Attack2006
- Anomalous Payload-Based Network Intrusion Detection2004
- Content based file type detection algorithms2003