When you plug into anything that can access data, such as a computer, iOS will ask you if you want to “trust” the device. If you see that alert, unplug immediately, because you are connected to something other than an innocuous charger.

https://www.fastcompany.com/90431828/how-to-stop-public-usb-ports-from-hacking-your-phone?partner=rss&utm_campaign=rss+fastcompany&utm_content=rss&utm_medium=feed&utm_source=rss