An electronic lock, comprising a closure element that moves by means of an actuation mechanism , defining at least an open position and a closed position of the electronic lock comprising: - a mobile carriage defining an open position and a closed position, wherein the mobile carriage is coupled on one end to the closure element and to the actuation mechanism on its opposite end; - a first elastic element located between the mobile carriage and the closure element , where the first elastic element can move in relation to the mobile carriage in the same direction the mobile carriage is moving; - a lock sensor connected to an electronic control module that controls the position of the closure element , detecting when the closure element is totally or partially in the open position; - the electronic control module controlling the actuation mechanism and that is configured to identified non-authorised manipulations of the lock when: after the closure element has been given the order to close the lock, the lock sensor detects that the closure element is in the open position, or after the closure element has been given the order to open the lock, the lock sensor does not detect that the closure element is in the open position. characterized in that it further comprises: - a male element coupled to the mobile carriage by means of a second elastic element , where the male element can move in relation to the mobile carriage in the same direction the mobile carriage is moving; - a locking latch that turns around an axis defining a locked position and an unlocked position; so that when the closure element is in the open position, the locking latch goes into the unlocked position, while when the closure element is in the closed position, the locking latch is located between the closure element and the male element , blocking the locking latch and the movement of the closure element , with the male element acting as a stop for the locking latch . - a mobile carriage defining an open position and a closed position, wherein the mobile carriage is coupled on one end to the closure element and to the actuation mechanism on its opposite end; - a first elastic element located between the mobile carriage and the closure element , where the first elastic element can move in relation to the mobile carriage in the same direction the mobile carriage is moving; - a lock sensor connected to an electronic control module that controls the position of the closure element , detecting when the closure element is totally or partially in the open position; - the electronic control module controlling the actuation mechanism and that is configured to identified non-authorised manipulations of the lock when: after the closure element has been given the order to close the lock, the lock sensor detects that the closure element is in the open position, or after the closure element has been given the order to open the lock, the lock sensor does not detect that the closure element is in the open position. - a male element coupled to the mobile carriage by means of a second elastic element , where the male element can move in relation to the mobile carriage in the same direction the mobile carriage is moving; - a locking latch that turns around an axis defining a locked position and an unlocked position; so that when the closure element is in the open position, the locking latch goes into the unlocked position, while when the closure element is in the closed position, the locking latch is located between the closure element and the male element , blocking the locking latch and the movement of the closure element , with the male element acting as a stop for the locking latch . <EOS>