I dont see any indecation on screen of an external display being conected. That opens the possibility of capturing a screen recording when connected to what is believed to be a charging cable. The fact that the default is that the screen gets mirrored and most keyboards show the keys being pressed makes capturing passwords possible
I think when casting the screen with cromecast there is a notification and an indicator. There schould be something similar when conecting an external display