I execute net user command from C# and map the network to the local computer. Below is my code:
string netUse = @"net";
string DomainUser = "Domain\User";
string parameters = "use \"" + ServerLocation + "\" " + server.Password +
@" /USER:" + DomainUser + @" /PERSISTENT:NO";
ProcessStartInfo psi = new ProcessStartInfo(netUse, parameters);
psi.CreateNoWindow = true;
psi.UseShellExecute = false;
Process p = Process.Start(psi);
I found that security sensor (Falcon) detected access with a plain password:
net.exe
ComandLine: "net" use "\ServerLocation\d$" Password /USER: User /Persistent:NO
My question is: Is it possible to hide password?