The Tech Edvocate

Top Menu

  • Advertisement
  • Apps
  • Home Page
  • Home Page Five (No Sidebar)
  • Home Page Four
  • Home Page Three
  • Home Page Two
  • Home Tech2
  • Icons [No Sidebar]
  • Left Sidbear Page
  • Lynch Educational Consulting
  • My Account
  • My Speaking Page
  • Newsletter Sign Up Confirmation
  • Newsletter Unsubscription
  • Our Brands
  • Page Example
  • Privacy Policy
  • Protected Content
  • Register
  • Request a Product Review
  • Shop
  • Shortcodes Examples
  • Signup
  • Start Here
    • Governance
    • Careers
    • Contact Us
  • Terms and Conditions
  • The Edvocate
  • The Tech Edvocate Product Guide
  • Topics
  • Write For Us
  • Advertise

Main Menu

  • Start Here
    • Our Brands
    • Governance
      • Lynch Educational Consulting, LLC.
      • Dr. Lynch’s Personal Website
      • Careers
    • Write For Us
    • The Tech Edvocate Product Guide
    • Contact Us
    • Books
    • Edupedia
    • Post a Job
    • The Edvocate Podcast
    • Terms and Conditions
    • Privacy Policy
  • Topics
    • Assistive Technology
    • Child Development Tech
    • Early Childhood & K-12 EdTech
    • EdTech Futures
    • EdTech News
    • EdTech Policy & Reform
    • EdTech Startups & Businesses
    • Higher Education EdTech
    • Online Learning & eLearning
    • Parent & Family Tech
    • Personalized Learning
    • Product Reviews
  • Advertise
  • Tech Edvocate Awards
  • The Edvocate
  • Pedagogue
  • School Ratings

logo

The Tech Edvocate

  • Start Here
    • Our Brands
    • Governance
      • Lynch Educational Consulting, LLC.
      • Dr. Lynch’s Personal Website
        • My Speaking Page
      • Careers
    • Write For Us
    • The Tech Edvocate Product Guide
    • Contact Us
    • Books
    • Edupedia
    • Post a Job
    • The Edvocate Podcast
    • Terms and Conditions
    • Privacy Policy
  • Topics
    • Assistive Technology
    • Child Development Tech
    • Early Childhood & K-12 EdTech
    • EdTech Futures
    • EdTech News
    • EdTech Policy & Reform
    • EdTech Startups & Businesses
    • Higher Education EdTech
    • Online Learning & eLearning
    • Parent & Family Tech
    • Personalized Learning
    • Product Reviews
  • Advertise
  • Tech Edvocate Awards
  • The Edvocate
  • Pedagogue
  • School Ratings
  • The Hidden Cost of EVs: Why Your Battery Could Cost More Than Your Car in 2026

  • Jensen Huang’s Shock Exit: This Unbelievable Scandal Just Rocked Nvidia and the AI World

  • Big Walk developer House House Confirms ‘Sparing’ Use of Gen AI – Press Start

  • Baffling: How a Cyber Breach at South Korea’s Top Security Watchdog Exposed Millions

  • Wenn Ordnung den Bildschirm beruhigt: Warum klare Abläufe Casino-Unterhaltung einladender machen

  • Reddit AI Reviews: The Quiet Reshaping of Online Opinion

  • The Chilling Truth: Iran Cyberattacks Europe’s Food and Blood Supplies

  • Anthropic’s $3.4 Billion Bet on Gas: The Unseen Cost of AI’s Future

  • Tribit FlyBuds C3 Earbuds: Premium Features at a Budget-Friendly Price

  • Is AuraCam Pro’s Emotional AI a Privacy Nightmare or Security Breakthrough?

Technology
Home›Technology›Hardening C Against ROP: Getting CET Shadow Stacks Working

Hardening C Against ROP: Getting CET Shadow Stacks Working

By Matthew Lynch
September 25, 2024
0
Spread the love

Return-Oriented Programming (ROP) is a potent attack technique that exploits vulnerabilities in software to hijack control flow. One powerful countermeasure against ROP is Control Flow Enforcement Technology (CET), specifically the use of Shadow Stacks. This article will guide you through setting up CET Shadow Stacks to enhance the security of your C applications.

Enabling CET Shadow Stacks:

The first step is to enable CET at the compiler level. For GCC, you can use the `-fcf-protection=full` flag during compilation. This instructs the compiler to generate code that utilizes the CET hardware feature, including Shadow Stacks.

Understanding Shadow Stacks:

Shadow Stacks operate alongside the regular call stack. Each function call pushes an entry onto the Shadow Stack, ensuring a consistent record of function calls. When a return instruction is executed, CET verifies that the return address matches the top entry on the Shadow Stack. If a mismatch occurs, execution is halted, preventing ROP attacks.

Implementation in C:

CET Shadow Stacks are transparent to your C code. The compiler handles the necessary modifications. However, it’s crucial to note that CET requires specific hardware support, which is available on modern x86-64 processors. Additionally, you need to ensure that your operating system and libraries are compatible with CET.

Beyond CET:

While CET Shadow Stacks are a valuable asset, it’s crucial to remember that they are just one layer of defense. Combining them with other hardening techniques like Address Space Layout Randomization (ASLR) and Data Execution Prevention (DEP) creates a multi-layered approach for robust security.

Conclusion:

By implementing CET Shadow Stacks, developers can significantly mitigate the risk of ROP attacks in their C applications. This technology, combined with other security practices, strengthens the integrity of your code and reduces the vulnerability to malicious exploitation.

Previous Article

Microprogramming: A New Way to Program

Next Article

Get Your Homework Done On Time With ...

Matthew Lynch

Related articles More from author

  • Technology

    NFL Loosens Strict Ownership Rules to Allow Private Equity Investments

    August 29, 2024
    By Matthew Lynch
  • Technology

    I swore I would leave the US if Trump won the 2016 election. Here’s how that worked out for me.

    November 9, 2024
    By Matthew Lynch
  • Technology

    Linkin Park Selects Emily Armstrong From Rock Band Dead Sara as New Singer, Reveals Tour and Album ‘From Zero’

    September 7, 2024
    By Matthew Lynch
  • Technology

    How to watch Lille vs. Slavia Prague online for free

    August 21, 2024
    By Matthew Lynch
  • Technology

    Women Impacted by Abortion Bans Share Gut-Wrenching Stories at DNC

    August 21, 2024
    By Matthew Lynch
  • Technology

    BTS’ Jin Shares Rockabilly-Inspired Song ‘I’ll Be There’

    October 25, 2024
    By Matthew Lynch

Search

Login & Registration

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Newsletter

Signup for The Tech Edvocate Newsletter and have the latest in EdTech news and opinion delivered to your email address!

About Us

Since technology is not going anywhere and does more good than harm, adapting is the best course of action. That is where The Tech Edvocate comes in. We plan to cover the PreK-12 and Higher Education EdTech sectors and provide our readers with the latest news and opinion on the subject. From time to time, I will invite other voices to weigh in on important issues in EdTech. We hope to provide a well-rounded, multi-faceted look at the past, present, the future of EdTech in the US and internationally.

We started this journey back in June 2016, and we plan to continue it for many more years to come. I hope that you will join us in this discussion of the past, present and future of EdTech and lend your own insight to the issues that are discussed.

Newsletter

Signup for The Tech Edvocate Newsletter and have the latest in EdTech news and opinion delivered to your email address!

Contact Us

The Tech Edvocate
910 Goddin Street
Richmond, VA 23231
(601) 630-5238
[email protected]

Copyright © 2026 Matthew Lynch. All rights reserved.