Secure platforms for enforcing contextual access control