Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android battery drain heuristics #614

Open
0x0v1 opened this issue Mar 3, 2025 · 0 comments
Open

Android battery drain heuristics #614

0x0v1 opened this issue Mar 3, 2025 · 0 comments

Comments

@0x0v1
Copy link

0x0v1 commented Mar 3, 2025

Hi,

I've been looking at incorporating Android heuristic detection for identifying suspicious activity, I can see that some implementations of grabbing dumpsys data and others have been interegrated into MVT but I'm wondering if there's scope for more detection based analysis?

Here's an example:
https://github.com/0x0v1/MVT-Android-Heuristics/tree/main/batteryusage

This script is designed to analyze the structured output of the adb shell dumpsys batterystats --checkin command. By parsing this system-level battery usage report, the script systematically aggregates per-app battery consumption, tallies wakeups and wakelocks, and flags apps exhibiting suspicious battery drain characteristics. The goal is to identify anomalous background activity that could indicate spyware or stealthy malware.

https://github.com/0x0v1/MVT-Android-Heuristics/blob/main/batteryusage/parse_batterystats.py

This would significantly improve my ability to identify suspicious packages. I've only tested this in development environments and not on live spyware cases yet.

If you have time would appreciate seeing if it has a place in MVT, and if so, maybe testing too to see effectiveness

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant