Skip to content

Commit

Permalink
Reorganize iOS app module
Browse files Browse the repository at this point in the history
  • Loading branch information
Te-k committed Dec 14, 2024
1 parent cabe4ba commit 782097a
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/mvt/ios/modules/mixed/applications.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
APPLICATIONS_DB_PATH = [
"private/var/containers/Bundle/Application/*/iTunesMetadata.plist"
]
KNOWN_APP_INSTALLERS = [
"com.apple.AppStore",
"com.apple.AppStore.ProductPageExtension",
"com.apple.dmd",
"dmd",
]


class Applications(IOSExtraction):
Expand Down Expand Up @@ -80,12 +86,10 @@ def check_indicators(self) -> None:
self.detected.append(result)
continue
# Some apps installed from apple store with sourceApp "com.apple.AppStore.ProductPageExtension"
if result.get("sourceApp", "com.apple.AppStore") not in [
"com.apple.AppStore",
"com.apple.AppStore.ProductPageExtension",
"com.apple.dmd",
"dmd",
]:
if (
result.get("sourceApp", "com.apple.AppStore")
not in KNOWN_APP_INSTALLERS
):
self.log.warning(
"Suspicious app not installed from the App Store or MDM: %s",
result["softwareVersionBundleId"],
Expand Down

0 comments on commit 782097a

Please sign in to comment.