Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/cloud_security_posture/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
# 1.4.x - 8.9.x
# 1.3.x - 8.8.x
# 1.2.x - 8.7.x
- version: "1.8.0-preview02"
- version: "1.8.0-preview03"
changes:
- description: Add CIS Azure Rules 6.1,.6.2,6.3,6.4
type: enhancement
link: https://github.com/elastic/integrations/pull/8778
- description: Add missing ECS orchestrator fields
type: enhancement
link: https://github.com/elastic/integrations/pull/8720
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"id": "6e339632-0d1c-5a7c-8ca3-fac5813932d9",
"type": "csp-rule-template",
"attributes": {
"metadata": {
"impact": "",
"default_value": "",
"references": "1. https://docs.microsoft.com/en-us/azure/security/fundamentals/network-best-practices#secure-your-critical-azure-service-resources-to-only-your-virtual-networks\n2. https://docs.microsoft.com/en-us/azure/security/fundamentals/ddos-best-practices\n3. https://docs.microsoft.com/en-us/security/benchmark/azure/security-controls-v3-network-security#ns-1-establish-network-segmentation-boundaries:ExpressRoute: https://docs.microsoft.com/en-us/azure/expressroute/:Site-to-site VPN: https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-howto-site-to-site-resource-manager-portal:Point-to-site VPN: https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-howto-point-to-site-resource-manager-portal",
"id": "6e339632-0d1c-5a7c-8ca3-fac5813932d9",
"name": "Ensure that UDP access from the Internet is evaluated and restricted",
"profile_applicability": "* Level 1",
"description": "Network security groups should be periodically evaluated for port misconfigurations.\nWhere certain ports and protocols may be exposed to the Internet, they should be evaluated for necessity and restricted wherever they are not explicitly required.",
"rationale": "The potential security problem with broadly exposing UDP services over the Internet is that attackers can use DDoS amplification techniques to reflect spoofed UDP traffic from Azure Virtual Machines.\nThe most common types of these attacks use exposed DNS, NTP, SSDP, SNMP, CLDAP and other UDP-based services as amplification sources for disrupting services of other machines on the Azure Virtual Network or even attack networked devices outside of Azure.",
"audit": "**From Azure Portal**\n\n1. Open the `Networking` blade for the specific Virtual machine in Azure portal\n2. Verify that the `INBOUND PORT RULES`\u00a0**does not** have a rule for UDP such as\n- protocol = `UDP`,\n- Source = `Any` OR `Internet`\n\n**From Azure CLI**\n\nList Network security groups with corresponding non-default Security rules:\n\n```\naz network nsg list --query [*].[name,securityRules]\n```\nEnsure that none of the NSGs have security rule as below\n```\n\"access\" : \"Allow\"\n\"destinationPortRange\" : \"*\" or \"[port range containing 53, 123, 161, 389, 1900, or other vulnerable UDP-based services]\"\n\"direction\" : \"Inbound\"\n\"protocol\" : \"UDP\"\n\"sourceAddressPrefix\" : \"*\" or \"0.0.0.0\" or \"<nw>/0\" or \"/0\" or \"internet\" or \"any\"\n```",
"remediation": "Where UDP is not explicitly required and narrowly configured for resources attached to the Network Security Group, Internet-level access to your Azure resources should be restricted or eliminated.\n\nFor internal access to relevant resources, configure an encrypted network tunnel such as:\n\n[ExpressRoute](https://docs.microsoft.com/en-us/azure/expressroute/)\n\n[Site-to-site VPN](https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-howto-site-to-site-resource-manager-portal)\n\n[Point-to-site VPN](https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-howto-point-to-site-resource-manager-portal)",
"section": "Networking",
"version": "1.0",
"tags": [
"CIS",
"AZURE",
"CIS 6.3",
"Networking"
],
"benchmark": {
"name": "CIS Microsoft Azure Foundations",
"version": "v2.0.0",
"id": "cis_azure",
"rule_number": "6.3",
"posture_type": "cspm"
},
"rego_rule_id": "cis_6_3"
}
},
"migrationVersion": {
"csp-rule-template": "8.7.0"
},
"coreMigrationVersion": "8.7.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"id": "72bb12e0-31c0-54f4-a409-4aace3b602be",
"type": "csp-rule-template",
"attributes": {
"metadata": {
"impact": "",
"default_value": "",
"references": "1. https://docs.microsoft.com/en-us/azure/security/azure-security-network-security-best-practices#disable-rdpssh-access-to-azure-virtual-machines\n2. https://docs.microsoft.com/en-us/security/benchmark/azure/security-controls-v3-network-security#ns-1-establish-network-segmentation-boundaries:Express Route: https://docs.microsoft.com/en-us/azure/expressroute/:Site-to-Site VPN: https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-howto-site-to-site-resource-manager-portal:Point-to-Site VPN: https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-howto-point-to-site-resource-manager-portal",
"id": "72bb12e0-31c0-54f4-a409-4aace3b602be",
"name": "Ensure that SSH access from the Internet is evaluated and restricted",
"profile_applicability": "* Level 1",
"description": "Network security groups should be periodically evaluated for port misconfigurations.\nWhere certain ports and protocols may be exposed to the Internet, they should be evaluated for necessity and restricted wherever they are not explicitly required.",
"rationale": "The potential security problem with using SSH over the Internet is that attackers can use various brute force techniques to gain access to Azure Virtual Machines.\nOnce the attackers gain access, they can use a virtual machine as a launch point for compromising other machines on the Azure Virtual Network or even attack networked devices outside of Azure.",
"audit": "**From Azure Portal**\n\n1. Open the `Networking` blade for the specific Virtual machine in Azure portal\n2. Verify that the `INBOUND PORT RULES` **does not** have a rule for SSH such as \n - port = `22`, \n - protocol = `TCP`, \n - Source = `Any` OR `Internet`\n\n**From Azure CLI**\n\nList Network security groups with corresponding non-default Security rules: \n\n```\naz network nsg list --query [*].[name,securityRules]\n```\n\nEnsure that none of the NSGs have security rule as below\n\n```\n\"access\" : \"Allow\"\n\"destinationPortRange\" : \"22\" or \"*\" or \"[port range containing 22]\"\n\"direction\" : \"Inbound\"\n\"protocol\" : \"TCP\"\n\"sourceAddressPrefix\" : \"*\" or \"0.0.0.0\" or \"<nw>/0\" or \"/0\" or \"internet\" or \"any\"\n```",
"remediation": "Where SSH is not explicitly required and narrowly configured for resources attached to the Network Security Group, Internet-level access to your Azure resources should be restricted or eliminated.\n\nFor internal access to relevant resources, configure an encrypted network tunnel such as:\n\n[ExpressRoute](https://docs.microsoft.com/en-us/azure/expressroute/)\n\n[Site-to-site VPN](https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-howto-site-to-site-resource-manager-portal)\n\n[Point-to-site VPN](https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-howto-point-to-site-resource-manager-portal)",
"section": "Networking",
"version": "1.0",
"tags": [
"CIS",
"AZURE",
"CIS 6.2",
"Networking"
],
"benchmark": {
"name": "CIS Microsoft Azure Foundations",
"version": "v2.0.0",
"id": "cis_azure",
"rule_number": "6.2",
"posture_type": "cspm"
},
"rego_rule_id": "cis_6_2"
}
},
"migrationVersion": {
"csp-rule-template": "8.7.0"
},
"coreMigrationVersion": "8.7.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"id": "bb264405-de3e-5b91-9654-2056f905fc67",
"type": "csp-rule-template",
"attributes": {
"metadata": {
"impact": "",
"default_value": "",
"references": "1. Express Route: https://docs.microsoft.com/en-us/azure/expressroute/:Site-to-Site VPN: https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-howto-site-to-site-resource-manager-portal:Point-to-Site VPN: https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-howto-point-to-site-resource-manager-portal\n2. https://docs.microsoft.com/en-us/security/benchmark/azure/security-controls-v3-network-security#ns-1-establish-network-segmentation-boundaries",
"id": "bb264405-de3e-5b91-9654-2056f905fc67",
"name": "Ensure that HTTP(S) access from the Internet is evaluated and restricted",
"profile_applicability": "* Level 1",
"description": "Network security groups should be periodically evaluated for port misconfigurations.\nWhere certain ports and protocols may be exposed to the Internet, they should be evaluated for necessity and restricted wherever they are not explicitly required and narrowly configured.",
"rationale": "The potential security problem with using HTTP(S) over the Internet is that attackers can use various brute force techniques to gain access to Azure resources.\nOnce the attackers gain access, they can use the resource as a launch point for compromising other resources within the Azure tenant.",
"audit": "**From Azure Portal**\n\n1. For each VM, open the Networking blade\n2. Verify that the INBOUND PORT RULES does not have a rule for HTTP such as\n - port = `80`,\n - protocol = `TCP`,\n - Source = `Any` OR `Internet`\n\n**From Azure CLI**\n\nList Network security groups with corresponding non-default Security rules:\n```\naz network nsg list --query [*].[name,securityRules]\n```\n\nEnsure that none of the NSGs have security rule as below\n```\n\"access\" : \"Allow\"\n\"destinationPortRange\" : \"80\" or \"*\" or \"[port range containing 80]\"\n\"direction\" : \"Inbound\"\n\"protocol\" : \"TCP\"\n\"sourceAddressPrefix\" : \"*\" or \"0.0.0.0\" or \"<nw>/0\" or \"/0\" or \"internet\" or \"any\"\n```",
"remediation": "Where HTTP(S) is not explicitly required and narrowly configured for resources attached to the Network Security Group, Internet-level access to your Azure resources should be restricted or eliminated.\n\n\nFor internal access to relevant resources, configure an encrypted network tunnel such as:\n\n[ExpressRoute](https://docs.microsoft.com/en-us/azure/expressroute/)\n\n[Site-to-site VPN](https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-howto-site-to-site-resource-manager-portal)\n\n[Point-to-site VPN](https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-howto-point-to-site-resource-manager-portal)",
"section": "Networking",
"version": "1.0",
"tags": [
"CIS",
"AZURE",
"CIS 6.4",
"Networking"
],
"benchmark": {
"name": "CIS Microsoft Azure Foundations",
"version": "v2.0.0",
"id": "cis_azure",
"rule_number": "6.4",
"posture_type": "cspm"
},
"rego_rule_id": "cis_6_4"
}
},
"migrationVersion": {
"csp-rule-template": "8.7.0"
},
"coreMigrationVersion": "8.7.0"
}
2 changes: 1 addition & 1 deletion packages/cloud_security_posture/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: 3.0.0
name: cloud_security_posture
title: "Security Posture Management"
version: "1.8.0-preview02"
version: "1.8.0-preview03"
source:
license: "Elastic-2.0"
description: "Identify & remediate configuration risks in your Cloud infrastructure"
Expand Down