Framework/Configurations/SVT/Services/VirtualMachine.json

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
{
  "FeatureName": "VirtualMachine",
  "Reference": "aka.ms/azsktcp/virtualmachine",
  "IsMaintenanceMode": false,
   "Controls": [
      {
         "ControlID": "Azure_VirtualMachine_Deploy_Latest_OS_Version",
         "Description": "Virtual Machine should have latest OS version installed",
         "Id": "VirtualMachine110",
         "ControlSeverity": "Medium",
         "Automated": "Yes",
         "MethodName": "CheckOSVersion",
         "Rationale": "Being on the latest OS version significantly reduces risks from security design issues and security bugs that may be present in older versions.",
         "Recommendation": "Run command 'Update-AzureRmVM -ResourceGroupName {resourceGroupName} -VM (Get-AzureRmVM -ResourceGroupName {resourceGroupName} -Name {vmName})' . Run 'Get-Help Update-AzureRmVM -full' for more help.",
         "Tags": [
            "SDL",
            "TCP",
            "Automated",
            "Deploy",
            "Windows",
            "Linux"
         ],
         "Enabled": true
      },
      {
         "ControlID": "Azure_VirtualMachine_Config_OS_Auto_Update",
         "Description": "OS automatic updates must be enabled on Windows Virtual Machine",
         "Id": "VirtualMachine120",
         "ControlSeverity": "High",
         "Automated": "Yes",
         "MethodName": "CheckOSAutoUpdateStatus",
         "Rationale": "VMs where automatic updates are disabled are likely to miss important security patches due to human error. This may lead to compromise from various malware/trojan attacks that exploit known vulnerabilities in operating systems and related software.",
         "Recommendation": "Run command 'Set-AzureRmVMOperatingSystem' with the EnableAutoUpdate flag. Run 'Get-Help Set-AzureRmVMOperatingSystem -full' for more help or Refer: https://docs.microsoft.com/en-us/powershell/module/azurerm.compute/set-azurermvmoperatingsystem",
         "Tags": [
            "SDL",
            "TCP",
            "Automated",
            "Config",
            "Windows"
         ],
         "Enabled": true
      },
      {
         "ControlID": "Azure_VirtualMachine_SI_Enable_Antimalware",
         "Description": "Antimalware must be enabled with real time protection on Windows Virtual Machine",
         "Id": "VirtualMachine130",
         "ControlSeverity": "High",
         "Automated": "Yes",
         "MethodName": "CheckAntimalwareStatus",
         "Rationale": "Enabling antimalware protection minimizes the risks from existing and new attacks from various types of malware. Microsoft Antimalware provide real-time protection, scheduled scanning, malware remediation, signature updates, engine updates, samples reporting, exclusion event collection etc.",
         "Recommendation": "To install antimalware, Go to Azure Portal --> VM Properties --> Extensions --> Add 'Microsoft Antimalware' --> Enable Real-Time Protection and Scheduled Scan --> Click Ok. If antimalware is already present on VM, validate and resolve endpoint protection recommendations in ASC. Refer: https://docs.microsoft.com/en-us/azure/security-center/security-center-install-endpoint-protection, https://docs.microsoft.com/en-us/azure/security/azure-security-antimalware",
         "Tags": [
            "SDL",
            "TCP",
            "Automated",
            "Config",
            "Windows",
            "SOX",
            "SI"
         ],
         "Enabled": true
      },
    {
      "ControlID": "Azure_VirtualMachine_Config_Enable_NSG",
      "Description": "NSG must be configured for Virtual Machine",
      "Id": "VirtualMachine140",
      "ControlSeverity": "Medium",
      "Automated": "Yes",
      "MethodName": "CheckNSGConfig",
      "Rationale": "Restricting inbound and outbound traffic via NSGs limits the network exposure of a VM by reducing the attack surface.",
      "Recommendation": "Refer: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/endpoints-in-resource-manager, https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-create-nsg-arm-ps",
      "Tags": [
        "SDL",
        "TCP",
        "Automated",
        "Config",
        "Windows",
        "Linux"
      ],
      "Enabled": true
    },
      {
         "ControlID": "Azure_VirtualMachine_NetSec_Justify_PublicIPs",
         "Description": "Public IPs on a Virtual Machine should carefully reviewed",
         "Id": "VirtualMachine150",
         "ControlSeverity": "High",
         "Automated": "Yes",
         "MethodName": "CheckPublicIP",
         "Rationale": "Public IPs provide direct access over the internet exposing the VM to attacks over the public network. Hence each public IP on a VM must be reviewed carefully.",
         "Recommendation": "Go to Azure Portal --> VM Settings --> Networking --> Network Interfaces --> <Select NIC> --> IP Configurations --> <Select IP Configs with Public IP> --> Click 'Disabled' --> Save. Refer: https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-public-ip-address ",
         "Tags": [
            "SDL",
            "TCP",
            "Automated",
            "NetSec",
            "Windows",
            "Linux"
         ],
         "Enabled": true,
         "DataObjectProperties": [
            "PublicIpAllocationMethod",
            "IpConfiguration",
            "Id",
            "DnsSettings"
         ]
      },
      {
         "ControlID": "Azure_VirtualMachine_DP_Enable_Disk_Encryption",
         "Description": "Disk encryption must be enabled on both OS and data disks for Windows Virtual Machine",
         "Id": "VirtualMachine160",
         "ControlSeverity": "High",
         "Automated": "Yes",
         "MethodName": "CheckDiskEncryption",
         "Rationale": "Using this feature ensures that sensitive data is stored encrypted at rest. This minimizes the risk of data loss from physical theft and also helps meet regulatory compliance requirements. In the case of VMs, both OS and data disks may contain sensitive information that needs to be protected at rest. Hence disk encryption must be enabled for both.",
         "Recommendation": "Refer: https://docs.microsoft.com/en-us/azure/security-center/security-center-disk-encryption?toc=%2fazure%2fsecurity%2ftoc.json",
         "Tags": [
            "SDL",
            "TCP",
            "Automated",
            "DP",
            "Windows",
            "Linux"
         ],
         "Enabled": true
      },
      {
         "ControlID": "Azure_VirtualMachine_SI_ASC_OS_Vulnerabilities",
         "Description": "Virtual Machine must be in a healthy state in Azure Security Center",
         "Id": "VirtualMachine171",
         "ControlSeverity": "High",
         "Automated": "Yes",
         "MethodName": "CheckASCVMSecurityBaselineStatus",
         "Rationale": "Azure Security Center raises alerts (which are typically indicative of resources that are not compliant with some baseline security protection). It is important that these alerts/actions are resolved promptly in order to eliminate the exposure to attacks.",
         "Recommendation": "Refer: https://docs.microsoft.com/en-us/azure/security-center/security-center-remediate-os-vulnerabilities",
         "Tags": [
            "SDL",
            "TCP",
            "Automated",
            "Audit",
            "Windows",
            "Linux"
         ],
         "Enabled": true
      },
      {
         "ControlID": "Azure_VirtualMachine_SI_Missing_OS_Patches",
         "Description": "Virtual Machine must have all the required OS patches installed.",
         "Id": "VirtualMachine172",
         "ControlSeverity": "High",
         "Automated": "Yes",
         "MethodName": "CheckASCVMMissingPatchingStatus",
         "Rationale": "Un-patched VMs are easy targets for compromise from various malware/trojan attacks that exploit known vulnerabilities in operating systems and related software.",
         "Recommendation": "Refer: https://docs.microsoft.com/en-us/azure/security-center/security-center-apply-system-updates",
         "Tags": [
            "SDL",
            "TCP",
            "Automated",
            "Audit",
            "Windows",
            "SOX",
            "SI",
            "Linux"
         ],
         "Enabled": true
      },
      {
         "ControlID": "Azure_VirtualMachine_SI_ASC_Recommendations",
         "Description": "Virtual Machine must implement all the flagged ASC recommendations.",
         "Id": "VirtualMachine173",
         "ControlSeverity": "High",
         "Automated": "Yes",
         "MethodName": "CheckASCVMRecommendations",
         "Rationale": "Azure Security Center provide various security recommendations for resources that are not compliant with some baseline security protection. It is important that these recommendations are resolved promptly in order to eliminate the exposure to attacks.",
         "Recommendation": "First, examine the detailed AzSK log file for this VM to find out the specific recommendations this control is currently failing for. Review the ASC documentation for those recommendations and implement the suggested fixes. (Note: Not all ASC recommendations are flagged by AzSK. So the first step is critical.). Refer: https://docs.microsoft.com/en-us/azure/security-center/security-center-virtual-machine-recommendations",
         "Tags": [
            "SDL",
            "TCP",
            "Automated",
            "Audit",
            "Windows",
            "Linux"
         ],
         "Enabled": true
      },
      {
         "ControlID": "Azure_VirtualMachine_Audit_Enable_Diagnostics",
         "Description": "Diagnostics (IaaSDiagnostics extension on Windows; LinuxDiagnostic extension on Linux) must be enabled on Virtual Machine",
         "Id": "VirtualMachine180",
         "ControlSeverity": "Medium",
         "Automated": "Yes",
         "MethodName": "CheckVMDiagnostics",
         "Rationale": "Diagnostics logs are needed for creating activity trail while investigating an incident or a compromise.",
         "Recommendation": "Go to Azure Portal --> VM Properties --> Diagnostics settings --> Enable guest-level-monitoring. Refer: https://docs.microsoft.com/en-us/azure/monitoring-and-diagnostics/azure-diagnostics",
         "Tags": [
            "SDL",
            "TCP",
            "Automated",
            "Audit",
            "Windows",
            "Linux"
         ],
         "Enabled": true
      },
      {
         "ControlID": "Azure_VirtualMachine_NetSec_Dont_Open_Management_Ports",
         "Description": "Do not leave management ports open on Virtual Machines",
         "Id": "VirtualMachine190",
         "ControlSeverity": "Critical",
         "Automated": "Yes",
         "MethodName": "CheckOpenPorts",
         "Rationale": "Open remote management ports expose a VM/compute node to a high level of risk from internet-based attacks that attempt to brute force credentials to gain admin access to the machine.",
         "Recommendation": "Go to Azure Portal --> VM Settings --> Networking --> Inbound security rules --> Select security rule which allows management ports (e.g. RDP-3389, WINRM-5985, SSH-22) --> Click 'Deny' under Action --> Click Save.",
         "Tags": [
            "SDL",
            "TCP",
            "Automated",
            "NetSec",
            "Windows",
            "Linux",
          "OwnerAccess"
         ],
         "Enabled": true
      }
   ]
}