Lockdown Lab #19 CRITICAL Microsoft Azure

Configure Network Security Groups (NSGs)

Configure Network Security Groups (NSGs)

I’ve walked into far too many Azure environments where the perimeter is a sieve. The most common culprit? Missing or misconfigured Network Security Groups. This isn’t advanced rocket science, folks; it’s foundational.

Every single subnet and NIC you have in Azure needs an NSG attached. Period. It’s your first line of defense, your basic traffic cop. And the default rule? Deny everything inbound from the internet. If you’re not doing this, you’re essentially leaving your front door wide open.

This isn’t just about “best practice.” This is about preventing basic attacks that exploit open ports. SQL injection, RDP brute-force, web server exploits – if an NSG isn’t there, or it’s too permissive, you’re a sitting duck.

The fix is straightforward: In Azure Portal, navigate to your Subnet or Network Interface, then select “Network security group” and associate one. Ensure its inbound rules explicitly deny traffic from “Internet” (0.0.0.0/0) unless absolutely necessary and finely tuned.

Stop leaving your assets exposed. Go check your NSG coverage today.

The fix

# List NSGs and rules\naz network nsg list --query \"[].{Name:name, RG:resourceGroup}\" --output table\n# Check for open rules\naz network nsg rule list --nsg-name <nsg_name> --resource-group\

Reference: CIS Azure Foundations Benchmark 6.1

Mark this as done

Open the interactive hardening checklist and tick this off in your environment.

Open interactive checklist →

Related Posts

Enable Privileged Identity Management (PIM)

Let’s talk about a common mistake: permanent admin access. It’s a ticking time bomb. Every breach I’ve analyzed involved an attacker eventually getting their hands...

lockdown-labhardeningazureidentity
/Shimi Cohen

Disable legacy authentication protocols

If you're still allowing legacy authentication protocols like IMAP or POP3, you're handing attackers a bypass around your MFA. It’s like putting up a reinforced...

lockdown-labhardeningazureidentity
/Shimi Cohen

Enable MFA for all users

If a single stolen password can unlock your entire Azure estate, you're not just at risk, you're practically inviting disaster. This isn't theoretical; this is...

lockdown-labhardeningazureidentity
/Shimi Cohen