Re: [ADVANCED-DOTNET] Storing shared secrets

2008-04-11 Thread Arun
Can i set a global hook on the wind proc in .NET. I am willing to write the hook procedure in unmanaged dll. I want to capture the window messages of another application (.NET) from my host application (again .NET). Thanks in advance Regards Arun === This list is

Re: [ADVANCED-DOTNET] Storing shared secrets

2008-03-31 Thread Pardee, Roy
Subject: Re: [ADVANCED-DOTNET] Storing shared secrets > > > If you used encryption, etc so the app could access these > > > protected items, then if the wrong person got access to the app - > > > they would > be > > > able to gain access to the protected items

Re: [ADVANCED-DOTNET] Storing shared secrets - Slightly OT

2008-03-30 Thread Harley, Chay
ubject: Re: [ADVANCED-DOTNET] Storing shared secrets >> What you don't want: the key used for signing is available to anyone who >> installs your client, so Bans Frouma can get at it and use it in his Pi >> Komputing Klient. > >I hear this Bans Frouma guy is pretty smar

Re: [ADVANCED-DOTNET] Storing shared secrets

2008-03-29 Thread Frans Bouma
> > > If you used encryption, etc so the app could access these protected > > > items, then if the wrong person got access to the app - they would > be > > > able to gain access to the protected items through the app. > > > > Though running as admin, add yourself to the group and you've > >

Re: [ADVANCED-DOTNET] Storing shared secrets

2008-03-29 Thread Chris Anderson
> > If you used encryption, etc so the app could access these protected > > items, then if the wrong person got access to the app - they would be > > able to gain access to the protected items through the app. > > Though running as admin, add yourself to the group and you've > access. If

Re: [ADVANCED-DOTNET] Storing shared secrets

2008-03-29 Thread Frans Bouma
> > The scenario is actually fairly simple. An application where a given > > company will run multiple copies. Each instance the app needs to > login > > to > > the same account (could be a share, a web service, etc.). > > > > There are too many users to reasonably grant each individual access to

Re: [ADVANCED-DOTNET] Storing shared secrets

2008-03-28 Thread Chris Anderson
> The scenario is actually fairly simple. An application where a given > company will run multiple copies. Each instance the app needs to login > to > the same account (could be a share, a web service, etc.). > > There are too many users to reasonably grant each individual access to > protected

Re: [ADVANCED-DOTNET] Storing shared secrets

2008-03-28 Thread Mont Rothstein
For those that are curious I'll try to shed a little more light on the why of this. The scenario is actually fairly simple. An application where a given company will run multiple copies. Each instance the app needs to login to the same account (could be a share, a web service, etc.). There are

Re: [ADVANCED-DOTNET] Storing shared secrets

2008-03-28 Thread Frans Bouma
> On Fri, 28 Mar 2008 19:09:52 +0100, Frans Bouma <[EMAIL PROTECTED]> wrote: > > >> What you don't want: the key used for signing is available to anyone who > >> installs your client, so Bans Frouma can get at it and use it in his Pi > >> Komputing Klient. > > > > So that's a typical client-side ce

Re: [ADVANCED-DOTNET] Storing shared secrets

2008-03-28 Thread Wilson, Phil
orithm. Phil Wilson -Original Message- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Per Bolmstedt Sent: Friday, March 28, 2008 11:11 AM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET] Storing shared secrets On Fri, 28 Mar 2008 1

Re: [ADVANCED-DOTNET] Storing shared secrets

2008-03-28 Thread Marc Brooks
> would be to get a good IL obfuscator and leave it at that. Speaking of which, what's the current best of breed? We have to turn some sites over to a motivated third-party (who is also a competitor) and would like to make the cost of reverse engineering higher than the benefit. -- "Your lack of

Re: [ADVANCED-DOTNET] Storing shared secrets

2008-03-28 Thread Per Bolmstedt
On Fri, 28 Mar 2008 19:09:52 +0100, Frans Bouma <[EMAIL PROTECTED]> wrote: >> What you don't want: the key used for signing is available to anyone who >> installs your client, so Bans Frouma can get at it and use it in his Pi >> Komputing Klient. > > So that's a typical client-side certificate SSL

Re: [ADVANCED-DOTNET] Storing shared secrets

2008-03-28 Thread Frans Bouma
> On Fri, 28 Mar 2008 17:39:45 +0100, Frans Bouma <[EMAIL PROTECTED]> wrote: > > > THis isn't a lame attempt to be funny, but what is this 'shared secret' > > exactly? A license key? > > > > Because as mentioned before, a secret that's shared isn't really a secret. > > Could you explain some more d

Re: [ADVANCED-DOTNET] Storing shared secrets

2008-03-28 Thread James Geall
A few observations/thoughts in no particular order: If you make it secure by being obscure, all you really do is fool yourself into thinking it is secure and have no way to work out when it has been broken. If you use one secret for all instances/installs, then they are all broken the moment one

Re: [ADVANCED-DOTNET] Storing shared secrets

2008-03-28 Thread Pardee, Roy
OTNET] Storing shared secrets On Fri, Mar 28, 2008 at 9:32 AM, Per Bolmstedt <[EMAIL PROTECTED]> wrote: > > What you don't want: the key used for signing is available to anyone > who installs your client, so Bans Frouma can get at it and use it in > his Pi Komputing Klient.

Re: [ADVANCED-DOTNET] Storing shared secrets

2008-03-28 Thread Simon Robinson
Surely if the 'secret' is available to your client app, then by definition it's also available to anyone who is able to reverse engineer your client app. Whatever your client app does to retrieve the secret, someone able to reverse engineer the app can mimic in order to also obtain the secret. What

Re: [ADVANCED-DOTNET] Storing shared secrets

2008-03-28 Thread Curt Hagenlocher
On Fri, Mar 28, 2008 at 9:32 AM, Per Bolmstedt <[EMAIL PROTECTED]> wrote: > > What you don't want: the key used for signing is available to anyone who > installs your client, so Bans Frouma can get at it and use it in his Pi > Komputing Klient. I hear this Bans Frouma guy is pretty smart. If he h

Re: [ADVANCED-DOTNET] Storing shared secrets

2008-03-28 Thread Per Bolmstedt
On Fri, 28 Mar 2008 17:39:45 +0100, Frans Bouma <[EMAIL PROTECTED]> wrote: > THis isn't a lame attempt to be funny, but what is this 'shared secret' > exactly? A license key? > > Because as mentioned before, a secret that's shared isn't really a secret. > Could you explain some more details about

Re: [ADVANCED-DOTNET] Storing shared secrets

2008-03-28 Thread Frans Bouma
THis isn't a lame attempt to be funny, but what is this 'shared secret' exactly? A license key? Because as mentioned before, a secret that's shared isn't really a secret. Could you explain some more details about what this secret is all about? FB > I can't use a network sub-fold

Re: [ADVANCED-DOTNET] Storing shared secrets

2008-03-28 Thread Mont Rothstein
Chay and Per, thanks for the ideas. I can't use a network sub-folder but running a service as a specific user would at least let me use DPAPI to securely store data. Even if I have to have the service pass that data to my app it would still be better than hard coding it in the assembly. I'm not

Re: [ADVANCED-DOTNET] Storing shared secrets

2008-03-28 Thread Per Bolmstedt
On Thu, 27 Mar 2008 17:24:31 -0700, Mont Rothstein <[EMAIL PROTECTED]> wrote: > I consider in-the-assembly to be readily available. What you want is for your application to have access to a secret but not the users of your application, right? As in, the application can retrieve the password, but

Re: [ADVANCED-DOTNET] Storing shared secrets

2008-03-27 Thread Harley, Chay
Mont Rothstein Sent: Friday, March 28, 2008 9:25 AM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET] Storing shared secrets Chris and Erik, thank you for the additional thoughts. The problem with impersonating a specific user, is that you then have to have the password for

Re: [ADVANCED-DOTNET] Storing shared secrets

2008-03-27 Thread Mont Rothstein
Chris and Erik, thank you for the additional thoughts. The problem with impersonating a specific user, is that you then have to have the password for that user. Storing a salt or other key value in my assembly is what I am trying to avoid. Unless I am missing something there just doesn't seem to

Re: [ADVANCED-DOTNET] Storing shared secrets

2008-03-27 Thread Erik M. Erikson
The DotNet face of DPAPI is these two classes (they have decent code examples): http://msdn2.microsoft.com/en-us/library/system.security.cryptography.pr otecteddata.aspx http://msdn2.microsoft.com/en-us/library/system.security.cryptography.pr otectedmemory.aspx They allow the DataProtectionScope

Re: [ADVANCED-DOTNET] Storing shared secrets

2008-03-27 Thread Chris Anderson
> Unfortunately it is user specific and I need something that will work > for > all users. > The whole point of DPAPI is that it stores secrets, not "shared secrets" (which is a bit of a contradiction when you think about it) You can still use DPAPI in an app used by many people on the same mach

Re: [ADVANCED-DOTNET] Storing shared secrets

2008-03-27 Thread Mont Rothstein
Thanks guys. I wasn't aware of DPAPI. Unfortunately it is user specific and I need something that will work for all users. What I think is needed (and apparently does not exist) is the .NET equivalent of DPAPI. Something that has a secure path from the specific version of an application to a hi

Re: [ADVANCED-DOTNET] Storing shared secrets

2008-03-27 Thread Per Bolmstedt
On Thu, 27 Mar 2008 12:29:47 -0700, Mont Rothstein <[EMAIL PROTECTED]> wrote: > I am looking for a way to securely store a shared secret. There was a related thread last week; subject "Key storage". If that doesn't help you, maybe the Data Protection API is good enough? http://msdn2.microsoft.com

Re: [ADVANCED-DOTNET] Storing shared secrets

2008-03-27 Thread Shawn Wildermuth
- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Mont Rothstein Sent: Thursday, March 27, 2008 3:30 PM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: [ADVANCED-DOTNET] Storing shared secrets I am looking for a way to securely store a shared secret. This

[ADVANCED-DOTNET] Storing shared secrets

2008-03-27 Thread Mont Rothstein
I am looking for a way to securely store a shared secret. This shared secret is going to be used my multiple machines and so can't be generated for each machine independently. It can of course be encrypted but then the key has to be securely stored. Ideally there would be a way to store data tha