18
Lateral Movement Detection and Response Ahmed Fawaz June 15, 2017

Lateral Movement Detection and Responsepublish.illinois.edu/.../files/2017/07/06142017-Fawaz.pdf · 2017. 7. 18. · Response to Lateral Movement • Achieve resiliency against lateral

  • Upload
    others

  • View
    5

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Lateral Movement Detection and Responsepublish.illinois.edu/.../files/2017/07/06142017-Fawaz.pdf · 2017. 7. 18. · Response to Lateral Movement • Achieve resiliency against lateral

Lateral Movement Detection and Response

Ahmed FawazJune 15, 2017

Page 2: Lateral Movement Detection and Responsepublish.illinois.edu/.../files/2017/07/06142017-Fawaz.pdf · 2017. 7. 18. · Response to Lateral Movement • Achieve resiliency against lateral

Lateral Movement Detection

2

13

4

56

Entry Point

Host 1

Host 2

Host 3

Host 4

Host 5

Target Host

A critical step during APT to move from the entry point to target host

C1C2

C1 ▷ C2

C3C4C5

C62

C2 ▷ C3

C3 ▷ C4

C4 ▷ C5 C5 ▷ C6

Group1 ▷ C4 Group2 ▷ C6

L2 L1

GL

Presenter
Presentation Notes
Make the abstracted event boldface
Page 3: Lateral Movement Detection and Responsepublish.illinois.edu/.../files/2017/07/06142017-Fawaz.pdf · 2017. 7. 18. · Response to Lateral Movement • Achieve resiliency against lateral

Response to Lateral Movement

• Achieve resiliency against lateral movement• Resilience by stopping virus spread while maintaining acceptable

service availability, as opposed to disconnecting the whole network

Strategy:1. Learn attacker movement2. Respond by limiting connectivity to stop spread3. Recover the system

3

Page 4: Lateral Movement Detection and Responsepublish.illinois.edu/.../files/2017/07/06142017-Fawaz.pdf · 2017. 7. 18. · Response to Lateral Movement • Achieve resiliency against lateral

Lateral Movement Model

• Susceptible-infected-susceptible (SIS) CTMC virus spread model

• A node can be in two states: {Susceptible, Infected}• Nodes are not cured

4

S I

Infection Rate

Healing Rate

Page 5: Lateral Movement Detection and Responsepublish.illinois.edu/.../files/2017/07/06142017-Fawaz.pdf · 2017. 7. 18. · Response to Lateral Movement • Achieve resiliency against lateral

Virus Spread over Graph

5

3

1

2

4

5

6

7

𝛽𝛽1

𝛽𝛽1 𝛽𝛽2

𝛽𝛽3

𝛽𝛽3

𝛽𝛽3

-A node’s infection rate depends on the state of neighboring nodes.

-Each node is healed independently with rate δi.-Each node infects its neighbors with rate βi.

Page 6: Lateral Movement Detection and Responsepublish.illinois.edu/.../files/2017/07/06142017-Fawaz.pdf · 2017. 7. 18. · Response to Lateral Movement • Achieve resiliency against lateral

Spread Dynamics

The total system dynamics as N-intertwined CTMCs:

Controllable parameters:• The connectivity graph A• The healing rate D = diag(𝜹𝜹𝟏𝟏, … ,𝜹𝜹𝒏𝒏)Unknown:• The infection rate B = diag(𝜷𝜷𝟏𝟏, … ,𝜷𝜷𝒏𝒏)

�̇�𝑝 = 𝐴𝐴𝐵𝐵 − 𝑃𝑃 𝑡𝑡 𝐴𝐴𝐵𝐵 − 𝐷𝐷 𝑝𝑝3

2

𝛽𝛽1𝛽𝛽3

𝛽𝛽2

6

Page 7: Lateral Movement Detection and Responsepublish.illinois.edu/.../files/2017/07/06142017-Fawaz.pdf · 2017. 7. 18. · Response to Lateral Movement • Achieve resiliency against lateral

Response and Recovery Engine

7

Page 8: Lateral Movement Detection and Responsepublish.illinois.edu/.../files/2017/07/06142017-Fawaz.pdf · 2017. 7. 18. · Response to Lateral Movement • Achieve resiliency against lateral

RRE Decision Modes

Initial: no infectionLearn: estimate attacker parametersContainment: stop attacker spreadRecovery: return system to secure state

8

Page 9: Lateral Movement Detection and Responsepublish.illinois.edu/.../files/2017/07/06142017-Fawaz.pdf · 2017. 7. 18. · Response to Lateral Movement • Achieve resiliency against lateral

Learning Phase

• Estimate the infection rate of each node when it’s neighbors are infected.

• Measure the duration to infect a node using lateral movement chains

• Use the ML estimator:

9

where

Presenter
Presentation Notes
\widehat{\lambda_i}=\frac{m}{\sum_j s_i}
Page 10: Lateral Movement Detection and Responsepublish.illinois.edu/.../files/2017/07/06142017-Fawaz.pdf · 2017. 7. 18. · Response to Lateral Movement • Achieve resiliency against lateral

Learning Strategy

• Naïve approach: all nodes infected, heal one node at a time for sample collection

• Slow learning• Highest availability

• Optimal approach: find independent sets as the minimal coloring of a graph

• Finding coloring is NP-hard

10

Page 11: Lateral Movement Detection and Responsepublish.illinois.edu/.../files/2017/07/06142017-Fawaz.pdf · 2017. 7. 18. · Response to Lateral Movement • Achieve resiliency against lateral

Dynamic Strategy

• Divide nodes to attack set and measure set.

• Attack set is fully connected.• Measure set has limited

connectivity to the attack set.

• Switch the roles after data is collected.

• Solve:

11

Page 12: Lateral Movement Detection and Responsepublish.illinois.edu/.../files/2017/07/06142017-Fawaz.pdf · 2017. 7. 18. · Response to Lateral Movement • Achieve resiliency against lateral

Estimation Error

• Error decreases as more data is collected• A sparse connectivity matrix performs better overall 12

Page 13: Lateral Movement Detection and Responsepublish.illinois.edu/.../files/2017/07/06142017-Fawaz.pdf · 2017. 7. 18. · Response to Lateral Movement • Achieve resiliency against lateral

Containment Phase

• After learning the parameters; we find the connectivity and healing rates to stop the spread

• Goal: achieve a globally asymptotic stable (GAS) disease-free equilibrium (DFE)

• Starting from an initial state• Consequence: p 0 with an exponential decay

• Pick A,D such that (AB-D) is Hurwitz

13

Page 14: Lateral Movement Detection and Responsepublish.illinois.edu/.../files/2017/07/06142017-Fawaz.pdf · 2017. 7. 18. · Response to Lateral Movement • Achieve resiliency against lateral

Resiliency during Containment

• Maximize availability such that A and D result in a stable DFE.• Encoded as a Mixed-Integer Nonlinear Optimization Problem

14

Availability

Hurwitz Condition

Limit cost

Page 15: Lateral Movement Detection and Responsepublish.illinois.edu/.../files/2017/07/06142017-Fawaz.pdf · 2017. 7. 18. · Response to Lateral Movement • Achieve resiliency against lateral

Connectivity matrix

• The optimal solver cannot find matrices for N>500• The greedy solver is faster but the solutions are suboptimal 15

GreedyOptimal

Page 16: Lateral Movement Detection and Responsepublish.illinois.edu/.../files/2017/07/06142017-Fawaz.pdf · 2017. 7. 18. · Response to Lateral Movement • Achieve resiliency against lateral

Simulation of RREError of parameter estimation error State evolution over time during the response phase

Parameters: N=5, topology changes, infection randomly selected for the experiment run, healing constant16

Page 17: Lateral Movement Detection and Responsepublish.illinois.edu/.../files/2017/07/06142017-Fawaz.pdf · 2017. 7. 18. · Response to Lateral Movement • Achieve resiliency against lateral

Conclusion

• RRE achieves resilience by limiting connectivity during healing and learning

• Method is robust against estimation error and clock drifts

• Containment is theoretically fast

Page 18: Lateral Movement Detection and Responsepublish.illinois.edu/.../files/2017/07/06142017-Fawaz.pdf · 2017. 7. 18. · Response to Lateral Movement • Achieve resiliency against lateral

Future Work

• Design a feedback controller that uses learned estimates• Improve estimate• Robustness to errors• Maximize connectivity

State estimation: �̂�𝑝 = 𝑓𝑓( �𝛽𝛽,𝐴𝐴,𝐷𝐷)Measurements: 𝑝𝑝 = 0,1Feedback controller: 𝐷𝐷 = 𝛾𝛾 ⋅ �̂�𝑝 such that 𝛾𝛾 > 0