| reviewed | 2025-01-17 |
|---|---|
| severity | Critical |
| pillar | Security |
| category | SE:06 Network controls |
| resource | Logic App |
| resourceType | Microsoft.Logic/workflows |
| online version | https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.LogicApp.LimitHTTPTrigger/ |
Logic Apps using HTTP triggers without restrictions can be accessed from any network location including the Internet.
Logic Apps are workflows that integrate services and systems across cloud services and on-premises systems. Logic Apps can be triggered by a variety of events including HTTP requests.
When HTTP request trigger is configured, by default the Logic App in a consumption plan may receive requests from any source IP address. This can expose the Logic App to unauthorized access or exfiltration attempts.
Logic Apps can be secured by restricting access to trusted IP addresses.
Consider restricting HTTP triggers to trusted IP addresses to harden against unauthorized access or exfiltration attempts.
To deploy Logic Apps that pass this rule:
- Set the
allowedCallerIpAddressesproperty to a list of IP address ranges.
For example:
{
"type": "Microsoft.Logic/workflows",
"apiVersion": "2019-05-01",
"name": "[parameters('name')]",
"location": "[parameters('location')]",
"properties": {
"definition": "<workflow-definition>",
"parameters": {},
"accessControl": {
"contents": {
"allowedCallerIpAddresses": [
{
"addressRange": "192.168.12.0/23"
},
{
"addressRange": "2001:0db8::/64"
}
]
}
}
}
}To deploy Logic Apps that pass this rule:
- Set the
allowedCallerIpAddressesproperty to a list of IP address ranges.
For example:
resource app 'Microsoft.Logic/workflows@2019-05-01' = {
name: name
location: location
properties: {
definition: '<workflow-definition>'
parameters: {}
accessControl: {
contents: {
allowedCallerIpAddresses: [
{
addressRange: '192.168.12.0/23'
}
{
addressRange: '2001:0db8::/64'
}
]
}
}
}
}This rule currently only applies to Logic Apps using consumption plans.