Spam in the security context is primarily used to describe e-mail spam. Unwanted messages in your e-mail inbox. Spam, or electronic junk mail, is a nuisance as it can clutter your mailbox as well as potentially take up space on your mail server.
However, spam messages can contain links that when clicked on could go to a website that installs malicious software onto your computer.