Skip to main content
archive
Search Submit Donate Log in
Press Enter to search · Advanced search

Computer Science > Cryptography and Security

arXiv:1805.04767 (cs)
[Submitted on 12 May 2018 (v1), last revised 23 Oct 2018 (this version, v2)]

Title:Block Oriented Programming: Automating Data-Only Attacks

Authors:Kyriakos Ispoglou, Bader AlBassam, Trent Jaeger, Mathias Payer
View a PDF of the paper titled Block Oriented Programming: Automating Data-Only Attacks, by Kyriakos Ispoglou and Bader AlBassam and Trent Jaeger and Mathias Payer
View PDF HTML (experimental)
Abstract:With the widespread deployment of Control-Flow Integrity (CFI), control-flow hijacking attacks, and consequently code reuse attacks, are significantly more difficult. CFI limits control flow to well-known locations, severely restricting arbitrary code execution. Assessing the remaining attack surface of an application under advanced control-flow hijack defenses such as CFI and shadow stacks remains an open problem.
We introduce BOPC, a mechanism to automatically assess whether an attacker can execute arbitrary code on a binary hardened with CFI/shadow stack defenses. BOPC computes exploits for a target program from payload specifications written in a Turing-complete, high-level language called SPL that abstracts away architecture and program-specific details. SPL payloads are compiled into a program trace that executes the desired behavior on top of the target binary. The input for BOPC is an SPL payload, a starting point (e.g., from a fuzzer crash) and an arbitrary memory write primitive that allows application state corruption. To map SPL payloads to a program trace, BOPC introduces Block Oriented Programming (BOP), a new code reuse technique that utilizes entire basic blocks as gadgets along valid execution paths in the program, i.e., without violating CFI or shadow stack policies. We find that the problem of mapping payloads to program traces is NP-hard, so BOPC first reduces the search space by pruning infeasible paths and then uses heuristics to guide the search to probable paths. BOPC encodes the BOP payload as a set of memory writes.
We execute 13 SPL payloads applied to 10 popular applications. BOPC successfully finds payloads and complex execution traces -- which would likely not have been found through manual analysis -- while following the target's Control-Flow Graph under an ideal CFI policy in 81% of the cases.
Subjects: Cryptography and Security (cs.CR)
Cite as: arXiv:1805.04767 [cs.CR]
  (or arXiv:1805.04767v2 [cs.CR] for this version)
  https://doi.org/10.48550/arXiv.1805.04767
arXiv-issued DOI via DataCite
Related DOI: https://doi.org/10.1145/3243734.3243739
DOI(s) linking to related resources

Submission history

From: Mathias Payer [view email]
[v1] Sat, 12 May 2018 19:35:27 UTC (227 KB)
[v2] Tue, 23 Oct 2018 15:49:03 UTC (253 KB)
Full-text links:

Access Paper:

    View a PDF of the paper titled Block Oriented Programming: Automating Data-Only Attacks, by Kyriakos Ispoglou and Bader AlBassam and Trent Jaeger and Mathias Payer
  • View PDF
  • HTML (experimental)
  • TeX Source
view license

Current browse context:

cs.CR
< prev   |   next >
new | recent | 2018-05
Change to browse by:
cs

References & Citations

  • NASA ADS
  • Google Scholar
  • Semantic Scholar

DBLP - CS Bibliography

listing | bibtex
Kyriakos K. Ispoglou
Bader AlBassam
Trent Jaeger
Mathias Payer
Loading...

BibTeX formatted citation

Data provided by:

Bookmark

BibSonomy Reddit

Bibliographic and Citation Tools

Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)

Code, Data and Media Associated with this Article

alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
ScienceCast (What is ScienceCast?)

Demos

Replicate (What is Replicate?)
Hugging Face Spaces (What is Spaces?)
TXYZ.AI (What is TXYZ.AI?)

Recommenders and Search Tools

Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
  • Author
  • Venue
  • Institution
  • Topic

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)
We gratefully acknowledge support from our major funders, member institutions, , and all contributors.
About · Help · Contact · Subscribe · Copyright · Privacy · Accessibility · Operational Status (opens in new tab)
Major funding support from
Simons Foundation Simons Foundation International Schmidt Sciences