Question 1
During network reconnaissance of an Azure VM, you inspect its Network Security Group. Which inbound rule creates the highest risk?
- AOption A:
Allow TCP 443 from Internet
- BOption B:
Allow TCP 22 from Internet
- COption C:
Deny all inbound from Internet
- DOption D:
Allow TCP 1433 from private subnet only
Show answer and explanation
Correct answer: B
Detailed Solution:
List NSG rules:
az network nsg rule list \
--resource-group rg-prod-apps-eastus \
--nsg-name nsg-prod-linux01 \
--output table
Expected risky rule:
Name Priority Direction Access Protocol Source DestinationPortRange
------------ -------- --------- ------ -------- ------------ --------------------
Allow-SSH 100 Inbound Allow Tcp Internet 22
SSH exposed directly to the Internet is risky because it increases brute-force, credential-stuffing, and remote exploitation exposure. In a hardened Azure environment, SSH should typically be restricted through VPN, Bastion, JIT access, or trusted administrative IP ranges.
Correct answer:
B. Allow TCP 22 from Internet
================