I store some data on computer A with LsaStorePrivateData. The problem is that it is easily readable using LsaRetrievePrivateData api func from any other PC on the same local network. How can I prevent this? Stopping 'remote registry' service does not help. Any other trick to prevent remote access to data stored with LsaStorePrivateData?
Regards, Artur
There is no need to do anything, unless:
the operating system on the target machine is badly corrupted, in which case a reinstallation is probably the only safe approach.
you have stored the data using a guest account, or some other account which untrusted users have access to, in which case the answer is to not do that. :-)
The documentation for LsaStorePrivateData says:
This test code may be useful for anyone interested in the subject, or wanting to double-check that their machine is secure in this respect. My own tests using this code confirmed the documented behaviour.