GithubHelp home page GithubHelp logo

cep-sose2024 / netwatch Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 2.0 16.64 MB

Official repository of NetWatch- wrapper for accessing hardware security modules (HSM) on Android Devices

Home Page: https://cep-sose2024.github.io/netwatch/posts/getting_started/

License: MIT License

Rust 28.67% Kotlin 49.14% Java 20.26% Shell 0.21% Makefile 1.72%

netwatch's Introduction

NetWatch

Wrapper for Android Keystore System

Project Goal

The main goal of the Netwatch team is to use the security features of the Android platform, namely the Android Keystore system, to provide a way for the enmeshed Crypto Abstraction Layer to interact with mobile devices. The Android Keystore system lets you store cryptographic keys in a secure container to make them more difficult to extract from the device. Sensitive operations are delegated to a secure processor reached through some kernel interface. The resulting architecture looks like this:

alt text

The overall goal of the project is to create a Rust-based wrapper that connects the HSM (Android Keystore) with the Crypto-Abstraction Layer provided by j&s-soft.

Note: This repository only houses the prototype designed to demonstrate the functionality of the android CAL implementation. To view the actual implementation, go to the official CAL fork repository page.

Features

  • Encryption & Decryption
  • Verification & Signing
  • Device attestation

Getting Started

Prerequisites

  • Rust Programming Language: Install the latest version of Rust on your system. You can install Rust through rustup.
  • Android Studio with the NDK and CMAKE SDK tools enabled.

Running the Prototype

  1. Clone the repository:
git clone https://github.com/cep-sose2024/netwatch.git
  1. Install cargo-ndk
cargo install cargo-ndk
  1. Add android toolchain:
rustup target add armv7-linux-androideabi
  1. Navigate to the prototype wrapper directory:
cd netwatch/prototype_rust_wrapper
  1. Build the library:
cargo ndk -t arm64-v8a -o ../prototype_new/app/src/main/jniLibs build
  1. Run the prototype Java application using Android Studio.

Contributing

We welcome contributions from the community. Please submit a pull request if you detect any bugs, have ideas for enhancements, or would like to add new functionality.

License

This project is released under the MIT License.

Acknowledgments

  • Special thanks to j&s-soft for providing the Crypto Abstraction Layer.

netwatch's People

Contributors

dexterhk avatar markoisus avatar mark-beck avatar git-pietro avatar hercules133 avatar

Stargazers

 avatar

Forkers

mark-beck

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.