Docsity

Malware: Malicious Software, Summaries of Logic

Partial preview of the text

Download Malware: Malicious Software and more Summaries Logic in PDF only on Docsity!

Malware:

Malicious Software

Viruses, Worms, Trojans, Rootkits

  • Malware can be classified into several categories, depending on propagation and concealment
  • Propagation
    • Virus: human-assisted propagation (e.g., open email attachment)
    • Worm: automatic propagation without human assistance
  • Concealment
    • Rootkit: modifies operating system to hide its existence
    • Trojan: provides desirable functionality but hides malicious operation
  • Various types of payloads, ranging from annoyance to crime

4.1.1 Backdoors

  • A backdoor, which is also sometimes called a trapdoor, is a hidden feature or command in a program that allows a user to perform actions he or she would not normally be allowed to do.
  • When used in a normal way, this program performs completely as expected and advertised.
  • But if the hidden feature is activated, the program does something unexpected, often in violation of security policies, such as performing a privilege escalation.
  • Benign example: Easter Eggs in DVDs and software

4.1.1 Backdoors inserted for debugging purpose

  • A programmer is working on an elaborate biometric authentication system for a computer login program.
  • She may wish to provide a special command or password that can bypass the biometric system in the event of a failure.
  • It is useful during the code development and debugging, but become a risk that may allow an attacker to bypass authentication measures.

4.1.2 Logic Bombs

  • A logic bomb is a program that performs a malicious action as a result of a certain logic condition.
  • The classic example of a logic bomb is a programmer coding up the software for the payroll system who puts in code that makes the program crash should it ever process two consecutive payrolls without paying him.
  • Another classic example combines a logic bomb with a backdoor, where a programmer puts in a logic bomb that will crash the program on a certain date.

4.1.2 The Omega Engineering Logic Bomb

  • An example of a logic bomb that was actually

triggered and caused damage is one that

programmer Tim Lloyd was convicted of using

on his former employer, Omega Engineering

Corporation. On July 31, 1996, a logic bomb

was triggered on the server for Omega

Engineering’s manufacturing operations,

which ultimately cost the company millions of

dollars in damages and led to it laying off

many of its employees.

4.1.3 Defenses against Insider Attacks

  • Avoid single points of failure.
  • Use code walk-throughs.
  • Use archiving and reporting tools.
  • Limit authority and permissions.
  • Physically secure critical systems.
  • Monitor employee behavior.
  • Control software installations.

4.2 Computer Viruses

  • A computer virus is computer code that can replicate itself by modifying other files or programs to insert code that is capable of further replication.
  • This self-replication property is what distinguishes computer viruses from other kinds of malware, such as logic bombs.
  • Another distinguishing property of a virus is that replication requires some type of user assistance, such as clicking on an email attachment or sharing a USB drive.

Virus Phases

  • Dormant phase. During this phase, the virus just exists— the virus is laying low and avoiding detection.
  • Propagation phase. During this phase, the virus is replicating itself, infecting new files on new systems.
  • Triggering phase. In this phase, some logical condition causes the virus to move from a dormant or propagation phase to perform its intended action.
  • Action phase. In this phase, the virus performs the malicious action that it was designed to perform, called payload. - This action could include something seemingly innocent, like displaying a silly picture on a computer’s screen, or something quite malicious, such as deleting all essential files on the hard drive.

Types of Viruses

  • Program Virus / file virus:
    • infects a program by modifying the file containing its object code.
    • Once the infection occurs, a program virus is sure to be run each time the infected program executes.
  • Macro virus / document virus
    • When a document is opened, it searches for other documents to infect.
    • It can insert itself into the document template, which makes the newly created document infected.
    • Further propagation occurs when the infected documents are emailed to other users.

Degrees of Complication

  • Viruses have various degrees of complication in how they can insert themselves in computer code.

4.2.2 Defenses against viruses - Signature

  • Scan compare the analyzed object with a database of signatures
  • A signature is a virus fingerprint
    • E.g., a string with a sequence of instructions specific for each virus
    • Different from a digital signature
  • A file is infected if there is a signature inside its code - Fast pattern matching techniques to search for signatures
  • All the signatures together create the malware database that usually is proprietary

4.2.2 Defenses against viruses -- Quarantine

  • A suspicious file can be isolated in a folder called quarantine:
  • The suspicious file is not deleted but made harmless: the user can decide when to remove it or eventually restore for a false positive - Interacting with a file in quarantine it is possible only through the antivirus program
  • The file in quarantine is harmless because it is encrypted
  • Usually the quarantine technique is proprietary and the details are kept secret

4.2.3 Encrypted Viruses

  • The presence of their virus in a file is more stealthy if the main body of the program is encrypted, especially the replication code and payload
  • The virus code’s new structure: the decryption key, the key and the encrypted virus code.
  • This structure becomes a kind of virus signature
  • The arm race continues: Signature based detection à encrypted viruses à look for encryption code