Repository navigation
Recommended approach for allowing developers’ local build output under App Control #1235
Replies: 1 comment
|
Hi, I'm glad to know that it's been helpful for you. Path rules with patterns can definitely solve the problem. Limiting DLLs to specific executables could also work but the path rules would already create a big hole in your environment since they are user-writable and that'll be enough to bypass the entire Application Control. If it's acceptable then just using Path rules is enough and don't need to add the complications of limiting each DLL. If security is really important, I'd suggest enabling the Hyper-V feature on each device and have developers use a VM for their development, arbitrary code execution and agent workflows. That will create a proper security boundary that doesn't compromise the host that has strong Application Control policy. There are of course other options such as Azure VMs, Windows 365 and so on which shift the workload from local devices to cloud. If the developers don't have any access to resources on the network and their devices are completely disconnected from the rest, then they can just work without App Control and you will be able to only enforce App Control on workstations that actually have privileged data/access. |
Uh oh!
There was an error while loading. Please reload this page.
Hi, thanks for AppControl Manager, it’s been a big help in our rollout.
Environment
App Control for Business: an Allow Microsoft base policy plus supplemental policies, deployed through Intune
Managed installer configured for our software deployment tools
Working towards Essential Eight Maturity Level 2, so user profiles and temp folders must stay under application control
Developers use .NET 8 (dotnet build / dotnet test, Rider and VS Code) and Node.js (npm/pnpm, esbuild, Playwright). Some also use AI coding agents that create git worktrees inside repos
Problem
In audit mode, most of the blocks on developer devices come from their own local build output: unsigned DLLs in bin\Debug\net8.0 that change on every build, plus third-party NuGet DLLs copied into bin. Smaller sources are:
tools run from the NuGet cache
Roslyn analyzers shadow-copied to %TEMP%\VBCSCompiler\AnalyzerAssemblyLoader
dotnet run *.cs output in %TEMP%\dotnet\runfile
native .node modules in the npx and Corepack caches
Publisher and hash rules can’t keep up with constantly rebuilt, unsigned output. Our goal is to keep the developers’ current workflow intact.
Current plan
A path rule on a dedicated folder (e.g. C:\Dev*) in a developer-only supplemental with option 18. Caches are redirected there via NUGET_PACKAGES, the npm cache setting, COREPACK_HOME and PLAYWRIGHT_BROWSERS_PATH.
I believe this will work, but it has drawbacks:
The folder is user-writable, so anything placed there runs.
Option 18 applies device-wide, so other path rules lose their runtime protection.
Every developer has to keep all their repos in that one folder. Developers with repos elsewhere, such as Visual Studio’s default %USERPROFILE%\source\repos, would be blocked until they move them.
Questions
Is there an approach you’d recommend for developer workstations that we’re missing, ideally one that doesn’t require relocating repos?
If a dedicated folder is the pragmatic choice, is there a way to narrow it? For example, could per-app (AppIDs) rules restrict a path rule so DLLs under the folder only load into dotnet.exe / testhost.exe? Or could AppControl Manager’s pattern-based path rules be applied safely here, without option 18 weakening other path rules on the device?
For the Roslyn analyzer shadow copies in %TEMP%, is there a better approach than Publisher/hash rules generated from the NuGet cache copies?
Thanks in advance.
@brianinfotrack
All reactions