Buffer Overflow and the Stack Canary Explained for CISSP
How a buffer overflow overwrites the return address, how a stack canary detects it before the return, and why the fix belongs in the code, not the platform.
Building security into software rather than bolting it on afterwards: where security fits in the development life cycle, what DevSecOps changes, and the testing that finds flaws in your code and in your dependencies. CISSP Domain 8.
How a buffer overflow overwrites the return address, how a stack canary detects it before the return, and why the fix belongs in the code, not the platform.
How a TOCTOU race condition turns a passed security check into an exploit, why symbolic links make it dangerous, and how to close the window.
SAST reads source code without running it, catching flaws at the cheapest point in the SDLC. A CISSP insight on its strengths, blind spots and CI/CD role.
Formal testing that shows whether a system meets its agreed requirements and acceptance criteria, so its owner and users can decide to accept it; user acceptance testing (UAT) is the common form.
A family of iterative, incremental software development methods based on the 2001 Agile Manifesto, delivering working software in short cycles and adapting as requirements change.
Protecting application programming interfaces, the endpoints through which software calls other software, with authentication, object-level authorisation, input validation and rate limiting.
A hidden way into a system or application that bypasses normal authentication, whether installed by an attacker, written into code on purpose, or left behind by a developer.
A descriptive software security maturity model, built by observing what real organisations' security programmes actually do, and used to benchmark one programme against its peers.
A flaw where a program writes more data into a memory buffer than it can hold, overwriting adjacent memory, which can crash the program or let an attacker run code.
The Software Engineering Institute's five-level model for rating how mature and repeatable a software development organisation's processes are, from Initial up to Optimizing.
The successor to the software CMM, extending process maturity rating beyond software and able to rate individual practice areas as well as the organisation as a whole.
A version-controlled store for source code and related files, such as a Git repository, that records every change and its author; its access controls protect the integrity of the software.
A human examination of source code against its requirements and secure coding expectations, ranging from an informal peer read to a formal structured inspection.
Applying a digital signature to software or a build artefact so anyone installing or deploying it can confirm who published it and that it has not been altered since it was signed.
Two measures of modular design. Cohesion is how closely the parts of one module serve a single purpose; coupling is how much modules depend on each other. High cohesion, low coupling is the aim.
Ready-made software sold to many customers and used largely as supplied; the buyer usually cannot inspect its source code, so its security has to be assessed through the vendor and testing.
Two ways of running code: a compiler translates source into machine code before execution, while an interpreter executes code at run time. Many platforms combine the two.
A practice in which every change that passes the automated pipeline is kept ready for release to production, while the decision to release it is still taken by a person.
A practice in which any change that passes every automated stage of the pipeline is released to production automatically, with no human approval step before it goes live.
The automated pipeline that merges, builds and tests code changes frequently (CI) and carries them toward release (CD), which makes the pipeline both a security control and a target.
An attack that makes a logged-in user's browser send an unwanted request to a trusted site, which acts on it because the browser attaches the user's session cookie automatically.
An injection flaw in which a web application places untrusted input in a page without proper encoding, so an attacker's script runs in other users' browsers with the site's privileges.
A way of working that joins software development and IT operations into shared teams and automated pipelines, so software is built, tested, released and run in small, frequent changes.
A practice that makes security a shared responsibility across development and operations by automating security checks into the CI/CD pipeline instead of a bolt-on review at release.
An attack that manipulates a file path in a request, commonly with ../ sequences, to make an application read or write files outside the directory it is meant to use.
Black-box testing that probes a running application from the outside, finding runtime and configuration flaws without source access, but unable to point to the offending line of code.
How code detects and responds to failures: reaching a safe, defined state, giving users only the information they need, and recording the detail in logs rather than in messages users can see.
An Agile method created by Kent Beck that relies on engineering practices such as pair programming, test-first development, continuous integration, small releases and an on-site customer.
A formal, structured review of code or design documents with defined roles, stages, entry and exit criteria, developed by Michael Fagan at IBM in the 1970s.
A dynamic testing technique that feeds a program large volumes of malformed, unexpected or random input and watches for crashes, hangs or other failures that reveal flaws.
A Software Engineering Institute model for running process improvement as a repeating cycle of five phases: Initiating, Diagnosing, Establishing, Acting and Learning.
Managing infrastructure through machine-readable definition files that tools apply automatically, so environments are built from code under version control instead of by hand.
Checking that data entering an application matches what is expected, such as its type, syntax, size and permitted values, before it is used, preferably on the server against an allowlist.
The developer application that combines a code editor, build and debug tools and extensions in one place; with access to source code and credentials, it forms part of the attack surface.
A cross-functional team that puts development, security, testing, operations and user representatives on one project from the start, so their concerns shape each decision together.
Testing that places an instrumentation agent inside a running application and watches code paths and data flows as it is exercised, so a finding carries runtime evidence and the exact line of code.
Malicious code deliberately inserted into a program that stays dormant until a set condition is met, such as a date or an event, and then runs a harmful function.
An undocumented entry point that developers build into software for testing or support, which bypasses normal access controls and becomes a back door if left in production.
A framework describing stages of process capability, from ad hoc work to measured, continuously improving practice, so an organisation can place where it stands and plan its next step up.
A programming language that manages memory and checks bounds for the programmer, so whole classes of memory error, such as buffer overflows and use after free, do not arise in its ordinary code.
Code fetched from a remote source and run on a local system without explicit installation, such as script in a web page, and controlled mainly by sandboxing and code signing.
A programming approach that builds software from objects, each combining data with the methods that act on it, created from classes and interacting through messages, with inheritance and polymorphism.
Software released with its source code under a licence that lets anyone use, study, modify and redistribute it; the code is open to inspection, but vetting and patching it falls to the user.
Converting data into a safe form for the exact place it is written, such as HTML text, an attribute, JavaScript or a URL, so a browser or other interpreter treats it as data and not as code.
The Open Worldwide Application Security Project's awareness list of the ten most critical categories of web application security risk, revised every few years; the current edition is 2025.
Database queries whose SQL structure is fixed in advance, with user data passed separately as parameters and read only as data; the primary defence against SQL injection.
In object-oriented programming, the ability of one message or method name to produce different behaviour depending on the class of the object that receives it; unrelated to polymorphic malware.
An attack on large language model applications in which input carrying instructions makes the model depart from its intended rules, either directly from a user or hidden in content it reads.
A flaw in which the outcome depends on the relative timing or order of concurrent operations, so an attacker who influences that timing can change what the program does.
A development approach that favours speed and user feedback over up-front specification, building working prototypes in short, time-boxed cycles that users refine until the system is accepted.
Re-running tests after a change to software or its configuration to confirm that functions and security controls that worked before the change still work, and that fixed flaws have not returned.
Security built into an application or its runtime that watches execution from inside and can block an attack as it happens, such as stopping injected input before it reaches a database query.
The software layer that loads and executes a program and supplies what it needs while running, such as memory management and libraries; the Java Virtual Machine is a common example.
A commercial framework from Scaled Agile, Inc. for running Agile development across many teams in a large organisation, combining Agile practice with Lean thinking and shared planning cycles.
An Agile framework in which a small team delivers work in fixed-length sprints of one month or less, with a Product Owner, a Scrum Master and Developers working from an ordered Product Backlog.
Keeping machine credentials such as API keys, database passwords, tokens and private keys out of code, in a controlled vault that issues, rotates and logs them for software at run time.
The rules developers follow so code resists attack: validating input, encoding output, separating data from commands, safe error handling, avoiding unsafe functions and keeping secrets out of code.
A flaw in which an attacker makes a server send requests to a destination of the attacker's choosing, often internal systems or cloud metadata services that the attacker cannot reach directly.
The principle of starting security work at the earliest practical point in development, so design and coding flaws are caught when correcting them costs least, not at a final pre-release review.
OWASP's open, prescriptive maturity model for software security: 15 security practices in five business functions, each assessed across three maturity levels to guide improvement.
A formal, machine-readable inventory of the components, libraries and dependencies inside a piece of software and their relationships, used to track vulnerabilities and licences.
Automated inventory of the third-party and open-source components inside an application, mapping each to known vulnerabilities and licence obligations via a software bill of materials.
The discipline of identifying, controlling, recording and auditing each version of the items that make up a software product, so any build can be reproduced and every change traced.
A vendor-supplied package of libraries, tools, documentation and sample code for building software on a platform or service; code from the kit runs inside the application with its permissions.
The phased process for building and retiring software, from requirements through design, development, testing, operation, and disposal, with security built into every phase from the start.
An arrangement in which a vendor deposits source code with an independent escrow agent, to be released to the customer if agreed events occur, such as the vendor's insolvency or the end of support.
Reusable code, usually written by someone else, that an application calls instead of writing the function itself; the application inherits the library's flaws and those of everything it depends on.
An attack that compromises software before it reaches its users, by tampering with a supplier's build system, update channel, signing keys or the dependencies the software is built from.
Security controls defined, deployed and changed through software and policy, often as code, instead of dedicated hardware, so protection can follow workloads across virtual and cloud platforms.
Barry Boehm's risk-driven development model: the project repeats cycles of setting objectives, analysing and resolving risks, building and verifying, and planning the next cycle.
An attack that inserts SQL syntax into input an application builds into a database query, letting the attacker read, change or delete data; parameterised queries are the primary defence.
White-box testing that analyses source code or bytecode without executing the program, catching code-level flaws early in development but missing runtime and configuration issues.
A race condition in which a program checks a resource and uses it a moment later, leaving a window in which an attacker can change or replace the resource so the check no longer holds.
A sequential development model drawn as a V: each definition stage on the left, from requirements down to detailed design, is paired with a test stage on the right that checks it.
Two complementary checks: verification confirms a system meets its specified requirements; validation confirms it meets stakeholder needs for its intended use and environment.
A sequential development model in which each phase, from requirements through design, build, testing and maintenance, is completed and signed off before the next begins, with little scope to go back.