EDDIE: EM-Based Detection of Deviations in Program Execution
Published at ISCA 2017
Alireza Nazari, Nader Sehatbakhsh, Monjur Alam, Alenka Zajic, Milos Prvulovic EECS 573 Presented by Janarthanan and Vivek
1
EDDIE: EM-Based Detection of Deviations in Program Execution - - PowerPoint PPT Presentation
EDDIE: EM-Based Detection of Deviations in Program Execution Published at ISCA 2017 Alireza Nazari, Nader Sehatbakhsh, Monjur Alam, Alenka Zajic, Milos Prvulovic EECS 573 Presented by Janarthanan and Vivek 1 Goal Detect Malicious changes to
1
2
○ Anti-virus ○ Mutation or encryption could counter
○ Known types ○ Unknown types ■ Model based
3
4
5
6
7
○ Using Short Term Fourier Transform (STFT)
○ Short Term Spectrum (STS)
8
STS Source: Nazari et al., 2017
○ As discussed in the previous presentation
9
○ Characterize normal execution behavior using peaks in the STS
○ Compare if the observed STS statistically deviate from the expected STS
10
11
12
○ Build region level state machine
○ Multiple runs to improve coverage
13
○ Need statistical tests
○ Not suitable here
○ K-S test
14
○ m elements, distribution R(x)
○ n elements, distribution M(x)
○ Dm,n = maxx | R(x) - M(x)|, largest difference between two empirical distributions ○ Anamonly if Dm,n > Dm,n,a, where Dm,n,a = c(a) √(m+n)/(mn)
15
○ Uses recent STSs, low accuracy; low latency
○ Longer history of STSs, high accuracy; high latency
16
○ Using K-S test, one peak at a time
17
○ Single board Linux computer ○ Signal is recorded using Keysight DS0S804A Oscilloscope
○ Applied to the power consumption signal of SESC ○ To test EDDIE’s applicability to a wide range of systems
18
○ Outside Loop: Invoking a shell and returning back ○ Inside Loop: 8 instruction code
○
○
19
Source: Nazari et al., 2017
○ Dynamic instructions into simulated instruction stream
○
○ Accuracy and latency affected more by application rather than noise
20
Source: Nazari et al., 2017
○ Similar False rejection and Accuracy ○ Higher latency for out-of-order ○ Processor pipeline depth has a weak impact on detection latency
21
Source: Nazari et al., 2017
22
Source: Nazari et al., 2017
23
Loop with one sharp peak Loop with less well defined peak Loop with diffuse peak Static instructions injected inside a loop Source: Nazari et al., 2017
24
○ Shorter instructions, Increased latency ○ Longer instructions, Reduced latency Source: Nazari et al., 2017
25
Source: Nazari et al., 2017
○ Set 1: ■ 8 add instructions ○ Set 2: ■ 4 add and 4 store instructions
26
Source: Nazari et al., 2017
○ Does not require hardware or software modification
27
○ Learning directly from the EM time-series signals ○ Using Machine Learning techniques to detect anomalies
28