A security device for a firearm, comprising - a releasing/locking device, which can be brought into a first state, which permits a shot to be fired, and into a second state, which prevents a shot from being fired, and - a state changing device, which allows the releasing/locking device to be brought from the first state into the second state only upon response of triggering an firearm internal process for firing a shot in the absence of authorization information, - a state holding device, which allows to maintain the releasing/locking device in the second state in response of triggering an firearm internal process for firing a shot in the presence of authorization information; - a actuating device operatively connected to the releasing/locking device, which allows the releasing/locking device to be brought from the second state into the first state and the actuating device is configured for operative connection to a trigger rod of the firearm and can be actuated by means of the trigger rod, wherein - the release/locking device comprises a firing pin for the firearm, which is movable into a first position, which permits firing a shot, and a second position, which does not permit firing a shot, and the firing pin is in its first position for the first state of the releasing/locking device and is in its second position for the second state of the releasing/locking device, wherein - the actuating device interacts with the releasing/locking device upon actuation of the trigger rod in a first time period, so that the releasing/locking device is brought from the second state into the first state and therewith, the firing pin is moved from the second position into the first position, wherein - if authorization information is present, the state holding device holds the firing pin in the first position for a second time period after the first time period, whereby firing a shot is possible, or - if no authorization information is present, the state holding device permits movement of the firing pin back into the second position and the state changing device interacts with the releasing/locking device, so that the releasing/locking device can be brought from the first state into the second state and therewith the firing pin can be moved from the first position into the second position, whereby firing a shot is not possible. - a releasing/locking device, which can be brought into a first state, which permits a shot to be fired, and into a second state, which prevents a shot from being fired, and - a state changing device, which allows the releasing/locking device to be brought from the first state into the second state only upon response of triggering an firearm internal process for firing a shot in the absence of authorization information, - a state holding device, which allows to maintain the releasing/locking device in the second state in response of triggering an firearm internal process for firing a shot in the presence of authorization information; - a actuating device operatively connected to the releasing/locking device, which allows the releasing/locking device to be brought from the second state into the first state and the actuating device is configured for operative connection to a trigger rod of the firearm and can be actuated by means of the trigger rod, - the release/locking device comprises a firing pin for the firearm, which is movable into a first position, which permits firing a shot, and a second position, which does not permit firing a shot, and the firing pin is in its first position for the first state of the releasing/locking device and is in its second position for the second state of the releasing/locking device, - the actuating device interacts with the releasing/locking device upon actuation of the trigger rod in a first time period, so that the releasing/locking device is brought from the second state into the first state and therewith, the firing pin is moved from the second position into the first position, - if authorization information is present, the state holding device holds the firing pin in the first position for a second time period after the first time period, whereby firing a shot is possible, or - if no authorization information is present, the state holding device permits movement of the firing pin back into the second position and the state changing device interacts with the releasing/locking device, so that the releasing/locking device can be brought from the first state into the second state and therewith the firing pin can be moved from the first position into the second position, whereby firing a shot is not possible.