Skip to content

Commit

Permalink
Enhancements for Azure Government firewall rules (#110)
Browse files Browse the repository at this point in the history
* Rename KMS rule to indicate it's an IP address rule
* Add and update Az Gov Entra ID rules
  • Loading branch information
SvenAelterman authored Aug 15, 2024
1 parent 9223733 commit 7333bfb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
4 changes: 2 additions & 2 deletions research-hub/azure-firewall-rules/AzurePlatform.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
"rules": [
{
"ruleType": "NetworkRule",
"name": "AzureKMS_DnsName",
"name": "AzureKMS_IP",
"ipProtocols": ["TCP"],
"sourceIpGroups": ["{{ipAddressPool}}"],
"destinationIpGroups": [],
Expand Down Expand Up @@ -280,7 +280,7 @@
"rules": [
{
"ruleType": "NetworkRule",
"name": "AzureKMS_DnsName",
"name": "AzureKMS_IP",
"ipProtocols": ["TCP"],
"sourceIpGroups": ["{{ipAddressPool}}"],
"destinationIpGroups": [],
Expand Down
21 changes: 15 additions & 6 deletions research-hub/azure-firewall-rules/EntraManagedDevices.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@
},
{
"ruleType": "ApplicationRule",
"name": "rbac_pas_windows.net",
"name": "rbac_flow",
"protocols": [
{
"protocolType": "Http",
Expand All @@ -328,6 +328,7 @@
],
"fqdnTags": [],
"webCategories": [],
// https://learn.microsoft.com/entra/identity/devices/howto-vm-sign-in-azure-ad-windows#network-requirements
"targetFqdns": ["pas.windows.net"],
"targetUrls": [],
"terminateTLS": false,
Expand Down Expand Up @@ -519,6 +520,8 @@
"destinationFqdns": [],
"destinationPorts": ["80", "443"]
},
// TODO: This rule should move to the AzurePlatform rules collection
// TODO: This rule shouldn't go through the firewall as it's not a routable IP
{
"ruleType": "NetworkRule",
"name": "Entra_ID_metadata",
Expand Down Expand Up @@ -578,7 +581,7 @@
],
"fqdnTags": [],
"webCategories": [],
"targetFqdns": ["manage.azure.com"],
"targetFqdns": ["manage.usgovcloudapi.net"],
"targetUrls": [],
"terminateTLS": false,
"sourceIpGroups": ["{{ipAddressPool}}"]
Expand All @@ -601,7 +604,8 @@
"targetFqdns": [
"aadcdn.msftauth.net",
"aadcdn.msftauthimages.us",
"*.msauth.net"
"*.msauth.net",
"*.msauthimages.us"
],
"targetUrls": [],
"terminateTLS": false,
Expand All @@ -622,14 +626,19 @@
],
"fqdnTags": [],
"webCategories": [],
"targetFqdns": ["login.microsoftonline.us", "autologon.microsoft.us"],
"targetFqdns": [
"login.microsoftonline.us",
"autologon.microsoft.us",
"login.windows.us"
],
"targetUrls": [],
"terminateTLS": false,
"sourceIpGroups": ["{{ipAddressPool}}"]
},
{
"ruleType": "ApplicationRule",
"name": "rbac_pas_windows.net",
// https://learn.microsoft.com/entra/identity/devices/howto-vm-sign-in-azure-ad-windows#network-requirements
"name": "rbac_flow",
"protocols": [
{
"protocolType": "Http",
Expand All @@ -642,7 +651,7 @@
],
"fqdnTags": [],
"webCategories": [],
"targetFqdns": ["pas.windows.net"],
"targetFqdns": ["pasff.usgovcloudapi.net"],
"targetUrls": [],
"terminateTLS": false,
"sourceIpGroups": ["{{ipAddressPool}}"]
Expand Down

0 comments on commit 7333bfb

Please sign in to comment.