A new study sheds light on how often people risk their cybersecurity for the sake of altruism (or curiosity).