Skip to content
This repository has been archived by the owner on Nov 24, 2024. It is now read-only.
forked from 0xf104a/Valor

Valor is low-level process-chekcing daemon which prevents programs with specific hashes from operating on device

Notifications You must be signed in to change notification settings

PolarMod/android_external_Valor

 
 

Repository files navigation

Valor

Valor is a very simple run-time checker of executable files. It may be used for preventing harmful processes from operating on Android device.

In future it is planned to extend it possibilities also to blocking IP addresses with help of modified netd or directly by interacting with iptables.

Installation

A build.sh is a available for installing it with help of adb root, though it is not recommend as the daemon if over-priviliged then. It is better to integrate the daemon with your custom ROM.

Integration

As valord scans app files it needs extended access to the system which is protected by a set of neverallow and mls rules in order to integrate it with you ROM you would need patch your SEPolicy(see patch in patches/ folder). Here are commits associated with integration of SEPolicy to LineageOS 20.0-based PolarMod 1.3 ROM:

Creating database

The CMakeLists.txt are provided to generate threat database. Currently it is not inteded to be a big one. In order to create your database build dbgen utility and then use it to create database:

./dbgen --db valor.db --name mythreat --filename threat-executable-file

You may continue adding threats with this command.

Using database

By default the database is searched in local directory(see Android.mk) though you may override valor.db module and copy from you own place.

Future plans

  • New algorithm of hashsum checking
  • By-name process database
  • Firewall set-up

About

Valor is low-level process-chekcing daemon which prevents programs with specific hashes from operating on device

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 94.3%
  • Ruby 1.8%
  • Makefile 1.5%
  • Shell 1.3%
  • CMake 1.1%