mirror of
https://github.com/mvt-project/mvt.git
synced 2026-02-12 16:42:45 +00:00
Fix alertstore method calls - use high() instead of warning()
This commit is contained in:
@@ -133,14 +133,14 @@ class Mounts(AndroidArtifact):
|
||||
if mount["is_system_partition"] and mount["is_read_write"]:
|
||||
system_rw_mounts.append(mount)
|
||||
if mount_point == "/system":
|
||||
self.alertstore.warning(
|
||||
self.alertstore.high(
|
||||
self.get_slug(),
|
||||
"Root detected /system partition is mounted as read-write (rw)",
|
||||
"",
|
||||
mount,
|
||||
)
|
||||
else:
|
||||
self.alertstore.warning(
|
||||
self.alertstore.high(
|
||||
self.get_slug(),
|
||||
f"System partition {mount_point} is mounted as read-write (rw). This may indicate system modifications.",
|
||||
"",
|
||||
@@ -156,7 +156,7 @@ class Mounts(AndroidArtifact):
|
||||
):
|
||||
continue
|
||||
suspicious_mounts.append(mount)
|
||||
self.alertstore.warning(
|
||||
self.alertstore.high(
|
||||
self.get_slug(),
|
||||
f"Suspicious mount options found for {mount_point}: {', '.join(suspicious_opts)}",
|
||||
"",
|
||||
|
||||
@@ -46,7 +46,7 @@ class RootBinaries(AndroidQFModule):
|
||||
|
||||
# All found root binaries are considered indicators of rooting
|
||||
for result in self.results:
|
||||
self.alertstore.warning(
|
||||
self.alertstore.high(
|
||||
self.get_slug(),
|
||||
f'Found root binary "{result["binary_name"]}" at path "{result["path"]}"',
|
||||
"",
|
||||
|
||||
Reference in New Issue
Block a user