Lesson 2 of 3 Malicious Code and Activity

Malicious Activity and Social Engineering

Not all attacks involve malware on a victim's machine. This lesson explains the types of malicious activity named in the outline, including insider threats, data theft, DDoS, botnets, zero-day exploits, web-based attacks and advanced persistent threats, and the social engineering methods attackers use against people.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe insider threats and data theft.
  • Explain botnets, DDoS and zero-day exploits.
  • Describe web-based attacks and APTs.
  • Identify social engineering methods and the principles they exploit.

Insider threats and data theft

An insider threat comes from someone with legitimate access: an employee, contractor or partner. Malicious insiders steal data, commit fraud or sabotage systems, often motivated by money, grievance or recruitment by outsiders. Negligent insiders cause harm through mistakes, such as emailing the wrong recipient or misconfiguring storage. Compromised insiders are legitimate accounts controlled by attackers. Insider threats are hard to detect because the activity uses authorised access.

Data theft or exfiltration is the unauthorised transfer of data out of the organisation, by insiders or external attackers: uploads to personal cloud storage, email, USB drives, encrypted channels to attacker servers, or DNS tunnelling. Countermeasures include least privilege, data classification, DLP, monitoring of unusual data access and transfers, and behaviour analytics.

Select all that apply

Signs of insider threat

Exam skills 7.1.3

Identify indicators that may suggest an insider threat.

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

DDoS, botnets and zero-day exploits

A botnet is a network of compromised devices (bots or zombies), such as PCs, servers and IoT devices, controlled by an attacker through command-and-control (C2) servers or peer-to-peer channels. Botnets are rented out for DDoS attacks, spam and phishing campaigns, credential stuffing, click fraud and distributing other malware. An infected organisation may be both a victim and an unwitting participant in attacks on others; egress filtering and C2 detection help.

A zero-day vulnerability is one unknown to the vendor, or known but unpatched, so no fix exists; a zero-day exploit attacks it. Zero-days are valuable and often used in targeted attacks. Because patches cannot help until released, defence relies on layered controls that do not depend on knowing the specific flaw: least privilege, segmentation, application allow listing, exploit protection features, behaviour-based detection, and rapid patching once a fix appears.

Web-based attacks and APTs

Web-based attacks target web applications and their users. They include injection attacks such as SQL injection (inserting database commands into input) and command injection; cross-site scripting (XSS), which injects scripts that run in other users' browsers; cross-site request forgery (CSRF), which tricks an authenticated user's browser into sending unwanted requests; drive-by downloads from compromised or malicious sites; malvertising, malicious code in advertising networks; and attacks on authentication such as credential stuffing.

An advanced persistent threat (APT) is a well-resourced, skilled adversary, often state-sponsored, that targets specific organisations, gains access, establishes multiple footholds and remains undetected for long periods to steal intellectual property or prepare disruption. APTs use spear phishing, zero-days, supply chain compromise, custom malware and living-off-the-land techniques. Defence requires defence in depth, threat intelligence, threat hunting and detection of subtle behaviour, mapped with MITRE ATT&CK.

Social engineering methods

Social engineering manipulates people into revealing information, granting access or taking harmful actions. The outline names several methods, described below.

Spam
Unsolicited bulk email, used for scams, malware distribution and phishing.
Phishing
Deceptive messages, usually email, that trick recipients into revealing credentials, opening malicious attachments or visiting malicious sites. Spear phishing targets specific individuals with personalised content.
Whaling
Spear phishing aimed at senior executives, such as fake legal notices or board communications.
Smishing
Phishing by SMS or messaging apps, such as fake parcel delivery texts.
Vishing
Voice phishing by phone, such as callers claiming to be from IT support or the bank; increasingly using AI-generated voices.
Impersonation
Pretending to be a trusted person, such as an executive, supplier, auditor or technician, often with a prepared pretext.

Social engineers exploit psychological principles: authority (instructions from a boss), urgency (act now), scarcity (a limited offer or last chance), intimidation, social proof or consensus (everyone else has done it), familiarity and trust. Business email compromise combines impersonation and urgency to redirect payments, and causes some of the largest financial losses of any cybercrime. Physical methods include tailgating and baiting with infected USB drives.

The following diagram lists the red flags of a business email compromise and the right response.

Recognising business email compromise. An email apparently from the travelling chief executive asks the finance director for an urgent, confidential transfer to a new supplier today: impersonation, authority and urgency. The director verifies through a separate known channel, such as calling a known number, and follows the payment procedure.
The scenario is illustrative.
Match the pairs

Social engineering methods

Exam skills 7.1.5

Match each social engineering method with its description.

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

Classify the activity

Classify each: (1) a departing engineer uploads source code to a personal cloud account in the last week of employment; (2) a text message tells employees their parcel is held and asks them to pay a fee through a link; (3) a group quietly maintains access to a defence contractor's network for 18 months.

(1) is an insider threat committing data theft. (2) is smishing, using urgency. (3) is an advanced persistent threat, defined by its targeting, stealth and persistence.

Worked example

The urgent payment

The finance director receives an email, apparently from the chief executive who is travelling, asking for an urgent confidential transfer to a new supplier before a deal closes today. What should happen?

This shows impersonation, authority and urgency, the hallmarks of business email compromise or whaling. The director should verify the request through a separate, known channel, such as calling the chief executive on a known number, and follow the payment procedure requiring approval and verification of new bank details. The email should be reported to security.

Check yourself

Which social engineering principle does "only three places left, sign up now" use?

Show answer

Scarcity, which pressures people to act before thinking carefully.

Exam Tips

Remember for the exam

  • Insider threats use legitimate access; behaviour analytics and DLP help detect them.
  • Zero-days have no patch; rely on layered and behaviour-based defences.
  • Whaling targets executives; verify unusual requests through a separate channel.