项目作者: seungsoo-lee

项目描述 :
PROJECT DELTA: SDN SECURITY EVALUATION FRAMEWORK
高级语言: Java
项目地址: git://github.com/seungsoo-lee/DELTA.git
创建时间: 2019-04-15T05:55:33Z
项目社区:https://github.com/seungsoo-lee/DELTA

开源协议:

下载


ONF Best Showcase
Black Hat Arsenal1
Black Hat Arsenal2

DELTA: SDN SECURITY EVALUATION FRAMEWORK

Delta logo

What is DELTA?

DELTA is a penetration testing framework that regenerates known attack scenarios for diverse test cases. This framework also provides the capability of discovering unknown security problems in SDN by employing a fuzzing technique.

  • Agent-Manager is the control tower. It takes full control over all the agents deployed to the target SDN network.
  • Application-Agent is a legitimate SDN application that conducts attack procedures and is controller-dependent. The known malicious functions are implemented as application-agent functions.
  • Channel-Agent is deployed between the controller and the OpenFlow-enabled switch. The agent sniffs and modifies the unencrypted control messages. It is controller-independent.
  • Host-Agent behaves as if it was a legitimate host participating in the target SDN network. The agent demonstrates an attack in which a host attempts to compromise the control plane.

Delta architecture

Prerequisites

In order to build and run DELTA, the following are required:

  • An agent manager based on Ubuntu 16.04 LTS 64 bit
    • Ant build system
    • Maven v3.3.9
    • LXC 2.0
    • JDK 1.8
  • Target Controller (for application agent)
  • Cbench (for channel agent)
  • Mininet 2.2 (for host agent)
  • (in the case of All-In-One Single Machine) Three lxc containers based on Ubuntu 16.04 LTS 64 bit.
    • Container-1: Target controller + Application agent
    • Container-2: Channel agent
    • Container-3: Host agent

Installing DELTA

DELTA installation depends on maven and ant build system. The mvn command is used to install the agent-manager and the agents. DELTA can support an All-In-One Single Machine environment via containers as well as a real hardware SDN environment.

  • STEP 1. Get the source code of DELTA on the agent manager machine
  1. $ git clone https://github.com/seungsoo-lee/DELTA.git
  • STEP 2. Install DELTA dependencies
  1. $ cd <DELTA>/tools/dev/delta-setup/
  2. $ ./delta-setup-devenv-ubuntu
  • STEP 3. Install three containers using lxc
  1. $ source ./<DELTA>/tools/dev/delta-setup/bash_profile
  2. $ cd <DELTA>/tools/dev/lxc-setup
  3. $ ./lxc-dev-install
  4. $ sudo vi /etc/default/lxc-net
  5. Uncomment "LXC_DHCP_CONFILE=/etc/lxc/dnsmasq.conf"
  6. $ sudo service lxc-net restart
  7. $ sudo lxc-start -n container-cp -d
  8. $ sudo vi /etc/apparmor.d/abstractions/lxc/container-base
  9. Uncomment "mount options=(rw, make-rprivate) -> **,"
  10. $ sudo apparmor_parser -r /etc/apparmor.d/lxc-containers
  11. $ cd ~
  12. $ ssh-keygen -t rsa
  13. (Press Enter)
  14. $ ssh-copy-id -i ~/.ssh/id_rsa.pub $DELTA_CP
  15. (ID: ubuntu, PW: ubuntu)
  16. $ ssh $DELTA_CP
  17. (DELTA_CP) $ sudo visudo
  18. In the bottom of the file, type the follow:
  19. ubuntu ALL=(ALL) NOPASSWD: ALL
  20. (DELTA_CP) $ exit
  21. $ cd <DELTA>/tools/dev/lxc-setup
  22. $ ./lxc-dev-setup
  23. $ ssh-copy-id -i ~/.ssh/id_rsa.pub $DELTA_CH
  24. $ ssh-copy-id -i ~/.ssh/id_rsa.pub $DELTA_DP
  • STEP 4. Install DELTA using maven build
  1. $ cd <DELTA>
  2. $ source ./tools/dev/delta-setup/bash_profile
  3. $ mvn clean install
  • The test environment is automatically setup as below:

Env1

Configuring your own experiments

  • The agent-manager automatically reads a configuration file and sets up the test environment based on the file. [/tools/config/manager_default.cfg] contains the All-In-One Single Machine configuration by default.
    1. CONTROLLER_SSH=[account-id]@[agent-controller ipAddr]
    2. CHANNEL_SSH=[account-id]@[agent-channel ipAddr]
    3. HOST_SSH=[account-id]@[agent-host ipAddr]
    4. TARGET_HOST=10.0.0.2
    5. ONOS_ROOT=/home/vagrant/onos-1.6.0
    6. CBENCH_ROOT=/home/vagrant/oflops/cbench/
    7. TARGET_CONTROLLER=Floodlight
    8. TARGET_VERSION=0.91
    9. OF_PORT=6633
    10. OF_VER=1.3
    11. MITM_NIC=eth1
    12. CONTROLLER_IP=[agent-controller ipAddr]
    13. SWITCH_IP=[agent-host ipAddr],[agent-host ipAddr],[agent-host ipAddr]
    14. DUMMY_CONT_IP=[agent-manager ipAddr]
    15. DUMMY_CONT_PORT=6633
    16. AM_IP=[agent-manager ipAddr]
    17. AM_PORT=3366

    Floodlight 1.2

    1. $ cd <DELTA>/tools/dev/app-agent-setup
    2. $ ./floodlight-1.2-scp

    ONOS 1.1 (depreciated)

    1. $ cd <DELTA>/tools/dev/app-agent-setup/onos
    2. $ ./onos-1.1.0-scp
    3. (on the controller machine) $ ./onos-1.1.0-setup

    ONOS 1.6, 1.9 or 1.13.1
    ```
    $ cd /tools/dev/app-agent-setup/onos
    $ ./delta-setup-onos
    $ ./delta-scp-onos

  • Supported ONOS version in the script: 1.6, 1.9, 1.13.1
    1. > OpenDaylight Oxygen
    $ cd /tools/dev/app-agent-setup
    $ ./odl-oxygen-scp
    1. > Ryu 4.16
    $ cd /tools/dev/app-agent-setup/ryu
    $ ./delta-setup-ryu
    ```
  • The app-agent (on the controller container) needs ‘agent.cfg’ file to connect to the agent-manager.
    1. MANAGER_IP=[agent-manager ipAddr]
    2. MANAGER_PORT=3366

Running DELTA

  • STEP 1. Distribute the executable files to Containers
  1. $ cd <DELTA>
  2. $ source ./tools/dev/delta-setup/bash_profile
  3. $ ./tools/dev/delta-setup/delta-agents-scp
  • STEP 2. Execute Agent-Manager first
    ```
    $ cd
    $ bin/run-delta
    (e.g., bin/run-delta config/manager_vm.cfg)

    DELTA: A Penetration Testing Framework for Software-Defined Networks

    [pP] - Show all known attacks
    [cC] - Show configuration info
    [kK] - Replaying known attack(s)
    [uU] - Finding an unknown attack
    [qQ] - Quit

Command>_
```

  • STEP 3. Connect Web-based UI (port number is 7070)
    WEB

Main Contributors

  • Seungsoo Lee (KAIST)
  • Jinwoo Kim (KAIST)
  • Seungwon Woo (KAIST)
  • Haney Kang (KAIST)
  • Jaehan Kim (KAIST)
  • Changhoon Yoon (KAIST)
  • Sandra Scott-Hayward (Queen’s University Belfast)
  • Seungwon Shin (KAIST)

Collaborators

  • Phil Porras, Vinod Yegneswaran (SRI International)
  • Kyuho Hwang, Daewon Jung (National Security Research Institute)
  • Atto Research
  • collabo

Questions?

Send questions or feedback to: lss365@kaist.ac.kr, jinwoo.kim@kaist.ac.kr