Solved

PCI scan - CIFS NULL Session Permitted

Posted on 2016-11-15
10
223 Views
Last Modified: 2016-11-16
Hello - I am currently going through a PCI audit and they found the below vulnerability.

3.1.5. CIFS NULL Session Permitted

The policy "Network access: Named pipes that can be accessed anonymously" has netlogon,samr,lsarpc in the list. I believe this is where the vulnerability came from. I understand they are ldap services but do I need to allow them via anonymous access? is there a more secure method for these services to use?
0
Comment
Question by:agcsupport
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
  • 2
10 Comments
 
LVL 63

Accepted Solution

by:
btan earned 500 total points
ID: 41889072
Suggest you go to the server and take steps for disabling SMB/NETBIOS NULL Session on domain controllers using group policy.

Enable:
Network access: Restrict Anonymous access to Named Pipes and Shares
Network access: Do not allow anonymous enumeration of SAM accounts
Network access: Do not allow anonymous enumeration of SAM accounts and shares
Network access: Shares that can be accessed anonymously

Disable:
Network access: Let Everyone permissions apply to anonymous users
Network access: Allow anonymous SID/Name translation

Also update the registry key values to restrict null session as below:

HKEY\SYSTEM\CurrentControlSet\Control\Lsa:
RestrictAnonymous = 1
Restrict AnonymousSAM = 1
EveryoneIncludesAnonymous = 0
0
 

Author Comment

by:agcsupport
ID: 41889117
@lvl60 - I previously found that article and applied the settings. The below setting allows you to add named pipes basically as an exception. This is where I have the netlogon,samr,lsarpc listed. I did not manually input them so I would have to say they are there by default. These are the services I am wanting to disable if possible. If they are required ldap pipes then I will report them as needed pipes to auditors.

"Network access: Restrict Anonymous access to Named Pipes and Shares"
0
 
LVL 63

Expert Comment

by:btan
ID: 41889236
Those are default named pipes e.g. default list on Windows Server 2003, R2: COMNAP, COMNODE, SQL\QUERY, SPOOLSS, netlogon, lsarpc, samr, browser. There is really no need for these to have anonymous login. User account should authenticated for accountability and audit trail..
0
Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

 

Author Comment

by:agcsupport
ID: 41889829
So is it your opinion I can remove these entries without issue?

Netlogon - Net Logon service
 Lsarpc - LSA access
 Samr - SAM access
0
 
LVL 63

Expert Comment

by:btan
ID: 41889836
Yes. As MS stated
In operating systems earlier than Windows Server 2003 with Service Pack 1 (SP1), these named pipes were allowed anonymous access by default. In later operating systems, these pipes must be explicitly added if needed.
0
 

Author Comment

by:agcsupport
ID: 41889915
I looked at both of my server 2012 DC's and they have the three named pipes enabled. I also looked on another 2012 server where the policy was set to restrict and there were no services listed. Seems that the domain controllers have them enabled by default which leads me to think they are needed. I suppose I can remove them and see what breaks but not a fan of doing that.
0
 
LVL 6

Expert Comment

by:sAMAccountName
ID: 41890029
So is it your opinion I can remove these entries without issue?

Id suggest caution here...

Given you understand what dependencies exist in your network which may rely on  this functionality, you are best suited to answer this.  I dont think anyone here, with zero knowledge of what is going on at your company can say you can do this without issue.

That said, the spirit of btan's reply rings true
0
 

Author Comment

by:agcsupport
ID: 41890048
Completely understand nobody here knows my environment and its dependencies. Lets say I set up a 2012 domain test environment. Two DCs and one Win10 workstation with all default settings including the named pipes exceptions. Do I need these services for this environment to work correctly.
0
 
LVL 6

Expert Comment

by:sAMAccountName
ID: 41890054
You shouldnt with modern versions of the operating system and server roles.  As btan pointed out, this is legacy stuff
1
 

Author Comment

by:agcsupport
ID: 41890079
Thank you everyone for your help - much appreciated.
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
Keystroke loggers have been around for a very long time. While the threat is old, some of the remedies are new!
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question