Skip to content
Access control Advisory Advanced CVE-2017-0007

Device Guard Security Feature Bypass Vulnerability (CVE-2017-0007)

Device Guard did not properly validate certain elements of a signed PowerShell script, so an attacker could modify the script's contents without invalidating its signature. Because Device Guard trusts the signature to decide a script is non-malicious, it could then allow the modified malicious script to execute.

Matt Nelson Follow

Originally disclosed on Microsoft

High 5.5 View original

Description

A security feature bypass exists when Device Guard does not properly validate certain elements of a signed PowerShell script. An attacker who successfully exploited this vulnerability could modify the contents of a PowerShell script without invalidating the signature associated with the file. Because Device Guard relies on the signature to determine the script is non-malicious, Device Guard could then allow a malicious script to execute. In an attack scenario, an attacker could modify the contents of a PowerShell script without invalidating the signature associated with the file. The update addresses the vulnerability by correcting how Device Guard validates certain elements of signed PowerShell scripts.

Microsoft PowerShell

Microsoft PowerShell

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Matt Nelson ( @enigma0x3 ). Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, Device Guard's validation of signed PowerShell scripts did not cover all elements that affect script content, so changes could be made without breaking the signature.

Impact

An attacker could modify a signed PowerShell script without invalidating its signature, and Device Guard could then allow the malicious script to execute.

What the attacker needed

Ability to modify a signed PowerShell script

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Device Guard is a Windows feature that only lets signed scripts run, assuming a valid signature means the file is safe. Here the check was incomplete, so someone could change what a signed script does while keeping the signature valid. The security tool would then treat the altered, harmful script as trusted.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.