Android malware analysts collect two kinds of evidence about an app: static analysis reads the APK, and dynamic analysis runs the app in a sandbox. The two views complement each other, but each view has its own feature space. A detector trained on APKs cannot score a sandbox report, and an analyst who receives a report without a usable hash cannot ask which known APK produced it. We present Bridge, a bridge between static and dynamic analysis that treats the two views as two descriptions of the same app, in the same way that vision-language models treat an image and its caption. We write the framework API list of the APK and the normalized sandbox report as text, and we fine-tune one shared encoder (Qwen3-Embedding-0.6B with LoRA) with a cross-view contrastive loss and a supervised contrastive label loss. In this space, a detector trained on one view scores the other view, a report finds and verifies the APK that produced it, a report is attributed to a malware family across views, and the fusion of the two views stays strong when one view is weak. On 36,276 apps with both views, a detector trained on one view scores the other view with an AUC of 0.975--0.993, and above 0.91 on malware families not seen in training. For forensic linking, a second model finds the correct APK of a report in the top 10 of 5,442 candidates for 47% of the reports, against 0.7% for the encoder without fine-tuning, and verifies report-APK pairs with an AUC of 0.983 against random pairs and 0.885 against pairs of the same family. The code and the dataset (hashes and metadata of all apps, derived inputs and trained models) are publicly available at https://github.com/Mouatez/bridge-static-dynamic.
翻译:暂无翻译