I got the impression that a defribrilator will only give a person a shock IF it detects the abnormality in the heart
At least the modern ones, old fashioned defibrillators were manual. In fact the new ones talk to you, give you instructions and are designed to be used by anyone.