@inproceedings{1168, keywords = {side-channel attacks, automata processing, intrusion detection}, author = {Yujun Qin and Samuel Gonzalez and Kevin Angstadt and Xiaowei Wang and Stephanie Forrest and Reetuparna Das and Kevin Leach and Westley Weimer}, title = {MARTINI: Memory Access Traces to Detect Attacks}, abstract = {Hardware architectural vulnerabilities, such as Spectre and Meltdown, are difficult or inefficient to mitigate in software. Although revised hardware designs may address some architectural vulnerabilities going forward, most current remedies increase execution time significantly. Techniques are needed to rapidly and efficiently detect these and other emerging threats. We present an anomaly detector, MARTINI, that analyzes traces of memory accesses in real time to detect attacks. Our experimental evaluation shows that anomalies in these traces are strongly correlated with unauthorized program execution, including architectural side-channel attacks of multiple types. MARTINI consists of a finite automaton that models normal program behavior in terms of memory addresses that are read from, and written to, at runtime. The model uses a compact representation of n-grams, i.e., short sequences of memory accesses, which can be stored and processed efficiently. Once the system is trained on authorized behavior, it rapidly detects a variety of low-level anomalous behaviors and attacks not otherwise easily discernible at the software level. MARTINI s implementation leverages recent advances in in-cache and in-memory automata for computation, and we present a hardware unit that repurposes a small portion of a last-level cache slice to monitor memory addresses. Our detector directly inspects the addresses of memory accesses, using the pre-constructed automaton to identify anomalies with high accuracy, negligible runtime overhead, and trivial increase in CPU chip area. We present analyses of expected hardware properties based on indicative cache and memory hierarchy simulations and empirical evaluations.}, year = {2020}, journal = {2020 ACM SIGSAC Conference on Cloud Computing Security Workshop}, pages = {77–90}, month = {11/2020}, publisher = {Association for Computing Machinery}, address = {New York, NY, USA}, isbn = {9781450380843}, url = {https://doi.org/10.1145/3411495.3421353}, doi = {10.1145/3411495.3421353}, }