%3CLINGO-SUB%20id%3D%22lingo-sub-1269482%22%20slang%3D%22en-US%22%3EIntroducing%20SDNSecurityToolkit%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1269482%22%20slang%3D%22en-US%22%3E%3CP%3E%3CEM%3EThanks%20to%20William%20Conlon%20for%20authoring%20today's%20post!%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EEvery%20software%20producer%20has%20faced%20this%20challenge%20at%20some%20point%3A%20balancing%20flexibility%20with%20security.%20The%20most%20basic%20requirement%20of%20quality%20in%20any%20piece%20of%20software%20is%20that%20it%20will%20not%20expose%20the%20user%20to%20attackers%2C%20but%20in%20some%20cases%20the%20features%20of%20the%20software%20require%20us%20to%20allow%20the%20user%20to%20make%20mistakes%20that%20might%20expose%20vulnerabilities.%20In%20the%20world%20of%20operating%20systems%2C%20for%20example%2C%20we%20must%20balance%20letting%20our%20users%20configure%20their%20system%20how%20they%20want%20with%20protecting%20them%20to%20our%20best%20ability.%20To%20accomplish%20this%20we%20provide%20our%20users%20with%20tools%20to%20scan%20their%20system%20and%20alert%20them%20when%20we%20find%20something%20we%20know%20to%20be%20malicious%20or%20where%20a%20best%20practice%20is%20not%20being%20followed.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20the%20world%20of%20Software%20Defined%20Networking%2C%20even%20with%20a%20completely%20secure%20platform%20there%20is%20always%20the%20possibility%20that%20a%20customer%20will%20misconfigure%20a%20rule%20and%20expose%20their%20system.%20Our%20SDN%20team%20for%20Windows%20Server%202019%20recognizes%20this.%20While%20there%20is%20no%20way%20that%20we%20can%20ensure%20that%20an%20SLB%20rule%20will%20never%20be%20misconfigured%2C%20we%20know%20how%20complicated%20SDN%20deployments%20can%20be%20and%20want%20to%20empower%20our%20users%20with%20tools%20to%20protect%20themselves.%20After%20all%2C%20deployments%20may%20reach%20thousands%20of%20VIPs%2C%20load%20balancing%20rules%2C%20and%20inbound%20and%20outbound%20NATs%2C%20all%20of%20which%20may%20be%20changing%20dynamically%20from%20day%20to%20day.%20With%20more%20of%20the%20world%20migrating%20to%20cloud%2C%20we%20can%20expect%20users%20to%20run%20into%20complex%20problems%20if%20we%20do%20not%20provide%20them%20with%20effective%20tools%20for%20visualizing%20the%20ways%20that%20they%20are%20exposing%20their%20system%20to%20the%20outside%20world.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20this%20end%2C%20we%20have%20created%20a%20new%20tool%20for%20analyzing%20your%20public%20VIPs.%20It%20is%20a%20simple%20PowerShell%20module%20called%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2FSDN%2Ftree%2Fmaster%2FSDNExpress%2FTools%2FSDNSecurityToolkit%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3ESDNSecurityToolkit%3C%2FA%3E%2C%20now%20available%20on%20the%20Microsoft%20SDN%20GitHub.%20After%20loading%20the%20module%20you%20will%20be%20able%20to%20use%20the%20Invoke-SDNVipScan%20cmdlet.%20To%20use%20this%20cmdlet%2C%20you%20only%20need%20to%20supply%20the%20connection%20URI%20for%20your%20existing%20SDN%20deployment%20and%20the%20path%20to%20an%20Nmap%20executable.%20The%20tool%20returns%20an%20object%20containing%20all%20its%20findings%20and%20you%20may%20also%20specify%20a%20path%20for%20it%20to%20output%20a%20basic%20HTML%20report%20or%20to%20save%20this%20information%20as%20a%20JSON%20object.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20tool%20runs%20in%20three%20stages%2C%20by%20running%20with%20the%20-verbose%20flag%20you%20can%20see%20these%20occurring%20in%20real%20time.%20The%20samples%20below%20have%20slightly%20different%20coloring%20for%20demonstration%20purposes.%20First%2C%20the%20tool%20queries%20across%20all%20existing%20load%20balancers%20for%20public%20VIPs%20and%20gathers%20information%20about%20what%20rules%20are%20making%20use%20of%20those%20VIPs%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22tojens_6-1585692453108.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F181068i2D33F14C747E825B%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22tojens_6-1585692453108.png%22%20alt%3D%22tojens_6-1585692453108.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20provide%20deeper%20insight%2C%20the%20tool%20then%20scans%20the%20exposed%20ports%20for%20these%20VIPs%20with%20Nmap%20to%20look%20at%20what%20might%20be%20listening%20on%20the%20other%20side.%20This%20is%20to%20acknowledge%20the%20multiple%20layers%20of%20security%20that%20may%20be%20in%20play%2C%20for%20instance%20a%20deployment%20may%20intentionally%20leave%20certain%20routes%20open%20on%20the%20load%20balancer%20side%20while%20securing%20VMs%20on%20the%20backend%20with%20firewall%20rules%20or%20other%20means%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22tojens_7-1585692482855.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F181069i723B4F81FF3F7764%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22tojens_7-1585692482855.png%22%20alt%3D%22tojens_7-1585692482855.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFinally%2C%20the%20tool%20does%20a%20quick%20scan%20of%20your%20entire%20public%20address%20space%20as%20it%20is%20configured%20in%20your%20logical%20network%20lists%20with%20the%20Network%20Controller.%20If%20it%20finds%20an%20open%20address%20there%2C%20it%20cross%20references%20against%20your%20load%20balancer%20rules%20and%20alerts%20you%20if%20this%20address%20is%20not%20registered%20and%20should%20not%20be%20exposed.%20In%20the%20end%2C%20it%20provides%20a%20full%20report%20of%20exposed%20public%20IP%20addresses%20matched%20with%20rules%20and%20ports%20and%20whether%20said%20ports%20appear%20as%20open%20or%20filtered%20during%20the%20Nmap%20scan.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22tojens_8-1585692504516.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F181070i0366EDB4DDA79B9D%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22tojens_8-1585692504516.png%22%20alt%3D%22tojens_8-1585692504516.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20find%20a%20more%20technical%20description%20of%20how%20to%20set%20the%20flags%20and%20run%20this%20tool%20in%20its%20README%2C%20along%20with%20instructions%20on%20installing%20the%20Nmap%20dependency.%20We%20hope%20that%20by%20providing%20this%20we%20will%20give%20our%20users%20an%20edge%20when%20it%20comes%20to%20maintaining%20secure%20SDN%20deployments.%20We%20look%20forward%20to%20creating%20more%20tools%20for%20securing%20SDN%20deployments%20within%20this%20module%2C%20including%20an%20ACL%20scanner%2C%20which%20will%20help%20WS19%20admins%20validate%20isolation%20between%20tenant%20SDN%20networks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1269482%22%20slang%3D%22en-US%22%3E%3CP%3EA%20new%20tool%20for%20analyzing%20vulnerabilities%20in%20SDN%20deployments%3C%2FP%3E%3C%2FLINGO-TEASER%3E
Microsoft

Thanks to William Conlon for authoring today's post!

 

Every software producer has faced this challenge at some point: balancing flexibility with security. The most basic requirement of quality in any piece of software is that it will not expose the user to attackers, but in some cases the features of the software require us to allow the user to make mistakes that might expose vulnerabilities. In the world of operating systems, for example, we must balance letting our users configure their system how they want with protecting them to our best ability. To accomplish this we provide our users with tools to scan their system and alert them when we find something we know to be malicious or where a best practice is not being followed.

 

In the world of Software Defined Networking, even with a completely secure platform there is always the possibility that a customer will misconfigure a rule and expose their system. Our SDN team for Windows Server 2019 recognizes this. While there is no way that we can ensure that an SLB rule will never be misconfigured, we know how complicated SDN deployments can be and want to empower our users with tools to protect themselves. After all, deployments may reach thousands of VIPs, load balancing rules, and inbound and outbound NATs, all of which may be changing dynamically from day to day. With more of the world migrating to cloud, we can expect users to run into complex problems if we do not provide them with effective tools for visualizing the ways that they are exposing their system to the outside world.

 

To this end, we have created a new tool for analyzing your public VIPs. It is a simple PowerShell module called SDNSecurityToolkit, now available on the Microsoft SDN GitHub. After loading the module you will be able to use the Invoke-SDNVipScan cmdlet. To use this cmdlet, you only need to supply the connection URI for your existing SDN deployment and the path to an Nmap executable. The tool returns an object containing all its findings and you may also specify a path for it to output a basic HTML report or to save this information as a JSON object.

 

The tool runs in three stages, by running with the -verbose flag you can see these occurring in real time. The samples below have slightly different coloring for demonstration purposes. First, the tool queries across all existing load balancers for public VIPs and gathers information about what rules are making use of those VIPs:

 

tojens_6-1585692453108.png

 

To provide deeper insight, the tool then scans the exposed ports for these VIPs with Nmap to look at what might be listening on the other side. This is to acknowledge the multiple layers of security that may be in play, for instance a deployment may intentionally leave certain routes open on the load balancer side while securing VMs on the backend with firewall rules or other means:

 

tojens_7-1585692482855.png

 

Finally, the tool does a quick scan of your entire public address space as it is configured in your logical network lists with the Network Controller. If it finds an open address there, it cross references against your load balancer rules and alerts you if this address is not registered and should not be exposed. In the end, it provides a full report of exposed public IP addresses matched with rules and ports and whether said ports appear as open or filtered during the Nmap scan.

 

tojens_8-1585692504516.png

 

You can find a more technical description of how to set the flags and run this tool in its README, along with instructions on installing the Nmap dependency. We hope that by providing this we will give our users an edge when it comes to maintaining secure SDN deployments. We look forward to creating more tools for securing SDN deployments within this module, including an ACL scanner, which will help WS19 admins validate isolation between tenant SDN networks.