A phone running low in a public place, and a free USB charging port right there on the wall or the table, is one of modern life's small reliefs. Airports, cafes, stations, hotels and increasingly public benches offer them, and plugging straight into the socket feels obviously sensible. The catch is easy to miss: a USB connection is not only a power line. The very same cable and port that deliver electricity can also carry data, and that dual purpose is exactly what makes a public charging point a potential weakness rather than a simple convenience.
The concern, which security researchers have described for years, is that a public USB port could be tampered with so that, while it charges the phone, it also attempts to exchange data with it - to pull information off the device or push unwanted software onto it. Whether any given port has been meddled with is impossible to tell by looking, because a compromised socket looks identical to an honest one. The point is not that every public charger is dangerous; it is that you cannot distinguish a safe one from a rigged one, and the whole appeal of the free port is that you plug in without thinking.
The reassuring part is that avoiding the risk costs almost nothing, because the danger lives specifically in the data-carrying USB connection, not in electricity itself. Charging from your own plug in an ordinary mains wall socket carries only power, with no data path at all, and is completely safe. So the simple habit is to carry your own charger and cable and use the wall socket rather than a public USB port; a small portable battery pack, charged at home and carried in a bag, removes the need to find any public charger in the first place and is the more reliable answer for anyone often caught short.
If a bare public USB port really is the only option, there are inexpensive accessories - sometimes called data blockers - that sit between the cable and the port and physically pass power while blocking the data lines, turning a risky connection back into a safe one. But the everyday lesson is the plainest one: treat a public USB socket as you would any unknown connection to your device, prefer your own plug and the wall, and keep a charged battery pack for emergencies. The free port saves you carrying a charger; carrying the charger saves you the one problem the free port can bring.