mirror of
https://github.com/mvt-project/mvt.git
synced 2024-06-30 16:18:54 +00:00
Adds detection for disabled security packages in Android (#306)
* Adds detection for disabled security packages in Android * Update detection of disabled security packages
This commit is contained in:
parent
e1d1b6c5de
commit
c3dc4174fc
|
@ -66,6 +66,13 @@ ROOT_PACKAGES = [
|
||||||
"com.kingouser.com",
|
"com.kingouser.com",
|
||||||
"com.topjohnwu.magisk",
|
"com.topjohnwu.magisk",
|
||||||
]
|
]
|
||||||
|
SECURITY_PACKAGES = [
|
||||||
|
"com.policydm",
|
||||||
|
"com.samsung.android.app.omcagent",
|
||||||
|
"com.samsung.android.securitylogagent",
|
||||||
|
"com.sec.android.soagent",
|
||||||
|
"com.wssyncmldm",
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
class Packages(AndroidExtraction):
|
class Packages(AndroidExtraction):
|
||||||
|
@ -122,6 +129,10 @@ class Packages(AndroidExtraction):
|
||||||
self.detected.append(result)
|
self.detected.append(result)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if result["package_name"] in SECURITY_PACKAGES and result["disabled"]:
|
||||||
|
self.log.warning("Found a security package disabled: \"%s\"",
|
||||||
|
result["package_name"])
|
||||||
|
|
||||||
if not self.indicators:
|
if not self.indicators:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user