An automated teller machine, comprising: a safe unit; a security device disposed inside the safe unit; a Universal-Serial-Bus connector disposed outside the safe unit and connected to a first set of terminals of the security device; and an electronic device disposed inside the safe unit and connected to a second set of terminals of the security device, wherein the security device comprises: a controllable terminal connection structure to connect the first set of terminals and the second set of terminals with one another and to disconnect the first set of terminals and the second set of terminals from one another to control a physical connection of the Universal-Serial-Bus connector to the electronic device; a measurement circuit coupled to the first set of terminals to measure one or more electrical properties associated with the Universal-Serial-Bus connector when connected to the first set of terminals; and one or more processors configured to control the controllable terminal connection structure based on the determined one or more electrical properties; wherein the first set of terminals and the second set of terminals each comprising at least four terminals (102t, 104t) associated with at least four cores of a Universal-Serial-Bus cable and/or at least four Universal-Serial-Bus pins of the Universal-Serial-Bus connector; wherein the first set of terminals comprises at least two additional terminals associated with at least two additional pins of the Universal-Serial-Bus connector; wherein the additional pins are used to measure the one or more electrical properties via the measurement circuit and: to identify and/or to authenticate the electronic device coupled to the Universal-Serial-Bus connector; and/or to identify and/or to authenticate the Universal-Serial-Bus connector; wherein the one or more electrical properties comprise an electrical resistance; and wherein the Universal-Serial-Bus connector includes a predefined electrical resistor electrically connecting the additional pins with one another. a safe unit; a security device disposed inside the safe unit; a Universal-Serial-Bus connector disposed outside the safe unit and connected to a first set of terminals of the security device; and an electronic device disposed inside the safe unit and connected to a second set of terminals of the security device, a controllable terminal connection structure to connect the first set of terminals and the second set of terminals with one another and to disconnect the first set of terminals and the second set of terminals from one another to control a physical connection of the Universal-Serial-Bus connector to the electronic device; a measurement circuit coupled to the first set of terminals to measure one or more electrical properties associated with the Universal-Serial-Bus connector when connected to the first set of terminals; and one or more processors configured to control the controllable terminal connection structure based on the determined one or more electrical properties; wherein the first set of terminals and the second set of terminals each comprising at least four terminals (102t, 104t) associated with at least four cores of a Universal-Serial-Bus cable and/or at least four Universal-Serial-Bus pins of the Universal-Serial-Bus connector; wherein the first set of terminals comprises at least two additional terminals associated with at least two additional pins of the Universal-Serial-Bus connector; wherein the additional pins are used to measure the one or more electrical properties via the measurement circuit and: wherein the first set of terminals and the second set of terminals each comprising at least four terminals (102t, 104t) associated with at least four cores of a Universal-Serial-Bus cable and/or at least four Universal-Serial-Bus pins of the Universal-Serial-Bus connector; wherein the first set of terminals comprises at least two additional terminals associated with at least two additional pins of the Universal-Serial-Bus connector; wherein the additional pins are used to measure the one or more electrical properties via the measurement circuit and: to identify and/or to authenticate the electronic device coupled to the Universal-Serial-Bus connector; and/or to identify and/or to authenticate the Universal-Serial-Bus connector; wherein the one or more electrical properties comprise an electrical resistance; and wherein the Universal-Serial-Bus connector includes a predefined electrical resistor electrically connecting the additional pins with one another. wherein the one or more electrical properties comprise an electrical resistance; and wherein the Universal-Serial-Bus connector includes a predefined electrical resistor electrically connecting the additional pins with one another.