Technical attack techniques

Technical attack techniques

Published September 28, 2026

Technical attack techniques

On this page

Attack techniques identify mechanisms

Technical attack techniques describe how an attack works through memory, browser code, database commands, timing, or messages. Threat agents and threat modeling identifies who may act, while Attack types and attack stages gives the broad category and lifecycle. These techniques also support Cloud, IoT and mobile risks because the same mechanisms can affect those environments, within Area B, Security, under Security, Confidentiality and Privacy.

A broad label such as web application attack does not identify the mechanism that caused the harm. Naming the mechanism makes the five-part picture useful. The mechanisms are separate from attack stages.

The five attack mechanisms

These five names are peer parts of one structure. The lines show membership only. They do not show order, cause, or a decision.

Loading diagram…

The five names answer different questions. They identify what is overwritten, where code runs, what command changes, how timing matters, or how a valid message is reused.

What each attack mechanism targets

Each row identifies the attacked object and the words that usually reveal the mechanism. The definitions use recognized wording, followed by a plain explanation.

  • Buffer overflow: “A condition at an interface under which more input can be placed into a buffer or data holding area than the capacity allocated, overwriting other information.”
  • Cross-site scripting: “An attack in which the attacker injects malicious code into a trusted website. The code is then executed by the victim's browser.”
  • SQL injection: “SQL Injection (SQLi) is a code injection technique used to attack data-driven applications, in which nefarious SQL statements are inserted into an entry field for execution.”
  • Race conditions: “The software contains a code sequence that can run concurrently with other code, and the code sequence requires temporary, exclusive access to a shared resource, but a timing window exists.”
  • Replay: “An attack in which a valid data transmission is maliciously or fraudulently repeated or delayed.”
TechniqueWhat it coversClue words in a scenario
Buffer overflowInput exceeds an allocated buffer and overwrites other information.oversized input; fixed-size array; buffer capacity; adjacent memory
Buffer overflowThe buffer may be on the stack or heap.stack; heap; crash; corrupted memory
Cross-site scriptingAttacker-controlled script is placed into web content and runs in another user's browser.browser executes; script; HTML or JavaScript; victim views a page
Cross-site scriptingReflected input returns immediately in a response.reflected; search result; immediate response
Cross-site scriptingStored input is saved and later served to users.stored; comment; profile; saved content
Cross-site scriptingDOM-based input is placed into a page by client-side code.DOM; client-side code; unsafe page update
SQL injectionUntrusted input changes the SQL command sent to a database.login form; database query; SQL statement; WHERE clause
SQL injectionAn injected UNION query can return extra database rows.UNION; returned rows; database records
SQL injectionBlind injection uses different responses to reveal information.blind injection; different responses; authentication bypass
Race conditionsConcurrent operations produce a result based on timing or order.two threads; concurrent processes; two operations at once
Race conditionsA timing window allows another operation to change a shared resource.timing window; shared resource; same record
Race conditionsA time-of-check to time-of-use flaw changes a resource between checking and using it.check then use; TOCTOU; duplicate transaction
ReplayA valid transmission is captured and sent again or delayed.captured packet; retransmit; resend; delayed message
ReplayThe attacker reuses a valid message instead of changing or creating one.old request accepted; valid token reused; duplicate payment
ReplayNonces, timestamps, and sequence numbers can reject old or duplicated messages.nonce; timestamp; sequence number

The clue words identify the attacked object: memory, a browser, a database command, a shared resource, or a valid message.

Recognizing each attack mechanism

Classify the mechanism, not the damage. Browser execution points to cross-site scripting, changed database commands point to SQL injection, concurrent timing points to race conditions, and reused valid transmissions point to replay.

Practice

A web application places a user's comment into a page without proper encoding, and another user's browser executes script from that comment. Which technique is shown?

A login field changes the database query so that the application returns records that the user should not receive. Which technique is shown?

Two processes check that a one-time resource is available before either process uses it, so both processes complete the action. Which technique is shown?

An attacker records a valid authorization request and sends the same request later, and the server accepts it because it has no way to identify an old request. Which technique is shown?

Buffer overflow remains distinct because its defining clue is overwritten memory.

The five mechanisms and their clues

The five lines preserve the defining object in the same order as the picture.

TechniqueOne-line recall
Buffer overflowInput exceeds allocated memory and overwrites other information.
Cross-site scriptingInjected script runs in another user's browser.
SQL injectionUntrusted input changes a database SQL command.
Race conditionsConcurrent operations exploit a timing window on a shared resource.
ReplayA captured valid transmission is repeated or delayed and accepted again.

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: Technical attack techniques

  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

    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.

  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.

    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.

  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

      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.

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

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

    • 7. A company's customer portal becomes unresponsive when a small number of hosts open thousands of slow, incomplete HTTP connections that never finish sending their request headers, exhausting the web server's available connection threads. Network bandwidth utilization remains low, but the application servers can no longer accept new sessions. Which control would most directly mitigate this threat?

      • A. Configure the web server with connection timeout limits and a reverse proxy that enforces maximum concurrent connections per client
      • B. Deploy endpoint detection software to the application administrators' workstations
      • C. Encrypt the application database and rotate its encryption keys quarterly
      • D. Scan uploaded customer documents for malicious executable content
      Show answer

      Answer: A. Configure the web server with connection timeout limits and a reverse proxy that enforces maximum concurrent connections per client

      Configure the web server with connection timeout limits and a reverse proxy that enforces maximum concurrent connections per client - Connection timeouts close requests whose headers remain incomplete, freeing web server threads for new sessions. - Per-client connection limits prevent the small number of attacking hosts from occupying thousands of connections even though bandwidth use remains low. Deploy endpoint detection software to the application administrators' workstations - Endpoint detection monitors activity on administrators’ workstations, not incomplete HTTP requests arriving at the customer portal. - It does not release the web server threads held by the slow connections. Encrypt the application database and rotate its encryption keys quarterly - Database encryption protects data confidentiality, whereas this attack prevents customers from accessing the portal. - Rotating keys does not limit how long incomplete requests can hold server connections open. Scan uploaded customer documents for malicious executable content - Document scanning addresses malicious uploads, but the described hosts are holding HTTP request headers incomplete. - It does not impose timeouts or connection limits on the requests exhausting the server’s threads.

    Flashcards: Technical attack techniques

    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 a processing control verify?

      Show answer

      A processing control verifies that data processing results in correct outputs.

    3. 3. What purpose does a validity check serve?

      Show answer

      It confirms that data entries match predefined set criteria. For example, it ensures that numeric fields contain no alphabetic characters.

    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