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
.
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.
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:
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.
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.
- New algorithm of hashsum checking
- By-name process database
- Firewall set-up