<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Sometimes, You Aren’t What You Do: Mimicry Attacks against Provenance Graph Host Intrusion Detection Systems</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>02/27/2023</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10412012</idno>
					<idno type="doi"></idno>
					<title level='j'>30th Network and Distributed System Security Symposium</title>
<idno></idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Akul Goyal</author><author>Xueyuan Han</author><author>Gang Wang</author><author>Adam Bates</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Reliable methods for host-layer intrusion detection remained an open problem within computer security. Recent research has recast intrusion detection as a provenance graph anomaly detection problem thanks to concurrent advancements in machine learning and causal graph auditing. While these approaches show promise, their robustness against an adaptive adversary has yet to be proven. In particular, it is unclear if mimicry attacks, which plagued past approaches to host intrusion detection, have a similar effect on modern graph-based methods.In this work, we reveal that systematic design choices have allowed mimicry attacks to continue to abound in provenance graph host intrusion detection systems (Prov-HIDS). Against a corpus of exemplar Prov-HIDS, we develop evasion tactics that allow attackers to hide within benign process behaviors. Evaluating against public datasets, we demonstrate that an attacker can consistently evade detection (100% success rate) without modifying the underlying attack behaviors. We go on to show that our approach is feasible in live attack scenarios and outperforms domain-general adversarial sample techniques. Through open sourcing our code and datasets, this work will serve as a benchmark for the evaluation of future Prov-HIDS.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><p>However, are malicious acts innately distinct from regular activity? This question was raised by Wagner and Soto in their introduction of the mimicry attack <ref type="bibr">[14]</ref> -due to various imperfections in the IDS' representation of system normality, it is possible for attackers to pattern their actions such that they are indistinguishable from benign processes. For example, a malicious process could defeat the Forrest IDS by executing no-op system calls, preserving the semantics of the attack while simultaneously adhering to system call sequences of approved processes. This finding was repeatedly replicated and extended <ref type="bibr">[11,</ref><ref type="bibr">12,</ref><ref type="bibr">15,</ref><ref type="bibr">16]</ref>, casting doubt on the practicality of an entire generation of anomaly-based detection systems. This early intrusion detection work was the forebearer to the explosive popularity of machine learning research seen in the security literature today. In fact, recent advancements in machine learning and system auditing have led researchers to reconceptualize host intrusion detection as a graph learning problem. These "Prov-HIDS" analyze provenance graphscausal dependency graphs that describe the history of system execution -in an attempt to delineate typical from anomalous activity. Through identifying connections between current and historical events in the system, these techniques show promise as a new primitive for intrusion detection. However, at present it is unclear how, or even if, such approaches are successful in the face of determined, resourceful, and adaptive adversaries.</p><p>In this work, we resurrect the foundational challenge of IDS evasion in the context of modern Prov-HIDS. We select five exemplar Prov-HIDS -StreamSpot <ref type="bibr">[17]</ref>, Unicorn <ref type="bibr">[18]</ref>, ProvDetector <ref type="bibr">[19]</ref>, 1 Pagoda <ref type="bibr">[20]</ref>, and a Full Graph Autoencoder <ref type="bibr">[21]</ref> -providing a representative sample of the field. We dissect these systems' inner workings to arrive at an understanding of how each approach sacrifices the historical context of complete provenance graphs to produce efficient and generalizable classification models. We then develop a corpus of candidate mimicry gadgets for crafting evasion attacks against these systems.</p><p>To evaluate our procedurally-generated mimicry attacks, we make use of the publicly-released StreamSpot <ref type="bibr">[22]</ref> and DARPA Transparent Computing <ref type="bibr">[23]</ref> datasets. Our findings 1 Our title is a playful jab at the ProvDetector paper title, "You Are What You Do: Hunting Stealthy Malware via Data Provenance Analysis" <ref type="bibr">[19]</ref>.</p><p>Abstract-Reliable methods for host-layer intrusion detection remained an open problem within computer security. Recent research has recast intrusion detection as a provenance graph anomaly detection problem thanks to concurrent advancements in machine learning and causal graph auditing. While these approaches show promise, their robustness against an adaptive adversary has yet to be proven. In particular, it is unclear if mimicry attacks, which plagued past approaches to host intrusion detection, have a similar effect on modern graph-based methods.</p><p>In this work, we reveal that systematic design choices have allowed mimicry attacks to continue to abound in provenance graph host intrusion detection systems (Prov-HIDS). Against a corpus of exemplar Prov-HIDS, we develop evasion tactics that allow attackers to hide within benign process behaviors. Evaluating against public datasets, we demonstrate that an attacker can consistently evade detection (100% success rate) without modifying the underlying attack behaviors. We go on to show that our approach is feasible in live attack scenarios and outperforms domain-general adversarial sample techniques. Through open sourcing our code and datasets, this work will serve as a benchmark for the evaluation of future Prov-HIDS.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>I. INTRODUCTION</head><p>Intrusion detection systems (IDS) are an important reactive security measure that identifies p ossible o ngoing a ttacks on a host system. With its market size expected to exceed 170 billion dollars <ref type="bibr">[1]</ref>, cybersecurity is an enormous industry in which intrusion detection is a highly coveted service. Further, IDS provide the initial indicators of compromise used to initiate threat hunting and incident response activities <ref type="bibr">[2,</ref><ref type="bibr">3,</ref><ref type="bibr">4,</ref><ref type="bibr">5,</ref><ref type="bibr">6,</ref><ref type="bibr">7,</ref><ref type="bibr">8]</ref>. Due to the difficulty of outright preventing attackers from breaching organizational defenses (e.g., <ref type="bibr">[9,</ref><ref type="bibr">10]</ref>), IDS are a cornerstone of real-world security today.</p><p>While IDS typically take two forms, anomaly-based and heuristic rule-based systems, we focus on anomaly-based approaches. In host-based anomaly detection, sequences of lowlevel events are analyzed to define p atterns o f t ypical host activity. For example, in Forrest et al.'s pioneering work <ref type="bibr">[11]</ref>, each process' behavioral pattern is defined o ver a sliding window of system calls of some small length k (e.g., k=6 <ref type="bibr">[12]</ref>). At runtime, if processes deviate from the set of system call sequences observed when the application was profiled, i t is considered an anomaly and an alert is raised. While subsequent Fig. <ref type="figure">1:</ref> A provenance graph describing a Firefox backdoor attack using Drakon from a DARPA Transparent Computing engagement. Circles indicate processes, rectangles files, and diamonds network connections. Benign system behaviors are shaded green, while the attack subgraph is red. This work considers Prov-HIDS' resilience to mimicry attacks that embed substructures from legitimate process activities into the attack subgraph.</p><p>show that out of over 100 attack graph samples, we are able to successfully force misclassification 100% of the time, regardless of the Prov-HIDS under test. We go on to characterize the cost of evasion in terms of the complexity of the graph transformation, demonstrate the feasibility of our approach by adapting our mimicry strategies to live attack demonstrations, and show that evasion is possible even when multiple Prov-HIDS are employed in an ensemble. Finally, we empirically demonstrate the superiority of our approach over domain-general adversarial sample generation techniques by evaluating RL-S2V <ref type="bibr">[24]</ref>, a reinforcement learning system: After seven days of execution in a variety of configurations, RL-S2V failed to produce a single successful evasion sample against the (relatively) simplistic StreamSpot IDS. In contrast, our methods are highly efficient and reflect testable hypotheses that provide insight into the failure conditions of Prov-HIDS.</p><p>Our contributions can be summarized as follows:</p><p>&#8226; Sometimes, You Aren't What You Do. We bring mimicry attacks into the modern era. Surveying five state-of-theart Prov-HIDS to understand how provenance graphs are encoded for anomaly detection, we propose a battery of novel mimicry attack methodologies. &#8226; Independent Evaluation of Prov-HIDS. We conduct an independent evaluation of five exemplar Prov-HIDS. We uncover systemic vulnerability to evasion, reaching a 100% success rate against all systems. &#8226; Open-source Benchmark for Mimicry Attacks. Our code and data is publicly available 2 as a benchmark suite. Future Prov-HIDS research can leverage our adversarial samples to evaluate system resilience to evasion.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>II. MOTIVATING ATTACK SCENARIO</head><p>To motivate our work, consider the provenance of an intrusion attempt from DARPA Transparent Computing's third adversarial engagement, shown in Fig. <ref type="figure">1</ref>, which depicts a Firefox backdoor attack. The red subgraph is a simplified version of the original attack. A victim machine running a vulnerable Firefox 54.0.1 unknowingly establishes a connection with a 2 <ref type="url">https://bitbucket.org/sts-lab/mimicry-provenance-generator/src/master/</ref> malicious ad server located at 146.153.68.151. The server exploits a backdoor in Firefox and injects a binary executable "Drakon" in its process memory. Drakon subsequently spawns a new process (/home/admin/clean) with root privileges that connects to the attacker's server at 161.116.88.72, giving the attacker full access to the victim machine.</p><p>As we will soon demonstrate, Prov-HIDS can reliably detect this attack. By learning a representation of the typical behavior of a system (i.e., the green subgraph), Prov-HIDS are able to detect that the attack behavior (the red subgraph) deviates significantly and is thus an anomaly. For example, Han et al.'s Unicorn system <ref type="bibr">[18]</ref> may learn that Firefox's child processes are expected to connect to different servers and read from system files containing DNS information (legitimate process activities). When the attacker instead writes and executes the file /home/admin/clean, the resulting graph structures are highly anomalous, making the attack simple to detect.</p><p>But what if the attacker is aware that a Prov-HIDS is monitoring the system? The adversary could then modify their attack subgraph using a mimicry attack (the orange subgraph) -while the actual attack logic remains unchanged, the attacker could fork additional processes that resemble legitimate process activities. These activities may be sufficient to confuse the classifier, resulting in a misclassification of the attack. In practice, the simplified mimicry attack depicted in Fig. <ref type="figure">1</ref> would not be sufficient to fool state-of-the-art systems. However, the attacker is free to perform an unbounded number of actions within process spaces under their control. They could conceivably integrate many events into their attack behavior, sampling normal activities from the victim system. Our goal is to determine, through principled analysis, the feasibility and cost of launching mimicry attacks on advanced Prov-HIDS.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>III. PROVENANCE-BASED HOST INTRUSION DETECTION</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. Provenance Graphs</head><p>We define a provenance graph as G = (V, E), where</p><p>j=1 is a set of vertices and E = {e j } |E| j=1 is a set of edges. Each vertex in V refers to a concrete system entity that was accessed during the course of a system's execution, such as a file, a process, a network socket, or inter-process communication. Each edge represents a specific system event that was observed, corresponding to a single system call in the audit log from which the graph is built </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>StreamHash Count</head><p>, and so on.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. Generic Prov-HIDS Definition</head><p>Let each graph G i in a dataset G be associated with a label y i &#8712; {0, 1}, where 0 is benign and 1 is malicious, such that</p><p>where</p><p>The Prov-HIDS f (G i ) makes a classification decision by encoding substructures within the graph G i and then comparing them to the substructures of a pre-encoded set of benign graphs. An anomaly is raised if G i 's substructures deviate significantly from the known benign substructures: <ref type="foot">3</ref> &#947; is a branching factor that determines the size of v i j 's neighborhood, and &#946; is a depth factor describing the max distance between a node in the substructure and v i j .</p><p>E &#954; &#955; (Z i ) is an encoding function that summarizes Z i into an L-dimensional vector V i . &#954; specifies the size of a subset of Z i used to represent G i . &#955; is the embedding function used.</p><p>, which returns the smallest distance between a graph in &#948; and V i . &#945; is a distance threshold, under which G i is considered benign.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>System</head><p>Function Method Learning Task Code?</p><p>StreamSpot <ref type="bibr">[17]</ref> Detect. Unsup.</p><p>Neigh.-based Whole Graph FRAPpuccino <ref type="bibr">[25]</ref> Detect. Unsup.</p><p>Neigh.-based Whole Graph Unicorn <ref type="bibr">[18]</ref> Detect. Unsup.</p><p>Neigh.-based Whole Graph Pagoda <ref type="bibr">[20]</ref> Detect.</p><p>Unsup.</p><p>Path-based Whole Graph P-Gaussian <ref type="bibr">[26]</ref> Detect.</p><p>Unsup.</p><p>Path-based Whole Graph ProvDetector <ref type="bibr">[19]</ref> Detect.</p><p>Unsup.</p><p>Path-based Subgraph PIDAS <ref type="bibr">[27]</ref> Detect. Unsup.</p><p>Path-based Subgraph SIGL <ref type="bibr">[21]</ref> Detect.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Unsup. Whole Graph Autoencoder</head><p>Hercule <ref type="bibr">[28]</ref> Invest. Sup. Log Community Detection ATLAS <ref type="bibr">[29]</ref> Invest. Sup. Log Sequence Modeling NoDoze <ref type="bibr">[30]</ref> Invest.</p><p>Unsup. Historic Event Analysis Holmes <ref type="bibr">[31]</ref> Invest.</p><p>Unsup. Historic Event Analysis Note that we focus only on the learning components of these systems, not their end-to-end functionality. We discuss related work more broadly in &#167;VIII.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C. Exemplar System Selection</head><p>We ground the evasion techniques we develop in this work based on an in-depth analysis of a set of exemplar Prov-HIDS. Our survey of graph learning mechanisms in provenance-based security tools is shown in Table <ref type="table">I</ref>. For completeness, we include in the table investigation-oriented tools that are not Prov-HIDS but feature related learning mechanisms. As we can see, the majority of Prov-HIDS decompose the graph into either neighborhood-based or path-based substructures prior to vectorization, and then attempt to define normal behavior with respect to either whole graph or subgraph granularities.</p><p>In selecting our exemplar systems, we wish to ensure coverage of different approaches. While supervised learning approaches have been used for non-detection tasks, they have not seen use for intrusion detection. This is appropriate, as the use of supervised intrusion detection intrinsically makes assumptions about attacker behavior, which is considered to be an unsound practice <ref type="bibr">[32]</ref>. Therefore, we focus on the more prevalent class of unsupervised intrusion detection systems. We ultimately choose five such systems to be our exemplars. Due to space constraints, we describe in detail three of the exemplar systems (i.e., StreamSpot, Unicorn, and ProvDetector) below; brief descriptions of two other systems, Pagoda and a SIGL- StreamSpot. Fig. <ref type="figure">2</ref> shows an overview of StreamSpot <ref type="bibr">[17]</ref>. StreamSpot's deconstruction function N &#947; &#946; deconstructs G into substructures of (mostly) equal number of vertices. In 1 &#8413; &#8594; 2 &#8413;, for each vertex v j , StreamSpot visits all of its neighboring nodes that are at most K hops away, where K &gt; 0 is a configurable parameter. Thus, branching factor &#947; = deg out (v j ) and depth factor &#946; = K. In 2 &#8413; &#8594; 3 &#8413;, StreamSpot subsequently "chunks" substructures into smaller substructures, each of which contains at most J vertices. As such, N &#947; &#946; returns a set of substructures Z of equal size J, mixed with substructures of smaller size that cannot be chunked. Fig. <ref type="figure">2</ref> illustrates the deconstruction process with K = 3 and J = 4. 4   StreamSpot considers the entire chunk set Z when summarizing G (i.e., &#954; = |Z|). In 3 &#8413; &#8594; 4 &#8413;, StreamSpot uses StreamHash <ref type="bibr">[17]</ref> as the embedding function &#955;, which preserves the cosine similarity between two graph embeddings. &#955; embeds each substructure into an L-dimensional binary (either -1 or 1) vector. E &#954; &#955; sums the embeddings of all substructures in Z into an integer-value vector I. In 4 &#8413; &#8594; 5 &#8413;, it reduces this vector to again a binary vector B as the final graph embedding, assigning each value to 0 or 1 based on the sign in I.</p><p>F &#948; uses the cosine similarity to compare different graph embeddings. In the training phase, StreamSpot performs clustering on each observed graph embedding B. At runtime, it classifies the embedding of each observed (test) graph according to whether or not its embedding can be clustered into the existing model. Specifically, for each cluster, a decision boundary is calculated by finding the cluster's centroid C and standard deviation &#963; C . As shown in 6</p><p>&#8413;, a test graph G T must satisfy F &#948; (C, B T ) &#8804; 3&#963; C for some cluster (where B T is G T 's graph embedding), or else be flagged as anomalous.</p><p>Unicorn. Fig. <ref type="figure">3</ref> shows an overview of Unicorn <ref type="bibr">[18]</ref>. Like StreamSpot, in 1 &#8413; &#8594; 2 &#8413;, Unicorn deconstructs a streaming graph G with N &#947; &#946; , where &#947; = deg out (v j ), &#946; = K, and each substructure is chunked into smaller equal sizes of J. However, Unicorn's graph deconstruction also takes time into 4 Although it is not documented in <ref type="bibr">[17]</ref>, StreamSpot down-samples vertex labels from specific system entity names (e.g., /etc/shadow, /bin/bash) to coarse-grained object types, e.g., F (File) and P (Process). We make note of this between Step 1</p><p>&#8413; and 2 &#8413; in Fig. <ref type="figure">2</ref>.</p><p>consideration, where a time step t represents a fixed number of edges streamed to G. At each time step, Unicorn revisits vertices whose K-hop neighborhood has changed to update the substructure set Z t , as well as adding new substructures from latest streamed vertices. Fig. <ref type="figure">3</ref> illustrates this process with 3 different time steps using K = 3 and J = 4.</p><p>As shown in 2 &#8413; &#8594; 3 &#8413;, Unicorn uses a histogram H t to represent Z t at each time step t, such that each bin in the histogram represents a unique substructure and is associated with the frequency of the substructure in Z t (i.e., &#954; = |Z t |). Unicorn then encodes H t into an L-dimensional real-value vector R t , using HistoSketch <ref type="bibr">[33]</ref> as the embedding function &#955;. HistoSketch preserves the Jaccard similarity between two graphs by comparing the identities and the distribution of histogram bins that summarize those graphs.  <ref type="figure">4</ref> shows an overview of ProvDetector <ref type="bibr">[19]</ref>. In 1 &#8413; &#8594; 2 &#8413;, ProvDetector deconstructs a graph G into a set of overlapping and non-branching substructures Z. To do so, ProvDetector creates a pseudo source node v ps (which is connected to all vertices in G that have no incoming edges) and a pseudo destination node v pd (which is connected to all vertices in G that have no outgoing edges) and finds all paths P (v ps , v pd ) in G up to a maximum length of 10, at which point longer paths are broken into multiple paths. In other words, in N &#947; &#946; , &#947; = 1 and &#946; = M ax(|L(P (v ps , v pd )|, 10). In 2 &#8413; &#8594; 3 &#8413;, ProvDetector selects K paths in Z to represent G (i.e., &#954; = K). Paths are selected based on their regularity scores, which are computed by the frequencies of the edges in the path and the in-and out-degrees of their vertices. We refer interested readers to Hassan et al. <ref type="bibr">[30]</ref> for a detailed explanation. ProvDetector selects top K paths with the lowest regularity scores, then in 3 &#8413; &#8594; 4 &#8413;, encodes each path into an L-dimensional real-value vector using doc2vec <ref type="bibr">[34]</ref> as the embedding function &#955;. Fig. <ref type="figure">4</ref> illustrates this process using K = 3.</p><p>ProvDetector uses the Euclidean distance in F &#948; to compare between two path embeddings. In the training phase, ProvDetector builds a Local Outlier Factor model <ref type="bibr">[35]</ref> by clustering top-K path embeddings from all training graphs. At runtime, ProvDetector classifies a test graph as anomalous if at least N out of its K path embeddings cannot be clustered into the model, as shown in 5</p><p>&#8413; (with N = 1). Thus, N controls the sensitivity of classification.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>IV. THREAT MODEL</head><p>Attacker Capabilities. We consider a sophisticated adversary that has gained access to a system. The adversary represents an advanced persistent threat (APT) <ref type="bibr">[36,</ref><ref type="bibr">37,</ref><ref type="bibr">38]</ref>, whose techniques and objectives are consistent with those observed in the MITRE ATT&amp;CK knowledge base <ref type="bibr">[39]</ref>:</p><p>&#8226; Masquerading (T1036) <ref type="bibr">[40]</ref>. Adversaries commonly manipulate features of their own artifacts to appear legitimate to security tools. Our attacker therefore will use any available procedures to evade detection by Prov-HIDS. Restated formally, given the unmodified attack footprint G A = (V A , E A ) that would otherwise be detected by Prov-HIDS as anomalous, i.e., f (G A ) = 1, the attacker's objective is to apply a transformation function</p><p>&#8226; Gather Victim Host Information (T1592) <ref type="bibr">[41]</ref>. Adversaries will use this reconnaissance technique to aid other attack operations such as masquerading. We assume our attacker has access to procedures that enable them to access or infer the contents of audit logs, an especially valuable source of host information. For example, the attacker may escalate privileges to read directly from the logs (/var/log/audit in Linux). If privilege escalation procedures are not available, the attacker can instead infer log contents through profiling other processes on the system with ps, netstat, etc., or even through system side channels (e.g., <ref type="bibr">[42]</ref>). For simplicity, we assume the attacker can read directly from system logs.</p><p>We place restrictions on the transformation function T used by the attacker. T will always take the form of an addition, i.e., &#7868;A = E A + &#920;, where &#920; cannot introduce disconnected edges to GA . &#7804; A comprises the union of V A and the vertices referenced in &#920;; that is, &#920; can contain nodes not in the original graph such that V A &#8838; &#7804; A . While evading detection, the attacker must still perform the attack and succeed. This means that T cannot transform G A such that the semantics of the original attack become invalid. Additionally, the attacker has control over their attack subgraphs only, i.e., T must be applied exclusively to subgraphs in G A that describe attack processes. This more conservative attack model reflects the requirement for T to produce a realizable attack strategy given the constraints of the target system; lifting these restrictions would further empower the attacker and facilitate evasion.</p><p>Assumptions &amp; Trust Model. We make the following assumptions about the operating environment. Our trusted computing base (TCB) is comprised of the operating system, auditing frameworks, and provenance analysis tools including the Prov-HIDS. We assume the integrity of the components in the TCB at the time of installation and throughout the incursion. Platform and audit log integrity are widely assumed in the auditing literature <ref type="bibr">[43,</ref><ref type="bibr">44,</ref><ref type="bibr">45,</ref><ref type="bibr">46,</ref><ref type="bibr">47,</ref><ref type="bibr">48]</ref>. Finally, we do not assume that the attacker has knowledge of the systems under test. Specifically, we consider whether our attack strategies can evade multiple Prov-HIDS in &#167;VI-I and their robustness to changes in model parameters in &#167;VI-J.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>V. PROV-HIDS EVASION TACTICS</head><p>Following our in-depth analysis of the exemplar systems and bearing in mind the capabilities of our attacker, we now introduce a series of tactics for evading Prov-HIDS. Rather than targeting individual systems one-by-one, each tactic describes a generic strategy that can be recruited by an adversary to evade one or more Prov-HIDS. Because they are inter-operable and can be used in concert, we thus consider each tactic to be a "mimicry gadget" for us in an end-to-end evasion attempt.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. Preliminary Observations</head><p>Before presenting our mimicry gadgets, we make the following observations about the Prov-HIDS detection scenario.</p><p>&#8226; Adversaries can exert influence over an attack's embedding. Prov-HIDS take as input a provenance graph that describes the totality of system execution. Trivially, an attacker that is able to engage in attack behaviors on a system is also able to engage in additional behaviors beyond those strictly required by the attack. These additional behaviors will appear Alg. 1: The idealized Prov-HIDS evasion strategy. ADDSUBSTRUCTS follows naturally from our observations in &#167;V-A, while the PICKSUBSTRUCTS function is concretized by our mimicry gadgets (see &#167;V).</p><p>Inputs :</p><p>// encode benign substructures / * repeat step 2 and 3 for evasion graph * /</p><p>/ * compute the distance to evasion * /</p><p>in the embedding of the attack subgraph, injecting confusion into the Prov-HIDS' classification task. This observation is analogous to Wagner and Soto's observation that inserting "no-op" system calls into a malicious process could evade the Forrest IDS without affecting attack semantics <ref type="bibr">[14]</ref>.</p><p>&#8226; Adversarial additions to an attack's embedding can be made indistinguishable from benign behavior. While it is unsurprising that an attacker can add arbitrary behaviors, what is surprising is that these additions can be made indistinguishable from the system's legitimate behavior. In a provenance graph, any behavior that an attacker engages can be causally linked back to their point of entry into the system, seemingly indicating that any extraneous behavior will still appear suspicious in the eyes of the Prov-HIDS. Unfortunately, in the process of vectorizing the provenance graph into a fixed-length representation, Prov-HIDS' deconstruction of the graph disassociates graph neighborhoods from one another through bounded branching (&#947;) and depth (&#946;). For example, the Unicorn authors consider a maximum depth of three <ref type="bibr">[18]</ref>; while the ProvDetector authors construct paths of maximum depth of <ref type="bibr">10 [19]</ref>. To the best of our knowledge, the same issue arises in all Prov-HIDS in the literature. Thus, even if an injected behavior has a malicious ancestry, the behavior's embedded representation will map to a benign behavior if it is more than &#946; hops away from the root of the attack graph.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. Mimicry Gadgets</head><p>Based on these observations, the basic premise of an Prov-HIDS evasion attempt emerges. An idealized version of this strategy is given in Alg. 1. Starting with the attack graph (G A ), the attacker engages in behaviors found in G N that add seemingly benign graph substructures into the evasive attack graph G E . This process continues until the classification of G E crosses the Prov-HIDS' decision boundary. We next describe the construction of the key function, PICKSUBSTRUCTS.</p><p>1) Abusing Unweighted Graph Encoding: When a Prov-HIDS summarizes a graph in such a way that every substructure is equally weighted, an attacker could change the graph's embedding simply by adding additional activity. Consider an L-dimensional embedding that is derived from summing over the set of substructures output by N &#947; &#946; (G i ). An attacker that engages in spurious system activities creates additional substructures into G i , changing the output of N &#947; &#946; (G i ) and consequently the L-dimensional embedding. In fact, because the L-dimensional embedding is a fixed length feature vector that describes a graph whose size is under the attacker's control, we predict that for unweighted Prov-HIDS, there will always exist a set of substructures that can transform the attack graph into any embedding within the L-dimensional space.</p><p>In our first mimicry gadget, the attacker starts by profiling the target system to identify a large number of graph substructures associated with benign activity (see &#167;IV). They then select a batch of benign substructures of parameterizable size and replicate the system activities that produce those structures. In our implementation, substructures are selected chronologically in the order that they appeared in the logs. We predict that, given a batch of benign substructures of sufficient size, <ref type="foot">5</ref> this evasion gadget will consistently force misclassification against unweighted Prov-HIDS.</p><p>Consider one of our exemplar Prov-HIDS, StreamSpot, which uses a bag-of-words approach to embed the input graph. The hashing function sums over every hash of all the substructures within the graph to create the final embedding. Under this unweighted graph encoding approach, StreamSpot can differentiate typical from anomalous behavior if and only if there is a significant difference in the set of the substructures that existed from each behavior. However, by adding benign substructures to the attack graph, the significance of the anomalous substructures can be arbitrarily reduced, to the point that the attack graph would fall inside of the decision boundary of a benign cluster. Further, as StreamSpot does not represent any temporal properties within its N &#947; &#946; (G i ) function, the order in which substructures are added does not affect the embedding, further increasing the likelihood of the mimicry gadget's success. While we will evaluate this mimicry gadget against StreamSpot and Pagoda, we note that other Prov-HIDS in the literature, including FRAPpuccino <ref type="bibr">[25]</ref> and PIDAS <ref type="bibr">[27]</ref>, utilize similar graph encoding mechanisms.</p><p>2) Abusing Distributional Graph Encoding: Graph embedding techniques that focus on summarizing the substructure distribution preserve the global graph structure at the expense of highlighting anomalous activity. Unlike the previous summarization approaches that weigh all substructures equally, techniques preserving the underlying distribution weigh each unique substructure according to its prevalence within N &#947; &#946; (G i ). Prov-HIDS that utilize these encoding techniques assume that the distribution of substructures in a malicious graph differs significantly from that in a benign graph. However, the distribution of the substructures in a malicious graph is (at least in part) under the attacker's control. Further, to account for the fact that a provenance graph grows continuously over time, these Prov-HIDS must normalize substructure distributions to compare past (i.e., training data) and present embeddings (i.e., test data). Thus, we predict that there will always exist a set of substructures that can transform an attack graph into any embedding within the L-dimensional space.</p><p>In our second mimicry gadget, the attacker profiles the target system to identify the relative frequency of each observed substructure associated with benign activity. They then select a batch of benign substructures that preserves this distribution and replicate the system activities that produce those substructures. The batch size is again parameterizable; in this gadget, this parameter must be set such that the normalized representation of any malicious substructures accounts for a vanishingly small proportion of the embedding. This gadget implementation also considers Prov-HIDS that monitor temporal features of the graph by selecting substructures that are consistent with the distribution of the activities at the time of the initial compromise and updating its representation of the substructure distributions as the graph evolves. We predict that, given the knowledge of a benign substructure distribution and a transformation of sufficient size, this gadget will consistently force misclassification against distributional Prov-HIDS.</p><p>We return to our exemplar Prov-HIDS, Unicorn, which represents the underlying substructure distribution in a histogram that captures the normalized frequency of each unique substructure within N &#947; &#946; (G i ). This histogram is embedded to create an L-dimensional vector such that embeddings that are close together share similar substructure frequencies. However, by adding benign substructures in a manner that mirrors the frequencies of an existing cluster, the attack graph can be moved closer to a benign cluster to the point that it falls within the decision boundary. This is because the malicious substructures in the attack graph's embedding, while easily identifiable by Unicorn in the original graph, will have a diminishing contribution to the classifier's decision as a result of normalization. While we will evaluate this mimicry gadget against Unicorn, Pagoda, and SIGL, we note that other Prov-HIDS in the literature, such as P-Gaussian <ref type="bibr">[26]</ref>, utilize similar graph summarization mechanisms.</p><p>3) Abusing Downsampled Graph Encoding: Thus far, our mimicry gadgets have called attention only to the risks of encoding the entire provenance graph when a portion of it is under the attacker's control. An alternate approach is to perform a downsampling procedure prior to graph embedding, which may improve the efficiency of training and generalizability of the model. It also stands to reason that a downsampled graph embedding may be more difficult to insert mimicry substructures because they must first bypass the downsampling function. Consider a Prov-HIDS that first passes the target graph into a downsampling function, i.e., DS(G i ) = G &#8242; i , before decomposing its substructures (N &#947; &#946; (G &#8242; i )). We observe an issue with such an approach; namely, that by making decisions about which subgraphs are relevant to the classification decision, DS(&#8226;) effectively replicates the functionality of the Prov-HIDS' core decision function, F &#948; (&#8226;). There is a disconnect between these two notions of anomaly -after all, one is defined over a graph while the other is defined within the embedding space. We predict that there must exist benign substructures that can bypass DS(&#8226;) while still affecting the attack's representation within the L-dimension space.</p><p>In our final mimicry gadget, the attacker first profiles the target system while monitoring the behavior of DS(&#8226;) on different observed sequences. They then select a batch of benign substructure sequences of parameterizable size that bypass the downsampling operation. As before, the batch size parameter is based on what is necessary to affect the final representation of the attack graph in the embedding space. We predict that, given the knowledge of the downsampling function and a sufficient transformation size, this gadget will consistently force misclassification against downsampling Prov-HIDS.</p><p>Our exemplar Prov-HIDS, ProvDetector, attempts to classify the full test graph by downsampling it to only the top K paths with the lowest regularity scores. Regularity scores are calculated by observing the frequencies of individual events in the system and then using a diffusion algorithm to aggregate these scores along a path. Subsequently, in the embedding space, ProvDetector uses the Euclidean distance between path vectors to build a clustering model. Unfortunately, because ProvDetector's clustering model only trains on the paths that have the lowest regularity scores, its notion of normality in the embedding space is distorted. In particular, if there exists at least one low-regularity path that occurs frequently enough in training to form a benign cluster, the attacker can inject copies of this path K (or fewer) times such that their actual attack behaviors are entirely removed from the embedding.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>VI. EVALUATION</head><p>We performed a number of experiments to evaluate the efficacy and efficiency of our evasion strategies. Our evaluation focuses on addressing the following research questions:</p><p>&#8226; How effective are our mimicry gadgets against the five state-of-the-art, exemplar Prov-HIDS, StreamSpot ( &#167;VI-D), Unicorn ( &#167;VI-E), ProvDetector ( &#167;VI-F), Pagoda ( &#167;VI-G), and a SIGL-like full graph autoencoder ( &#167;VI-H)?</p><p>&#8226; Are our mimicry gadgets interoperable and generally applicable to other detection mechanisms ( &#167;VI-I)? Relatedly, how much knowledge does the attacker need when using our gadgets to successfully evade detection ( &#167;VI-J)?</p><p>&#8226; Can the attacker practically deploy our mimicry gadgets in the real world? ( &#167;VI-K)</p><p>&#8226; How does our evasion strategies compare to previous, domain-general graph evasion techniques ( &#167;VI-L)?</p><p>&#8226; What is the runtime performance of our approach ( &#167;VI-M)?</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. Experimental Setup</head><p>All experiments were run on a modestly provisioned 20core Intel Xeon(R) server with 64GB of RAM and an NVIDIA GeForce GTX 1080 Ti. Our exemplar systems were implemented and configured as follows:</p><p>&#8226; StreamSpot. We use its open-source implementation <ref type="bibr">[22]</ref> with recommended parameters: depth factor K = 1, chunk size J = 50, and the embedding dimensionality L = 1, 000. Edges Added (Thousands)  &#8226; Unicorn. We use its open-source implementation <ref type="bibr">[49]</ref> with the best parameters in <ref type="bibr">[18]</ref>: K = 3, J = 50, and L = 2, 000.</p><p>At each time step, we stream 500 edges to the graph. &#8226; ProvDetector. While ProvDetector is closed-source, we reimplemented the system based on its description in the original paper <ref type="bibr">[19]</ref> and through extended dialogues with the authors. The authors recommended the following configuration: depth factor &#946; = 10, the dimensionality of path embedding L = 100, the number of paths to represent a graph &#954; = 20, and the sensitivity of classification N = 3.</p><p>Configurations of the other two exemplar systems, Pagoda and a SIGL-like full graph autoencoder, are provided in &#167;VI-G and &#167;VI-H, respectively, along with their descriptions.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. Datasets</head><p>We make use of two datasets, the StreamSpot dataset <ref type="bibr">[22]</ref> and DARPA Transparent Computing (TC) Engagement 3. The StreamSpot dataset, generated from SystemTap <ref type="bibr">[50]</ref>, was used in the original evaluations of StreamSpot and Unicorn. The dataset was generated in 2016 and contains one drive-bydownload attack scenario and five benign host activity scenarios (watching YouTube, browsing CNN, downloading files, checking emails, and playing a game). The attack describes a Firefox vulnerability in which a victim clicking on a malicious URL accidentally triggers a bug in Flash that enables the attacker to obtain root access. Each behavior was recorded 100 times, resulting in 600 provenance graphs. In our experiments, we exclusively trained on the browsing CNN scenario, which advantaged the classifier by allowing it to define tighter bounds around normality. When we evaluate the complexity of our graph transformations, we note that each benign graph in the dataset averages about 295K edges, while the attack graphs average about 28K edges. StreamSpot does not contain behaviors representative of real-world systems as all of the benign graphs contain system events from a single activity. More importantly, attack graphs contain only attack behavior.</p><p>DARPA's Transparent Computing program released multiple attack engagement datasets that describe a professional red team's attempts to penetrate a small network of hosts. We evaluate our evasion tactics on the Engagement 3 data that was generated by the THEIA team, which includes a single provenance graph broken up into 25 different time periods. While the dataset includes other smaller unsuccessful intrusion attempts, we make use of the successful and more complex Drakon intrusion that was described in &#167;II. When evaluating the complexity of our graph transformations, we note that the total activity in this dataset is approximately 4.8M edges. THEIA represents more realistic system activity and features attack behavior occurring alongside normal system activity.  </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C. Gadget Implementation and Evasion Procedure</head><p>Each of our mimicry gadgets was implemented in Python. Each gadget takes as input (1) the attack graph to be modified, (2) a provenance graph of benign activity, (3) the number of edges/substructures to add, and (4) a point of insertion. We follow the steps below to create an evasion graph:</p><p>1) Load the pre-attack graph from our experimental datasets. The pre-attack graph describes the state of the victim's system immediately before the attacker infiltrates the system. We create the pre-attack graph from the original attack graph by identifying the first system process (chronologically) in the attack footprint according to the ground truth and then removing all system activity (including both malicious and benign background activity) after this process.</p><p>2) Load benign graphs used to train the Prov-HIDS.</p><p>3) Find the insertion point corresponding to the set of edges within the attack graph that describes the attacker connecting to and gaining control over a process on the victim's machine. For example, in Fig. <ref type="figure">1</ref>, the point of insertion is the edges associated with the green/red Firefox process. 4) Inject benign substructures into the attack graph ( &#167;V). For StreamSpot, we deconstruct a benign graph from the training dataset into its K-hop substructures and then add all substructures to the attack graph multiple times. For Unicorn, we calculate the normalized count for each K-hop substructure within a benign graph and then add to the attack graph the set of the K-hop substructures by their normalized counts multiple times. For ProvDetector, we generate a frequency database (where ProvDetector stores the frequencies of different edges, see Fig. <ref type="figure">III-C</ref>) from a benign graph. We then extract all paths from the graph and identify the most abnormal path based on the frequency database. We sample another benign graph if the most abnormal path has a regularity score less than the attack paths. <ref type="foot">6</ref> We introduce the path N times into the attack graph. We describe the procedures to inject benign substructures for Pagoda and the graph autoencoder in &#167;VI-G and &#167;VI-H, respectively. Note that in our experiments, we evaluate the number of edges/substructures to be added to successfully evade detection successfully. Further, for each of our attacks, to ensure that the additional innocuous behavior does not get associated with any malicious edges, we (as the evasive attacker) fork the initial compromised process up to a depth factor &#946; to disassociate the mimicry behavior. 5) Insert the attack payload's substructures to the pre-attack graph. The attack substructures contain all edges that an attacker-controlled process can reach after the attacker had infiltrated the system. Finally, the resulting evasion graph is evaluated against the Prov-HIDS.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D. Evading StreamSpot</head><p>We make use of our first mimicry gadget, abusing unweighted graph encoding ( &#167;V-B1), to evade the StreamSpot Prov-HIDS. Using this gadget, we iteratively add batches of benign substructures to the attack graph until misclassification occurs. We continue to add more substructures to ensure that each attack remains undetected after the initial false negative.</p><p>Our results are shown in Fig. <ref type="figure">5a</ref> and Fig. <ref type="figure">6a</ref> for the StreamSpot and DARPA datasets, respectively. The primary xaxis indicates the number of edges added, instead of substructures, to facilitate comparison across different Prov-HIDS. The secondary x-axis shows the edges added as as a percentage of the (average) size of a benign graph in the dataset. The y-axis shows the cosine distance between an attack graph and the centroid C of the nearest cluster in the model. The purple line indicates the average decision boundary among all clusters in the model, providing a rough estimate of where misclassification occurs. Against the StreamSpot dataset, some of the attack graphs begin to evade detection after adding 250K edges, <ref type="foot">7</ref> and all of the attacks become undetectable after 300K edges. In the DARPA dataset, the attack evades detection after 80K edges. For both datasets, our evasion strategy had 100% success.</p><p>Remarks. As we can see, distance to a benign cluster reliably decreases as more benign substructures (edges) are added to the attack graph. At first glance, it may seem unreasonable to add hundreds of thousands of edges to the attack graph; surely, such an approach is far from convert. However, in reality, this transformation simply scales the attack graph to the same order of complexity as the benign graph samples. In the StreamSpot dataset, the benign graph averaged 295K edges while the attack graphs averaged 28K edges. The necessary transformation added at least 250K edges, 85% of the benign graph size. This rules out the possibility of using a trivial event counting mechanism to detect this evasion attempt. The high cost of evasion on the StreamSpot dataset (250K, or 85%) as compared to DARPA (80K, or 1.5%) may be the result of lack of diversity of benign activity in the former; while StreamSpot's training data describes a single browsing behavior, DARPA describes system-wide activities. We further attribute the high evasion cost for the StreamSpot dataset to the relative na&#239;vet&#233; of the first mimicry gadget. In &#167;VI-I, we demonstrate that our second mimicry gadget can evade the StreamSpot IDS at a much lower cost (40K edges).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>E. Evading Unicorn</head><p>Against Unicorn, we make use of our second mimicry gadget, abusing distributional graph encoding ( &#167;V-B2). Recall that the Unicorn Prov-HIDS encodes the temporal properties of a provenance graph, re-embedding the graph to train its model after every t new edges. To account for this, for each batch of t edges in the graph that contains an attack edge, we parameterize the gadget to select t edges whose substructures match the distribution of the unmodified training graph.</p><p>Our results are shown in Fig. <ref type="figure">5b</ref> and Fig. <ref type="figure">6b</ref> for the StreamSpot and DARPA datasets, respectively. The y-axis indicates the Jaccardian distance, Unicorn's distance function. Note also the change in scale of the x-axis. Against the StreamSpot dataset, we successfully evade Unicorn in as few as 40K edges, or 13.6% of the average size of a benign StreamSpot graph. Against the DARPA data, we again achieve evasion in 80K edges, 1.6% of the size of the benign graph. Our evasion strategy evaded Unicorn 100% of the time.</p><p>Remarks. When comparing the performance of our first two exemplar systems on the StreamSpot dataset, the more sophisticated Unicorn seems to perform more poorly -350K edges required to evade the StreamSpot Prov-HIDS, as compared to just 40K edges to evade the Unicorn Prov-HIDS. Initially, we attributed this to the fact that the StreamSpot authors had the opportunity to finely tune their chosen parameters against this dataset. However, after testing the distributional gadget against the StreamSpot Prov-HIDS (see &#167;VI-I), we discover that it is also able to evade the StreamSpot IDS at the lower cost of 40K edges. This indicates that selecting substructures distributionally, as opposed to chronologically, is simply a better approach to attacking StreamSpot's graph encoding technique. In contrast, against the DARPA dataset we evade the two Prov-HIDS with the same transformation of 80K edges. The lower overall attack cost might reflect the increased complexity of system-wide activities in the DARPA data, leading to looser bounds around normal behavior clusters. Conversely, the similar performance of the two gadgets indicates that the chronological ordering of events in the dataset happens to better reflect the distribution of events.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>F. Evading ProvDetector</head><p>Against ProvDetector, we make use of our third mimicry gadget, abusing downsampled graph encoding ( &#167;V-B3). Recall that this mimicry gadget exploits the disconnect between the metrics used for graph summarization and the metrics used for classification; in both datasets, we indeed identified a benign path that exhibited lower regularity than all attack paths. As a result, our implementation repeatedly injects the substructures associated with this low-regularity benign path. ProvDetector classifies a graph as benign so long as more than K -N of its substructures fall within a known cluster, where recommended parameterization of K is 20 and N is 3. In our experiment, we opt to insert 14 to 20 instances of the low-regularity paths.</p><p>The results are shown in Fig. <ref type="figure">5c</ref> and Fig. <ref type="figure">6c</ref>. Against the StreamSpot dataset, inserting 9K edges was sufficient to achieve a 100% success rate. These 9K edges translate to 18 of the low-regularity benign path, or 3% of the average size of the benign graph. This is expected, as the sensitivity parameter used for ProvDetector (N ) is set to 3, meaning that 18 substructures are needed to fall within a cluster. Against the DARPA dataset, misclassification first occurs at 10K edges (0.2% of the benign graph), a difference of 1K edges between datasets. The reason for this is that the low-regularity benign path could be immediately inserted in the StreamSpot attack graph (it is just another Firefox activity), while the lowregularity benign path in the DARPA data is not related to the attack graph. As a result, our gadget had to first perform a preliminary transformation of roughly 1K edges to create a graft point for the low-regularity benign path that did not itself create an additional suspicious low-regularity path. The evasion strategy achieved 100% success against ProvDetector.</p><p>Remarks. Aside from the extra 1K transformation in the DARPA dataset, the cost of attacking ProvDetector was identical between datasets. This is intuitive, because ProvDetector embeds a fixed number of fixed-length paths, placing a low ceiling on the cost of attacking the system as compared to StreamSpot and Unicorn. In fact, even against larger provenance graphs describing months or years of activity, we predict that the cost of evading ProvDetector will remain constant due to this down-sampling. Conversely, StreamSpot and Unicorn place less weight on any single substructure within their graphs, requiring a larger transformation to achieve evasion.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>G. Evading Pagoda</head><p>Pagoda <ref type="bibr">[20]</ref> is a path-based, whole-graph Prov-HIDS. Similar to ProvDetector, it makes use of an event frequency database to assign a rarity score to individual edges. If an edge in the path is not part of the frequency database, it is assigned a score of one; otherwise, the edge receives a score of zero.</p><p>Pagoda flags anomalous graphs in two ways, both based on path anomaly scores. A path's anomaly score is the average of all its edges' rarity scores. At the path level, if any path in the graph has an anomaly score greater than a configurable pathlevel threshold, the graph is considered to be anomalous. At the graph level, Pagoda additionally assigns a graph anomaly score to the entire graph, based on a weighted summation of all paths' anomaly scores. A path's weight is its normalized path length based on the lengths of all paths in the graph. Pagoda considers a graph to be abnormal, if its graph anomaly score is greater than a predetermined graph-level threshold.</p><p>The original Pagoda source code is publicly-available; however, after sustained correspondence with the authors, we ultimately decided to re-implement the system. Pagoda is built on top of the 2006 Provenance-Aware Storage System (PASS) <ref type="bibr">[51]</ref>, the first provenance-aware operating system, with deep integration into PASS' userspace utilities that were last updated in 2010. After several attempts, we were unable to recreate a build environment in which these tools could run. Instead, we referenced the author's original code and pseudocode from the paper <ref type="bibr">[20]</ref> to reproduce the system. We configured the system as follows: If an event in the training dataset appears more than twice, we add the event to the frequency database. The path-level threshold is set to be the highest anomaly score among all the paths in the training dataset. Similarly, the graph-level threshold is the highest anomaly score of all the graphs in the training dataset. Within a graph, a path starts from a root node and ends at a leaf node.</p><p>To evade Pagoda, we utilized the abusing unweighted graph encoding ( &#167;V-B1) and abusing distributional graph encoding (( &#167;V-B2) mimicry gadgets. Because Pagoda normalizes each path's length to compare graphs of different sizes, an attacker could insert long but benign paths to reduce the weights of shorter attack paths, thus lowering the graph anomaly score of the attack graph. In our experiment, we used the training dataset to identify long benign paths with low anomalous scores to lower the graph anomaly score. For each attack path, the attacker could insert edges from the frequency database to decrease the path anomaly score of the attack path, preventing it from raising detection. Therefore, in our experiment, we inserted edges in the frequency database into attack paths to lower their anomaly scores. The results are shown in Fig. <ref type="figure">7a</ref>. Our re-implementation can correctly classify StreamSpot attack graphs against a non-evasive attacker but is susceptible to our evasion strategies 100% of the time.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>H. Evading a Full Graph Autoencoder (FGA)</head><p>SIGL <ref type="bibr">[21]</ref> is a Prov-HIDS that utilizes a graph autoencoder to alert security analysts to malicious software installations. SIGL learns by training a graph autoencoder using reconstruction losses on SIGs representing clean software installs. While SIGL is a Prov-HIDS, its focus on software installation means that it only considers small subgraphs of targeted process behaviors. It stands to reason that performing anomaly detection over these smaller, well-formed procedures is a significantly different graph learning task than highly variable system-wide anomaly detection. Evidence for this claim can be found in <ref type="bibr">[21]</ref> where larger SIGs (i.e., more variations) incurred the highest reconstruction losses. To more fairly compare other Prov-HIDS explored in this paper, we implement a full graph autoencoder (FGA) to detect intrusion, for mimicry analysis.</p><p>Graph autoencoders are machine learning models that consist of two separate neural networks, an encoder and a decoder. For an input graph, the encoder produces a D-dimensional vector; the decoder then takes as input the D-dimensional vector and tries to reconstruct the original input graph. By minimizing the difference, also known as the reconstruction loss, between the input and reconstructed graph, the autoencoder can learn good representations of graphs within the training distribution. As SIGL is a proprietary closed-source system, we implemented an FGA using PyTorch Geometric <ref type="bibr">[52]</ref> to learn normal behavior from benign provenance graphs through reconstruction loss measurements. Our FGA uses a graph convolutional network (GCN) <ref type="bibr">[53]</ref> to embed each node and an inner product decoder <ref type="bibr">[54]</ref> to reconstruct the node's neighborhood. We represent a graph's embedding as the average of the node embeddings from all the nodes within the graph. At test time, a graph is labeled as malicious if the distance from its embedding to the nearest training graph is greater than some predefined threshold. We configured the threshold in FGA using a validation set, which is set to be the tightest bound we can find to correctly classify all validation graphs as benign. We see from Fig. <ref type="figure">7b</ref> that FGA can perfectly classify attack graphs in the StreamSpot dataset.</p><p>To evade FGA, we utilized the second mimicry gadget, abusing distributional graph encoding ( &#167;V-B2), to match the distribution of node neighborhoods of an attack graph to be the same as that in benign provenance graphs. Because FGA uses a GCN to embed the input graph, each node is encoded in terms of its "ancestral" k-hop neighborhood. GCN uses message passing to aggregate feature vectors from a node's parents to generate the D-dimensional vector for the node. Adding the same "ancestral" k-hop neighborhood found in the training dataset to a given attack graph introduces nodes with the same embedding as nodes associated to benign activity. This allows the average embedding of all the nodes in the attack graph to be closer to that of a benign graph, thus successfully evading the Prov-HIDS, as we can see in Fig. <ref type="figure">7b</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>I. Gadget Composability Analysis</head><p>As discussed in &#167;V, because our mimicry gadgets target general design features of Prov-HIDS, they are interoperable with one another and can be deployed in concert to evade more complex detection systems. As a proxy for such a system, we now consider whether our evasion techniques can succeed when three of our exemplar Prov-HIDS (StreamSpot, Unicorn, and ProvDetector) are deployed as an ensemble model. To do so, we make use of the DARPA dataset. The Prov-HIDS are all configured identically to the prior experiments. For each test, we use the evasion strategy to add the number of edges that was first observed to cause misclassification of the target system. Based on these findings, we then test whether a composition of evasion strategies can be used to evade all three systems.</p><p>Our results are shown in Table <ref type="table">III</ref>. As expected, gadgets designed for one graph encoding strategy were not effective when tested against another. The one exception to this rule is the abusing distributional graph encoding gadget (Gadget 2), which also succeeded against Prov-HIDS that use unweighted graph encoding. We then attempted to use different compositions of gadgets to see if it was possible to simultaneously evade all Prov-HIDS. Because the Gadget 2 was already demonstrated to be sufficient to evade the StreamSpot Prov-HIDS, Gadget 1 was removed from consideration. We first applied Gadget 2 and then Gadget 3, but this was detected by StreamSpot and Unicorn, because the K paths added by Gadget 3 for ProvDetector created unexpected substructures in the Ldimensional embeddings. We then applied the transformations in the opposite order, first injecting K paths using Gadget 3 and then concealing any anomalous changes to the substructure distribution using Gadget 2. This composition of evasion strategies was sufficient to evade all three Prov-HIDS.</p><p>Remarks. This analysis highlights two important considerations regarding the deployability of our evasion attacks. First, the results indicate that we might be able to relax our assumptions of the attacker's knowledge of Prov-HIDS on the target system -if the attacker can create a generally applicable evasion transformation, it might be possible to simultaneously evade many detection mechanisms and many parameterizations of those mechanisms (which we evaluate in &#167;VI-J). Second, these results underscore the value of our approach as compared to domain-general methods of adversarial sample generation. Techniques for misleading machine learning classifiers abound (and are discussed at greater length in &#167;VI-L); however, the existence of an adversarial sample does not illuminate a general strategy for evasion, provide interoperability with attacks against related systems, or highlight the design flaws that led to its feasibility. Our approach satisfies all these requirements.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>J. Evasion Performance Under Incorrect Parameters</head><p>Setting the parameters in an intrusion detection system can often be unique to the deployment, to reflect the nature of system activity within that environment and the tolerance of the security analyst for false positives. To assess the practicality of our evasion strategy, we consider an attacker with imperfect knowledge of the intrusion detection system. To do so, we selected a key parameter for each of our three exemplar systems: StreamSpot's chunk size, Unicorn's sketch size, and ProvDetector's path length. We selected these parameters, because they play a roughly analogous role in each system. Using the StreamSpot dataset for training and testing, we then slowly increased and decreased each parameter's value until classification accuracy against the unperturbed test split began to degrade. We did not test parameters that would cause more severe degradation (e.g., 100% false positive rate) as such classifiers would be impractical to use. Finally, we re-tested the original evasion samples on each parameterization.  TPR and TNR denote the true positive and true negative rates of the model parameterization prior to evasion. The reference parameter value used in our prior experiments, and here (incorrectly) assumed by the attacker to be fixed, is shaded. Our evasion methodology continues to be effective even as the baseline performance of the model degrades.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Evasion Strategy StreamSpot Unicorn ProvDetector</head><p>Full Knowledge Limited Knowledge &#522; TABLE V: Live demonstration results for limited knowledge and full knowledge attack scenarios: 's mark successful evasion, and &#522;'s represent partial success (see details in &#167;VI-K).</p><p>Table <ref type="table">IV</ref> reports the results of those experiments, with the shaded parameter value denoting the original experimental setup that the attacker assumes (incorrectly) to be fixed. As we can see from the True Positive Rate (TPR) and True Negative Rate (TNR) columns, each parameter value was manipulated until it reached a clearly suboptimal value for the unperturbed test data. In spite of this, the adversarial samples we generated for a different parameterization continue to be effective. Our attack strategy generates each evasion graph by adding a set of benign substructures rather than individual edges to a given graph, meaning that individual perturbation steps are not strongly linked to parameter values. As a result, there is slack in each evasion attempt that allows for it to remain successful despite Prov-HIDS' parameter changes.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>K. Live Attack Demonstration</head><p>While we have demonstrated the ability to produce mimicry attacks in the feature space, previous work <ref type="bibr">[55]</ref> has noted that side effects can occur when one attempts to invert samples from the feature space to the problem space. In this section, we demonstrate that these strategies can be operationalized on a live system by an attacker. We first replicate an attack scenario similar to the StreamSpot dataset in which benign activity was generated by opening the Firefox browser and visiting youtube.com and cnn.com. This activity was used to train the classifier.</p><p>In the attack scenario, the victim clicks a malicious link that exploits a vulnerability in Firefox, causing a reverse shell to open and creating an attacker-controlled process. Before initiating the remainder of the attack, the attacker attempts to evade the Prov-HIDS by injecting innocuous behavior patterns.</p><p>These innocuous behaviors are elicited by the attacker using a simple Python script to visit legitimate websites. After eliciting these behaviors, the attacker then injects its payload behavior by using a JavaScript vulnerability to gain root privilege and extract sensitive information to a remote server. This attack sequence was used as test data. We simulated the victim's and the attacker's systems using an Ubuntu and Kali VM on Virtualbox, respectively. Metasploit was used to conduct the intrusion and privilege escalation.</p><p>Prior to the beginning of the attack, the attacker will use their knowledge of the victim system to both select innocuous behaviors to inject as well as create a surrogate model of the target system's Prov-HIDS for preliminary testing. We consider two viable methods of injecting innocuous behaviors: a Full Knowledge (FK) attack and a Limited Knowledge (LK) attack. In the FK scenario, the attacker can read directly from the system logs in the training data, allowing them to identify the websites visited by Firefox. In the LK scenario, the attacker can infer that Firefox is running but cannot directly access the logs to determine which websites were visited. Instead, the LK attacker browses popular websites on their own machine and inspects the log output to determine plausible low-level system call patterns. The attacker then visits these other websites (but not youtube.com and cnn.com) during the attack. These scenarios reflect different levels of ability to gather victim host information (T1592) <ref type="bibr">[41]</ref>, which is explained at length in &#167;IV.</p><p>Our results are summarized in Table V. In the FK scenario, the attacker is able to evade detection against our three exemplar systems. In the LK scenario, the attacker completely evades detection against StreamSpot and Unicorn. Against ProvDetector, an anomaly is not detected and the paths selected for embedding do not contain malicious behavior; however, some of the attacker's innocuous website visits are included in the top 20 most anomalous paths. As a result, we consider this to be a qualified success; because an alarm is not raised the anomalous paths appear to be legitimate it is unlikely that the attack would be detected.</p><p>The results of this experiment demonstrate that our attacker does not need a general solution to feature space inversion to launch a successful evasion attempt. Instead, they can use the adversarial sample generated by our methodology as a guide, and then approximate those behaviors on the target system by eliciting higher-level events such as page loads. Further, the results from the limited knowledge scenario demonstrate that this approach is potentially viable even with only coarsegrained knowledge of the target system.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>L. Comparison to Domain-General Attacks</head><p>The above results indicate that Prov-HIDS are broadly susceptible to evasion, but it is not yet clear whether our specialized attack strategies are necessary. We now consider the applicability of domain-general graph evasion strategies.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Domain-General Graph Evasion.</head><p>A survey of graph evasion methods is given in Table <ref type="table">VI</ref>, following the taxonomy presented by Sun et al. <ref type="bibr">[67]</ref>. The majority of graph evasion systems target node classifiers <ref type="bibr">[56,</ref><ref type="bibr">57,</ref><ref type="bibr">58,</ref><ref type="bibr">59,</ref><ref type="bibr">60,</ref><ref type="bibr">61,</ref><ref type="bibr">62,</ref><ref type="bibr">63</ref>   against graph neural networks; these approaches may work against SIGL <ref type="bibr">[21]</ref>, but not the seven other Prov-HIDS in Table I. Among the two remaining systems, the Targeted Noise Injection (TNI) <ref type="bibr">[66]</ref> "edge mirroring" technique is thematically similar to our methodology. However, it is designed for a bipartite graph classification task; provenance graphs are not bipartite and encode significantly more complex structures, leading us to believe that TNI would require significant modification to work on Prov-HIDS. Of the surveyed approaches, only Dai et al.'s reinforcement learning based RL-S2V <ref type="bibr">[24]</ref> appears immediately applicable to Prov-HIDS.</p><p>RL-S2V. The objective of RL-S2V is to learn a policy that can successfully modify any input drawn from the same distribution. Given a state s representing graph G with m -1 modifications, RL-S2V learns the expectations over the probabilities of possible edge additions on G. After m modifications, RL-S2V updates its parameters based on the response from the target classifier. RL-S2V cycles through millions of possible modifications to learn an optimal policy.</p><p>Experimental Setup. We attempt to apply RL-S2V to the Prov-HIDS evasion problem using a minimally modified ver-  sion of the authors' source <ref type="bibr">[68]</ref>. To advantage RL-S2V as best as we could, we tested against the StreamSpot Prov-HIDS, which evaluated samples much faster than the other systems, in the static graph classification setting. We also made use of the modified version of the relatively small StreamSpot dataset, training on all benign behaviors and testing against a single attack graph. While our original experiments used a subset of the benign behaviors for training ( &#167;VI-B), by including all behaviors during training, we made it easier for by increasing the variance among benign activity. RL-S2V is not designed for property graphs that carry edge attributes, so we down-sampled the StreamSpot dataset such that edges denoted attribute-free information flows. For example, any system call from a process to a file (e.g., write, writev, etc.) was mapped to an unlabeled edge between those entities.</p><p>In our initial experiments, we observed a halt in the training routine due to hitting a memory wall -as we scaled up RL-S2V to explore the very large graph transformations needed to evade Prov-HIDS, the algorithm's retention of past states became prohibitively costly. This trade-off between transformation size, past states, and memory cost is visualized in Fig. <ref type="figure">8</ref>. To explore state changes of 100, 000 edges, RL-S2V's default configuration of retaining 50, 000 past states requires 10, 000 GB of RAM. Because it is necessary to explore edge modifications of this size according to our own results, it was necessary to modify RL-S2V's state based on the of the transformation being explored. For transformation size, we used the analysis in Fig. <ref type="figure">8</ref> to determine the past state budget that could be supported by 64 GB of system RAM. Further, each configuration of RL-S2V was given seven days to train. As result of that, the number of training iterations varied based on the speed with which RL-S2V could complete a single iteration for a given transformation size. This information is summarized in Table <ref type="table">VII</ref>.</p><p>Experimental Results. Fig. <ref type="figure">9</ref> reports on RL-S2V's best evasion attempt at the conclusion of training. Although the cosine distance to the nearest cluster decreases nominally with larger transformations, RL-S2V is unable to efficiently learn a discernible pattern from the data and thus cannot successfully evade the StreamSpot Prov-HIDS. While evasion may eventually become possible with larger graph transformations or more training time, the prohibitive cost of training RL-S2V makes this far less practical than our approach. Similarly, adapting RL-S2V to consider additional perturbation types like nodes or attributes would vastly expand the search space, imposing even more training overhead. Following our experiments, we reached out to the RL-S2V authors to see if they could suggest an alternative configuration. They explained that the experiments conducted in <ref type="bibr">[24]</ref> considered graph transformations of </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Cosine Distance</head><p>Our Attack RL-S2V Fig. <ref type="figure">9</ref>: Performance between our attack technique and RL-S2V. A summary of notation is given in Fig. <ref type="figure">5</ref>. Briefly, the attack attempt must reach the purple dashed line to evade detection. The RL-S2V system was unable to successfully evade detection, w hile our strategy is successful above 125, 000 edges.  at most m = 1; thus, they found it unlikely that RL-S2V would succeed at our task.</p><p>Remarks. These results underscore the difficulties of applying domain-general evasion attacks to provenance graph classification. Due to their size, complexity, and rich property space, provenance graph classification is a fundamentally different task than many other graph classification challenges. Of course, owing to the widespread success of adversarial examples on graph models, we fully anticipate their use in future attacks against Prov-HIDS. However, blindly applying existing adversarial models to Prov-HIDS, even if successful, does not elucidate the structural weaknesses of the systems under test. Our work looks to identify the pitfalls in current Prov-HIDS designs to inspire further work in the area.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>M. Runtime Performance</head><p>Table VIII reports the time required to perform a single attempt to evade the StreamSpot Prov-HIDS on the StreamSpot dataset. Load the Pre-attack Graph and Load Benign Graphs denote the time required for the attacker to load and parse the initial attack graph and the benign training set, respectively. The initial attack graph describes how the attacker takes control of a process on the victim's system, but does not include the remainder of the attack. Find the Insertion Point returns the edge/node in the initial attack graph that represents the process under the attacker's control. Inject Benign Substructures corresponds to the injection of substructures, starting at the insertion point, that simulate benign activity. These substructures are sampled from the benign training set. These times are linearly dependent to the number of edges inserted. In this example, we inserted 300K edges into the attack graph. Insert the Attack Payload's Substructures is the final step in the evasion where the attacker conducts the rest of the attack. These steps are discussed in more detail in &#167;VI-C.</p><p>Compared to domain-general adversarial sample approaches, our attack is much more time and space efficient. Consider the previously reported evasion attempts by RL-S2V, shown in Table <ref type="table">VII</ref>. A single unsuccessful evasion attempt that is roughly the necessary transformation size, m = 100, 000, requires 16.67 minutes to generate and test. In contrast, our methodology is able to generate a sufficient evasion attempt in less than 2 seconds. While other (non-black box) adversarial sample tools may offer stronger performance than RL-S2V, this result demonstrates the efficiency of our technique relative to commodity off-the-shelf tools.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>VII. DISCUSSION</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. Applicability to Other Prov-HIDS</head><p>While we evaluate five exemplar Prov-HIDS, we briefly remark on the feasibility of our methods on other systems. FRAPpuccino <ref type="bibr">[25]</ref> and PIDAS <ref type="bibr">[27]</ref> both weigh events equally within an inspection window, i.e., using unweighted encoding ( &#167;V-B1). Thus, using our first gadget to introduce benign events/substructures to the inspection window will likely force misclassification. Regarding our attack on distributional encoding ( &#167;V-B2), P-Gaussian <ref type="bibr">[26]</ref> normalizes its graph-wide anomaly score across all paths in the graph. Therefore, injecting benign substructures will create more low-score paths, reduce the average score, and eventually force misclassification. We also suspect that either of our first two gadgets would frustrate attack reconstruction for Hercule's <ref type="bibr">[28]</ref> log correlation mechanism; this is because Hercule assumes that edges between malicious and benign communities of events are infrequent, but this assumption is confounded if the attacker injects a large number of seemingly benign substructures.</p><p>Finally, we note that our exploration of mimicry gadgets is not exhaustive; our general attack methodology suggests other attacks against Prov-HIDS. For example, path-based systems (e.g., <ref type="bibr">[19,</ref><ref type="bibr">20,</ref><ref type="bibr">26,</ref><ref type="bibr">27]</ref>) suffer from a common design flaw in which they cannot represent suspicious activity that occurs along branching causal paths. As a result, an adversary could transform their attack logic to distribute its payload across a set of cooperating processes, as suggested by De Gaspari et al.'s Naked Sun attack <ref type="bibr">[69]</ref>, to create more attack paths with lower anomaly scores. While we expect that such an evasion attempt would be successful against these systems, we pursue different approaches, as Naked Sun requires modifying the core attack semantics whereas our gadgets can be applied transparently.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. Threats to Validity</head><p>Most of our experiments assume that the attacker had access to system logs (i.e., training data). As explained in our threat model ( &#167;IV), accessing host information like logs is a common reconnaissance technique that is within the abilities of many intruders. Further, we showed in our live attack demonstration ( &#167;VI-K) that even limited coarse-grained knowledge about host activities, e.g., the presence of a certain process, will often be sufficient. Thus, privileged log access is not a strict requirement for our evasion methodology. Knowledge of the Prov-HIDS' decision threshold is also not required, since an attacker can conservatively estimate the sufficient transformation in exchange for a less efficient evasion attack.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C. Potential Mitigation Strategies</head><p>As seen in Table <ref type="table">I</ref>, early Prov-HIDS research has gravitated towards whole-graph classification. Systems classifying lowerlevel graph structures such as nodes, edges, and subgraphs may be robust to our evasion strategy. At such a granularity, the additional substructures added by the attacker would have a difficult time affecting the classification of the anomalous nodes within the attack graph. The detection of finer-grained behaviors would also bring the usage model of Prov-HIDS more in line with commercial endpoint detection products <ref type="bibr">[3]</ref>.</p><p>The inability for Prov-HIDS to account for mimicry attacks is surprising, given the tremendous promise of provenancebased causal analysis. We attribute these vulnerabilities to a disconnect between how provenance has been used in the auditing and detection literature. For system auditing, researchers have leveraged domain knowledge to dramatically improve the space efficiency and precision of provenance analysis. In contrast, at present, many of these Prov-HIDS leverage "out of the box" graph learning solutions that do not account for the unique constraints of system intrusion scenarios. For wholegraph classification systems to become more resilient, security researchers may need to develop bespoke solutions that better leverage the properties of provenance graphs. For example, one path forward might be to integrate into intrusion detection the notions of root cause and impact analysis, which currently are not reflected in state-of-the-art methods of graph learning.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>VIII. RELATED WORK</head><p>Intrusion detection is among the canonical challenges of computer security. At the host layer, host intrusion detection systems (HIDS) can be classified into three broad categories: signature-based (e.g., antivirus <ref type="bibr">[70,</ref><ref type="bibr">71,</ref><ref type="bibr">72]</ref>), rule-based (e.g., MITRE ATT&amp;CK <ref type="bibr">[39]</ref>), and anomaly-based. While signaturebased approaches scan data on the disk for evidence of malware, rule-and anomaly-based systems both examine behavioral activity on the system for evidence of intrusion.</p><p>Our focus is on anomaly-based HIDS, which in addition to system calls <ref type="bibr">[11,</ref><ref type="bibr">13,</ref><ref type="bibr">15,</ref><ref type="bibr">73,</ref><ref type="bibr">74,</ref><ref type="bibr">75,</ref><ref type="bibr">76,</ref><ref type="bibr">77,</ref><ref type="bibr">78]</ref> have also analyzed various host context <ref type="bibr">[77,</ref><ref type="bibr">79,</ref><ref type="bibr">80]</ref>, including call stack information <ref type="bibr">[81]</ref>, argument dataflows <ref type="bibr">[13]</ref>, and process configuration and environment <ref type="bibr">[82]</ref>. Myriad techniques have been proposed for syscall anomaly detection based on policy specification <ref type="bibr">[83,</ref><ref type="bibr">84]</ref>, sequence learning <ref type="bibr">[11,</ref><ref type="bibr">15,</ref><ref type="bibr">85]</ref>, rule induction <ref type="bibr">[73]</ref>, finite state automaton <ref type="bibr">[76]</ref>, and hidden Markov models <ref type="bibr">[86]</ref>. Other work considers additional factors like the right length for syscall sequences <ref type="bibr">[74,</ref><ref type="bibr">77]</ref>, ensemble and randomized classifiers <ref type="bibr">[75,</ref><ref type="bibr">87,</ref><ref type="bibr">88]</ref>, false positive reduction <ref type="bibr">[89]</ref>, multi-log analysis <ref type="bibr">[90]</ref>, and alert correlation <ref type="bibr">[78,</ref><ref type="bibr">91,</ref><ref type="bibr">92]</ref>.</p><p>The skepticism about HIDS' real-world efficacy has existed for nearly as long as the existence of HIDS themselves. One early concern noted that the length of learned sequences in syscall-based detectors was arbitrarily small and set through anecdotal testing <ref type="bibr">[12]</ref>. Wagner and Soto's groundbreaking work on mimicry attacks operationalized this fear, demonstrating methods for malware to insert no-op events to avoid detection. Both Wagner and Soto <ref type="bibr">[14]</ref> and Tan et al. <ref type="bibr">[93]</ref> employ this method to subvert Forrest et al.'s behavior-based IDS <ref type="bibr">[11,</ref><ref type="bibr">15]</ref>. Later efforts semi-automated the process of mimicry attack generation through static binary analysis <ref type="bibr">[16]</ref>.</p><p>System auditing is a topic of resurgent interest in computer security due to the application of data provenance concepts to audit logs. Recent work has presented threat detection systems based on provenance graph analysis. In addition to the graph learning systems presented in Table <ref type="table">I</ref>, we note also that a number of Prov-HIDS make use of heuristic-based detection, including Holmes <ref type="bibr">[31]</ref>, NoDoze <ref type="bibr">[30]</ref> RapSheet <ref type="bibr">[94]</ref>, and Poirot <ref type="bibr">[95]</ref>. Reasoning about evasion vulnerabilities in such systems is more difficult due to their heuristic nature; however, while heuristic detectors cannot be evaded by adding additional events, they are prone to high false positive rates and suffer from threat alert fatigue problems <ref type="bibr">[5,</ref><ref type="bibr">96]</ref>. This can cause detected attacks to go uninvestigated <ref type="bibr">[2]</ref>, as was the case in the 2013 Target data breach <ref type="bibr">[97]</ref>. Thus, it is especially important for evasion vulnerabilities in heuristic Prov-HIDS to be evaluated in the context of organization-scale datasets, which is beyond of the scope of this work.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>IX. CONCLUSION</head><p>We demonstrate the feasibility of mimicry attacks on provenance graph host intrusion detection systems based on analysis of common design features. Our experimental results show that our evasion strategies are practical and that successful evasion is consistently possible. We open-source our code and data to serve as a benchmark for future work in this field.   IX: Statistical differences between benign and evasion graphs. The degree assortativity coefficient is the tendency of nodes with similar degrees to connect. The edge density is the total number of edges over all edges possible. The average degree is the number of edges over the number of nodes.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>APPENDIX A COVERTNESS AGAINST STATISTICAL TESTS</head><p>To successfully evade the exemplar systems, our evasion strategy requires transformations of tens to hundreds of thousands of edges. Doing so raises the question of whether our methodology could be detected through the use of a trivial statistical monitor. Fig. <ref type="figure">10</ref> reports the events per second that occur across all benign logs in the StreamSpot dataset, as compared to the events per second of a successful evasion attempt. The early spikes in the attack line (blue) correspond to the events in the Load the Pre-attack Graph step ( &#167;VI-C), the relatively flat portion corresponds to our insertion of benign substructures, and finally the more variable portion to the right corresponds to the injection of the attack payload's substructures. If we compare the blue attack line to the green shaded areas, which represent the maximum and minimum observed events per second in the benign logs, attack behaviors never extend beyond the bounds of expected normal activity in this dataset. While the flattened portion of the line does not appear naturalistic, the attacker controls these insertion points and could apply traffic shaping measures to create a more realistic curve. Larger and more diverse datasets, such as the DARPA Transparent Computing, are even noisier and therefore more permissive to the adversary.</p><p>We also ran several statistical test between the evasion graph and benign graphs for signs of abnormality, which we report in Table <ref type="table">IX</ref>. Both the benign and evasion graphs have similar statistical properties. There is a negligible difference in the number of nodes and edges. Similarly, the degree assortativity coefficient (the tendency of similar nodes to connect), edge density (the number of edges over all edges possible), and the average degree between both sets are related. These findings reinforce the observation, from Fig. <ref type="figure">5</ref> and Fig. <ref type="figure">6</ref>, that our evasion methodology appeared to be making the attack behavior more consistent with the statistical properties of the average benign graph.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="3" xml:id="foot_0"><p>We slightly abuse the notation here for clarity, since in our prior definition, N &#947; &#946; (&#8226;) takes a graph G i as a parameter, not an individual vertex v i j .</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="5" xml:id="foot_1"><p>We note that this approach is heuristic, but in theory the attacker could solve a system of linear equations to determine the minimally sufficient substructure set required to force misclassification. We opt for the heuristic approach, because it is computationally less complex and does not assume that the attacker has perfect knowledge of the Prov-HIDS.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="6" xml:id="foot_2"><p>We assume the ability to estimate each path's regularity score by running the attack locally and using the frequency database to calculate the score.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="7" xml:id="foot_3"><p>The careful reader might also notice that a few successful evasions in Fig.5aare above the purple line. This is because some cluster boundaries were more permissive than the average boundary.</p></note>
		</body>
		</text>
</TEI>
