Threats and attacks

On this page

Threats, attacks and four views

Threats and attacks can be sorted through four independent views: who may cause harm and how risk is assessed, the attack route and stage, the technical mechanism, and the technology setting. A threat is a potential circumstance or event that could adversely affect an organization. An attack is an attempt to exploit a weakness or cause that harm.

These distinctions help teams choose controls before a system is built, assess vendors and cloud services, monitor activity, and respond to incidents. One event can have several labels at once. A phishing message may be social engineering, deliver malware, target a mobile user, and be sent by a cybercriminal. The useful label depends on the question being asked.

Four questions keep an actor separate from an attack route, a low-level technique, and a technology-specific risk. The full topic fits into one grid before each idea receives its own definition.

Four parallel risk classifications

The columns are parallel questions, not steps. A single event can occupy more than one column, but the situation's wording identifies the primary answer.

Who acts and how risk is assessedAttack route and stageTechnical attack mechanismTechnology setting and risk
Core question: Who could act, with what motive, access, capability, and likely impact?Core question: Which route is used, and what stage has been reached?Core question: What low-level condition makes the attack work?Core question: Is the exposure tied to cloud, IoT, mobile, or a risk shared by them?
Main labels: external attacker, insider, nation-state, cybercriminal, hacktivist, or third partyMain labels: physical, DDoS, malware, social engineering, web application, or mobile; reconnaissance, scanning, access, persistence, and covering tracksMain labels: buffer overflow, cross-site scripting, SQL injection, race condition, and replayMain labels: cloud, IoT, mobile, and shared identity, data, patching, API, privacy, and availability risks
Evidence: relationship, trusted-path access, motive, resources, intent, targeting, vulnerability, likelihood, and impactEvidence: the primary route and the activity observedEvidence: memory boundary, browser script, database query, timing gap, or reused messageEvidence: service model, connected device, phone or tablet, wireless link, app, firmware, or provider boundary
Use it for: threat modeling and landscape assessmentUse it for: attack classification and stage descriptionUse it for: recognizing the specific mechanismUse it for: identifying technology-specific exposure and shared controls

The first column concerns the source of risk and its assessment. The other columns concern what the attacker does, how it works, and where exposure exists.

Threat agents and risk assessment

Who acts and how risk is assessed

A threat agent is an individual, group, organization, or government that conducts or can conduct a threat. Classify the agent using relationship and access, motive, capability and resources, intent and target, origin, and the ability to place code in a trusted path.

Common labels include external attacker, insider, cybercriminal, nation-state, hacktivist, and third-party or supply-chain source. An insider has authorized access. A former employee or vendor may receive a different label after the relationship changes.

A trusted path describes the control or delivery route, not the agent's identity. Threat modeling is a form of risk assessment that models attack and defense in a system context.

Identify the assets, data flows, trust boundaries, threat sources and events, vulnerabilities, and existing controls. NIST SP 800-30 Rev. 1 states that risk is typically a function of adverse impact and likelihood. No universal numeric cutoff is used.

The full classification and assessment appear in Threat agents and threat modeling.

Attack route and stage

Classify an attack by its primary route. Physical attacks use direct access to equipment or facilities. DDoS attacks use many systems to overwhelm availability.

Malware attacks use malicious software. Social engineering attacks manipulate a person. Web application attacks target application input, logic, sessions, or services. Mobile attacks use a mobile device, application, operating system, wireless link, or mobile service.

The common description has five stages: reconnaissance, scanning, access, persistence, and covering tracks. Reconnaissance gathers information. Scanning probes systems or services. Access gains entry.

Persistence maintains access. Covering tracks hides activity or evidence. An attack may combine routes or skip a stage. Type and stage remain different labels.

The six attack types and five attack stages appear in Attack types and attack stages.

Technical attack mechanism

A buffer overflow writes beyond an allocated memory buffer. It may overwrite nearby data or control flow.

Cross-site scripting injects untrusted script into a trusted web page. The victim's browser then executes the script.

SQL injection causes untrusted input to become part of a database query or command. A race condition occurs when the result depends on the timing or order of concurrent operations.

A check-then-use gap is one example of a race condition. A replay captures a valid message or authentication exchange and sends it again.

Replay resistance requires detecting and rejecting reuse of a previously accepted authentication message. SQL injection and cross-site scripting can operate within a web application attack, but the mechanism and route remain different levels.

The five mechanisms receive detailed treatment in Technical attack techniques.

Technology setting and added risk

The three technology settings are cloud, IoT, and mobile. Shared risks cut across all three settings.

Cloud risk includes misconfigured storage, excessive permissions, insecure APIs, account compromise, provider dependency, data exposure, and multi-tenant concerns. Cloud responsibility is divided between provider and customer. The service model and contract determine the exact division.

NISTIR 8259 defines an IoT device as having at least one transducer and at least one network interface. IoT risks include default credentials, exposed interfaces, weak firmware, limited resources, long service life, poor patch support, and physical access.

Mobile risks include loss or theft, malicious or over-permissioned apps, insecure wireless connections, smishing, vulnerable mobile APIs, and BYOD exposure. Shared risks include identity and access, data protection, patching and configuration, third parties, privacy, APIs, and availability.

Cloud, IoT, mobile, and shared risks are developed in Cloud, IoT and mobile risks.

These ideas move from the source of a threat to its route, mechanism, and setting. They are parallel views, not a ladder.

Choosing the primary classification clue

Ask: Is the situation mainly about who could act and how risk is assessed, the route or stage of the attack, the low-level mechanism, or the technology setting? The same event may receive several valid descriptions, but the requested level controls the answer. Use the following table as the decision rule.

A situation about...Belongs toClue words
the person, group, relationship, motive, capability, trusted path, likelihood, or impactWho acts and how risk is assessedinsider, external, nation-state, cybercriminal, hacktivist, vendor, supply chain, threat model, vulnerability, likelihood, impact
the route used or the activity already observedAttack route and stagephysical, DDoS, malware, social engineering, web application, mobile, reconnaissance, scanning, access, persistence, covering tracks
the condition that makes code, data, timing, or a message vulnerableTechnical attack mechanismmemory boundary, overwrite, browser script, database query, check then use, timing, captured message, reused authentication
the service, device, app, network, or provider boundary where exposure existsTechnology setting and riskcloud, bucket, tenant, API, IoT, sensor, firmware, default credential, mobile, wireless, lost device, BYOD

The requested level, not the event's full story, determines the primary label.

Actors, routes, mechanisms and settings

The same four columns provide a full comparison. Each column uses the same questions, so one label is not treated as a required first step.

Who acts and how risk is assessedAttack route and stageTechnical attack mechanismTechnology setting and risk
What it is: the actor or source of risk and the assessment of likelihood and impactWhat it is: the primary path and the activity stageWhat it is: the specific condition or operation that enables the attackWhat it is: the technology boundary and its special or shared exposure
Main terms: insider, external attacker, cybercriminal, nation-state, hacktivist, third party, threat source, vulnerability, threat modelMain terms: physical, DDoS, malware, social engineering, web application, mobile, reconnaissance, scanning, access, persistence, covering tracksMain terms: buffer overflow, cross-site scripting, SQL injection, race condition, replayMain terms: cloud, IoT, mobile, shared identity, data, patching, configuration, API, privacy, availability
Recognition clue: relationship, access, motive, capability, intent, target, trusted path, likelihood, or impactRecognition clue: direct physical action, traffic flood, malicious software, manipulated person, web service, mobile resource, or observed stageRecognition clue: writing past a memory boundary, script in a browser, altered database query, timing gap, or reused valid messageRecognition clue: public storage, provider boundary, tenant, sensor, firmware, default password, wireless link, lost device, or BYOD
Example: a vendor build account is used to insert code into a signed update; classify the source by relationship and accessExample: an attacker gathers names, probes ports, gains entry, retains access, or hides evidence; classify the route or stageExample: 300 bytes are copied into a 64-byte buffer and the return address is overwritten; this is a buffer overflowExample: a public cloud bucket and administrator access for all developers indicate cloud misconfiguration and excessive privilege

A label can be accurate at one level while remaining incomplete at another. The mixed situations require the level named by the facts.

Overlapping facts, primary classification

The situations contain facts that could support more than one label. Each stem identifies the level that controls the answer.

Practice

A software vendor is allowed to sign updates. An attacker steals the vendor's build credentials and places code in a signed update. The security report is first asked to classify who can place code in a trusted path and how the changing relationship affects the threat landscape. Which part is primary, and why?

A security report says an intruder collected public domain names and employee names, then sent port probes to exposed IP addresses. No login or code execution has occurred. Which part is primary, and why?

A web service copies 300 bytes into a 64-byte stack buffer without checking the length, and the extra data overwrites the return address. Which part is primary, and why?

A company stores customer files in cloud storage. The storage bucket is public, every developer has administrator rights, and the provider operates the physical facilities. Which part is primary, and why?

The situations deliberately overlap, but each answer follows the level identified by the facts.

Four questions separate attack classifications

Who acts and how risk is assessed: classify the agent by relationship, access, motive, capability, intent, and target. Use assets, vulnerabilities, controls, likelihood, and impact in threat modeling.

Attack route and stage: classify the primary route as physical, DDoS, malware, social engineering, web application, or mobile. Describe the observed stage as reconnaissance, scanning, access, persistence, or covering tracks.

Technical attack mechanism: recognize the condition. It may be a memory overrun, browser script injection, altered database query, timing race, or reused valid message.

Technology setting and risk: identify cloud, IoT, mobile, or shared identity, data, patching, configuration, API, privacy, and availability exposure.

Separating question: Is the prompt mainly about who could act, where and at what stage the attack travels, how the attack works, or which technology setting creates the risk?

Unlock the full lesson and continue reading

Signup to continue reading this lesson and unlimited access questions, flashcards, AI notes, and more

Scan to download app

Scan to download
UNLOCK FREE ACCESS

Practice Questions: Threats and attacks

  1. 1. A production application authenticates to a cloud billing interface using one standing API key shared by all application instances. A developer inadvertently committed the key to a source-code repository. Which control would best prevent future unauthorized use while preserving required application access?

    • A. Send security personnel an alert whenever the shared key is used from a new network address.
    • B. Require the application owner to review the shared key's activity report at the end of each month.
    • C. Encrypt the billing database and restrict decryption privileges to the application support team.
    • D. Replace the shared key with managed workload identities that issue short-lived, narrowly scoped tokens.
    Show answer

    Answer: D. Replace the shared key with managed workload identities that issue short-lived, narrowly scoped tokens.

    Replace the shared key with managed workload identities that issue short-lived, narrowly scoped tokens. - Managed workload identities remove the standing shared API key that was exposed in the source-code repository while preserving application access to the billing interface. - Short-lived, narrowly scoped tokens limit both how long credentials remain usable and what each application workload can do. Send security personnel an alert whenever the shared key is used from a new network address. - An alert is detective: it may notify security personnel only after the exposed key has been used. - It does not prevent use from an address already associated with the application or remove the compromised shared key. Require the application owner to review the shared key's activity report at the end of each month. - A monthly review is detective and may uncover unauthorized use only after billing-interface activity has occurred. - The exposed key remains valid throughout the month, so the review does not prevent future misuse. Encrypt the billing database and restrict decryption privileges to the application support team. - Database encryption protects stored billing data, not authentication to the cloud billing interface. - An attacker holding the API key could still invoke interface functions permitted by that key without decrypting the database.

  2. 2. A development team wants to copy a production customer database into a test environment. Testing requires realistic transaction distributions but does not require names, account numbers, email addresses, or the ability to reconnect records to individual customers. The test environment has weaker monitoring than production. Which action best addresses the confidentiality and privacy risks?

    • A. Generate an irreversibly de-identified test data set that preserves required transaction patterns.
    • B. Encrypt a complete production copy while retaining the decryption key in the test environment.
    • C. Copy the production database and review developer access logs at the end of each month.
    • D. Copy the production database after obtaining confidentiality agreements from all developers.
    Show answer

    Answer: A. Generate an irreversibly de-identified test data set that preserves required transaction patterns.

    Generate an irreversibly de-identified test data set that preserves required transaction patterns. - Testing needs realistic transaction patterns, not customer identities or a way to reconnect records to individuals. - Irreversible de-identification meets that need without placing identifiable customer data in the less-monitored test environment. Encrypt a complete production copy while retaining the decryption key in the test environment. - Keeping the decryption key with the test copy leaves identifiable customer records accessible in the weaker environment. - Encryption does not eliminate the unnecessary use of names, account numbers, and email addresses for this testing. Copy the production database and review developer access logs at the end of each month. - Monthly log review may detect access after it occurs but cannot prevent exposure of the copied customer records. - The test does not require identifiable data, so copying the full production database creates an avoidable privacy risk. Copy the production database after obtaining confidentiality agreements from all developers. - Confidentiality agreements do not remove identifying information from the test database or strengthen its monitoring. - Developer commitments cannot replace data minimization when transaction patterns can be tested without identifiable customer records.

  3. 3. WellSpring Benefits, Inc. administers employee-benefit accounts and determines why and how participant data are processed. PayBridge LLC processes payroll-related data only under WellSpring's written instructions. On May 6, 2026, WellSpring received an alert involving a PayBridge support account used to access WellSpring's export interface. You are assisting WellSpring's incident-response coordinator in determining the affected population, applying the supplied state privacy requirement, and documenting the response. Assume all nonsynthetic individuals in the exports are residents of the state covered by Exhibit 4.

    • 4. An online payment portal becomes unavailable when thousands of compromised devices simultaneously send connection requests that exhaust the portal's network capacity. Management wants a preventive control that directly addresses this recurring threat. Which control is most appropriate?

      • A. Deploy application input validation to reject malformed database commands.
      • B. Install endpoint detection software on employee laptops and workstations.
      • C. Route traffic through a distributed denial-of-service filtering and scrubbing service.
      • D. Place email attachments in a sandbox before delivery to employee mailboxes.
      Show answer

      Answer: C. Route traffic through a distributed denial-of-service filtering and scrubbing service.

      Route traffic through a distributed denial-of-service filtering and scrubbing service. - The thousands of compromised devices are generating a distributed denial-of-service attack that exhausts the portal’s network capacity. - A filtering and scrubbing service can discard attack traffic before it overwhelms the portal while allowing legitimate payment requests through. Deploy application input validation to reject malformed database commands. - Input validation helps prevent injection attacks through application fields, not excessive connection requests from compromised devices. - Rejecting malformed commands would not prevent the traffic from exhausting the portal’s network capacity. Install endpoint detection software on employee laptops and workstations. - Endpoint detection monitors managed employee devices, not the external devices sending requests to the portal. - It would not filter the incoming traffic causing the portal to become unavailable. Place email attachments in a sandbox before delivery to employee mailboxes. - Attachment sandboxing checks for email-borne malware before employees open files. - The portal’s outage is caused by incoming connection requests, not attachments delivered to employee mailboxes.

    • 5. An authenticated customer establishes that her mailing address in a company's source system is inaccurate. A processor receives the address through a nightly interface. Applicable privacy criteria require reasonable correction of inaccurate personal data and notification to recipients of corrected data unless doing so is impossible or disproportionate. What should the company do?

      • A. Correct the source record and notify the processor to update its copy
      • B. Correct the source record during the next annual data-quality review
      • C. Delete the customer's entire profile and direct the processor to do the same
      • D. Deny the request because the processor also maintains a copy of the address
      Show answer

      Answer: A. Correct the source record and notify the processor to update its copy

      Correct the source record and notify the processor to update its copy - The authenticated customer has established that the source-system address is inaccurate, so the company should correct that record within a reasonable period. - Because the processor received the address, the company should notify the processor of the correction unless notification is impossible or disproportionate. Correct the source record during the next annual data-quality review - An annual review does not provide a reasonable correction period for an inaccuracy the authenticated customer has already established. - This choice also omits notification to the processor, which received the inaccurate address. Delete the customer's entire profile and direct the processor to do the same - The established problem is an inaccurate mailing address, not a reason to delete the customer's entire profile. - Correcting the address and notifying the processor addresses the inaccuracy without deleting other profile data. Deny the request because the processor also maintains a copy of the address - The processor's copy does not remove the company's responsibility to correct its source record. - The processor's receipt of the address instead makes the stated recipient-notification requirement relevant.

    • 6. A development team needs realistic data relationships to reproduce a defect, but the company's privacy policy prohibits using identifiable production customer data for software development. The test environment is accessible to contractors who have no approved purpose for accessing customer identities. Which control best addresses the privacy requirement while preserving useful test characteristics?

      • A. Encrypt a full production extract and give developers the decryption key
      • B. Copy the full extract after obtaining the application owner's approval
      • C. Record all contractor queries against an identifiable production extract
      • D. Generate a masked data set that preserves formats and referential relationships
      Show answer

      Answer: D. Generate a masked data set that preserves formats and referential relationships

      Generate a masked data set that preserves formats and referential relationships - Masking removes identifiable customer information from the development environment while retaining the realistic data needed to reproduce the defect. - Preserving formats and referential relationships lets the team test the defect without giving contractors access to customer identities. Encrypt a full production extract and give developers the decryption key - Giving developers the decryption key makes the identifiable production data accessible to them. - Encryption therefore does not meet the privacy restriction on using identifiable customer data for development. Copy the full extract after obtaining the application owner's approval - The full extract still contains identifiable customer data that the privacy policy prohibits using for development. - Application-owner approval does not give contractors an approved purpose for accessing customer identities. Record all contractor queries against an identifiable production extract - Query logging is a detective control: it records access but does not prevent contractors from seeing customer identities. - The identifiable extract would remain in a test environment accessible to contractors with no approved purpose for that access.

    • 7. Beacon Support, Inc., a U.S. company serving customers in the European Union, jointly operates a co-branded loyalty program with AdInsight Analytics, a marketing partner that jointly determines which customer data fields are collected and how loyalty rewards are calculated. On June 4, 2026, Beacon received an external alert indicating that a shared loyalty-program database might permit public access. The incident commander must assess the evidence, coordinate the response, determine the joint-controller notification consequences, and document the conclusion. Assume all times shown in the exhibits are Central European Summer Time and that no facts outside the exhibits are needed.

      • 8. Following a ransomware incident, a company rebuilds affected servers from verified clean backups, validates system integrity, and returns critical applications to normal operation in accordance with prioritized restoration objectives. Under the NIST Cybersecurity Framework, these activities primarily support which function?

        • A. Recover
        • B. Respond
        • C. Detect
        • D. Protect
        Show answer

        Answer: A. Recover

        Recover - The NIST Cybersecurity Framework’s Recover function covers restoring capabilities and services after an incident. - Rebuilding servers from verified clean backups, validating integrity, and returning critical applications to normal operation under prioritized restoration objectives are recovery activities. Respond - Respond focuses on managing an incident, including analyzing it and containing its effects. - The described work goes beyond incident management to restoring affected servers and applications to normal operation. Detect - Detect concerns identifying and confirming a cybersecurity event. - The ransomware incident has already occurred; rebuilding servers and restoring applications address its aftermath rather than its discovery. Protect - Protect concerns safeguards that reduce cybersecurity risk or limit an incident’s impact. - Although clean backups can be a safeguard, using them here to rebuild servers primarily supports restoration, not protection.

      Flashcards: Threats and attacks

      1. 1. List three major components of the COSO Internal Control Framework.

        Show answer

        Control Environment; Risk Assessment; Control Activities. The COSO framework helps organizations design and evaluate internal controls to support effective operations and compliance.

      2. 2. What does an output control ensure in a data system?

        Show answer

        Output control ensures data is valid, properly distributed, and used with authorization.

      Everything you need for CPA prep

      Get full Oncourse access with lessons, practice questions, flashcards and AI study tools.

      GET STARTED FOR FREE
      75% OFFLimited time offer
      GET 75% OFF