Hello, you are using an old browser that's unsafe and no longer supported. Please consider updating your browser to a newer version, or downloading a modern browser.
Training Camp • Cybersecurity Glossary
A stack canary is a security mechanism that helps prevent buffer overflow attacks by placing a random value before the function's return address on the stack to detect and prevent overwrite attempts.
Stack Canary Definition: A stack canary is a security mechanism that helps prevent buffer overflow attacks by placing a random value before the function's return address on the stack to detect and prevent overwrite attempts.
Stack Canary is a security mechanism used to protect software from buffer overflow attacks. It involves inserting a random value (canary) before the return address on the stack. During program execution, the system checks if this canary value remains intact. If a buffer overflow occurs, the canary value is likely to change, triggering an alert or terminating the program to prevent the exploitation of memory corruption vulnerabilities.
Turn knowledge into credentials. Browse our instructor-led cybersecurity courses.
View All Courses →