Forum Discussion

The737's avatar
The737
Brass Contributor
Jul 20, 2023

Controlled Folder Access configured in Intune not being enforced on W10

Hi All. I am working on enabling CFA on some machines and started with some test VMs at first.  I created the ASR rule, enabled Controlled Folder Access and assigned it to a group to which my test VMs are members of. 

When checking in PowerShell, CFA is enabled on the machine:

 

I am then using the test ransomware from the Defender Test Ground that encrypts files in C:\Demo. The issue I'm facing is that the ransomware encrypts the files, even though CFA is enabled. What am I doing wrong?  Thanks. 

 

 

  • am1357's avatar
    am1357
    Brass Contributor

    The737 

     

    I ran into that too. It looks like the CFA test tool is now a trusted application and can therefore write into protected folders.
    You could remove PowerShell as a protected application and use a PS command to create a file in a protected folder, e.g.

     

    Write-Output "CFA Test File - Can be deleted" | Out-File -FilePath "$($env:USERPROFILE)\Documents\CFA-test.txt"

     

    CFA should block this.

Resources