A USB lock for an electronic device may include an inner housing (10), an outer housing (20), a USB connector (30), and a drive unit (40). The inner housing (10) has a front opening (111) for securing the USB connector (30) thereon. A rear portion of the inner housing (10) has a tube body (12), and a first through hole (121) penetrating through the tube body (12) communicates with the front opening (111) and is configured to receive the drive unit (40) with a lock pin (43) and a key lock (44). The USB lock according to the present invention is configured to engage a USB port of a 3C product to achieve the anti-theft effect, is easy to assemble, simplifies the structure, lowers the cost of manufacture and prevents the product 3C from to be infected with a virus via an unsafe USB.
展开▼