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.”
| Technique | What it covers | Clue words in a scenario |
|---|---|---|
| Buffer overflow | Input exceeds an allocated buffer and overwrites other information. | oversized input; fixed-size array; buffer capacity; adjacent memory |
| Buffer overflow | The buffer may be on the stack or heap. | stack; heap; crash; corrupted memory |
| Cross-site scripting | Attacker-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 scripting | Reflected input returns immediately in a response. | reflected; search result; immediate response |
| Cross-site scripting | Stored input is saved and later served to users. | stored; comment; profile; saved content |
| Cross-site scripting | DOM-based input is placed into a page by client-side code. | DOM; client-side code; unsafe page update |
| SQL injection | Untrusted input changes the SQL command sent to a database. | login form; database query; SQL statement; WHERE clause |
| SQL injection | An injected UNION query can return extra database rows. | UNION; returned rows; database records |
| SQL injection | Blind injection uses different responses to reveal information. | blind injection; different responses; authentication bypass |
| Race conditions | Concurrent operations produce a result based on timing or order. | two threads; concurrent processes; two operations at once |
| Race conditions | A timing window allows another operation to change a shared resource. | timing window; shared resource; same record |
| Race conditions | A time-of-check to time-of-use flaw changes a resource between checking and using it. | check then use; TOCTOU; duplicate transaction |
| Replay | A valid transmission is captured and sent again or delayed. | captured packet; retransmit; resend; delayed message |
| Replay | The attacker reuses a valid message instead of changing or creating one. | old request accepted; valid token reused; duplicate payment |
| Replay | Nonces, 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.
| Technique | One-line recall |
|---|---|
| Buffer overflow | Input exceeds allocated memory and overwrites other information. |
| Cross-site scripting | Injected script runs in another user's browser. |
| SQL injection | Untrusted input changes a database SQL command. |
| Race conditions | Concurrent operations exploit a timing window on a shared resource. |
| Replay | A 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

