BinCtx: Multi-Modal Representation Learning for Robust Android App Behavior Detection
Zichen Liu, Shao Yang, Xusheng Xiao
TL;DR
BinCtx tackles the challenge of detecting malicious and undesired Android app behaviors that are not strictly tied to dangerous permissions. It constructs a three-branch representation by (i) rendering the DEX bytecode as an RGB image processed by DenseNet, (ii) extracting contextual signals from AndroidManifest.xml and URL/IP constants, and (iii) counting third-party library usage via Inter-Component Call Graph paths, all fused into a multi-layer perceptron classifier. The approach achieves a macro $F_1$ of $94.73\%$, surpassing state-of-the-art baselines by at least $14.92\%$, and shows robustness to code obfuscation and adversarial manipulation. These results demonstrate the value of integrating global code textures with contextual and SDK-usage signals for reliable detection, with practical implications for app-market vetting and policy enforcement.
Abstract
Mobile app markets host millions of apps, yet undesired behaviors (e.g., disruptive ads, illegal redirection, payment deception) remain hard to catch because they often do not rely on permission-protected APIs and can be easily camouflaged via UI or metadata edits. We present BINCTX, a learning approach that builds multi-modal representations of an app from (i) a global bytecode-as-image view that captures code-level semantics and family-style patterns, (ii) a contextual view (manifested actions, components, declared permissions, URL/IP constants) indicating how behaviors are triggered, and (iii) a third-party-library usage view summarizing invocation frequencies along inter-component call paths. The three views are embedded and fused to train a contextual-aware classifier. On real-world malware and benign apps, BINCTX attains a macro F1 of 94.73%, outperforming strong baselines by at least 14.92%. It remains robust under commercial obfuscation (F1 84% post-obfuscation) and is more resistant to adversarial samples than state-of-the-art bytecode-only systems.
