AI EncyclopediaChips & deep techMore concepts 1

Control-flow attack

제어 흐름 공격

A security attack in which an attacker secretly changes the order in which a program runs its code.

Overview

A control-flow attack is a method in which an attacker tampers with the information that decides which code a program runs next. If the attacker overwrites the return address, where a function goes back to when it ends, or the target address of a jump, with a memory location of their choice, the program ends up running code it was never meant to run.

These attacks have mostly targeted programs with careless memory management. As chip design and software grew more complex, security designers began building in both hardware and software features to stop them.

How it works

When a function is called, the program stores in memory the place to return to when the work is done. If an attacker changes this return address to one they have prepared, for example by writing past the end of a buffer, the program jumps to the attack code when the function ends.

Modern defenses stop this by checking whether the return address has been changed, or by limiting jump targets to allowed locations. The Arm security feature described in the article was also designed to cut this attack path.

Where it is used

Defenses against control-flow attacks are applied as security features in operating systems, embedded devices and chips. They are especially needed in devices where the integrity of command execution matters, such as self-driving vehicles and industrial robots.

A condition is that turning on the protection can cost performance, and the software must be built to support it. Simply switching the feature on does not remove every weak spot.

Limits and misconceptions

Stopping this one attack does not complete security. If other kinds of memory weak spots or configuration mistakes remain, an attacker can change the route and break in.

A common misunderstanding is to think you can trust a program because it has a security feature. A defense only reduces risk, so you also need to fix weak code and verify it regularly.

An everyday example

It is like a delivery driver who secretly rewrites the next stop on a shipping label, so the package ends up at the wrong house.

Why it matters

As AI chips and edge devices multiply, even a small weak spot inside a compute unit can put a whole service at risk. You need to understand how this attack works to see what the security features actually block.

Sources and further reading

Also calledcontrol-flow hijacking

See it on LastAI

These concept articles were written by AI and checked again for accuracy before publishing. The English edition is translated from the Korean articles. They leave out things that change quickly, such as prices and rankings. Tell us if something is wrong. Report an errorLast updated

You