Divested-Mobile / Hypatia

A realtime malware scanner
GNU Affero General Public License v3.0
542 stars 45 forks source link

Manual loading of Databases without needing to download everytime #94

Open uncommonthinker opened 2 months ago

uncommonthinker commented 2 months ago

We have devices that we test in our facility and need to run the antivirus to make sure they dont have any. Is there a way to load the databases manually/ via adb to the signatures folder? Putting the devices on wifi everytime adds time to the process, i am planning to automate the test process without having to put the devices online.

Is it possible with the current flow? Is there a database repository from where i can download the latest ones periodically and update the offline databases?

SkewedZeppelin commented 2 months ago

Offline database support could be added as a feature.

In the meantime you could alternatively run your own web server with a directory including the following files and point the app to it:

https://divested.dev/MalwareScannerSignatures/gpg.key
https://divested.dev/MalwareScannerSignatures/hypatia-domains-bloom.bin
https://divested.dev/MalwareScannerSignatures/hypatia-domains-bloom.bin.sig
https://divested.dev/MalwareScannerSignatures/hypatia-md5-bloom.bin
https://divested.dev/MalwareScannerSignatures/hypatia-md5-bloom.bin.sig
https://divested.dev/MalwareScannerSignatures/hypatia-md5-extended-bloom.bin
https://divested.dev/MalwareScannerSignatures/hypatia-md5-extended-bloom.bin.sig
https://divested.dev/MalwareScannerSignatures/hypatia-sha1-bloom.bin
https://divested.dev/MalwareScannerSignatures/hypatia-sha1-bloom.bin.sig
https://divested.dev/MalwareScannerSignatures/hypatia-sha256-bloom.bin
https://divested.dev/MalwareScannerSignatures/hypatia-sha256-bloom.bin.sig
uncommonthinker commented 2 months ago

@SkewedZeppelin Thanks a lot. Let me know if i can help build this feature.

uncommonthinker commented 1 week ago

@SkewedZeppelin I tried downloading the databases and dumped them in the signatures folder via adb and turned the Wi-Fi off. It automatically picks up from the folder without having to download the databases.