Towards a Network-based Approach for Smartphone Security