Showing posts with label security. Show all posts
Showing posts with label security. Show all posts

Harden Windows 10 workstations and servers: Disable SMB v1

source link:

Server Message Block (SMB) is a foundational service that has been used for many years. This internet standard protocol enables Windows to share files, printers and serial ports. SMB is used over the internet on top of the TCP/IP protocol.
SMB v1 has been in use since Windows 95, and in 2019, it’s still often found and abused in networks. If you have SMB v1 enabled in your network, it can be used in blended attacks that might include ransomware and other malware. In a 2016 blog post, Ned Pyle lists the protections you lose when using SMB v1:
As Pyle points out, “The nasty bit is that no matter how you secure all these things, if your clients use SMB1, then a man-in-the-middle can tell your client to ignore all the above. “

How to detect and disable SMB v1

You can use various means to disable SMB v1 in your network. For example, you can use group policy to disable it with a registry key as noted in a 2017 blog post. In addition, you can follow the guidance in KB2696547 to detect if SMB v1 is still in use in your network and to gracefully disable it.
On Windows 10, you can use PowerShell to determine if SMB v1 is enabled on your computer. For example, the command Get-WindowsOptionalFeature –Online –FeatureName SMB1Protocol on my Windows 10 system provides the following information:
bradley smb 1 Microsoft
Determining support for SMB v1
You might find that older copiers and printers or older network-accessible storage still depends on SMB v1 to be functional. You need to determine if the risk of SMB v1 is acceptable, or you can contact the vendors on your impacting devices to determine if you can get a firmware update to support SMB v2 and SMB v3 on these older devices. There is even a list of products that demand SMB v1. If you are having issues disabling SMB v1 at home, check out the guidance on the Barbs Connected World blog.
Next, as recommended by the U.S. Cert, you can block SMB v1 at the firewall and internet. Most firewalls do this by default, but review if yours automatically blocks all SMB versions at the network boundary. It would do so by blocking TCP port 445 with related protocols on UDP ports 137-138 and TCP port 139.
Take the time now to review your SMB v1 status and tighten up your Server Message Block

Troubleshooting WSUS Agents that Are Not Reporting to the WSUS Server

source link

The WSUS client agent may not report to the WSUS server for many reasons. Here I'll go through some of the reasons and how you can troubleshoot the process. There are also some situations you may run into where some or all clients stop reporting to the server and these steps will also help for those scenarios as well.
1. Make sure that the client has the proper WSUS settings
On the client run gpresult or rsop.msc to make sure that the details of the WSUS server exist. If not then a couple possible causes include:
  • The system does not have the group policy from the Domain.
  • The Group Policy is not been targeted to the client system.
To address this, you need to make sure that the group policy is successfully updated on each client and that the WSUS setting is properly configured. For more information on this see the following TechNet documentation:

Configure Automatic Updates by Using Group Policy 

In case you are using a registry modification or local policy make sure that the same is applied. The registry location where the WSUS server configuration is stored is below:

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate]
"WUServer"="
http:// >""
"WUStatusServer"=
http:// > …etc


Further options on the WSUS Agent settings are available here:
[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate\AU]
"AUOptions"=dword:0000000X …etc


You can find more details on how you can use scripts to configure the WSUS settings from the following link:
http://msmvps.com/blogs/athif/archive/2005/09/14/Manually_Configure_WUA.aspx

Once you have made sure that the WSUS settings are configured correctly you can move on to next step.
2. Make sure that the agent services are up and running
You need to make sure that the WSUS agent service (Automatic Updates) and BITS (Background Intelligent Transfer Service) are running. The System\Application event viewer events can help you identify and troubleshoot this issue. If you suspect your issue may be related to issues with the Automatic Update or BITS services, here are few links that can be helpful in troubleshooting these types of issues:

KB331716 - List of known issues for Background Intelligent Transfer Service (BITS)

KB969632 - Background Intelligent Transfer Service (BITS) does not start in Windows XP, and you receive a message in the System log: "The Background Intelligent Transfer Service service terminated with service-specific error 2147500037 (0x80004005)"

KB883614 - You receive a "Windows Update has encountered an error and cannot display the requested page" error message when you try to install an update

KB959894 - Error message: “The necessary service "Automatic Updates" (WUAUSERV) is not started or Background Intelligent Transfer Service (BITS) is disabled. Error 0x8DDD0018” or Error codes 0x80244019 or 0x80070422 when attempting to install updates.
3. Make sure the WSUS server is reachable from the client
Make sure that you can access the site /iuident.cab">/iuident.cab">/iuident.cab">http:///iuident.cab and download the file without errors. If this fails then some possible reasons include:
  • There is a name resolution issue on the client.
  • There is network related issue (e.g. there's a proxy configuration issue, etc.).
One of the most common issues we see is the proxy issue. For that you can check the windowsupdate.log (C:\windows\) and see if there are any proxy related errors. If yes then you can run the proxycfg command to check the win http proxy settings. For more information on the proxycfg command you can check the following link:

http://msdn.microsoft.com/en-us/library/ms761351(VS.85).aspx 

Most of the clients will have the proxycgf utility but if not then you can download it here:

KB830605 - The Proxycfg.exe configuration tool is available for WinHTTP 5.1

If you are finding proxy errors then what you can do is go to Internet Explorer –> Tools -> Connections –> LAN Settings and configure the correct proxy and make sure you can reach the WSUS URL specified. Once done you can copy these user proxy settings to the win http proxy settings using the proxycfg –u command.

Once the proxy settings are specified you can run wuauclt /detectnow and check the windowsupdate.log for errors.
4. Make sure the agent is healthy and working
If you still have errors you can check the windows update agent version. The details on how to do this are here:

http://technet.microsoft.com/en-us/library/bb680319.aspx 

If you find that the agent is not up to date then you can update the windows update agent to the latest here:

KB949104 - How to obtain the latest version of the Windows Update Agent to help manage updates on a computer

For more information see http://technet.microsoft.com/en-us/library/bb932139.aspx 

You can also use the utility provided in KB971058 that will help you to sort out most of the issues with the agent. Once you've run the fix or updated the agent you can run wuauclt /detectnow and check the windowsupdate.log to make sure there is no issues.
5. Automatic Update Agent Store is corrupted
When we have issues with the ability to download updates and we're experiencing errors relating to the software distribution store then try the following on the client:
a. Stop the Automatic Updates service
b. Rename the software distribution folder (i.e. C:\Windows\SoftwareDistribution).
c. Restart the Automatic Update service
d. Run wuauclt /resetauthorization /detectnow
e. Run wuauclt /reportnow
6. Clients with the Same SUSclient ID
This issue can happen when we image systems and the clients end up having the same SUSclientID. The result is that only one among these clients will appear in the console. You may also see that out of a group of these clients, only one appears at a time but the exact one that does appear may change over time. For those clients that are not registering due to the SUS GUID issue we can use the following:
a. Stop the automatic service
b. Delete the SUSclientID reg key
HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate

c. Restart the automatic service
d. Run wuauclt /resetauthorization /detectnow
e. Run wuauclt /reportnow
7. Conflicts with System Center Configuration Manager
This can occur if ConfigMgr 2007 had been previously installed on the server as a Software Update Point (SUP) and Automatic Update reporting events was set to "Do not create WSUS reporting events". The solution is to revert the setting back to "Create all WSUS reporting events" unless ConfigMgr 2007 was uninstalled.

An alternate solution is to use this application to change the level of reporting.

Note : Most of these issues can be traced from windowsupdate.log and the error codes it contains. For understanding what the error codes mean you can check the following link: http://inetexplorer.mvps.org/archive/windows_update_codes.htm .
Note: This information was originally contributed by Sudheesh Narayanaswamy, Support Engineer, on the WSUS SupportTeam blog: 

http://blogs.technet.com/sus/archive/2009/11/17/tips-for-troubleshooting-wsus-agents-that-are-not-reporting-to-the-wsus-server.aspx 

http://blogs.technet.com/sus/archive/2008/11/12/wsus-clients-install-updates-properly-but-don-t-send-any-status-reports-back-to-the-server.aspx

Fix the “App can’t be opened because it is from an unidentified developer” Error in Mac OS X

source

Since OS X Mountain Lion, the Mac defaults to preventing applications from unidentified developers or sources from being launched. You’ll discover the message in OS X 10.8 when you try to launch a Mac app that didn’t come from a verified source or from the Mac App Store, and you’ll get an alert dialog that says “[App name] can’t be opened because it is from an unidentified developer”.


This new security feature is called GateKeeper, and it doesn’t mean you can’t run those unverified apps on the Mac, you just have to either temporarily skirt the security blanket of GateKeeper, or turn off the app limitations entirely.

Temporarily Get Around “App Can’t Be Opened” Gatekeeper Alert Message

This is probably the best option for most users, since it maintains some security:
  1. Right-click (or control-click) the application in question and choose “Open”
  2. Click the “Open” button at the next dialog warning to launch the app anyway
You can do this with any third party app that gives you this warning dialog and open it anyway.


If you get tired of constantly right-clicking apps to open them, return to pre-Mountain Lion levels of app security by turning off Gatekeepers app verification completely.

Disable GateKeeper’s Unidentified App Developer Prevention Completely

This is generally best for advanced users who know what apps to trust and not to trust:
  1. Launch System Preferences from the Apple  menu
  2. Choose “Security & Privacy” and then click the “General” tab, followed by clicking the lock icon in the corner to unlock the settings
  3. Look for “Allow applications downloaded from:” and choose “Anywhere”
  4. Accept the security warning and allow
  5. You can now launch any app from any location or developer