Malicious Code - What it is, warning signs, and how to prevent it

Malicious Code

What it is

Malicious code is any program or script written to harm systems or data. It exploits weaknesses to steal information, corrupt files, spy on activity, or open a backdoor so attackers can get back in later. Think of it as code with the goal of breaking trust rather than doing useful work.

Why it matters

A single run of malicious code can lead to account theft, data leaks, downtime, and costly recovery. Because it often hides inside normal-looking files or websites, prevention and quick detection are key.

How it works - quick tour

  • Exploits software bugs to run without permission

  • Drops payloads like spyware, ransomware, or cryptominers

  • Persists using startup entries, scheduled tasks, or services

  • Phones home to command servers to fetch new instructions

What you may notice

  • Sudden pop-ups, redirects, or tool crashes

  • New processes or startup items you did not add

  • High CPU or network use when idle

  • Security tools disabled or failing to update

Prevent it

  • Update OS, browsers, and apps quickly

  • Install software only from official sources

  • Turn on EDR or reputable anti-malware with real-time protection

  • Use MFA and a password manager to limit damage

  • Block risky sites with DNS or web filtering

    Glossary (A–Z)

    All A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
      • Related Articles

      • Malvertising

        What it is Malvertising is when attackers hide malicious code inside online ads. You don’t have to click a sketchy site - a booby-trapped ad on a legit page can redirect, phish, or install malware through drive-by downloads and pop-ups. How it works ...
      • Malware

        What it is Malware is any software made to harm your device or data. It can steal passwords, lock your files, spy on activity, or hijack your browser. For a quick primer and examples, see our malware explainer. How it spreads Phishing emails and fake ...
      • Web Cache Poisoning

        What it is Web cache poisoning is when attackers sneak bad content into a website’s cache. The cache is a “shortcut” server use to make pages load faster for everyone. If it’s poisoned, later visitors get the attacker’s fake version instead of the ...
      • Web Protection

        What it is Web protection is a bundle of tools and settings that keep you safer while you browse. It blocks dangerous sites and downloads, warns about fake logins, filters sketchy links, and helps keep your info private. It can run on your device ...
      • Mobile Code

        What it is Mobile code is code that arrives with a page, message, or app and runs automatically on your device. Think scripts, macros, plug-ins, and mini apps that add features like forms, animations, or in-app widgets. When misused, the same ...