WhatsApp is testing a real-time security warning system that alerts users when another linked device accesses their account.