Skip to main content

Threats and Attacks

A control makes sense only against a threat. A firewall answers outsiders probing the network, security training answers phishing, and segregation of duties answers the insider who might misuse access. Before a CPA can judge whether an organization's security controls are adequate, the CPA has to know who might attack, how they attack, and what they are after.

This chapter starts with the attackers themselves (threat agents), then the main types of attacks and the specific techniques they use, then the stages a cyber-attack typically moves through. It then looks at the risks specific to cloud, Internet of Things, and mobile environments, at threat modeling, and at how to determine the threats facing a particular organization. Most of this is tested at the Remembering and Understanding level, but expect scenario questions that ask you to identify the threat in a set of facts.


Types of Threat Agents​

A threat agent, also called a threat actor, is any person, group, or organization that could harm an organization's information systems. The blueprint classifies threat agents two ways: by their relationship to the organization (internal or external) and by their backing (nation-state sponsored or not).

Internal threats come from people who have, or had, authorized access: employees, contractors, temporary workers, and business partners with system access. They are dangerous because they already hold credentials, know the systems, and can often walk into the building, so their activity looks normal. Not every insider means harm; a careless employee who emails the wrong file is an internal threat too. External threats come from people with no authorized access who try to get past the organization's defenses.

Threat ActorDescriptionTypical MotivationSophistication
Script kiddiesInexperienced attackers using ready-made toolsCuriosity, bragging rightsLow
HacktivistsAttackers promoting a political or social causeIdeologyLow to moderate
Organized crimeCriminal groups attacking for moneyFraud, extortion, data theftModerate to high
CompetitorsRivals seeking proprietary informationTrade secrets, competitive advantageModerate
InsidersEmployees or contractors who cause harm intentionally or by accidentMoney, revenge, or simple negligenceVaries
Nation-state actorsGroups working for or sponsored by a governmentEspionage, sabotage, political advantageVery high
Advanced persistent threats (APTs)Highly skilled groups, often state-sponsored, that gain access and stay hidden for long periodsLong-term intelligence gathering and theft of intellectual propertyVery high
Exam Tip

When asked to classify a threat agent, answer two questions: is the actor internal or external, and is it nation-state sponsored or not? A disgruntled employee is internal and not state-sponsored. A government cyber unit is external and state-sponsored.

Example: Bear Co. discovers that a former contractor kept working VPN credentials after the engagement ended and used them to view financial data. Most security frameworks treat this as an internal (insider) threat, because the person's access came from an authorized relationship with Bear Co. The root cause is a failure to revoke access when the engagement ended.


Types of Attacks​

Attacks are grouped by the method used to compromise systems, data, or people. The blueprint names physical attacks, distributed denial of service, malware, social engineering, web application attacks, and mobile device attacks.

Physical Attacks​

Physical attacks exploit the physical environment rather than software:

AttackDescription
Tailgating (piggybacking)Following an authorized person through a secured door
Dumpster divingSearching discarded paper and equipment for sensitive information
Shoulder surfingWatching someone's screen or keyboard to capture passwords or data
Device theftStealing laptops, drives, or phones to get at the data on them
SabotagePhysically damaging equipment, cables, or facilities

Distributed Denial of Service (DDoS)​

A distributed denial of service (DDoS) attack floods a server, application, or network with traffic from many sources at once, so legitimate users cannot reach it. The traffic usually comes from a botnet, a network of compromised computers and devices controlled by the attacker. A DDoS attack targets availability rather than stealing data, though attackers sometimes use one as a distraction while they attempt something else.

Malware​

Malware (malicious software) is software designed to damage, disrupt, or gain unauthorized access to systems:

Malware TypeDescriptionHow It Spreads
VirusCode that attaches to a legitimate program or file and runs when it runsNeeds a user action, such as opening a file
WormSelf-replicating malware that spreads across networks by itselfAutomatically, through network vulnerabilities
Trojan horseMalware disguised as legitimate softwareThe user installs what looks like a useful program
RansomwareEncrypts the victim's data and demands payment for the key; many groups also steal the data and threaten to publish itPhishing or exploited vulnerabilities
SpywareSecretly monitors activity and collects informationBundled with downloads or installed through exploits
RootkitHides deep in the operating system to give the attacker persistent, hidden accessInstalled after an initial compromise
KeyloggerRecords keystrokes to capture passwords and card numbersThrough a Trojan or physical access

Social Engineering​

Social engineering manipulates people instead of exploiting technology:

AttackDescriptionMedium
PhishingMass messages impersonating a trusted party to steal credentials or deliver malwareEmail
Spear phishingPhishing aimed at a particular person or organization, using personal detailsEmail
WhalingSpear phishing aimed at senior executivesEmail
Business email compromiseImpersonating an executive or vendor to trick staff into sending money or changing payment detailsEmail
VishingVoice phishing by phonePhone
SmishingPhishing by text messageText message
PretextingInventing a believable scenario to win trust and extract informationAny
BaitingLeaving infected media, such as USB drives, where someone will plug them inPhysical

Social engineering is one of the most common ways attackers get in, and technical controls cannot fully stop it because it targets people. Security awareness training, together with procedures such as calling a vendor back at a known number before changing its bank details, is the key control.

Web Application and Mobile Device Attacks​

Web application attacks exploit weaknesses in web-based software. The main examples, SQL injection and cross-site scripting, are techniques covered in the next section. Two others are cross-site request forgery, which tricks a logged-in user's browser into performing an action the user did not intend, and session hijacking, which steals or predicts a session token to impersonate a logged-in user.

Mobile device attacks include malicious apps (often from unofficial app stores), interception of traffic on unsecured Wi-Fi, SMS-based attacks such as smishing, and SIM swapping, in which an attacker persuades a mobile carrier to move the victim's phone number to a new SIM card and then receives the victim's text-message login codes. Mobile risks are covered more fully below.


Cyber-Attack Techniques​

The blueprint lists specific techniques used to carry out cyber-attacks:

TechniqueHow It WorksTypical Impact
Buffer overflowSends more data to a memory buffer than it can hold, overwriting adjacent memory, sometimes with code the attacker suppliesCrashes or execution of the attacker's code
Mobile codeCode downloaded from a remote source and run on the user's device, such as scripts in a web page or emailUnauthorized actions on the user's device
Cross-site scripting (XSS)Injects malicious script into a web page that other users' browsers then runStolen sessions or credentials, defaced pages
SQL injectionInserts SQL commands into an input field so that the application's database query does something unintendedReading, changing, or deleting data; bypassing login
Race conditionExploits the gap between when a system checks a condition and when it acts on itUnauthorized transactions, privilege escalation
Covert channelMoves information through a path not intended for communication, such as timing patterns, in violation of security policyUndetected data exfiltration
Replay attackCaptures valid authentication data or messages and resends them laterImpersonation, unauthorized access
Return-oriented programmingChains together short pieces of code already in memory ("gadgets") to perform malicious actions without injecting new codeGets around defenses that block injected code

Example: An attacker finds that Polar Inc.'s customer portal does not validate input. Typing ' OR 1=1 -- into the username field changes the login query so that it is always true, and the attacker is logged in without a password. That is SQL injection.

Buffer overflows, SQL injection, and cross-site scripting all exploit software that trusts its input. Input validation and secure coding practices (such as parameterized database queries) prevent them. Other techniques need different defenses: timestamps and one-time tokens defeat replay attacks, and careful design of check-then-act logic prevents race conditions.


Stages of a Cyber-Attack​

A serious cyber-attack is not a single event. It unfolds in stages, and each stage is a chance for the defender to detect and stop it. The blueprint uses these stages:

StageWhat the Attacker Does
ReconnaissanceGathers information about the target: scanning networks, studying websites and social media, collecting employee names
Gaining accessGets into a system by exploiting a vulnerability, using stolen credentials, or tricking a user
Escalation of privilegesMoves from an ordinary account to administrator-level access
Maintaining accessInstalls backdoors, rootkits, or new accounts so the access survives reboots and password changes
Network exploitationMoves through the network to reach other systems and the data the attacker wants, then takes or damages it
Covering tracksDeletes or alters logs and other evidence of the intrusion

You may also see the Lockheed Martin Cyber Kill Chain, an older model that describes the same progression in seven steps: reconnaissance, weaponization (building the malicious payload), delivery (sending it, for example by email), exploitation (the payload runs), installation (malware is installed to persist), command and control (the compromised system contacts the attacker for instructions), and actions on objectives (stealing, changing, or destroying data).

Both models carry the same lesson: the earlier in the chain the defender detects and breaks the attack, the less damage it does. Reconnaissance is hard to detect, but an alert at the gaining-access or privilege-escalation stage can stop an attacker before any data leaves the building.


Cloud, IoT, and Mobile Risks​

Cloud Environments​

Cloud computing brings risks that are absent or smaller on premises:

RiskDescription
Shared responsibility gapsEach side assumes the other secures something, so nobody does
MisconfigurationStorage left publicly readable, or security settings left at insecure defaults
Insecure APIsThe interfaces used to manage cloud services can be exploited
Multi-tenancyMany customers share infrastructure, so a failure in the provider's isolation could expose one customer's data to another
Account hijackingStolen cloud administrator credentials can give an attacker control of the whole environment
Provider insidersThe provider's own staff may have access to customer data
Data locationData stored in another country may be subject to different laws

Example: Illini Security moves an application to the public cloud and leaves the storage bucket holding customer records readable by anyone on the internet. That is a misconfiguration, and it is the customer's responsibility under the shared responsibility model, not the provider's.

Internet of Things (IoT)​

The Internet of Things (IoT) is the network of physical devices, such as sensors, cameras, thermostats, and industrial equipment, that connect to the internet and exchange data. Each one widens the attack surface.

RiskDescription
Default credentialsDevices ship with factory usernames and passwords that are never changed
No patchingManufacturers may never release firmware updates, so known flaws stay open
Limited computing powerMany devices cannot run encryption or security software
ScaleThousands of devices mean thousands of entry points
Botnet recruitmentCompromised devices are drafted into botnets for DDoS attacks
Insecure communicationDevices may send data unencrypted
Physical exposureDevices installed in public places can be tampered with

The 2016 Mirai botnet showed the danger: it took over large numbers of cameras and routers that still used default passwords and used them to launch some of the largest DDoS attacks seen up to that time.

Mobile Technologies​

Mobile devices carry corporate data outside the organization's physical perimeter:

RiskDescription
Bring your own device (BYOD)Personal devices used for work may lack enterprise security controls
Jailbreaking or rootingRemoving the manufacturer's restrictions disables built-in protections
Unsecured Wi-FiPublic networks expose traffic to interception (man-in-the-middle attacks)
Malicious or flawed appsApps can steal or leak data stored on the device
Loss or theftA lost device may expose stored data and logged-in apps
Outdated softwareUsers who skip updates miss security patches
Data leakageCorporate data drifts into personal cloud storage, messaging apps, or screenshots

Example: A Kingfisher Industries employee reads company email on a personal phone over a coffee shop's public Wi-Fi without using a VPN. An attacker on the same network intercepts the traffic and captures the employee's email password: a man-in-the-middle attack made possible by unsecured Wi-Fi on an unmanaged device.


Threat Modeling and the Threat Landscape​

Threat modeling is a structured way to find and address the threats to a particular system, ideally while it is being designed. It answers four questions: What are we working on? What can go wrong? What are we going to do about it? Did we do a good enough job? Common methods include:

MethodDescription
STRIDESorts threats into six types: Spoofing, Tampering, Repudiation, Information disclosure, Denial of service, and Elevation of privilege
PASTAThe Process for Attack Simulation and Threat Analysis, a seven-stage method that ties threats to business risk
Attack treesDiagrams with the attacker's goal at the root and the ways to reach it as branches

The threat landscape is the full set of threats facing an organization at a given time. It depends on the organization's industry, its locations and the laws that apply there, its technology and attack surface, its public profile, and current events and attack trends. Because the landscape keeps changing, organizations should reassess it regularly so their controls keep up.


Determining the Threats to an Organization​

At the Application level, the blueprint asks you to determine the specific threats an organization faces. Two angles help.

Connections with customers, vendors, and partners. Every connection to an outside party is a path in or out:

ConnectionThreatsControls
Vendors with accessA compromised vendor becomes the attacker's way in; vendors may hold more access than they needVendor risk assessments, SOC reports, least-privilege access, network segmentation
Customer portalsWeb application attacks, credential stuffing (trying stolen passwords in bulk), DDoSWeb application firewalls, rate limiting, multi-factor authentication
Partner integrationsInsecure APIs, or a compromised partner system sending bad data or commandsAPI security testing, strong authentication between systems, sharing only needed data
Software and hardware supply chainMalicious code inserted into a trusted product or updateVendor due diligence, verifying software integrity, tracking third-party components

Example: Illini Entertainment connects its ticketing system to a third-party payment processor through an API. If the processor is compromised, attackers could use that trusted connection to reach Illini Entertainment's customer database. The response is a vendor risk assessment of the processor and segmentation that limits what the API connection can reach.

On-premises and cloud assets. Each type of asset has characteristic threats:

AssetKey ThreatsWhere to Look
On-premises applicationsUnpatched software, insiders, physical accessPatch management, access controls, physical security
Cloud applicationsMisconfiguration, stolen credentials, insecure APIsConfiguration monitoring, identity and access management, the provider's SOC report
NetworksInterception, unauthorized access, DDoS, lateral movementSegmentation, firewall rules, intrusion detection and prevention
Mobile devicesLoss, malware, unsecured connections, data leakageMobile device management, encryption, remote wipe, app allowlisting
IoT devicesDefault credentials, unpatched firmware, botnet recruitmentNetwork isolation, credential management, firmware updates

Always fit the analysis to the organization. A hospital's top threats (ransomware that halts patient care, theft of health records) differ from a bank's (wire fraud, account takeover) and from a manufacturer's (theft of designs, sabotage of production systems).


Summary​

TopicKey Takeaway
Threat agentsClassify as internal or external and as nation-state sponsored or not; APTs and nation-states are the most sophisticated
Types of attacksPhysical, DDoS, malware, social engineering, web application, and mobile device attacks
TechniquesBuffer overflow, mobile code, XSS, SQL injection, race conditions, covert channels, replay, return-oriented programming
Attack stagesReconnaissance, gaining access, escalating privileges, maintaining access, network exploitation, covering tracks
Cloud, IoT, and mobileMisconfiguration and shared-responsibility gaps; default credentials and unpatched devices; BYOD, lost devices, and unsecured Wi-Fi
Threat modelingStructured methods such as STRIDE, PASTA, and attack trees; the threat landscape changes and must be reassessed
Determining threatsLook at third-party connections and at each type of asset, in the context of the organization's industry

Practice Questions​

  1. Bear Co., a manufacturer, finds that an attacker has been inside its network for six months, quietly copying files about a proprietary production process. The attacker uses custom malware that no public threat database recognizes and appears to be well funded. How should this threat agent be classified?

  2. Polar Inc. learns that a storage bucket used by its cloud HR application, which holds employee Social Security numbers, can be read by anyone who has the URL, with no login required. What cloud risk is this, and who is responsible for fixing it?

  3. Kingfisher Industries runs a smart building with 2,000 IoT sensors and cameras whose factory-default passwords were never changed. An audit finds several devices sending traffic to unknown external IP addresses. What IoT risk has materialized, and what attack stage does the traffic suggest?

Answers
  1. An advanced persistent threat (APT), very likely external and nation-state sponsored. The signs are the long, stealthy presence, custom malware, the focus on intellectual property, and the resources behind the attack. APT groups are often, though not always, state-sponsored.

  2. A misconfiguration of cloud storage, and it is Polar Inc.'s responsibility. The provider supplies the tools to restrict access, but configuring access to the customer's own data is the customer's job under the shared responsibility model.

  3. Default credentials let attackers take over the devices, which have likely been recruited into a botnet. Devices calling out to unknown addresses for instructions fit the command and control step of the Cyber Kill Chain, which corresponds to the attacker maintaining access in the blueprint's stages.