I emailed some folks I know at MS regarding my problems with setting up aspnet_wp.exe to run using my domain credentials. Erik Olson, who is a Security PM on the CLR team emailed back a wonderfully detailed explanation of the problem and possible solutions.
To recap the original problems:
- I didn’t want to grant my domain account the SeDebugPrivilege since that lets a rogue application use the debug API to extract data from other applications running on my computer.
- I didn’t like the fact that my domain credentials were stored unencrypted in the machine.config file. The machine.config file must be readable by any account that wishes to run CLR applications.
In version 1.1 of the frameworks, aspnet_isapi.dll can read process model credentials from a secured registry key. To quote Erik’s email:
“The V1.1 release supports configuring DPAPI encrypted credentials in a registry key, which isn’t the most manageable thing in the world but has reasonable security characteristics. In particular, the processModel section is read by the ISAPI running as System, so the ACL on that key can just allow Admin/System. The other sections with creds (identity, sessionState) need to also allow read access for the process identity itself. “
Another interesting thing that Erik pointed out to me was the fact that there has been a hotfix back-ported to support ASP.NET V1.0. It will be part of the next Service Pack and is documented at: http://support.microsoft.com/default.aspx?scid=kb;en-us;329250
4 archived reader comments
Rick (2002-11-23)
excellent…
Dragon Master Prime (2003-06-08)
I was unaware that I had
aspnet_wp.exe on my machine. I found out when I went into my user accounts to change my password and saw the ASP.NET Machine Account. I am therefore concerned about why it is there and what it is used for. Please enlighten me on this subject.John Lam (2003-06-08)
The ASP.NET machine account is special, restricted privilege account that is created by the .NET Frameworks to host ASP.NET applications. If you are not using ASP.NET on your computer, you can safely disable this account.
Jake (2003-09-19)
I just stumbled across two accounts that I was unaware were on my computer. One is “ASP.NET Machine A” I am concerned about how this may have gotten there to begin with. What it does, and if I need to worry about some kind of a security risk as a result. I wonder also, what would happen if I were to simpley delete the account. Does anyone have any information they can give me? Perhaps a link to some reference material even? I don’t know if I can find this site again, or remember to come back here to look for a response, so probable to email me is the only way I would get it.