Attack types and attack stages

Attack types and attack stages

Published September 28, 2026

Attack types and attack stages

On this page

Physical, DDoS, malware, social engineering, web application and mobile attacks

The identity of the threat agent does not decide the attack type. The main action or target does. Threat agents and threat modeling covers the attacker or group. The table identifies what that attacker did.

An incident can contain more than one type. The deciding clue is the primary route or target named in the scenario. Specific methods behind some web application attacks appear in Technical attack techniques.

Attack typeDefining clueMain target or effectCommon formsScenario clue wordsBoundary note
PhysicalThe attacker directly enters, handles, damages, removes, or interferes with a facility, device, or media.Facilities, hardware, paper records, removable media, or physical access.Theft, forced entry, tampering, vandalism, device destruction, or cable removal.Stolen laptop, forced door, unplugged device, damaged server, unauthorized entry.Choose this when direct physical action is decisive. Do not choose it merely because stolen credentials later enabled a system attack.
DDoSMany distributed sources send excessive requests or traffic to overwhelm a service or network.Availability of a website, application, network, or online service.Botnet traffic floods, request floods, and distributed service exhaustion.Thousands of sources, botnet, traffic flood, overwhelmed, unavailable, outage.Choose this for the distributed availability attack. Malware may operate the botnet, but the flood is decisive.
MalwareMalicious software is installed or executed on a host or device.Files, programs, systems, credentials, or data on the infected host.Ransomware, virus, worm, Trojan horse, spyware, and malicious payloads.Encrypted files, malicious program, infected host, payload, worm, ransomware.Choose this when malicious code is decisive. An application flaw is a web application attack, even if code runs.
Social engineeringThe attacker manipulates a person into revealing information, approving access, sending money, or performing an unsafe action.Human judgment, trust, credentials, approvals, or physical access obtained through a person.Phishing, spear phishing, vishing, smishing, pretexting, baiting, and impersonation.Urgent request, verify your code, fake help desk, impersonation, suspicious link, secret payment.Choose this when a person is manipulated. A text message is not automatically a mobile attack.
Web applicationThe attacker exploits a weakness in a website, web application, web service, or its session or database handling.Web application logic, accounts, sessions, databases, or server-side functions.SQL injection, cross-site scripting, session hijacking, cross-site request forgery, and web-based buffer overflow.Login form, URL parameter, database query, browser script, session cookie, web request.Choose this when the application flaw is decisive. SQL injection and cross-site scripting are techniques within this type.
MobileThe attacker targets a smartphone, tablet, mobile application, mobile operating system, wireless connection, or mobile account.Mobile devices, mobile apps, wireless services, SIMs, or mobile data.Malicious mobile apps, smishing aimed at a phone, rogue wireless access points, SIM swapping, bluejacking, and bluesnarfing.Smartphone, tablet, mobile app, SIM, Bluetooth, app store, wireless hotspot.Choose this when the mobile ecosystem is decisive. Malicious code may also be malware, but the mobile target controls classification.

The deciding fact is the primary action or target, not the attacker's identity or every method involved.

Reconnaissance, scanning, access, persistence and covering tracks

Attack type is classified by the primary route or target. Attack stage is classified by the attacker's position in the sequence.

The five stages are:

  • Reconnaissance: Gather information about the target, passively or actively.
  • Scanning: Probe systems, ports, services, accounts, or applications for reachable weaknesses.
  • Gaining access: Use stolen credentials or an exploited weakness to enter, execute code, or disrupt.
  • Maintaining access: Create persistence so access remains after the first entry, such as a backdoor or altered account.
  • Covering tracks: Hide or remove evidence by changing or deleting logs, files, timestamps, or other traces.

The sequence is reconnaissance → scanning → gaining access → maintaining access → covering tracks.

NIST Special Publication 800-115 and NIST Special Publication 800-61 Rev. 2 provide related testing and incident-handling guidance.

An attack may skip or combine stages. A DDoS can move from reconnaissance to disruption without maintaining access. A malware attack may include gaining access and maintaining access.

A web application attack can be the gaining-access stage. Malware can be the tool used to maintain access. Neither word names the stage by itself. Attack types and attack stages answer different questions: what was attacked or how, and when it happened.

Classifying attacks by their primary route

Each scenario supplies one deciding fact. The fact may be direct physical action, distributed flooding, malicious code, human manipulation, an application flaw, or a mobile target.

Practice

An intruder forces open a server-room door, removes a backup drive, and leaves without changing any software. Which attack type is this?

A public payment website becomes unavailable after requests from thousands of compromised computers consume its bandwidth and processing capacity. Which attack type is this?

An employee opens a malicious attachment, and a program encrypts shared files and displays a ransom demand. Which attack type is this?

Practice

A caller pretends to be from the help desk and persuades an employee to read a one-time authentication code aloud. Which attack type is this?

An attacker inserts crafted text into a website's login field, causing the application to return records from its database. Which attack type is this?

A user installs an unofficial smartphone app that secretly reads contacts and sends them to an external server. Which attack type is the best classification?

The primary route or target controls classification, especially when malware, mobile, and social engineering overlap.

Changing the attack route changes its type

Was: An attacker sends a crafted value through a company's web login form, and the form returns records from the customer database. Which type is it?

Answer: Web application.

Now: The attacker still seeks customer records. The attacker calls an employee, pretends to be the database administrator, and persuades the employee to disclose valid database credentials. Which one now?

Answer: Social engineering.

The decisive route changed from exploiting a web application to manipulating a person. The data sought did not change.

Six attack types and five attack stages

  • Physical: Direct action against a facility, device, media, or other physical asset.
  • DDoS: Distributed traffic overwhelms availability.
  • Malware: Malicious software executes on a host or device.
  • Social engineering: A person is manipulated into an unsafe action or disclosure.
  • Web application: A weakness in web application logic, input, session, or database handling is exploited.
  • Mobile: A smartphone, tablet, mobile app, wireless service, SIM, or mobile account is the primary target.
  • Axis: Classify the type by the primary route or target, then place the event in reconnaissance → scanning → gaining access → maintaining access → covering tracks.

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: Attack types and attack stages

  1. 1. 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

    > Key point: Restoring systems and services after an incident is the NIST Cybersecurity Framework’s Recover function. Why Recover is correct - Rebuilding servers from clean backups, validating integrity, and returning critical applications to operation restore capabilities after the ransomware incident. - Following prioritized restoration objectives is also consistent with recovery. How they compare | Function | Primary focus | |---|---| | Recover | Restore capabilities and services | | Respond | Manage and contain an incident | | Detect | Identify a cybersecurity event | | Protect | Safeguard against cybersecurity risk | Why the other options are wrong - Respond: Incident management and containment are not the restoration activities described. - Detect: The incident has already been identified; rebuilding systems is not event discovery. - Protect: Backups can support safeguards, but using them to restore systems is recovery.

  2. 2. 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.

    > Key point: A distributed denial-of-service filtering service addresses overwhelming connection traffic by scrubbing malicious requests before they exhaust network capacity. Why the DDoS filtering and scrubbing service is correct - Thousands of compromised devices sending simultaneous requests describe a distributed denial-of-service attack. - A filtering and scrubbing service removes attack traffic while allowing legitimate payment requests through. Why the other options are wrong - Application input validation targets malformed database commands or injection attacks, not excessive connection requests. - Endpoint detection on employee devices monitors managed endpoints; it does not filter external traffic overwhelming the portal. - Email attachment sandboxing checks email-borne malware, not incoming portal connections.

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

      > Key point: Mask identifiable fields while preserving data formats and relationships to support realistic testing without exposing customer identities. Why generating a masked data set is correct - Masking removes identifiable customer information while retaining useful test characteristics. - Preserving formats and referential relationships helps reproduce the defect in a realistic data set. How they compare | Control | Identity exposure | Test usefulness | |---|---|---| | Masked data set | Removes identities | Preserves formats and relationships | | Encrypted full extract | Key enables access | Retains production data | | Approved full extract | Identities remain | Retains production data | | Query logging | Identities remain | Records access only | Why the other options are wrong - Encrypt a full production extract and give developers the decryption key: The key makes identifiable customer data accessible to developers. - Copy the full extract after obtaining the application owner's approval: Approval does not remove identities or authorize contractors' access. - Record all contractor queries against an identifiable production extract: Logging detects access but does not prevent exposure.

    • 5. 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.

      > Key point: Use only the data needed for testing; irreversible de-identification preserves transaction patterns without exposing customer identities. Why irreversible de-identification is correct - The test needs realistic transaction distributions, not customer identities or a way to reconnect records to individuals. - An irreversibly de-identified data set avoids placing identifiable records in the less-monitored test environment. How they compare | Action | Risk effect | |---|---| | Irreversibly de-identify data | Preserves needed patterns without identifiable records | | Encrypt the full copy | Key in test leaves records accessible | | Review logs monthly | May detect access after exposure | | Obtain confidentiality agreements | Does not remove identifiers | Why the other options are wrong - Encrypt a complete production copy while retaining the decryption key in the test environment: the key leaves identifiable records accessible, and the test does not need those identifiers. - Copy the production database and review developer access logs at the end of each month: retrospective review cannot prevent exposure of unnecessary identifiable data. - Copy the production database after obtaining confidentiality agreements from all developers: agreements do not remove identifiers or address weaker monitoring.

    • 6. 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.

      > Key point: Replace an exposed standing shared key with workload identities and short-lived, narrowly scoped tokens. Why managed workload identities are correct - They remove the exposed shared API key while preserving the application's access to the billing interface. - Short-lived, narrowly scoped tokens limit how long credentials work and what each workload can do. How they compare | Control | Effect | |---|---| | Managed workload identities | Removes the exposed key; limits token lifetime and scope | | New-address alert | Detects some use after it occurs | | Monthly activity review | Detects activity after the fact | | Database encryption | Protects stored data, not interface authentication | Why the other options are wrong - Alert on use from a new network address: Detects some suspicious use but leaves the exposed key usable. - Monthly activity review: May reveal misuse only after it occurs; the key remains valid in the meantime. - Encrypt the billing database and restrict decryption: Protects stored data but does not prevent someone with the API key from accessing permitted interface functions.

    • 7. 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

      > Key point: Correct established inaccurate personal data within a reasonable period and notify recipients unless notification is impossible or disproportionate. Why correcting the record and notifying the processor is correct - The customer established that the source address is inaccurate, so the company should correct it. - The processor received the address, so the company should notify it to update its copy unless notification is impossible or disproportionate. Decision path mermaid flowchart TD A[" Address is inaccurate Customer established the error "]:::input --> B[" Correct source record "]:::step B --> C[" Can notification be made? "]:::decision C -->|Yes| D[" Notify processor "]:::outcome C -->|No exception| D Why the other options are wrong - Wait for the annual review: Delays correction and omits notifying the processor. - Delete the entire profile: The established inaccuracy concerns only the mailing address. - Deny the request: The processor’s copy does not remove the company’s responsibility to correct the source record.

    • 8. 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.

      Flashcards: Attack types and attack stages

      1. 1. Name one of the five components of internal control according to the COSO framework.

        Show answer

        Monitoring activities. These activities provide assurance that internal controls are present and functioning as intended.

      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