AD Startup Script Containing Password

AD Startup Script Containing Password

Secure Home | Search | About
 Microsoft Applications Security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content add this group's latest topics to your Google content
Subject Author Date
AD Startup Script Containing Password Baboon 12-15-2007
Posted by =?Utf-8?B?QmFib29u?= on December 15, 2007, 10:27 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
Hello -

I have a batch file that runs a dsmove command that needs authentication of
a user that has control of 2 very small OUs. I happen to be that user, so
the batch file contains my password. I want to run this as a machine startup
script. For testing, I temporarily put this in the respective subfolder of
Sysvol and I removed my password after every testing session. However, I
also changed the permissions to the batch file to:
System - Full
Me - Full
Domain Computers - Full
Enterprise Domain Controllers - Full

I realize a Domain Admin would be able to him/herself access if they wanted
to. Other than that, is there any risk with the above permissions? I don't
see how there could be, but I may be missing something.

By the way, before putting this into production, I will delegate control of
the OUs to a service account and use those credentials in the batch file
instead of mine.

Thanks.

Posted by Roger Abell [MVP] on December 16, 2007, 2:22 am
If you were  Registered and logged in, you could reply and use other advanced thread options
If I am aware that the script exists then I can simply start up
cmd running in the local system context and then net use to
map sysvol and get a copy of your batch file. Anyone with
admin or power user login at any domain joined machine
would be able to do that.

Roger

> Hello -
>
> I have a batch file that runs a dsmove command that needs authentication
> of
> a user that has control of 2 very small OUs. I happen to be that user, so
> the batch file contains my password. I want to run this as a machine
> startup
> script. For testing, I temporarily put this in the respective subfolder
> of
> Sysvol and I removed my password after every testing session. However, I
> also changed the permissions to the batch file to:
> System - Full
> Me - Full
> Domain Computers - Full
> Enterprise Domain Controllers - Full
>
> I realize a Domain Admin would be able to him/herself access if they
> wanted
> to. Other than that, is there any risk with the above permissions? I
> don't
> see how there could be, but I may be missing something.
>
> By the way, before putting this into production, I will delegate control
> of
> the OUs to a service account and use those credentials in the batch file
> instead of mine.
>
> Thanks.



Posted by =?Utf-8?B?QmFib29u?= on December 16, 2007, 8:40 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
Right. I should have thought of that. All you would have to do is to get a
machine to do the work for you. For example, a scheduled task of a batch
file that simply uses the copy command to copy the batch file to the local
machine, running as System.

Thanks for pointing that out.

"Roger Abell [MVP]" wrote:

> If I am aware that the script exists then I can simply start up
> cmd running in the local system context and then net use to
> map sysvol and get a copy of your batch file. Anyone with
> admin or power user login at any domain joined machine
> would be able to do that.
>
> Roger
>
> > Hello -
> >
> > I have a batch file that runs a dsmove command that needs authentication
> > of
> > a user that has control of 2 very small OUs. I happen to be that user, so
> > the batch file contains my password. I want to run this as a machine
> > startup
> > script. For testing, I temporarily put this in the respective subfolder
> > of
> > Sysvol and I removed my password after every testing session. However, I
> > also changed the permissions to the batch file to:
> > System - Full
> > Me - Full
> > Domain Computers - Full
> > Enterprise Domain Controllers - Full
> >
> > I realize a Domain Admin would be able to him/herself access if they
> > wanted
> > to. Other than that, is there any risk with the above permissions? I
> > don't
> > see how there could be, but I may be missing something.
> >
> > By the way, before putting this into production, I will delegate control
> > of
> > the OUs to a service account and use those credentials in the batch file
> > instead of mine.
> >
> > Thanks.
>
>
>

Posted by Morgan che(MSFT on December 17, 2007, 6:14 am
If you were  Registered and logged in, you could reply and use other advanced thread options

Dear customer,

Thanks for your posting here.

Officially, it is not recommended to run a batch file with your credential
as startup/logon script. It may disclose your password. As you know, other
users may get it through accessing the batch file. Even though all users
accessing this batch files are trustable, password transmission in the
format of clear text also has exposure risk.

If this task is necessary, you can code an application which encrypts your
credentials in a more secure way. Or you can consider other methods to
avoid exposure of your credentials in production environment.

Hope this helps. If there is anything unclear, please feel free to let me
know.

Have a nice day!

Sincerely
Morgan Che
Microsoft Online Support
Microsoft Global Technical Support Center

Get Secure! - www.microsoft.com/security
=====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.



Posted by =?Utf-8?B?QmFib29u?= on December 19, 2007, 2:11 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
Thanks.
We have changed things a bit:

We will use a service account for this purpose only.
That account will have its credentials in the batch file instead of a real
user's credentials.
We will still use a startup script sitting in sysvol, but it will only call
the aforementioned batch file.
The batch file will sit on a file server to which no users other than myself
have access, and to which only about 4 computers at a time (via group
membership) will have access.
Those computers will not be used by anyone other than the 6 of us who will
be doing the deployments.

"Morgan che(MSFT)" wrote:

>
> Dear customer,
>
> Thanks for your posting here.
>
> Officially, it is not recommended to run a batch file with your credential
> as startup/logon script. It may disclose your password. As you know, other
> users may get it through accessing the batch file. Even though all users
> accessing this batch files are trustable, password transmission in the
> format of clear text also has exposure risk.
>
> If this task is necessary, you can code an application which encrypts your
> credentials in a more secure way. Or you can consider other methods to
> avoid exposure of your credentials in production environment.
>
> Hope this helps. If there is anything unclear, please feel free to let me
> know.
>
> Have a nice day!
>
> Sincerely
> Morgan Che
> Microsoft Online Support
> Microsoft Global Technical Support Center
>
> Get Secure! - www.microsoft.com/security
> =====================================================
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> =====================================================
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
>

Similar ThreadsPosted
Admin password at startup December 18, 2005, 8:10 am
Re: Password Script April 24, 2008, 5:36 am
Re: Password Script April 24, 2008, 10:30 am
Norton on Startup April 12, 2006, 10:08 am
Suspicious StartUp Programs August 5, 2006, 5:27 pm
'C:\Windows\System32' window pop up at startup July 4, 2006, 10:52 pm
How To enable windows defender to run on startup July 24, 2006, 11:00 pm
certificate Services will not startup on specified port May 8, 2008, 5:02 pm
explorer opens on startup, C:\WINDOWS\SYSTEM32 June 5, 2007, 2:36 pm
Can Malware Automatically Startup in Safe Mode? December 1, 2008, 3:09 am

The site map in XML format XML site map

Contact Us | Privacy Policy