15.04.2018 Views

programming-for-dummies

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

634<br />

Stopping Malware<br />

With so much money at stake, it’s no surprise that one of the hottest fields of<br />

computer science is now computer security. Computer security is more than<br />

just locking doors and guarding computer rooms. Today, computer security<br />

is stopping threats, repairing damage, and hunting the criminals by using<br />

nothing more than <strong>programming</strong> skills.<br />

Stopping Malware<br />

One of the earliest and most prominent threats to computers is malicious<br />

software, often called malware. Malware is any program designed specifically<br />

to damage another computer, such as by erasing all its files. What makes malware<br />

particularly dangerous is that it’s so common and capable of spreading<br />

without the intervention of the original programmer. The four common types<br />

of malware include<br />

✦ Viruses<br />

✦ Worms<br />

✦ Trojan horses<br />

✦ Spyware<br />

Viruses<br />

Computer viruses are nothing more than programs that attach themselves<br />

onto another file, such as a program or a word processor document. The<br />

virus spreads when you copy an infected file to another computer.<br />

When a computer virus infects a file, it sometimes damages that file. What’s<br />

worse is that most viruses also carry a payload. This payload can range from<br />

the harmless (such as displaying a humorous message on the screen) to the<br />

malicious (such as erasing every file stored on a hard disk). The most effective<br />

way to stop viruses is to capture one and dissect it to see how it works.<br />

To dissect a virus (or any program), you need to use a disassembler, which<br />

essentially converts, or reverse engineers, a program into assembly language<br />

source code. By studying the assembly language code of a virus, you can<br />

understand how it works and, more importantly, how to identify the virus,<br />

essentially capturing that virus’s digital fingerprint.<br />

Capturing the digital fingerprint of a virus is crucial because that’s how most<br />

antivirus programs work. Antivirus programs scan all the files on a hard disk<br />

<strong>for</strong> known signs of specific viruses. Because new variations of viruses appear<br />

every day, the database of an antivirus program must be updated constantly.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!