{"id":{"repo_id":"nps","oai_identifier":"oai:calhoun.nps.edu:10945/63497"},"canonical_url":"https://search.ndltd.org/etd/nps/oai:calhoun.nps.edu:10945/63497","repository":{"repo_id":"nps","name":"Naval Postgraduate School","base_url":"https://calhoun.nps.edu/server/oai/request"},"display":{"title":"DEFENSIVE BINARY CODE INSTRUMENTATION TO PROTECT AGAINST BUFFER OVERFLOW ATTACKS","abstract":"Buffer overflow and heap overflow injection attacks have been studied for some time. Recent techniques to prevent execution of payloads inserted into memory have been successful by using stack canaries, non-executable stacks, and address space layout randomization (ASLR). Attackers now use a technique called return oriented programming to maliciously execute code without ever inserting such a payload into memory. They do so by identifying binary snippets in the original program that constitute a malicious procedure. There have been patches in place to help decrease the susceptibility to this type of attack, but what is needed is a permanent fix. We propose such a solution, applied directly to the compiled binary, consisting of a masking function to obfuscate the return address, an unmasking function (i.e., reversing the previous), and instrumenting code to perform these functions seamlessly. We implemented a proof of concept of our solution that prevents an unexpected address jump via binary return address obfuscation.","abstract_html":"Buffer overflow and heap overflow injection attacks have been studied for some time. Recent techniques to prevent execution of payloads inserted into memory have been successful by using stack canaries, non-executable stacks, and address space layout randomization (ASLR). Attackers now use a technique called return oriented programming to maliciously execute code without ever inserting such a payload into memory. They do so by identifying binary snippets in the original program that constitute a malicious procedure. There have been patches in place to help decrease the susceptibility to this type of attack, but what is needed is a permanent fix. We propose such a solution, applied directly to the compiled binary, consisting of a masking function to obfuscate the return address, an unmasking function (i.e., reversing the previous), and instrumenting code to perform these functions seamlessly. We implemented a proof of concept of our solution that prevents an unexpected address jump via binary return address obfuscation.","abstract_has_math":false,"creators":["Rogers, Alexis L.","Sowers, Ryan"],"institution":"Monterey, CA; Naval Postgraduate School","degree_name":"Master of Science in Computer Science","degree_level":"Masters","degree_discipline":"Computer Science","degree_department":"Computer Science (CS)","school":null,"contributors":[],"advisors":["Drusinsky, Doron"],"committee_chairs":[],"committee_members":["Michael, James B."],"year":2019,"date_issued":"2019-09","date_published":"2019-09","updated_at":"2026-11-26T00:17:17Z","subjects":[],"languages":[],"rights":["Copyright is reserved by the copyright owner.","Approved for public release; distribution is unlimited."],"rights_urls":[],"identifier_entries":[{"key":"thesis:thesis_identifier","label":"Thesis Thesis Identifier","values":["32659"],"render_values":[{"text":"32659","href":null,"code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/10945/63497","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/10945/63497","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%2F63497","prefix":"oai_dc"},"source_record":{"url":"https://calhoun.nps.edu/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Acalhoun.nps.edu%3A10945%2F63497","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Drusinsky, Doron"]},{"key":"dc:contributor.committeemember","label":"Committee Member","values":["Michael, James B."]},{"key":"dc:contributor.department","label":"Department","values":["Computer Science (CS)"]},{"key":"dc:creator","label":"Author","values":["Rogers, Alexis L.","Sowers, Ryan"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2019-11-04T18:20:17Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2019-11-04T18:20:17Z"]},{"key":"dc:date.issued","label":"Date","values":["2019-09"]},{"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":["Master of Science in Computer Science"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["Naval Postgraduate School"]},{"key":"thesis:thesis_identifier","label":"Thesis Thesis Identifier","values":["32659"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject.keyword","label":"Dc Subject Keyword","values":["buffer overflow","return oriented programming","ROP","gadget","return instruction pointer","stack canary","obfuscation","binary"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:rights","label":"Dc Rights","values":["Copyright is reserved by the copyright owner.","Approved for public release; distribution is unlimited."]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/10945/63497"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Buffer overflow and heap overflow injection attacks have been studied for some time. Recent techniques to prevent execution of payloads inserted into memory have been successful by using stack canaries, non-executable stacks, and address space layout randomization (ASLR). Attackers now use a technique called return oriented programming to maliciously execute code without ever inserting such a payload into memory. They do so by identifying binary snippets in the original program that constitute a malicious procedure. There have been patches in place to help decrease the susceptibility to this type of attack, but what is needed is a permanent fix. We propose such a solution, applied directly to the compiled binary, consisting of a masking function to obfuscate the return address, an unmasking function (i.e., reversing the previous), and instrumenting code to perform these functions seamlessly. We implemented a proof of concept of our solution that prevents an unexpected address jump via binary return address obfuscation."]},{"key":"dc:description.uri","label":"Dc Description URI","values":["http://archive.org/details/defensivebinaryc1094563497"]},{"key":"dc:title","label":"Title","values":["DEFENSIVE BINARY CODE INSTRUMENTATION TO PROTECT AGAINST BUFFER OVERFLOW ATTACKS"]},{"key":"dspace:entity.type","label":"Dspace Entity Type","values":["Publication"]},{"key":"local:contributor.affiliation","label":"Local Contributor Affiliation","values":["Civilian"]}]}],"canonical_facts":{"dc:contributor.advisor":["Drusinsky, Doron"],"dc:contributor.committeemember":["Michael, James B."],"dc:contributor.department":["Computer Science (CS)"],"dc:creator":["Rogers, Alexis L.","Sowers, Ryan"],"dc:date.accessioned":["2019-11-04T18:20:17Z"],"dc:date.available":["2019-11-04T18:20:17Z"],"dc:date.issued":["2019-09"],"dc:description.abstract":["Buffer overflow and heap overflow injection attacks have been studied for some time. Recent techniques to prevent execution of payloads inserted into memory have been successful by using stack canaries, non-executable stacks, and address space layout randomization (ASLR). Attackers now use a technique called return oriented programming to maliciously execute code without ever inserting such a payload into memory. They do so by identifying binary snippets in the original program that constitute a malicious procedure. There have been patches in place to help decrease the susceptibility to this type of attack, but what is needed is a permanent fix. We propose such a solution, applied directly to the compiled binary, consisting of a masking function to obfuscate the return address, an unmasking function (i.e., reversing the previous), and instrumenting code to perform these functions seamlessly. We implemented a proof of concept of our solution that prevents an unexpected address jump via binary return address obfuscation."],"dc:description.uri":["http://archive.org/details/defensivebinaryc1094563497"],"dc:identifier.uri":["https://hdl.handle.net/10945/63497"],"dc:publisher":["Monterey, CA; Naval Postgraduate School"],"dc:rights":["Copyright is reserved by the copyright owner.","Approved for public release; distribution is unlimited."],"dc:subject.keyword":["buffer overflow","return oriented programming","ROP","gadget","return instruction pointer","stack canary","obfuscation","binary"],"dc:title":["DEFENSIVE BINARY CODE INSTRUMENTATION TO PROTECT AGAINST BUFFER OVERFLOW ATTACKS"],"dc:type":["Thesis"],"dspace:entity.type":["Publication"],"local:contributor.affiliation":["Civilian"],"thesis:degree_discipline":["Computer Science"],"thesis:degree_level":["Masters"],"thesis:degree_name":["Master of Science in Computer Science"],"thesis:institution_name":["Naval Postgraduate School"],"thesis:thesis_identifier":["32659"]},"updated_at":"2026-11-26T00:17:17Z"}