Git Product home page Git Product logo

cloud_integrity's Introduction

VMI

Introduction

This tool uses Virtual Machine Introspection to detect rootkits, trace syscall/APIs, and control VMs' code path to prevent it from being compromised by malware.

Requirements

The following software are required:

  • Xen: the newer version of Xen hypervisor is recommanded (e.g., Xen-4.7)

  • Libvmi: this is a C library for virtual machine introspection.

For hardware, this tool uses hardware virtualization extensions found in Intel CPUs. So we need an Intel CPU with virtualization support (VT-x) and with Extended Page Tables (EPT).

Supported guests

We test the codes on Linux 2.6, 64-bit versions.

Usage

To compile the source code, just type "make" at the root directory. It will generate a vmi binary.

To run the program, use the following command: ./vmi -v [vm-name] -m [mode]

The vm-name is the name of the introspected VM, displayed by the hypervisor (e.g., xl list)

We support the following mode:

  • process-list: List the processes
  • module-list: List the modules
  • syscall-check: Check if any syscall is hooked
  • idt-check: Check if any interrupt handler is hooked
  • network-check: Check if any network connection is hidden
  • syscall-trace: Trace the system call made by any processes
  • socketapi-trace: Trace the socket API made by any processes
  • driverapi-trace: Trace the kernel device driver API made by any processes
  • process-block: Block a process from launching if its image matches something
  • sleepapi-nop: NOP the sleep calls to specified processes
  • process-kill: Kill a process given its pid

tools

This folder provides a set of tools to find the offsets of the linux kernel structure. Copy this folder into the guest OS, compile and insert the kernel modules into the guest kernel. You will get the offsets from dmesg. Then you can feed the offsets into the libvmi.conf, or into the source code.

tests

This folder provides several testing programs:

  • rootkits: this folder gives three rootkits for detecting.
  • syscall: a simple program, using some syscalls for tracing
  • kernel_driver: registering a Character device for detection
  • net_socket: establishing a network socket for detection
  • sleep: a program calling sleep APIs.

cloud_integrity's People

Contributors

tianweizhang avatar

Watchers

 avatar  avatar

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.