{"id":{"repo_id":"nps","oai_identifier":"oai:calhoun.nps.edu:10945/5770"},"canonical_url":"https://search.ndltd.org/etd/nps/oai:calhoun.nps.edu:10945/5770","repository":{"repo_id":"nps","name":"Naval Postgraduate School","base_url":"https://calhoun.nps.edu/server/oai/request"},"display":{"title":"Filetype identification using long, summarized n-grams","abstract":"Past research into file type identification has employed many different techniques in an attempt to accurately classify files and file fragments including N-gram analysis. However, naive application of n-grams breaks down when handling n-grams that are greater than two bytes, due to the sparseness of the feature. As a result, other researchers have generally ignored long n-grams for filetype identification. This thesis explores the use of long n-grams for whole file and file fragment classification by building feature distributions of commonly occurring n-grams for single filetypes and using those distributions to classify unknown files and file fragments. This thesis also utilizes summarized n-grams in order to \"collapse\" similar n-grams within a file type into common n-grams. The algorithms developed to both generate and compare unknown files are presented as well as results from an experiment that was conducted using another researcher's data set.","abstract_html":"Past research into file type identification has employed many different techniques in an attempt to accurately classify files and file fragments including N-gram analysis. However, naive application of n-grams breaks down when handling n-grams that are greater than two bytes, due to the sparseness of the feature. As a result, other researchers have generally ignored long n-grams for filetype identification. This thesis explores the use of long n-grams for whole file and file fragment classification by building feature distributions of commonly occurring n-grams for single filetypes and using those distributions to classify unknown files and file fragments. This thesis also utilizes summarized n-grams in order to &quot;collapse&quot; similar n-grams within a file type into common n-grams. The algorithms developed to both generate and compare unknown files are presented as well as results from an experiment that was conducted using another researcher&#x27;s data set.","abstract_has_math":false,"creators":["Mayer, Ryan C."],"institution":"Monterey, CA; Naval Postgraduate School","degree_name":"M.S.","degree_level":"Masters","degree_discipline":"Computer Science","degree_department":"Computer Science","school":null,"contributors":[],"advisors":["Garfinkel, Simson"],"committee_chairs":[],"committee_members":["Martell, Craig"],"year":2011,"date_issued":"2011-03","date_published":"2011-03","updated_at":"2026-11-26T00:18:23Z","subjects":["Computer science","Programs","Algorithms"],"languages":[],"rights":["This publication is a work of the U.S. Government as defined in Title 17, United States Code, Section 101. Copyright protection is not available for this work in the United States.","Approved for public release; distribution is unlimited."],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.oclc","label":"OCLC","values":["720374228"],"render_values":[{"text":"720374228","href":null,"code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/10945/5770","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/10945/5770","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Anps%3Aoai%3Acalhoun.nps.edu%3A10945%2F5770","prefix":"oai_dc"},"source_record":{"url":"https://calhoun.nps.edu/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Acalhoun.nps.edu%3A10945%2F5770","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Garfinkel, Simson"]},{"key":"dc:contributor.committeemember","label":"Committee Member","values":["Martell, Craig"]},{"key":"dc:contributor.department","label":"Department","values":["Computer Science"]},{"key":"dc:contributor.other","label":"Dc Contributor Other","values":["Naval Postgraduate School (U.S.)"]},{"key":"dc:creator","label":"Author","values":["Mayer, Ryan C."]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2012-03-14T17:46:40Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2012-03-14T17:46:40Z"]},{"key":"dc:date.issued","label":"Date","values":["2011-03"]},{"key":"dc:publisher","label":"Institution","values":["Monterey, CA; Naval Postgraduate School"]},{"key":"dc:type","label":"Dc Type","values":["Thesis"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Computer Science"]},{"key":"thesis:degree_level","label":"Degree Level","values":["Masters"]},{"key":"thesis:degree_name","label":"Degree Name","values":["M.S."]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["Naval Postgraduate School"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject.lcsh","label":"Dc Subject Lcsh","values":["Computer science","Programs","Algorithms"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:rights","label":"Dc Rights","values":["This publication is a work of the U.S. Government as defined in Title 17, United States Code, Section 101. Copyright protection is not available for this work in the United States.","Approved for public release; distribution is unlimited."]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.oclc","label":"OCLC","values":["720374228"]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/10945/5770"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Past research into file type identification has employed many different techniques in an attempt to accurately classify files and file fragments including N-gram analysis. However, naive application of n-grams breaks down when handling n-grams that are greater than two bytes, due to the sparseness of the feature. As a result, other researchers have generally ignored long n-grams for filetype identification. This thesis explores the use of long n-grams for whole file and file fragment classification by building feature distributions of commonly occurring n-grams for single filetypes and using those distributions to classify unknown files and file fragments. This thesis also utilizes summarized n-grams in order to \"collapse\" similar n-grams within a file type into common n-grams. The algorithms developed to both generate and compare unknown files are presented as well as results from an experiment that was conducted using another researcher's data set."]},{"key":"dc:description.uri","label":"Dc Description URI","values":["http://archive.org/details/filetypeidentifi109455770"]},{"key":"dc:format.extent","label":"Dc Format Extent","values":["xiv, 89 p. ;"]},{"key":"dc:title","label":"Title","values":["Filetype identification using long, summarized n-grams"]},{"key":"dspace:entity.type","label":"Dspace Entity Type","values":["Publication"]},{"key":"local:etd.verified","label":"Local Etd Verified","values":["no"]}]}],"canonical_facts":{"dc:contributor.advisor":["Garfinkel, Simson"],"dc:contributor.committeemember":["Martell, Craig"],"dc:contributor.department":["Computer Science"],"dc:contributor.other":["Naval Postgraduate School (U.S.)"],"dc:creator":["Mayer, Ryan C."],"dc:date.accessioned":["2012-03-14T17:46:40Z"],"dc:date.available":["2012-03-14T17:46:40Z"],"dc:date.issued":["2011-03"],"dc:description.abstract":["Past research into file type identification has employed many different techniques in an attempt to accurately classify files and file fragments including N-gram analysis. However, naive application of n-grams breaks down when handling n-grams that are greater than two bytes, due to the sparseness of the feature. As a result, other researchers have generally ignored long n-grams for filetype identification. This thesis explores the use of long n-grams for whole file and file fragment classification by building feature distributions of commonly occurring n-grams for single filetypes and using those distributions to classify unknown files and file fragments. This thesis also utilizes summarized n-grams in order to \"collapse\" similar n-grams within a file type into common n-grams. The algorithms developed to both generate and compare unknown files are presented as well as results from an experiment that was conducted using another researcher's data set."],"dc:description.uri":["http://archive.org/details/filetypeidentifi109455770"],"dc:format.extent":["xiv, 89 p. ;"],"dc:identifier.oclc":["720374228"],"dc:identifier.uri":["https://hdl.handle.net/10945/5770"],"dc:publisher":["Monterey, CA; Naval Postgraduate School"],"dc:rights":["This publication is a work of the U.S. Government as defined in Title 17, United States Code, Section 101. Copyright protection is not available for this work in the United States.","Approved for public release; distribution is unlimited."],"dc:subject.lcsh":["Computer science","Programs","Algorithms"],"dc:title":["Filetype identification using long, summarized n-grams"],"dc:type":["Thesis"],"dspace:entity.type":["Publication"],"local:etd.verified":["no"],"thesis:degree_discipline":["Computer Science"],"thesis:degree_level":["Masters"],"thesis:degree_name":["M.S."],"thesis:institution_name":["Naval Postgraduate School"]},"updated_at":"2026-11-26T00:18:23Z"}