Skip to main content

Computer Virus



Whilst a biological virus may cause you sneezing, its computer counterpart may render sneaking in your personal details. If you discover some gradual or sudden loss of data on your hard drives, don’t wait for a hardware breakdown for counteraction, you may be under a virus attack; a computer virus attack. A Computer Virus is a malware or a malicious automated code which replicates itself from one computer to another and infects the operation of the machine. It is a small program which spreads by attaching itself (or forcefully by its designers) to executable files or documents present on the computer system.
Viruses are designed to be attached to files that have some programming capability. Such files are usually the executable files, for example files with extension .exe. Hence this advantage follows: A computer virus does not infect or target a machine unless the file it is attached to, gets executed by the user. So the good news is that it does not exploit the vulnerabilities in a system automatically. Besides computer virus, there are other types of malicious code like Trojans, worms, spyware, keyloggers and rootkits which are equally threatening but vary from virus in their dynamics. Read more about how computer virus works.


In Retrospect:

The theory of self-replicating programs was first discovered by John Von Neumann; a Hungarian scientist in 1949. But it was only a proposed rhetoric and no evidence of violating virus was actually found till then. The first ever virus; Creeper Virus was detected on ARPANET (the then internet) in the early 1970s. It was written by Bob Thomas at BBN Technologies in 1971. However the violating PC viruses came into force with the spread of personal computers in 1980s. With the popularity of IBM PC (released in 1982) and APPLE Macintosh (released in 1984), real computers came into the market and hence came the epidemic of computer viruses like Brain, Vienna, Cascade etc. There was sudden drop-down of letters from the display, the computer would start playing some anonymous hymns, the boot sector of a floppy disc would be replaced by a copy of the virus or even the speed of the floppy disc drive would slow down.
Early viruses were pieces of small code attached to legitimate large files like popular games and word processor. Whenever the user runs these legitimate programs the virus loads itself into the memory. There it modifies other programs on the disc and add the virus’s code into the program.
Types of Computer Virus
Viruses are designed for various intents. It might corrupt or destroy data on your computer, use an email program to spread itself to other computers on your network or may even affect the boot sector. Broadly, computer viruses can be divided into two categories;
Compiled Viruses: It is that kind of a virus whose code is converted by the compiler into a format which can be directly executed by an operating system.
Interpreted Viruses: These are the more prevalent type of virus. Interpreted virus is composed of program or code which can be executed only by a particular application or service. These are comparatively easy to generate.
Below are some of the variants of the complied type computer virus:
1.      Boot Sector Virus - As the name suggests a boot sector virus affects the boot section on your computer. Evidently, boot sector is the section which is accessed at the very first when the computer is turned on. It is used to boot the information used by the operating system. A Boot sector virus gains complete control over the Master Boot Record (MDR) or the DOS by replacing the contents of the OS with that of its own resulting in errors during booting or ‘cannot boot’ message. Michelangelo and Stones are some examples of boot sector viruses. Earlier, before the era of modern, heavy memory computers, floppy disks were used to boot the system. With the decline of floppy disks, boot viruses have declined as well.
2.      File Infector Virus - This is the most popular and most prevalent variant of compiled computer virus. It attaches itself to executable programs such as word processors, game files, spreadsheets applications, etc. The file infector virus fixes itself into the host file and begins its operation whenever the file is executed. Here is a snapshot of one such threat detected by an antivirus.
      When the file is executed, the virus runs first followed by the program. Examples of file infector virus are Cascade and Jerusalem.



3.      Multipartite Virus - Unlike other types of viruses, the multipartite finds multiple breeding areas for target. It may attach itself to the boot sector, the executable files or both depending on machine variants like the type of OS and other variables. Some specimen of multipartite virus is Flip and Invader. Multipartite virus spreads faster than the other variants of compiled virus due to the presence of multiple spread vectors. Hence, removing these is also difficult and requires cleaning both the booth sector and the infected files.


Comments

Popular posts from this blog

Spring Security with JWT for REST API

Spring is considered a trusted framework in the Java ecosystem and is widely used. It’s no longer valid to refer to Spring as a framework, as it’s more of an umbrella term that covers various frameworks. One of these frameworks is Spring Security , which is a powerful and customizable authentication and authorization framework. It is considered the de facto standard for securing Spring-based applications. Despite its popularity, I must admit that when it comes to single-page applications , it’s not simple and straightforward to configure. I suspect the reason is that it started more as an MVC application -oriented framework, where webpage rendering happens on the server-side and communication is session-based. If the back end is based on Java and Spring, it makes sense to use Spring Security for authentication/authorization and configure it for stateless communication. While there are a lot of articles explaining how this is done, for me, it was still frustrating to set it up for the f...

Java Functional Interfaces

  The term   Java functional interface   was introduced in Java 8. A   functional interface   in Java is an interface that contains only a single abstract (unimplemented) method. A functional interface can contain default and static methods which do have an implementation, in addition to the single unimplemented method. Here is a Java functional interface example: public interface MyFunctionalInterface { public void execute(); } The above counts as a functional interface in Java because it only contains a single method, and that method has no implementation. Normally a Java interface does not contain implementations of the methods it declares, but it can contain implementations in default methods, or in static methods. Below is another example of a Java functional interface, with implementations of some of the methods: public interface MyFunctionalInterface2{ public void execute(); public default void print(String text) { System.out.println(t...

Java Logger

In Java, logging is an important feature that helps developers to trace out the errors. Java is the programming language that comes with the logging approach. It provides a Logging API that was introduced in Java 1.4 version. It provides the ability to capture the log file. In this section, we are going to deep dive into the Java Logger API. Also, we will cover logging level, components, Logging handlers or appenders, logging formatters or layouts, Java Logger class, What is logging in Java? In Java, Logging is an API that provides the ability to trace out the errors of the applications. When an application generates the logging call, the Logger records the event in the LogRecord. After that, it sends to the corresponding handlers or appenders. Before sending it to the console or file, the appenders format that log record by using the formatter or layouts. Need for Logging It provides the complete tracing information of the application. It records the critical failure if any occur in ...