The confused deputy attack exploits trust relationships between programs, tricking a privileged process into performing actions on behalf of a less-privileged one that would otherwise be denied. It falls under CWE-441 and represents a common class of software trust exploitation.
Confused Deputy Attack
Another example of a trust exploitation is confused deputy, so let's talk about confused deputy.
Here I'm on the common weakness enumeration site, where we can see common weaknesses with applications. What I'm going to do is expand all and do a Ctrl-F to find the word confused. We see just one instance of this, and it talks about the confused deputy, or CWE-441. So let's go ahead and take a look at that.
With CWE-441, it doesn't give us a diagram or any kind of illustration here, but it does say the product receives a request message or directive from an upstream component, but the product does not sufficiently preserve the original source of the request. So essentially what it's saying there is a trust exploitation. The product, which is software, receives a request message or directive, so there's some sort of request that's happening that this product is going to process, but it's going to do it for another program.
Let's look at an example of that here. We've got a program one who maybe has some sort of direct access to memory. So this program is able to go in and read and write and everything directly to the memory, because it's a trusted program. But program two is also operating, and it does not have the same rights to do the read and write directly to the memory. So what it does is it makes a call through program one. Program one goes and retrieves that information and passes it off to program two. So essentially, program two has gotten program one to do what program two shouldn't be allowed to do.
Here's the attack card on confused deputy, where program two tricks program one to do some sort of execution. In this case, it's on a CPU. So a program is tricking another program into misusing authority.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →