ArticleslgStudy

computer science

ANTI (computer virus)

ANTI (computer virus) is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand ANTI (computer virus) rather than just read about it. In short: ANTI is a computer virus affecting Apple Macintosh computers running classic Mac OS versions up to System 6. It was the first Macintosh virus not to create additional resources within infected files; instead, it patches existing CODE resources.

Key takeaways

  • ANTI (computer virus) belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect ANTI (computer virus) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of ANTI (computer virus) from memory before moving on to harder problems.

Reference excerpt

ANTI is a computer virus affecting Apple Macintosh computers running classic Mac OS versions up to System 6. It was the first Macintosh virus not to create additional resources within infected files; instead, it patches existing CODE resources. The most commonly encountered strains of ANTI have only subtle effects, and thus can exist and spread indefinitely without being noticed until an antivirus application is run. Due to a bug in the virus, it cannot spread if MultiFinder is running, which prevents it from infecting System 7 and later versions of Mac OS as well as System 5 and 6 running MultiFinder.

Mode of operation ANTI only infects applications (as opposed to system files), and therefore can only spread when an infected application is run. When such an application calls the OpenResFile function, the virus searches the computer for applications that fulfill all of the following criteria:

They have CODE (application code segment) resources with resource IDs 0 and 1 CODE 1 begins with a JSR instruction (generally the Main resource in a given application) The application is not already infected with ANTI The sum of the size of CODE 1 plus the size of the virus is less than or equal to 32,768 bytes All matching applications are then infected by appending the virus to the CODE 1 resource and adding a corresponding entry to the application's jump table.

Variants There are three strains of ANTI, with the following differences:

ANTI-A: 1,344 bytes plus 8 byte jump table entry. The first version to be isolated, in France in February 1989. Searches for ANTI-B strains and converts them into ANTI-Variant. ANTI-B: 1,144 bytes plus 8 byte jump table entry. Discovered in France in September 1990. Despite the later discovery date, it is believed to be the earliest version of the virus. Also known as ANTI-0. ANTI-Variant: Discovered in September 1990. The result of ANTI-A finding and modifying an ANTI-B strain. Causes the computer to hang when the infected application is run. Also known as ANTI-ANGE.

Payload All strains carry a payload related to floppy disk access. When an infected application calls the MountVol function, the virus checks that the disk is actually a floppy disk, and if so, reads the first sector (512 bytes) of track 16. Then the virus compares the text at an offset 8 bytes into that sector against the string $16+"%%S". If the text matches, the virus executes the code at offset 0 of the sector via a JSR. No disks containing a matching string are known to exist, so in practice this payload has no effect. Based on this search for an expected string at a specific location on the disk, Danny Schwendener of ETH Zurich hypothesised that ANTI had been intended to form part of a copy protection scheme, which would detect the reorganisation caused by a standard filesystem copy.

Side Effects During infection, ANTI clears all resource attributes associated with CODE 1, which may cause the infected application to use more memory, particularly on older Macintoshes with 64 KiB ROMs.

Mitigation Unlike preceding Macintosh viruses, ANTI can not be detected by specific resource names and IDs; a slower string comparison search is required in order to find signatures associated with the virus. The University of Hamburg's Virus Test Center recommends detection with an antivirus application such as Disinfectant (version 2.3 and later), Interferon, Virus Detective, or Virus Rx, while McAfee recommends Virex. However, the loss of resource attributes means that removal of the virus does not restore the original application to its pristine state; only restoring from a virus-free backup is completely effective.

See also Extended Copy Protection, a later controversial copy-protection malware

References

External links The Virus Encyclopedia, Anti New Macintosh Virus — Thierry DeLettre's announcement on CompuServe (includes some speculations later found to be incorrect)

Worked examples

Example 1 — a first encounter with ANTI (computer virus)

Start with the simplest possible case. Write down what ANTI (computer virus) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to ANTI (computer virus) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about ANTI (computer virus) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of ANTI (computer virus)

In research
ANTI (computer virus) appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses ANTI (computer virus) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
ANTI (computer virus) is common in secondary-school and first-year university syllabi. It links to neighbouring topics 1980s in hacking, 1989 in computing, Classic Mac OS viruses, so understanding it makes those chapters shorter.
In everyday life
Look for ANTI (computer virus) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “ANTI (computer virus)” →

How to study ANTI (computer virus) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what ANTI (computer virus) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain ANTI (computer virus) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is ANTI (computer virus) in simple terms?

ANTI is a computer virus affecting Apple Macintosh computers running classic Mac OS versions up to System 6. It was the first Macintosh virus not to create additional resources within infected files; instead, it patches existing CODE resources.

Why does ANTI (computer virus) matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study ANTI (computer virus)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on ANTI (computer virus).

Tags

  • 1980s in hacking
  • 1989 in computing
  • Classic Mac OS viruses

Keep exploring