Click here to get back home

Is It Safe to Deny Administrators Login by Network to Domain Controller?

 HomeNewsGroups | Search | About
 microsoft.public.windows.server.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
Subject Author Date
Is It Safe to Deny Administrators Login by Network to Domain Controller? Will 01-13-2007
Get Chitika Premium
Posted by Roger Abell [MVP] on January 14, 2007, 10:27 am
Please log in for more thread options
>> > Regarding only restricting access to SMB resources, understood, but
>> > what
>> > other resources are of concern? I guess the most troublesome would be
>>
>> Anything that has bound a listener to a port.
>> Ex. How about your backup agents?
>
> Yes, but in our case we firewall the domain controller (what a lot of work
> that was to do and debug by the way!), so I can guarantee that nothing on
> any remote machine has access to any ports other than:
>
> DNS
> Kerberos
> LDAP
> LDAP GC
> NTP
> CIFS (Port 445 only...no 137, 138, or 139 on our network thanks)
> RPC Endpoint Mapper
> RPC (Netlogon)
> RPC (NTDS / DRS)
> RPC (FRS / NTFRS)
>
> We even locked down the RPC services on fixed ports, so there is no wide
> open window for any other RPC service than the ones listed above. It
> actually works. I probably left one or two off but the idea is clear.
> We
> aren't going to get hacked on the backup agent on port xyz, because no
> domain member server has access to the domain controller on that port.
> But
> what I am saying even after you do all this additional firewalling, and
> reveal only the bare essential ports of the DC, that you really don't
> protect yourself very much because a remote user with admin access can
> really nail you on most of these open ports.
>
> The only thing that makes a domain controller securable is to have no
> administrator accounts at all. You can't impersonate or use stolen
> credentials for what doesn't exist. But that's not a practical solution
> either.
>
>
>> Authenticated DNS updates function via DNS server using impersonation
>> for authenticated LDAP with domain controller, after initial exchange by
>> DNS with requesting updater client, which IIRC is Kerberos based.
>> LDAP:// and GC://, Kerberos, DNS, etc. I think your chasing out this
>> list is example of what I was trying to suggest, that you look at
> whitelist
>> approach instead of needing to find and plug all (blacklist).
>> If account is allowed local login, not allow network login, on select
>> group of machines, then by and large you have only the unauthenticated
>> accesses or those authenticated by specific services (ex. backup agent)
>> that have their own listeners and implement their own authentication.
>
> Are there user privileges other than "Deny access to this computer from
> network" that you are referring to here?
>
> And I thought it was your point that you cannot restrict access by the
> above
> privilege on anything more than SMB activity (no protection on RPC, LDAP,
> DNS, Keberos, etc). So I don't understand how to *either* whitelist or
> blacklist any user against RPC, LDAP, DNS, Kerberos, etc, in a way that
> would allow the activity read/write locally but allow the activity only
> read-only by the network. If there is a way to do that, I would love to
> hear about it more.
>
>
>> > I guess controlling administrator remote access to those resources on a
>> > domain controller is just about impossible, because without those the
>> > administrator cannot login to the remote workstation and would not be
> able
>> > to use any application on the remote machine that requires browsing of
>> > domain based resources.
>>
>> Any why do you want them to be able to do that if you are, as your
>> history here clearly shows, concerned about effecting a well secured
>> deployment.
>
> Well, for example, if I pull up the local users list on a member server,
> it's quite possible that the users there will be domain entities in the
> local groups, so already I have RPC Netlogon, and some of these other
> services to just generate that list of domain entities and form the domain
> SIDs in a human-friendly format.
>
>
>> I am unclear as to a precise statement of your objective that
>> underlies this posting. What is it? I want to let DA log in on
>> machines m1, m2, ... mX (uncontrolled list), but when on those
>> I do not want them to be able to connect remotely to the DCs?
>> If they are not going to be managing aspects of AD that are
>> rarely adjusted or only difficultly delegated, then why are
>> they using a DA account? If they are to be not allowed access
>> to the DCs why are they using a DA account on the non-DC?
>
> For a forest with a single domain and single domain controller, I would
> like
> the administrator to be able to login and administer the domain and domain
> controller locally. I want to protect against network / remote
> administration of the domain information or domain controller.
>
> For remote access of the domain controller or AD applications by the DC's
> Administrators or Domain Admins, I am happy if they have either read-only
> access, or are simply denied access. The latter means I need a different
> group of accounts to administer member servers than DCs, and maybe that's
> okay.
>
>
>> That you can break GP application is true, as well as a host of other
>> things dependent on the access (DFS dereference if replica there,
>> login scripts, software install, etc.). Those however did not break
>> Windows per se, it is there and stable; you impaired features.
>
> That's a good point, but group policy is a very attractive part of the
> package we are buying into here, and I guess I don't want to accept
> breaking
> it quite so easily. At very least that would leave me with a
> configuration
> Microsoft wouldn't want to support.
>
> I wonder if it isn't just a bug that a local login to a DC breaks group
> policy when the user is in the "Deny access to this machine from the
> network" user privilege? In the big picture shouldn't the code that
> implements group policy be smart enough to know that when it goes to grab
> the group policy templates from:
>
> \mydomain.com\sysvol\....whatever-path\...
>
> that the "Deny access" privilege should only apply to a login that is not
> local? I can't honestly see much utility in their enforcing this
> privilege
> for a "network" reference to the local machine during a local login.
>

All very good points Will. It is my own opinion that the application
of Group Policy should never have depended on access to fileshares,
and if (as) so, then it should have been done in the machine credentials
for users policy application just as it is for computer policy application.
I totally agree that having user policy apply reliably is a very valued
part of the total Windows domain package. Prior to W2k release, no,
more correctly, prior to its rename from NT5 to W2k, we were told
that the implementation would be NetBios-free; thence direct hosting
on Tcp 445 came along, and then finally they seeming gave up on
ever removing the need for the NetBios ports.

I am still not seeing why you do not just configure the account that
are allowed admin on a DC to only be able to log into the DCs, or
perhaps the DCs plus designated administrative stations.
Is not the issue that you do not want those accounts administering
the DCs or AD unless they are logged in locally to them?

Roger




Posted by Will on January 14, 2007, 4:37 pm
Please log in for more thread options
> I am still not seeing why you do not just configure the account that
> are allowed admin on a DC to only be able to log into the DCs, or
> perhaps the DCs plus designated administrative stations.
> Is not the issue that you do not want those accounts administering
> the DCs or AD unless they are logged in locally to them?

Please reduce this to actual user privileges for me and I'll understand it
faster.

If you mean give the "Log on locally" privilege only to the users I want to
login to DCs, then yes of course that I did.

As far as preventing logon to the remote member servers, are you suggesting
that I add the domain administrator and any administrators for the domain
controllers to the "Deny logon locally" privilege for the domain's security
policy?

I can give that a try if that's the suggestion. I just means that some of
us will now have three user accounts (normal user, administrator on member
servers, and a new third account for just domain administrator and
administrator roles on the DCs). That's a hard sell for me to others but
I can do it. It's certainly better than allowing unlimited access to the
DC.

In terms of approach, the above approach is less secure because in general I
don't trust the member servers in a DMZ, particularly not when they have
direct interaction to the Internet. It's too easy for someone who gets
privileged status on that machine (e.g., by buffer overload of a service
that runs as SYSTEM) to simply change the local security policy to allow
whatever he wants. I would prefer any approach that implements forbidding
remote use of the domain administrator accounts by a policy that lives on
the DC itself.

For the time being, I cannot change group policy while logged into the DC as
long as the "Deny access to the computer from network" is in effect. I'm
in a catch22 where I am locked out from the network while logged in locally.

--
Will



Posted by Roger Abell [MVP] on January 15, 2007, 2:06 am
Please log in for more thread options
>> I am still not seeing why you do not just configure the account that
>> are allowed admin on a DC to only be able to log into the DCs, or
>> perhaps the DCs plus designated administrative stations.
>> Is not the issue that you do not want those accounts administering
>> the DCs or AD unless they are logged in locally to them?
>
> Please reduce this to actual user privileges for me and I'll understand it
> faster.
>

Access the properties of a user object and in there you can list
the machines to which the account is allowed login. Any machine
not listed cannot be logged into by the account.
If you want to make sure that AD and/or DC management is done
only on the DCs this is the most direct way, limit the accounts
that are able to manage AD and/or DCs to being used on them only.
The GUI limits the number of machines that one can enter, but the
actual limit is higher (sorry, do not recall the number).

Will - this is revisit note, after all other comments were inlined.
I need to rethink what alternatives may exist for your objective,
because I just remembered your mention that you have NetBt
shut down, but last I checked that was a prereq for account logon
restriction to function. Another catch-22 if it cannot function over
Tcp 445 alone, hence I need to regroup, review what you have
said, and see if there is/are any other alternative(s).
Roger

> If you mean give the "Log on locally" privilege only to the users I want
> to
> login to DCs, then yes of course that I did.
>
> As far as preventing logon to the remote member servers, are you
> suggesting
> that I add the domain administrator and any administrators for the domain
> controllers to the "Deny logon locally" privilege for the domain's
> security
> policy?
>
> I can give that a try if that's the suggestion. I just means that some
> of
> us will now have three user accounts (normal user, administrator on member
> servers, and a new third account for just domain administrator and
> administrator roles on the DCs). That's a hard sell for me to others
> but
> I can do it. It's certainly better than allowing unlimited access to the
> DC.

I understand the issues with multiple accounts being in disfavor.

You can approach via user rights, but hopefully you now see the
alternative in the user object attributes is another avenue.

In point of fact, EA and DA are so empowered that there is IMO
very little in way of good arguments that can be presented to not
make the use of EA and DA as restricted as works (ie. as still does
allow/enable their needed usages). This is especially so if DA is
left with its default membership in every Administrators group.

Admins in the org likely end up with at least two accounts, plain
user for day-to-day, and delegated/empowered that is intentionally
less than fully useful for day-to-day purposes (ex. no access to
user-type shares, no email, etc.). Those two would not include
EA or DA, and empowered might even be usefully factored into
more if there is a defined need to segregate possible cross-risk
between categories of servers/services/empowerments.
It is simply the old convenience vs safety trade.

>
> In terms of approach, the above approach is less secure because in general
> I
> don't trust the member servers in a DMZ, particularly not when they have
> direct interaction to the Internet. It's too easy for someone who gets
> privileged status on that machine (e.g., by buffer overload of a service
> that runs as SYSTEM) to simply change the local security policy to allow
> whatever he wants. I would prefer any approach that implements
> forbidding
> remote use of the domain administrator accounts by a policy that lives on
> the DC itself.
>
> For the time being, I cannot change group policy while logged into the DC
> as
> long as the "Deny access to the computer from network" is in effect. I'm
> in a catch22 where I am locked out from the network while logged in
> locally.

This is indeed. There would be a two step approach - removing the account
from the group that is in the Deny net logon user right, relogon and edit,
followed by restoring group membership (which obviously holds the accounts
rather than DA). There would be approach of an account delegated rights to
edit GPOs that is not a DA, but then that account would have the remote mgmt
accesses you seek to disallow to the admins. So, it is still catch-22.

>
> --
> Will
>
>



Posted by Will on January 15, 2007, 6:55 pm
Please log in for more thread options
> >> I am still not seeing why you do not just configure the account that
> >> are allowed admin on a DC to only be able to log into the DCs, or
> >> perhaps the DCs plus designated administrative stations.
> >> Is not the issue that you do not want those accounts administering
> >> the DCs or AD unless they are logged in locally to them?
> >
> > Please reduce this to actual user privileges for me and I'll understand
it
> > faster.
> >
>
> Access the properties of a user object and in there you can list
> the machines to which the account is allowed login. Any machine
> not listed cannot be logged into by the account.
> If you want to make sure that AD and/or DC management is done
> only on the DCs this is the most direct way, limit the accounts
> that are able to manage AD and/or DCs to being used on them only.
> The GUI limits the number of machines that one can enter, but the
> actual limit is higher (sorry, do not recall the number).
>
> Will - this is revisit note, after all other comments were inlined.
> I need to rethink what alternatives may exist for your objective,
> because I just remembered your mention that you have NetBt
> shut down, but last I checked that was a prereq for account logon
> restriction to function. Another catch-22 if it cannot function over
> Tcp 445 alone, hence I need to regroup, review what you have
> said, and see if there is/are any other alternative(s).

Looks like you are right. They restrict the feature of limited login to
NetBIOS only. What a waste of a nice feature.

--
Will



Posted by Roger Abell [MVP] on January 16, 2007, 1:37 am
Please log in for more thread options
>> >> I am still not seeing why you do not just configure the account that
>> >> are allowed admin on a DC to only be able to log into the DCs, or
>> >> perhaps the DCs plus designated administrative stations.
>> >> Is not the issue that you do not want those accounts administering
>> >> the DCs or AD unless they are logged in locally to them?
>> >
>> > Please reduce this to actual user privileges for me and I'll
>> > understand it faster.
>> >
>>
>> Access the properties of a user object and in there you can list
>> the machines to which the account is allowed login. Any machine
>> not listed cannot be logged into by the account.
>> If you want to make sure that AD and/or DC management is done
>> only on the DCs this is the most direct way, limit the accounts
>> that are able to manage AD and/or DCs to being used on them only.
>> The GUI limits the number of machines that one can enter, but the
>> actual limit is higher (sorry, do not recall the number).
>>
>> Will - this is revisit note, after all other comments were inlined.
>> I need to rethink what alternatives may exist for your objective,
>> because I just remembered your mention that you have NetBt
>> shut down, but last I checked that was a prereq for account logon
>> restriction to function. Another catch-22 if it cannot function over
>> Tcp 445 alone, hence I need to regroup, review what you have
>> said, and see if there is/are any other alternative(s).
>
> Looks like you are right. They restrict the feature of limited login to
> NetBIOS only. What a waste of a nice feature.
>

Yes, indeed, but it is not that they limited it, but rather that
they have never updated this feature, which existed since at
least NT 3.5, so that it does not rely on NetBIOS names.

I think you are thus back to the use of user rights to try to
effect these limits. Keeping in mind that a fairly standard
comment is that attempts to limit empowered accounts is
flawed in design, that the accounts remain able to lift the
limitations, etc., let me toss out that one could use a login
script that tests the machine used and logs out if incorrect.
Since there is the "walk around it" aspect to user rights
restrictions or login script logoff, since not being able to
read GPOs blocks application to those accounts, breaks
their ability to reason with resultant policy, etc. it appears
to me you need to design a delegation strategy so your
categories of admin can accomplish their task sets but
not have excessive empowerments. In other words, to
make sure admin on DCs is used only on DCs as intended
you probably need to severely restrict account availability
to only those that will uphold that policy. I have considered
mentioning third-party GP extension products, but one still
comes back to the "walk around" effect, meaning the personal
integrity issue is still in play. Other than strategy of delegation
to limit the scale, I am not sure how you would address that.



Similar ThreadsPosted
Deny folder access for administrators January 24, 2006, 4:28 am
deny login to member servers April 11, 2006, 9:54 am
Deny Network access via a Policy - Help!!! September 2, 2005, 2:48 am
AD administrators and domain admins groups April 25, 2006, 12:26 pm
Domain Controller That Service a DMZ October 29, 2005, 9:58 pm
Domain Controller Security January 13, 2006, 4:43 pm
Domain Controller Security Policy August 12, 2005, 4:31 pm
Want to make an Admin for only one Domain Controller April 7, 2006, 4:42 pm
Client and Domain controller across a firewall March 31, 2008, 5:32 am
2003 Domain Controller not requesting certificate May 31, 2006, 2:53 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap