holaymzhang / HAKC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HAKC-NDSS2022

Overview

This repo contains our implementation of the compartmentalization scheme described in our NDSS '22 paper here. In the paper, we showed that compartmentalization vulnerabilities are the most common class of CVEs, and developed a novel enforcement mechanism for compartmentalization policies. Our mechanism leverages ARM MTE and PAC, which both provides efficient checks and minimizes the software TCB. To measure the performance of our scheme, we compartmentalized the IPv6 and NFTables kernel modules, and evaluated using Apache and by browsing the Alexa Top 50 websites. Here we provided the kernel source files with out annotations to define the compartments, as well as the LLVM compiler pass we use to add the required checks to enforce our scheme.

HAKCs Setup

HAKCs requires building our LLVM pass (contained in PMC-Pass/src) before compiling the kernel (contained in MTE-Kernel). The directions for building the pass are located in PMC-Pass/README.md. Once the pass is built, the kernel can be built. Directions for building the kernel are also included in PMC-Pass/README.md.

rpi-setup contains directions for running on a raspberry pi as described in the paper.

packet-filtering contains scripts used for the packet filtering experiments described in the paper.

scripts contains various utilities.

Disclaimer

HAKC is distributed under the terms of the GPL-2.0-only License DISTRIBUTION STATEMENT A. Approved for public release: distribution unlimited.

© 2021 MASSACHUSETTS INSTITUTE OF TECHNOLOGY

Subject to FAR 52.227-11 – Patent Rights – Ownership by the Contractor (May 2014)
SPDX-License-Identifier: GPL-2.0-only

This material is based upon work supported by the Under Secretary of Defense (USD) for Research & Engineering (R&E) under Air Force Contract No. FA8702-15-D-0001. Any opinions, findings, conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of USD (R&E).

The software/firmware is provided to you on an As-Is basis

About

License:GNU General Public License v2.0


Languages

Language:C 98.0%Language:Assembly 1.1%Language:Shell 0.3%Language:Makefile 0.2%Language:Perl 0.1%Language:Python 0.1%Language:C++ 0.0%Language:Roff 0.0%Language:SmPL 0.0%Language:Yacc 0.0%Language:Lex 0.0%Language:Awk 0.0%Language:UnrealScript 0.0%Language:Gherkin 0.0%Language:Raku 0.0%Language:CMake 0.0%Language:M4 0.0%Language:Clojure 0.0%Language:XS 0.0%Language:sed 0.0%