Lesson 3 of 3 Detective and Preventive Measures

Anti-Malware, Managed Services and AI-Based Tools

Endpoints, outsourced services and machine learning extend an organisation's detection and prevention. This lesson covers anti-malware and EDR, third-party security services, and machine learning and AI-based tools.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe malware types and anti-malware, EDR and XDR.
  • Explain the role of third-party security services.
  • Identify the benefits and limits of machine learning and AI-based tools.

Anti-malware and EDR

Malware types include viruses (attach to files), worms (self-propagating), Trojans (disguised as legitimate software), ransomware, rootkits (hide deep in the system), spyware, keyloggers, botnet agents and fileless malware that lives in memory and abuses legitimate tools. Anti-malware detects them through signatures of known malware, heuristics that recognise suspicious code characteristics, and behaviour monitoring that flags malicious actions.

Endpoint detection and response (EDR) continuously records endpoint activity, detects suspicious behaviour, supports investigation and allows responses such as isolating a host remotely. Extended detection and response (XDR) correlates telemetry across endpoints, network, email, identity and cloud. Anti-malware runs on endpoints, servers, email gateways and web proxies and is centrally managed and updated.

Fileless attacks show why behaviour monitoring and EDR matter. Instead of writing a malicious program to disk, the attacker uses tools already present on the system, such as the operating system's scripting environment, to download code directly into memory and run it. There is no file for a signature to match. An EDR tool, however, records that a word processor started a scripting process, which connected to the internet and then read the memory of the credential management process, a chain of behaviour that is almost never legitimate. The analyst can see the whole sequence and isolate the host with one action.

Match the pairs

Malware types

Exam skills 7.7.7

Match each malware type with its defining behaviour.

Log in to try this activity Interactive activities are free with an account.

Third-party security services

Organisations often buy security services they cannot efficiently provide themselves: managed security service providers (MSSPs) that monitor and manage security devices, managed detection and response (MDR) that provides 24-hour threat detection and response, DDoS scrubbing services that absorb volumetric attacks upstream, cloud email security, and incident response retainers.

Contracts define responsibilities, SLAs for detection and response, data handling, escalation and notification. The organisation remains accountable for its security and must oversee the provider's performance.

The key design question with an MDR or MSSP is who is allowed to act. If the provider detects ransomware at 3 a.m., can it isolate the host immediately, or must it phone the customer and wait for permission? Contracts and runbooks should state which actions the provider may take on its own, which need approval and who on the customer's side is reachable at any hour. The customer must also give the provider enough visibility, such as log sources and asset information, because a provider can only detect what it can see.

The following diagram compares on-premises defences with upstream scrubbing against a volumetric attack.

Why on-premises defences cannot stop a volumetric DDoS attack. The attack saturates the internet link before traffic reaches the firewall and IPS, which work correctly but see too late. A DDoS scrubbing service or CDN absorbs and filters the traffic upstream and forwards only clean traffic.
Scrubbing happens before traffic reaches the organisation's link.
Scenario questions

Working with an MDR provider

Exam skills 7.7.4

Set up third-party security services so they can act effectively.

Log in to try this activity Interactive activities are free with an account.

Machine learning and AI-based tools

Machine learning and AI-based tools detect anomalies, classify malware and phishing, correlate and prioritise alerts, and help analysts summarise incidents and query data in natural language. They find patterns in volumes of data that people cannot review manually.

Their limitations include false positives, opaque reasoning, dependence on training data, model drift as environments change, and adversarial attacks that evade models or poison training data. Their outputs need validation and human oversight, especially before automated actions with business impact.

Using these tools responsibly involves both technical and governance controls. A machine learning model that flags anomalous logins should be evaluated against known incidents before it is trusted, its false positive rate measured, and its performance monitored over time, because a model trained on last year's behaviour drifts as the business changes. When analysts use generative AI assistants to summarise incidents or write queries, the organisation must decide what data may be shared with the tool, check the outputs before acting on them and protect the tool itself, since prompt injection hidden in a log entry or email could try to manipulate an assistant that reads it.

Select all that apply

Using AI tools responsibly

Exam skills 7.7.8

Identify responsible practices for ML and AI-based security tools.

Log in to try this activity Interactive activities are free with an account.
Worked example

A volumetric attack

A retailer's website is repeatedly taken offline by DDoS attacks that saturate its 10 Gbps internet link. Its on-premises firewall and IPS are working correctly. What is the BEST mitigation?

Volumetric attacks fill the link before traffic reaches on-premises devices, so local controls cannot help. A third-party DDoS scrubbing service or CDN absorbs and filters attack traffic upstream and forwards only clean traffic. Upgrading the firewall would not address a saturated link.

Check yourself

Which malware type runs in memory and abuses legitimate system tools?

Show answer

Fileless malware.

Exam Tips

Remember for the exam

  • EDR adds detection, investigation and response to prevention.
  • Outsourcing a service does not outsource accountability.
  • DDoS scrubbing absorbs volumetric attacks upstream.
  • AI tools need tuning, validation and human oversight.