How iOS 11.4.1 limits USB accessories to make your iPhone and iPad more secure

The iOS 11.4.1 update includes a new security feature that restricts the way USB accessories can interact with iPhone and iPad devices. If the phone has not been unlocked within the last hour, iOS will disable the Lightning port so USB accessories cannot communicate with the device. After unlocking, any accessories will stay connected.
USB power chargers are not affected, but some USB accessories that provide power may not charge the device until the device has been unlocked. Apple has detailed in a new support article exactly what this means for users ….
iOS 11.4’s USB Restricted Mode prevents tethered cracking attempts, Lightning becomes charge-only

iOS 11.4 should be released within the next several weeks. With that, Apple could be implementing further security protocols on iOS that prevent devices to be used with a Mac or PC after 7 days of not unlocking the device.