<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Temporal Attack Detection in Multimodal Cyber-Physical Systems with Sticky HDP-HMM</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Andrew E. Hong</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Peter P. Malinovsky</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Suresh Damodaran</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>The MITRE Corporation</institution>
          ,
          <addr-line>202 Burlington Road, Bedford, MA 01730-1420</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>The MITRE Corporation</institution>
          ,
          <addr-line>7596 Colshire Drive, McLean, VA 22102</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Modern and legacy cyber-physical systems produce logs of operational behavior from sensors to network trafic; analyzing these heterogeneous logs to consistently identify attack signals is a dificult problem. In this work, we propose a flexible temporal non-parametric Bayesian framework for identifying these attacks based on sticky Hierarchical Dirichlet Process Hidden Markov Model (sHDP-HMM). The advantage of this approach is that it does not require detailed information on the system architecture, and it works for systems with unknown multimodal behavior, yielding interpretable inference. We demonstrate the eficacy of this framework for accurate identification of attacks from cyber and physical attack vectors on two diferent CPS: an avionics testbed and a consumer robot.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;cyber-physical systems</kwd>
        <kwd>cybersecurity</kwd>
        <kwd>machine learning</kwd>
        <kwd>Bayesian nonparametrics</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Physical attacks form an important category of attacks on a cyber-physical system (CPS),
for which the controller software manages the operations of a physical process using
sensors and actuators [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Examples of CPSs include critical infrastructure components
such as power plants and gas pipelines; vehicles on land, air, water, and space; building
systems such as elevators; medical devices; and robots. However, many CPSs also
utilize Internet of Things (IoT) devices, introducing additional vulnerabilities as well.
Actors, from fraudsters to nation state actors, are conducting cyber attacks on CPSs
with increased frequency and sophistication, resulting in substantial financial losses and,
at times, the loss of life [
        <xref ref-type="bibr" rid="ref2 ref3">2, 3</xref>
        ].
      </p>
      <p>
        Ruf et al. [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] refined the definition of anomaly provided by Hawkins [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] as “an
observation that deviates considerably from some concept of normalcy.” An attack on
a CPS may be detected as an anomaly reflected in the logs from the system, sensors,
actuators, or their interconnections. The automation of attack detection in CPSs is
a task with many challenges. Damodaran and Rowe show that for any algorithm or
anomaly detection approach, there is an inherent limitation in which certain adversarial
activities are fundamentally undetectable [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. Further, irrespective of whether the normal
operational behavior of a CPS is correctly and completely documented at design time,
the operational behavior of the CPS may deviate after its deployment or be modified
through lifecycle changes. Because many CPSs are systems of systems, composed of
other CPSs, having definite and total knowledge of what “the concept of normalcy” from
such deployed CPSs is frequently absent in practice.
      </p>
      <p>
        To address this dificulty, we propose a machine learning approach that will learn
this “concept of normalcy” from operational data. Because the methods and efects
of adversaries are constantly evolving, the approach is unsupervised and is not fit to
historical instances of attacks. Several unsupervised approaches to attack detection have
been proposed previously [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. However, we have identified through this research that
many applications may require historical recordings of baseline behavior for making
comparisons.
      </p>
      <p>
        Most CPSs exhibit distinct operational behavior at diferent points in time that we
refer to as modes. Whether an event is anomalous may depend entirely on the context
provided by the mode of the system. For example, an aircraft may have the modes of
take-of, cruising, and landing, and an action such as lowering the landing gear may
be an anomaly while cruising but not while landing. The unknown of the system’s
mode and the dependency of the detection to these modes have motivated the approach
proposed in this work. This work addresses the central challenge for attack detection
where the system’s current mode, number of total modes, and number of attacks are all
unknown. In comparison, frameworks, such as finite state space filters, that presuppose
this knowledge produce inaccurate results when these inputs are misspecified, see [
        <xref ref-type="bibr" rid="ref8 ref9">8, 9</xref>
        ].
      </p>
      <p>
        Another motivating problem for this work is the need for flexible solutions that
assimilate many heterogeneous forms of data streams. The time-series data recorded by
CPSs may contain variables that are interval, e.g., location; ratio, e.g., altitude; ordinal,
e.g., floor numbers; or nominal, e.g., commands [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. Often in practice, anomalies are
localized and require the examination of combinations of data streams to correctly identify
them.
      </p>
      <p>
        The primary goal of the attack detection algorithm is to segment the periods of attack
from periods of normal behavior, by accurately determining the beginning and the end
of each attack present [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. This paper presents the modeling framework and inference
algorithm to identify attacks in an unsupervised manner and demonstrates its eficacy on
two types of systems: an avionics testbed and a consumer robot.
      </p>
      <sec id="sec-1-1">
        <title>1.1. Contributions</title>
        <p>Our contributions through this work are the following. First, we present a novel sticky
Hierarchical Dirichlet Process Hidden Markov Model (sHDP-HMM) based framework
and the associated inference algorithm for attack detection that is capable of detecting
attacks reflected in multimodal and multivariate operational data of mixed continuous
and categorical type.</p>
        <p>
          Second, we evaluate this framework over experimental physical and cyber attacks
conducted on two operational systems using a novel set of metrics. First, we analyzed
MIL-STD-1553 bus logs from an avionics testbed subject to a variety of attacks [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ].
Second, we performed sensor and actuator attacks on a Roomba Create2 robot and
evaluated the model’s eficacy in identifying these events [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ]. Our results from these
evaluations are encouraging, and we are able to detect several attacks with limited false
positives.
        </p>
        <p>The rest of the sections are as follows. The next section discusses related work.
Section 3 contains our sHDP-HMM framework for attack detection, followed by Section 4
which defines how temporal attack detection sequences are evaluated. Section 5 discusses
the experiments with the avionics testbed, and Section 6 discusses the experiments with
a consumer robot. Finally, Section 7 concludes this paper and discusses future work.</p>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>2. Related Work</title>
      <p>
        The problem of anomaly detection in CPS under adversarial conditions has seen prolific
research contributions as recent surveys indicate [
        <xref ref-type="bibr" rid="ref1 ref3">1, 14, 3</xref>
        ]. Machine learning techniques
have been widely applied to the general problem of anomaly detection, and to the specific
problem of attack detection. Neural networks have been applied to anomaly detection in
[15, 16]. Bulusu et al. surveyed applications of deep learning for anomaly detection [17].
Ruf et al. provided a unified review of deep and shallow learning for anomaly detection
[
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. The earliest published use of Hidden Markov Model (HMM) for intrusion detection
was by Gao et al. in 2002 [18]. A more recent application of HMMs to anomaly detection
for robotic actions was performed by Altan and Sariel [19]. Research into the problem
of the lack of identifiability for the number of latent states in HMMs was conducted by
[20, 21].
      </p>
      <p>Teh et al. introduced the Hierarchical Dirichlet Process Hidden Markov Model
(HDPHMM) in [22]. Linderman et al. applied the HDP-HMM approach to study neural activity
in rodents [23]. Blei et al. applied the HDP-HMM to application of topic modeling [24].
Fox et. al. observed that the original HDP-HMM formulation lacked stability for the
latent state and introduced spurious transitions. The authors proposed remedying this
problem through the introduction of an explicit self-transition parameter  , formulating
the sticky HDP-HMM (sHDP-HMM) model [25]. The sHDP-HMM was applied by Wu
et al. to the application of monitoring in robotics [26].</p>
      <p>More recently, the sHDP-HMM model has been applied to attack detection in avionics
safety by Li et al. [27]. In their application, the authors analyze Automatic Dependent
Surveillance - Broadcast (ADS-B) data with features such as longitude, latitude, altitude,
and velocity and contrast latent state sequences against historical normal sequences
to identify attacks. Our analysis also uses the sHDP-HMM approach, though we also
incorporate continuous variable values and symbolic values from the captured system
logs. Further, in contrast to their work, wherein the authors demonstrate the eficacy of
attack detection using directly inserted anomalies into the operational logs, anomalies
used to evaluate the methods in this work are captured by sensors in physical and
communications layers.</p>
      <p>
        Feedback control modeling of the physical dynamics of CPS has previously been
considered in [
        <xref ref-type="bibr" rid="ref1">28, 1</xref>
        ]; in particular, the authors consider the optimal stopping problem of
hypothesis testing with minimal samples [29]. For these linear time invariant systems, the
authors in [
        <xref ref-type="bibr" rid="ref8">30, 8</xref>
        ] treat the estimation of attack vectors as sparse recovery problems. The
usage of log information for feature training of classifiers for attacks is well accepted [ 31].
In the context of avionics, Stan et al. demonstrated the utility log messages recorded on
the MIL-STD-1553 standard conformant system bus in detecting adversarial behavior
[32].
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. An sHDP-HMM Framework for Attack Detection</title>
      <sec id="sec-3-1">
        <title>3.1. Convention &amp; Notation</title>
        <p>In this work, the notation  | is used to describe the distribution of the quantity 
conditioned on or given a parameter  ; if  is the data,  | describes how the data is
being generated given a set of parameters describing the observation process. In Bayesian
hiearchical modeling,  itself is considered a random quantity and in a hierarchical fashion
there maybe a model describing its realization from a population  | governed by the
parameter  . Wherein the quantity P( | ) is referenced, it is the density function of the
distribution  | .</p>
        <p>For a random time series,   refers to the random series at the point in time  , whereas
  : refers to the entire collection between and including the points  and  and  − refers
to the entire collection (from times 1 to  ) excluding the point at time  . The superscript
 in  ( ) refers to diferent realizations or replications of   , identical in distribution.</p>
        <p>In this work, the notion of a state is referenced, which is typically indexed over  .  ,
refers to the transition probability from  to  and  , · refers to the array of transition
probabilities from state  (summing to one) and  ·, refers to the array of transition
probabilities from state  (not necessarily summing to one). In this work,   refers to the
random state at time  and  denotes the specific state, for instance {  =  } is the event
that the system at time  is in state  .</p>
      </sec>
      <sec id="sec-3-2">
        <title>3.2. Description</title>
        <p>The operational behavior of a CPS may exhibit time varying modes. Our framework
described in this section models operational behavior as latent states in a Hidden Markov
model (HMM). The interest of this analysis is the identification of abnormal transitions
between these latent states and potential identification of emergent anomalous behavior
or new latent states during attack events. The latent states in normal operations may
correspond to physical operational modes, but further research is needed to understand
the nature of such correspondence. We hypothesize that under attack, the system may
visit a non-finite number of novel latent states indicating anomalies. Figure 1 shows
the transformation of a transition matrix of latent states under attacks in the avionics
testbed described in Section 5.</p>
        <p>We utilize the first order HMM model to identify these transitions between latent
states. Because of the lack of identifiability of the number of latent states, we adopt the




∞
∞

 
 
(a) State transition probability matrix(b) State transition probability matrix
for normal operation
under attack
latent state of the system at time  , which we label as   and consequently assume that
the data is generated according to a member of a collection Θ -    , we perform Bayesian
inference to partition or cluster the data and estimate parameters.</p>
        <p>We briefly review now the sHDP-HMM formulation by Fox et al. [ 25]. The HDP-HMM
contains a global Dirichlet process (DP) 
(
) where  is a concentration parameter
and</p>
        <p>is a base measure. With  , the GEM (Grifiths, Engen, and McCloskey) model
may be described by the following stick-breaking procedure [33],
 ′ ′ | ∼ Beta(1,  )
  =  ′ ∏︁ (1 −  ′ )
&lt;
(1)
(2)</p>
        <sec id="sec-3-2-1">
          <title>Alongside this sequence</title>
          <p>= {  },   may be drawn according to a base measure 
over Θ and this global DP prior may be defined as  = ∑︀   
   . The individual rows of
the transition matrix between the latent states Π = [ , ] have local DP priors  (,  )
where  allows for shared pooling of information.</p>
          <p>The prior distribution for the transition probability to the next latent state given that
the system is in the current state   −1 is:</p>
        </sec>
        <sec id="sec-3-2-2">
          <title>Global Dirichlet</title>
          <p>Process Prior:
Transition Matrix Prior:
Latent State Transition:
Configuration Transition Prior:
 |</p>
          <p>, ·
  |  −1
  |  −1,   −1,    −1
∼ GEM( )
∼ 
∼ 
∼    −1,·</p>
          <p>−1
∼    −1,</p>
          <p>= 1, . . .
( ·  +  ·   )  = 1, . . .</p>
          <p>= 1, . . . , 
 = 1, . . . ,</p>
          <p>We propose a novel two-layer Markov chain model for the sequences of configuration
emissions, where the transition probabilities [ , ] varies depending on the latent state
labeling of the system, allowing the pattern of sequences to vary as demonstrated in
Figure 1. A graphical model representation of the proposed two-layer model is depicted
in Figure 2.</p>
          <p>Figure 3 summarizes our framework. The operational logs are pre-processed to identify
unique combination of attribute values in each operational log to feed into the
sHDPHMM based inference algorithm (see Section 3.3). A detection heuristic is applied to the
latent state transition matrix generated by the algorithm to output discrete temporal
sequences of operation logs that correspond to attacks. The detection heuristic can vary
based on the validation method used for detection, discussed in Section 3.4.</p>
          <p>In the case where a known normal history of the system exists and is known to span
the modes present in the system’s behavior, the set of suficient statistics estimated from
this series ^0 is a subset of the suficient statistics estimated from the series containing
the potential alternatives ^1. Identifying the matching subset of ^0 of ^1 is a problem of
matching the overlap of two high dimensional point clouds.</p>
        </sec>
      </sec>
      <sec id="sec-3-3">
        <title>3.3. Inference Algorithm</title>
        <p>In Algorithm 1, the inference implementation of the model uses the direct assignment
Gibbs sample by Teh et al. [22]. The matrix  records the number of transitions between
latent states,  [,  ] = ∑︀ 1&lt; ≤ 1{  −1 = ,   =  }. At each time instant, the new latent
state labeling must be inferred by conditioning out the influence of its present labeling
as shown in Line 8. The new labeling is sampled using the Chinese Restaurant Franchise
analogy [25] and subsequently if a new state is realized the transition matrix is expanded
(Line 6) and the associated summary statistics are updated (Line 8). Conversely, if a
pre-existing latent state is found redundant, it is removed in Line 3, allowing the number
of latent states identified to decrease. Having fixed the latent state assignments, the
remainder of the parameters in the model are conditionally updated. Algorithm 1 outputs
the latent states and transition probability matrix among the latent states discovered in
the operational data.</p>
        <p>Algorithm 1: Direct Assignment Gibbs Sampler for sHDP-HMM
for  = 1, . . . ,  do</p>
        <p>Decrement  [ ( )</p>
        <p>−1,  
Sample the state labeling  
if  
( ) =  ( ) + 1 then</p>
        <p>( )
( −1)],  [ ( −1)</p>
        <p>,  (+−11)]
Introduce state  ( ) + 1 into array  ( ) and matrix</p>
        <p>Increment  ( )
Increment  [ ( )
 −1,  
( )],  [ ( )</p>
        <p>,  (+−11)]
for  = 1, . . . ,  ( ) do
if   ·</p>
        <p>= 0 and  · = 0 then</p>
        <p>Delete row and column  from 
Update the count of unique states  ( ) = | :  
Sample the CRF auxiliary variable matrix  ( )
Sample the self-transition parameter(s)
Sample the global weights  ( )
Sample the hyper-parameters
( ) =  for  = 1, . . . ,  |
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16</p>
        <p>If  ( ) is the number of latent states at iteration  , the number of operations required
( )) where  is the length of the data trace. Because each iteration
for iteration  is  ( 
requires a pass through the time series, Algorithm 1 may be expensive for massive
data streams. In practice, we determine the convergence of the chain by examining the
sequence of latent state labels {</p>
        <p>( )} for stability.</p>
      </sec>
      <sec id="sec-3-4">
        <title>3.4. Detection Heuristic</title>
        <p>Detection heuristics (see Figure 3) may be derived using the model output to contruct
alarms. To determine whether an attack has occurred, there are a few possible approaches.
If historical data from the system’s normal operation is available, Algorithm 1 can be run
on that data to identify the latent states and transition probabilities in normal behavior.
This information may be contrasted against latent states and transition probabilities
discovered from the attack data, as in Section 6. Alternately, if subject matter expertise
is available, then specific rules-based alarms may be derived using the algorithm’s output,
as in Section 5. In the absence of historical data and domain knowledge, anomalies may
be identified on the basis on the latent state frequency relative to the entire recording.
However, the specific correspondence between these statistical anomalies and attacks
and the points of diferentiation between attacks and malfunctions and rare events are
subjects that require further exploration.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Metrics</title>
      <p>
        One of the important ways of evaluating the detection framework is understanding the
classification quality of detecting transitions from the “concept of normalcy” [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. One
aspect of the model output which can be used for comparison against other approaches is
the ability to accurately detect the transition event from normality. This event detection
may be formulated as a binary classification problem and evaluated with a confusion
matrix.
      </p>
      <p>However, the temporal nature of the observations is problematic for point-to-point
evaluation of the classification quality. Slight delays in the time of detection should be
diferentiated from complete misses and the point-to-point measure for false positives
may be multiplicative and overly punitive. These discrepancies and others issues relevant
to other applications have been noted in [34, 16].</p>
      <p>We present a set of metrics for evaluating detection of anomalous temporal discrete
sequences. These metrics involve introducing two additional parameters ℎ and  , whose
purpose is to partition the time series into periods of true positives and true negatives.
We recommend these be selected to balance the labels present in the data set.  is the
length of time used to divide periods of non-detection into true negatives. Additionally,
ℎ serves to introduce tolerance for slight delays in detection. For detecting the beginning
of attacks (similar analogues may be made towards detecting the end of attacks):
1. For a latent state transition at time   , if within the interval [  ,   + ℎ ], there are
no transitions detected then the period [  ,   + ℎ ] is categoried as a False Negative
(FP).
2. For a latent state transition at time   , if within the interval [  ,   + ℎ ], there is a
transition detected at ^ ∈ [  ,   + ℎ ] then the period [  ,   + ℎ ] is categoried as a
True Positive (TP).
3. For a latent state non-transition at time  , if within the interval [,  + ℎ ], there
^
are one or more estimated transitions {  } ∈ [  ,   + ℎ ], then the period [,  + ℎ ] is
categorized as False Positive (FP).
4. For a latent state non-transition at time  , if there are no estimated transitions,
categorize the period [,  + ℎ ] as True Negative (TN).</p>
    </sec>
    <sec id="sec-5">
      <title>5. Avionics Testbed</title>
      <p>
        In a system with a bus architecture, the system components interact with each other
only through a shared communication bus that employs a communication protocol. The
MIL-STD-1553 standard, also referred to as 1553, is a serial bus communication protocol
standard used primarily in avionics systems [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. This standard is used for communication
among components, called remote terminals (RT) or devices. Examples of terminals
are GPS receivers, auto-pilot controllers, or flight control components, such as ailerons,
elevators and rudders. In a 1553 compliant system, all devices are connected to a common
wire, or multiple redundant wires, and most devices are slaves, except for a master device.
The slave devices wait for queries from the master device, called the Bus Controller (BC).
The master device commands a slave with its address, directionality, data sub-address,
and data size to be sent [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. This command is sent in a query called a command word,
which provides specific direction for the slave to act. Our avionic testbed consists of a
physical 1553 bus, and several components. Each component is a software module that
used an Alta eNet-1553 interface device [35] to interact with the 1553 bus.
      </p>
      <sec id="sec-5-1">
        <title>5.1. Attacks</title>
        <p>Attacks are conducted using virtualized flight components interacting with the 1553 bus
through the Alta eNet interface. Our BC cycles through lists of messages to transact,
producing a deterministic and periodic pattern. The 1553 protocol allows any device
connected to the bus masquerade as a BC, allowing a bad actor to hijack the bus. We
conducted 17 attacks on the system with difering complexity, ranging from noise attacks
to denial-of-service. See Table 2 for details of the attacks.</p>
      </sec>
      <sec id="sec-5-2">
        <title>5.2. Detection</title>
        <p>The operational data is collected from the 1553 bus using the Alta eNet-1553 interface
device. In the pre-processing step, to represent the state of the bus, we used the symbolic
message attributes as outlined in Table 1.</p>
        <p>Field Value Ranges
Message Type BC to RT, RT to BC, RT to RT, mode command, mode command with
transmit data, and mode command with receive data
Remote Terminal Address 0 - 31
Transmit/Receive 0, 1
Subaddress/Mode 0 - 31
Data Word Count/Mode Code 0 - 31
Variable Type
tgrcl
aeoia
C</p>
        <p>Algorithm 1 is used to detect latent state transitions on the collected data. To derive
the detection heuristic, we observe that the system exhibited only a single latent state,
as shown in Figure 4, and confirmed by the experimenter on the timing of attacks. The
operational data is collected only on 16 attacks, since Attack 13 is not reflected in the
operational logs. Therefore, our detection heuristic in this case is simple; any latent state
transition to a new latent state and return to the single stable latent state is an attack.
The results are in Table 2.</p>
        <p>In order to evaluate the detection quality of the inference for the experiment, we
use the procedure described in Section 4 with  = 350. Selecting  = 350 and ℎ = 1
divides the time series into 32 intervals, half of which are true positives and the other
Attack
Attack 0
Attack 1
Attack 2
Attack 3
Attack 4
Attack 5
Attack 6
Attack 7
Attack 8
Attack 9
Attack 10
Attack 11
Attack 12
Attack 13
Attack 14
Attack 15
Attack 16
of the system contains only one mode - any departure from this single mode of behavior is considered
to be an attack.</p>
        <p>Attack Occurrence</p>
        <p>Detected Occurrence</p>
        <p>Detection</p>
        <p>Description
Detection of attacks on the avionics testbed based on metrics in Section 4. TP is short for true
positive; FN - false negative; TN - true negative; FP - false positive.
half true negatives. We conclude that there are 15 true positives, 0 false positives, 16
true negatives, and 2 false negatives. A human expert analysis of sample trafic collected
during the DDoS Attack 9 revealed multiple periods of normal trafic interlacing the
anomalous measurements, which may explain the fragmentation.</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>6. Consumer Robot</title>
      <p>
        In this section, we describe detection of attacks on a consumer robot. This system is
a Roomba Create2 [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ], and the experiment set-up is described in detail in a previous
paper [36]. This system is diferent from the avionics testbed described in Section 5 in
the following significant way. The robot has physical sensors and actuators and is a fully
functioning CPS. The attacks in this experiment are directly to the physical sensors and
actuators. The log attributes used in this experiment for pre-processing are summarized
in Table 3.
      </p>
      <sec id="sec-6-1">
        <title>6.1. Attacks</title>
        <p>As summarized in Table 4, in the sensor attack, an obstruction is introduced in front
of the left optical sensor, causing the Roomba to prematurely halt traveling towards
its destination. Outside intervention removes this obstruction, allowing the Roomba to
continue its course. In the actuator attack, the robot is physically held in place on a
slippery surface. The wheels continue to spin; however, the robot does not make any
forward movement. Outside intervention removes the restraint on the robot, and it is
allowed to move forwards.</p>
        <p>Field Value Ranges
Voltage 0 - 65535
Current -32768 - 32767
Velocity Left -500 - 500
Velocity Right -500 - 500
Light Bumper Front Left 0 - 4095
Light Bumper Front Right 0 - 4095</p>
      </sec>
      <sec id="sec-6-2">
        <title>6.2. Attack Detection</title>
        <p>Experiment Attack Vector Data Attack Occurrence
1 wall sensors light bumpers, (58, 59) - (74, 75)</p>
        <p>velocity
2 actuators current, volt- (171, 172) - (212, 217) 172 - 192
age</p>
        <p>Detected Occurrence Start Attack End Attack
62 - 73 TP TP</p>
        <p>TP</p>
        <p>FN</p>
        <p>In contrast to the avionics testbed that has only a single latent state, or mode,
detectable by Algorithm 1, the Roomba Create2 shows multiple modes, as shown in
Figure 5. The diferent colors indicate diferent latent states, and the solid black line is
the wall sensor output that measures distance to an obstruction, see Table 4.</p>
        <p>In both attack experiments, comparison between the number of latent states in
recordings of normal trafic and attack trafic identified more latent states in the later. Because
each latent state has associated suficient statistics for the sensors, it is straightforward
to draw correspondences between the latent states in each set of recordings and identify
which latent states are novel with respect to normal behavior. Having identified the novel
latent states in the attack recordings, we analyze the mode of the start of the transition
to these states and compare it against expert annotation to determine the accuracy of
the start/end of attack detection.
(a) Wall sensors and states for the Roomba
under normal operation.
(b) Current readings and states for the</p>
        <p>Roomba under normal operation.
(c) Wall sensors and states for the Roomba
under sensor attack.
(d) Current readings and states for the</p>
        <p>Roomba under actuator attack.</p>
      </sec>
    </sec>
    <sec id="sec-7">
      <title>7. Conclusion &amp; Future Work</title>
      <p>We presented in this paper an unsupervised learning framework based on the sHDP-HMM
model and detection heuristic to detect attacks on two types of systems using diferent
attack approaches. In both cases, no domain knowledge of the system architecture was
used to infer the location and number of attacks in the time series. This unsupervised
approach for attack detection is applicable for many systems for which the only available
information consists of the operations logs. We demonstrated the ability of this
framework to assimilate heterogeneous data consisting of continuous sensors and categorical
configurations. While these preliminary results are encouraging, more testing on a wider
variety of systems is needed to better understand the limitations and wider applicability
of this approach.</p>
      <p>We surmise that the algorithm’s detection is most accurate if the entire attack is
contained within the data recording. It is unresolved how partial capture of the attack will
impact the detection accuracy. Further, the exploration of the detection of cyberattacks
on the avionics testbed has identified instances of known cyberattacks, whose efects are
absent from the system bus logs.</p>
      <p>A key challenge for machine learning approaches for attack detection in CPSs is the
explainability of the results to non-experts and was a key motivator for this approach
[37]. Although the model presented here as a switching process between an ensemble of
simple models is more transparent in comparison to alternatives, there is potential to
better integrate these outputs with other sources of data and physical laws to provide
greater clarity into the causality of anomalies. Additionally, although we considered the
many common types of tabular data in this work, the framework presented here may
also assimilate many forms of higher fidelity data such audio and video. Lastly, because
Algorithm 1 performs multiple passes through the data, it poses an interesting challenge
to scaling up the approach to the massive streams of data encountered in real-time
monitoring systems[38]. Addressing this challenge of scalability is an area of research we
are actively investigating.
[14] D. Ding, Q.-L. Han, Y. Xiang, X. Ge, X.-M. Zhang, A survey on security control
and attack detection for industrial cyber-physical systems, Neurocomputing 275
(2018) 1674–1683.
[15] Y. Wang, M. Perry, D. Whitlock, J. W. Sutherland, Detecting anomalies in time
series data from a manufacturing system using recurrent neural networks, Journal
of Manufacturing Systems (2020).
[16] N. Singh, C. Olinsky, Demystifying numenta anomaly benchmark, in: 2017
International Joint Conference on Neural Networks (IJCNN), 2017, pp. 1570–1577.
[17] S. Bulusu, B. Kailkhura, B. Li, P. K. Varshney, D. Song, Anomalous example
detection in deep learning: A survey, IEEE Access 8 (2020) 132330–132347.
[18] B. Gao, H.-Y. Ma, Y.-H. Yang, Hmms (hidden markov models) based on anomaly
intrusion detection method, in: Proceedings. International Conference on Machine
Learning and Cybernetics, volume 1, IEEE, 2002, pp. 381–385.
[19] D. Altan, S. Sariel, What went wrong? Identification of everyday object manipulation
anomalies, Intelligent Service Robotics 14 (2021) 215–234.
[20] P. Smyth, Model selection for probalistic clustering using cross-validation likelihood,</p>
      <p>Statistics and Computing 10 (2000) 63–72.
[21] G. Celeux, J.-B. Durand, Selecting the hidden markov model state number with
cross-validated likelihood, Computational Statistics 23 (2008) 541–564.
[22] Y. W. Teh, M. I. Jordan, M. J. Beal, D. M. Blei, Hierarchical dirichlet processes,</p>
      <p>Journal of the American Statistical Association 101 (2006) 1566–1581.
[23] S. W. Linderman, M. J. Johnson, M. A. Wilson, Z. Chen, A bayesian nonparametric
approach for uncovering rat hippocampal population codes during spatial navigation,
Journal of Neuoscience Methods 263 (2016) 36–47.
[24] D. M. Blei, T. L. Grifiths, M. I. Jordan, The nested chinese restaurant process
and bayesian nonparametric inference of topic hierarchies, Journal of the ACM 57
(2010).
[25] E. B. Fox, E. B. Sudderth, M. I. Jordan, A. S. Willsky, A sticky HDP-HMM
with application to speak diarization, The Annals of Applied Statistics 101 (2011)
1020–1056.
[26] H. Wu, Y. Guan, J. Rojas, A latent state-based multimodal execution monitor with
anomaly detection and classification for robot introspection, Applied Sciences 9
(2019).
[27] T. Li, B. Wang, F. Shang, J. Tian, K. Cao, Dynamic temporal ADS-B data attack
detection based on shdp-hmm, Computers &amp; Security 93 (2020) 101789.
[28] A. A. Cárdenas, S. Amin, Z.-S. Lin, Y.-L. Huang, C.-Y. Huang, S. Sastry, Attacks
against process control systems: Risk assessment, detection, and response, in:
Proceedings of the 6th ACM Symposium on Information, Computer and Communications
Security, 2011, pp. 355–366.
[29] T. Kaliath, H. V. Poor, Detection of stochastic processes, IEEE Transactions on</p>
      <p>Information Theory 44 (1998) 2230—-2258.
[30] H. Fawzi, P. Tabuada, S. Diggavi, Secure estimation and control for cyber-physical
systems under adversarial attacks, IEEE Transactions on Automatic Control 59
(2014) 1454–1467.
[31] D. Hadžiosmanović, L. Simionato, D. Bolzoni, E. Zambon, S. Etalle, N-gram against
the machine: On the feasibility of the n-gram network analysis for binary protocols,
in: D. Balzarotti, S. J. Stolfo, M. Cova (Eds.), Research in Attacks, Intrusions, and
Defenses, 2012, pp. 354–373.
[32] O. Stan, Y. Elovici, A. Shabtai, G. Shugol, R. Tikochinski, S. Kur, Protecting military
avionics platforms from attacks on MIL-STD-1553 communication bus, CoRR
abs/1707.05032 (2017). URL: http://arxiv.org/abs/1707.05032. arXiv:1707.05032.
[33] J. Pitman, Poisson–dirichlet and gem invariant distributions for split-and-merge
transformations of an interval partition, Combinatorics, Probability, and Computing
11 (2002) 501—-514.
[34] X. Zhou, A. Del Valle, Range based confusion matrix for imbalanced time series
classification, in: 2020 6th Conference on Data Science and Machine Learning
Applications (CDMA), 2020, pp. 1–6. doi:10.1109/CDMA47397.2020.00006.
[35] Alta-dt, ENET-1553: MIL-STD-1553 REAL-TIME ETHERNET CONVERTER,
???? URL: https://www.altadt.com/product/enet-1553/, accessed July 20, 2022.
[36] A. Roque, M. Lin, S. Damodaran, Cybersafety analysis of a natural language user
interface for a consumer robotic system, in: European Symposium on Research in
Computer Security, Springer, 2021, pp. 107–121.
[37] A. Roque, S. K. Damodaran, Explainable ai for security of human-interactive robots,</p>
      <p>International Journal of Human–Computer Interaction (2022) 1–19.
[38] A. Bifet, R. Gavalda, G. Holmes, B. Pfahringer, Machine learning for data streams:
with practical examples in MOA, MIT press, 2018.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>J.</given-names>
            <surname>Giraldo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Urbina</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Cardenas</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Valente</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Faisal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Ruths</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N. O.</given-names>
            <surname>Tippenhauer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Sandberg</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Candell</surname>
          </string-name>
          ,
          <article-title>A survey of physics-based attack detection in cyber-physical systems</article-title>
          ,
          <source>ACM Computing Surveys</source>
          <volume>51</volume>
          (
          <year>2018</year>
          )
          <fpage>1</fpage>
          -
          <lpage>36</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>R.</given-names>
            <surname>Alguliyev</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Imamverdiyev</surname>
          </string-name>
          , L. Sukhostat,
          <article-title>Cyber-physical systems and their security issues</article-title>
          ,
          <source>Computers in Industry</source>
          <volume>100</volume>
          (
          <year>2018</year>
          )
          <fpage>212</fpage>
          -
          <lpage>223</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>A.</given-names>
            <surname>Chowdhury</surname>
          </string-name>
          , G. Karmakar,
          <string-name>
            <given-names>J.</given-names>
            <surname>Kamruzzaman</surname>
          </string-name>
          ,
          <article-title>Survey of recent cyber security attacks on robotic systems and their mitigation approaches</article-title>
          , in: Cyber Law, Privacy, and Security: Concepts, Methodologies, Tools, and Applications, IGI Global,
          <year>2019</year>
          , pp.
          <fpage>1426</fpage>
          -
          <lpage>1441</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>L.</given-names>
            <surname>Ruf</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. R.</given-names>
            <surname>Kaufmann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. A.</given-names>
            <surname>Vandermeulen</surname>
          </string-name>
          , G. Montavon,
          <string-name>
            <given-names>W.</given-names>
            <surname>Samek</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Kloft</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T. G.</given-names>
            <surname>Dietterich</surname>
          </string-name>
          ,
          <string-name>
            <surname>K.-R. Müller</surname>
          </string-name>
          ,
          <article-title>A unifying review of deep and shallow anomaly detection</article-title>
          ,
          <source>Proceedings of the IEEE</source>
          <volume>109</volume>
          (
          <year>2021</year>
          )
          <fpage>756</fpage>
          -
          <lpage>795</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>D. M.</given-names>
            <surname>Hawkins</surname>
          </string-name>
          , Identification of outliers, volume
          <volume>11</volume>
          , Springer,
          <year>1980</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>S. K.</given-names>
            <surname>Damodaran</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P. D.</given-names>
            <surname>Rowe</surname>
          </string-name>
          ,
          <article-title>Limitations on observability of efects in cyberphysical systems</article-title>
          ,
          <source>in: Proceedings of the 6th Annual Symposium on Hot Topics in the Science of Security</source>
          ,
          <year>2019</year>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>10</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>A.</given-names>
            <surname>Nisioti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Mylonas</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P. D.</given-names>
            <surname>Yoo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Katos</surname>
          </string-name>
          ,
          <article-title>From intrusion detection to attacker attribution: A comprehensive survey of unsupervised methods</article-title>
          ,
          <source>IEEE Communications Surveys &amp; Tutorials</source>
          <volume>20</volume>
          (
          <year>2018</year>
          )
          <fpage>3369</fpage>
          -
          <lpage>3388</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>Y. H.</given-names>
            <surname>Chang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q.</given-names>
            <surname>Hu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Tomlin</surname>
          </string-name>
          ,
          <article-title>Secure estimation based kalman filter for cyberphysical systems against sensor attacks</article-title>
          ,
          <source>Automatica</source>
          <volume>95</volume>
          (
          <year>2018</year>
          )
          <fpage>399</fpage>
          -
          <lpage>412</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>L.</given-names>
            <surname>Daria</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Dmitry</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Anastasiia</surname>
          </string-name>
          ,
          <article-title>Predicting cyber attacks on industrial systems using the kalman filter</article-title>
          ,
          <source>in: 2019 Third World Conference on Smart Trends in Systems Security and Sustainablity (WorldS4)</source>
          , IEEE,
          <year>2019</year>
          , pp.
          <fpage>317</fpage>
          -
          <lpage>321</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>A.</given-names>
            <surname>Blázquez-García</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Conde</surname>
          </string-name>
          ,
          <string-name>
            <given-names>U.</given-names>
            <surname>Mori</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. A.</given-names>
            <surname>Lozano</surname>
          </string-name>
          ,
          <article-title>A review on outlier/anomaly detection in time series data, ACM Computing Surveys (CSUR) 54 (</article-title>
          <year>2021</year>
          )
          <fpage>1</fpage>
          -
          <lpage>33</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>V.</given-names>
            <surname>Chandola</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Banerjee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Kumar</surname>
          </string-name>
          ,
          <article-title>Anomaly detection for discrete sequences: A survey, IEEE transactions on knowledge and data engineering 24 (</article-title>
          <year>2010</year>
          )
          <fpage>823</fpage>
          -
          <lpage>839</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>R.</given-names>
            <surname>Schuh</surname>
          </string-name>
          ,
          <article-title>An overview of the 1553 bus with testing and simulation considerations</article-title>
          ,
          <source>in: 1988. IMTC-88. 5th IEEE Instrumentation and Measurement Technology Conference</source>
          ,
          <year>1988</year>
          , pp.
          <fpage>20</fpage>
          -
          <lpage>25</lpage>
          . doi:
          <volume>10</volume>
          .1109/IMTC.
          <year>1988</year>
          .
          <volume>10811</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13] iRobot,
          <source>iRobot Create 2 open interface (OI) specification based on the iRobot Roomba 600</source>
          ,
          <year>2018</year>
          . URL: https://edu.irobot.com/what-we-ofer/create-robot,
          <source>accessed July 20</source>
          ,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>