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
Posted by Will on January 13, 2007, 3:00 am
Please log in for more thread options
Security Policy for the Domain Controllers includes a Security Option to
"Deny Login to This Machine From Network". I want to enforce
administration of domain controllers by logging into the console, or by
logging in through Terminal Services. I don't want Administrators
exercising their privilege level over RPC, over file sharing, etc. Can I
simply add the Administrators group to the Deny Login from Network security
option for the domain controllers to prevent such exposures?

Are there other group policy options I should be changing at the same time
to further enforce the above requirements?

--
Will



Posted by Roger Abell [MVP] on January 13, 2007, 9:46 am
Please log in for more thread options
Network login (logon type 3) controls some, but not all
network enabled accesses. If you read into it you will
see it is for SMB type connections (shares, printers, named
pipes, etc.). You are attempting to blacklist in order to
control the use of highly privileged accounts. It is more
effective to whitelist using the properties of the account,
stating it can log in only one such and such machines.
One large problem people often inadequately address is
use of privileged accounts on poorly secured workstations,
often not held to as high of standards of patching, of third
party installables loaded, of (non) risky user behaviors.
The whitelisting approach is one element that is key to
addressing such risks.

> Security Policy for the Domain Controllers includes a Security Option to
> "Deny Login to This Machine From Network". I want to enforce
> administration of domain controllers by logging into the console, or by
> logging in through Terminal Services. I don't want Administrators
> exercising their privilege level over RPC, over file sharing, etc. Can
> I
> simply add the Administrators group to the Deny Login from Network
> security
> option for the domain controllers to prevent such exposures?
>
> Are there other group policy options I should be changing at the same time
> to further enforce the above requirements?
>
> --
> Will
>
>



Posted by Will on January 13, 2007, 2:33 pm
Please log in for more thread options
> pipes, etc.). You are attempting to blacklist in order to
> control the use of highly privileged accounts. It is more
> effective to whitelist using the properties of the account,
> stating it can log in only one such and such machines.

Can you elaborate this? Are you trying to say restrict administrator level
accounts to log in and use by SMB domain controller resources only from
trusted computers, and restrict their login to the domain controller SMB
resources from untrusted computers? How would I do that?

Regarding only restricting access to SMB resources, understood, but what
other resources are of concern? I guess the most troublesome would be
Active Directory replication (NTDS / DRS)? There would also be File
Replication Service (FRS). Basically, there are all of the RPC based
services that I would be still subject to? And then I have to worry about
any DNS, Kerberos, LDAP and LDAP GC interfaces that allow writing to the
domain's resources.

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.

Microsoft really did no thinking about security here at all. The model is
just not securable. It's depressing.

--
Will



Posted by Roger Abell [MVP] on January 13, 2007, 9:59 pm
Please log in for more thread options

>> pipes, etc.). You are attempting to blacklist in order to
>> control the use of highly privileged accounts. It is more
>> effective to whitelist using the properties of the account,
>> stating it can log in only one such and such machines.
>
> Can you elaborate this? Are you trying to say restrict administrator
> level

I am saying that the account should be restricted to have login
allowed only on the DCs and possibly on tightly controlled
administrative machines (whose health and exposure is well
controlled).

For DA there are few cases where its use is required if one
uses delegation of tasks to lesser accounts (also controlled
as to their allowed usage).

> accounts to log in and use by SMB domain controller resources only from
> trusted computers, and restrict their login to the domain controller SMB
> resources from untrusted computers? How would I do that?
>
Not really what I was saying. In general, it is not a supportable
access control model : "account X allowed remoted access to a
resource R on machine A only when it is logged into machines m1,
m2, or m3". One can get there, kludgingly, but only if one is willing
to restrict access to machine A from only machines m1, m2, or m3.

> 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?

> Active Directory replication (NTDS / DRS)? There would also be File
> Replication Service (FRS). Basically, there are all of the RPC based
> services that I would be still subject to?

Think beyond rpc.

> And then I have to worry about
> any DNS, Kerberos, LDAP and LDAP GC interfaces that allow writing to the
> domain's resources.
>

DNS is example of an unauthenticated access, at least for query.
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.

> 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.

>
> Microsoft really did no thinking about security here at all. The model
> is
> just not securable. It's depressing.

There is a lot of legacy involved. The older of it was designed
when Windows was a single room affair. There has been a lot
of thought about it, and there are a lot of trade-offs.

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?

Roger



Posted by Will on January 14, 2007, 12:46 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.

--
Will



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