ArticleslgStudy

computer science

Defensive computing

Defensive computing 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 Defensive computing rather than just read about it. In short: Defensive computing is a set of practices that computer users can use to reduce their risk of computer security problems. The goal of this method of computing is to anticipate and prepare for potentially problematic situations prior to their occurrence, despite any adverse conditions of a computer system or any mistakes made by other users.

Key takeaways

  • Defensive computing 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 Defensive computing to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Defensive computing from memory before moving on to harder problems.

Reference excerpt

Defensive computing is a set of practices that computer users can use to reduce their risk of computer security problems. The goal of this method of computing is to anticipate and prepare for potentially problematic situations prior to their occurrence, despite any adverse conditions of a computer system or any mistakes made by other users. This can be achieved through adherence to a variety of general guidelines, as well as the practice of specific computing techniques. Defensive computing includes protecting information privacy. Both defensive computing and cybersecurity awareness are approaches that individual computer users can use to reduce risks. The term defensive computing is an analogy to defensive driving. It was most commonly used in the 2000s and 2010s, before the software industry shifted to building better user protections into software by default, including by applying the concepts of usable security and secure by design.

Strategies

Network security A commonly recommended defensive computing strategy is to implement firewall software that filters both inbound and outbound traffic, as a network security measure that protects a computer from harmful inbound and outbound traffic on the Internet and reduces the risk of the unauthorized access of computer systems. As of 2023, most operating systems include built-in firewall features.

Anti-malware practices A core strategy recommended for defensive computing was to install and use antivirus software, especially for Microsoft Windows computers. However, recommendations related to defensive computing noted the limitations of antivirus software and suggested additional ways of reducing risk, such as using a user account with limited permissions or a Chromebook. Microsoft Windows eventually built in Windows Defender, an antivirus tool. Other common recommendations include keeping software up to date. In the 2000s, another recommendation was to disable AutoRun feature from USB flash drives, because some viruses, especially worms, could spread automatically through USB flash drives.

Skepticism An important aspect of defensive computing is for users to be skeptical. Malicious software can exist in a multitude of different forms and many are misleading to general computer users and even some anti-malware software. Defensive users think critically about the information they can access, to reduce their chances of downloading and spreading malicious software. Strategies include scanning email attachments prior to opening them and manually filtering suspicious emails from inboxes. Users should be aware of persuasive subject lines and headings in emails from any address, as they may actually contain malicious software or spam, which can mislead users into false advertisement resulting in identity theft. Defensive users can scan files they download prior to opening them and can also configure their computers to show file extensions, revealing potentially dangerous files that appear harmless. Skepticism can also be applied to the websites visited by users.

Data backups Despite the efforts of a defensive computer user, the loss of important data can occur due to malware, power outages, equipment failure and general misuse. Although the loss of data cannot be completely prevented, defensive users can take steps to minimize the amount of data lost and restore systems to their previous state by backing up their data.

See also

References

Worked examples

Example 1 — a first encounter with Defensive computing

Start with the simplest possible case. Write down what Defensive computing 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 Defensive computing 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 Defensive computing 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 Defensive computing

In research
Defensive computing 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 Defensive computing 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
Defensive computing is common in secondary-school and first-year university syllabi. It links to neighbouring topics Backup, Computer security, so understanding it makes those chapters shorter.
In everyday life
Look for Defensive computing 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 “Defensive computing” →

How to study Defensive computing in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Defensive computing 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 Defensive computing out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Defensive computing in simple terms?

Defensive computing is a set of practices that computer users can use to reduce their risk of computer security problems. The goal of this method of computing is to anticipate and prepare for potentially problematic situations prior to their occurrence, despite any adverse conditions of a computer…

Why does Defensive computing 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 Defensive computing?

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 Defensive computing.

Tags

  • Backup
  • Computer security

Keep exploring