Git Product home page Git Product logo

What?

Midas is the first adaptive and efficient safeguard framework for Linux-based IoT devices with the real-time behavior auditing mechanism.

Project Directory Structure

Midas_Project
├── midas_binaries    #binaries of Midas in different architecture
│   ├── midas_arm
│   ├── midas_mips
│   └── midas_mipsel
├── policy		      #compiled MD policy, i.e. policy.31 and file_contexts file
│   ├── policy.31
|   └── file_contexts
└── supplementary-materials  
	├── physical-devices-with-Midas  #firmware files for physical devices and related experiment pictures
	├── comparison_experiment  #details about the quantitive comparison experiment
	├── Sensitive_Behavior_Acquisition.pdf  #details about the sensitive behavior acquisition procedure
	└── IoT_Malware_Dataset_Link.txt 		#The link of our IoT malware benchmark dateset

Install Instructions

1. Compile firmware

First you need to create your own custom firmware. We recommand OpenWrt here, which is an open-source project for embedded operating systems based on Linux, primarily used on embedded devices. This frees you from the application selection and configuration provided by the vendor and allows you to customize the device through the use of packages to suit any application. For users, this means the ability for full customization, to use the device in ways never envisioned.

You can compile firmware of almost any architecture for a wide range of IoT devices.

2. Enable SELinux

For OpenWrt, we recommend to try it like this:

Global build settings ->
[*] Enable SELinux
    default SELinux type (dssp) ->

Other configuration changes are not neccessary here, and all the SELinux-related configuration variants are automatically enabled.

3. Install Midas and MD Policy

  • Running the compiled firmware QEMU or SoC/target supported by your firmware.
  • Install Midas
    • select and move the suitable binary of midas to the firmware, like path /usr/sbin
    • run Midas as a background service or auto-execute after each boot.
  • Install MD Policy
    • move the compiled binary MD policy, i.e. poilcy.31, to the SELinux subdirectory, e.g. /etc/selinux/selinux-policy/policy
    • move the file_contexts file to the SELinux subdirectory, e.g. /etc/selinux/selinux-policy/contexts/files
  • Safeguard by Midas
    • load MD policy by the command load_policy
    • restart the “/etc/init.d/log” by the command /etc/init.d/log restart
    • you can add these command to “/etc/rc.local” to be executed once the system init finished.
  • Finish

midasdefense's Projects

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.