Skip to content

Commit

Permalink
Merge branch 'main' into bug/netusage
Browse files Browse the repository at this point in the history
  • Loading branch information
DonnchaC authored Dec 15, 2024
2 parents cabe4ba + 5b2fe3b commit d42e90d
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 d42e90d

Please sign in to comment.