Security Control: Enable audit and logging

Published Feb 22 2021 11:55 AM 4,916 Views
Microsoft

As part of our recent Azure Security Center (ASC) Blog Series, we are diving into the different controls within ASC’s Secure Score.  In this post we will be discussing the control of Enable audit and logging.

 

Log collection is a relevant input when analyzing a security incident, business concern or even a suspicious security event. It can be helpful to create baselines and to better understand behaviors, tendencies, and more.

 

The security control enable auditing and logging, contains recommendations that will remind you to enable logging for all Azure services supported by Azure Security Center and resources in other cloud providers, such as AWS and GCP (currently in preview). Upon the remediation of all these recommendations, you will gain a 1% increase in your Secure Score.

 

enableAuditingLogging.PNG

 

 

Recommendations

The number of recommendations will vary according to the available resources in your subscription. This blog post will focus on some recommendations for SQL Server, IoT Hub, Service Bus, Event Hub, Logic App, VM Scale Set, Key Vault, AWS and GCP.

 

 

Auditing on SQL Server should be enabled

Enable auditing is suggested to track database activities. To remediate, ASC has a Quick Fix button that will change the Microsoft.Sql/servers/auditingSettings property state to Enabled. The logic app will request the retention days and the storage account where the audit will be saved. The storage account can be created during that process, the template is in this article. Nonetheless, there is also a manual remediation described in the Remediation Steps.  The recommendation can be Enforced, so that Azure policy's DeployIfNotExist automatically remediates non-compliant resources upon creation. More information about Enforce/Deny can be found here.  To learn more about auditing capabilities in SQL, read this article.

 

SQLremediation.PNG

 

 

 

Diagnostic logs in IoT Hub should be enabled

This enables you to recreate activity trails for investigation purposes when a security incident occurs or your IOT Hub is compromised. The recommendation can be Enforced and it also comes with a Quick Fix where a Logic App modifies the Microsoft.Devices/IotHubs/providers/diagnosticSettings Metrics AllMetrics and the Logs Connections, DeviceTelemetry, C2DCommands, DeviceIdentityOperations, FileUploadOperations, Routes, D2CTwinOperations, C2DTwinOperations, TwinQueries, JobsOperations, DirectMethods, DistributedTracing, Configurations, DeviceStreams to "enabled": true. To learn more about Monitoring Azure IoT Hub visit this article.

 

 

Diagnostic logs in Service Bus should be enabled

This recommendation can be Enforced, and it has a Quick Fix that will remediate the selected resources by modifying Microsoft.ServiceBus/namespaces/providers/diagnosticSettings “All Metrics” and “OperationalLogs” to "enabled": true. It is necessary to put the retention days to deploy the Logic App. To manually remediate it, follow this article.  To learn more about the Service Bus security baseline, read this article.

 

 

Diagnostic logs in Event Hub should be enabled

The Quick Fix has a Logic App that will modify for selected resources the Microsoft.EventHub/namespaces/providers/diagnosticSettings metrics AllMetrics and the logs ArchiveLogs, OperationalLogs, AutoScaleLogs to "enabled": true, with the retention days input. This recommendation can be Enforced. For manual remediation steps, visit this article. To learn more about the Event Hub security baseline, read this article.

 

 

Diagnostic logs in Logic Apps should be enabled

The recommendation can be Enforced and it comes with a Quick Fix where a Logic App modifies the Microsoft.Logic/workflows/providers/diagnosticSettings metrics “AllMetrics” and logs “WorkflowRuntime” to "enabled": true. The retention days field has to be input at the beginning of the remediation. For manual remediation steps, visit this article. To learn more about Logic Apps monitoring in ASC, read this article.

 

 

Diagnostic logs in Virtual Machine Scale Sets should be enabled

This specific recommendation does not come with the Enforce feature nor a Quick Fix. To configure the Azure Virtual Machine Scale Set diagnostics extension follow this document. The command az vmss diagnostics set will enable diagnostics on a VMSS. To learn more about the Azure security baseline for Virtual Machine Scale Sets, read this article.

 

 

Diagnostic logs in Key Vault should be enabled

The recommendation can be Enforced and it also comes with a Quick Fix where the Logic App goes to the resource Microsoft.KeyVault/vaults/providers/diagnosticSettings and sets the metrics AllMetrics and logs AuditEvent to "enabled": true including the retention days input. For manual remediation steps, read this article. To learn more about monitoring and alerting in Azure Key Vault, visit this article.

 

 

Ensure a log metric filter and alarm exist for security group changes – AWS Preview

By directing CloudTrail Logs to CloudWatch Logs real-time monitoring of API calls can be achieved. Metric filter and alarm should be established for changes to Security Groups. Recommendations for AWS resources do not have the Enforce feature, Quick Fix button, Trigger Logic App. To remediate them, follow the AWS Security Hub documentation.

AWSpreview.png

 

 

Ensure that Cloud Audit Logging is configured properly across all services and all users from a project – GCP Preview

Ensure that Cloud Audit Logging is configured to track read and write activities across all supported services and for all users. Configured this way, all administrative activities, or attempts to access user data, will be tracked. Recommendations for GCP resources do not have the Enforce feature, Quick Fix button, Trigger Logic App. To remediate them, follow the Manual Remediation Steps. For more information, visit the GCP documentation.

GCPpreview.png

 

 

 

P.S. Consider joining our Tech Community where you can be one of the first to hear the latest Azure Security Center news, announcements and get your questions answered by Azure Security experts.

 

Reviewer

Yuri Diogenes, Principal Program Manager (@Yuri Diogenes)

3 Comments

Awesome Blogpost @Fernanda  Thank you for Sharing with the Community :cool:

Respected Contributor

It would be great if we could assign recommendations in ASC to people like we can with recommendations in the M365 Security Center.

Respected Contributor

How can one admin see that another admin has already run a Quick Fix and they just need to wait for the system to update?

%3CLINGO-SUB%20id%3D%22lingo-sub-2079740%22%20slang%3D%22en-US%22%3ERe%3A%20Security%20Control%3A%20Enable%20audit%20and%20logging%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2079740%22%20slang%3D%22en-US%22%3E%3CP%3EAwesome%20Blogpost%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F157704%22%20target%3D%22_blank%22%3E%40Fernanda%3C%2FA%3E%26nbsp%3B%20Thank%20you%20for%20Sharing%20with%20the%20Community%26nbsp%3B%3CIMG%20class%3D%22lia-deferred-image%20lia-image-emoji%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fhtml%2Fimages%2Femoticons%2Fcool_40x40.gif%22%20alt%3D%22%3Acool%3A%22%20title%3D%22%3Acool%3A%22%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2190471%22%20slang%3D%22en-US%22%3ERe%3A%20Security%20Control%3A%20Enable%20audit%20and%20logging%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2190471%22%20slang%3D%22en-US%22%3E%3CP%3EIt%20would%20be%20great%20if%20we%20could%20assign%20recommendations%20in%20ASC%20to%20people%20like%20we%20can%20with%20recommendations%20in%20the%20M365%20Security%20Center.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2190478%22%20slang%3D%22en-US%22%3ERe%3A%20Security%20Control%3A%20Enable%20audit%20and%20logging%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2190478%22%20slang%3D%22en-US%22%3E%3CP%3EHow%20can%20one%20admin%20see%20that%20another%20admin%20has%20already%20run%20a%20Quick%20Fix%20and%20they%20just%20need%20to%20wait%20for%20the%20system%20to%20update%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2079589%22%20slang%3D%22en-US%22%3ESecurity%20Control%3A%20Enable%20audit%20and%20logging%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2079589%22%20slang%3D%22en-US%22%3E%3CP%3EAs%20part%20of%20our%20recent%E2%80%AF%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-security-center%2Fsecurity-controls-in-asc-secure-score-series-overview%2Fba-p%2F1358556%22%20target%3D%22_blank%22%3EAzure%20Security%20Center%20(ASC)%20Blog%20Series%3C%2FA%3E%2C%20we%20are%20diving%20into%20the%20different%20controls%20within%20ASC%E2%80%99s%20Secure%20Score.%E2%80%AF%20In%20this%20post%20we%20will%20be%20discussing%20the%20control%20of%3CSTRONG%3E%20Enable%20audit%20and%20logging%3C%2FSTRONG%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELog%20collection%20is%20a%20relevant%20input%20when%20analyzing%20a%20security%20incident%2C%20business%20concern%20or%20even%20a%20suspicious%20security%20event.%20It%20can%20be%20helpful%20to%20create%20baselines%20and%20to%20better%20understand%20behaviors%2C%20tendencies%2C%20and%20more.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20security%20control%20%3CEM%3Eenable%20auditing%20and%20logging%3C%2FEM%3E%2C%20contains%20recommendations%20that%20will%20remind%20you%20to%20enable%20logging%20for%20all%20Azure%20services%20supported%20by%20Azure%20Security%20Center%20and%20resources%20in%20other%20cloud%20providers%2C%20such%20as%20AWS%20and%20GCP%20(currently%20in%20preview).%20Upon%20the%20remediation%20of%20all%20these%20recommendations%2C%20you%20will%20gain%20a%201%25%20increase%20in%20your%20Secure%20Score.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22enableAuditingLogging.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F247797i673727CDB866D8EA%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22enableAuditingLogging.PNG%22%20alt%3D%22enableAuditingLogging.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--550854004%22%20id%3D%22toc-hId--550854004%22%3ERecommendations%3C%2FH2%3E%0A%3CP%3EThe%20number%20of%20recommendations%20will%20vary%20according%20to%20the%20available%20resources%20in%20your%20subscription.%20This%20blog%20post%20will%20focus%20on%20some%20recommendations%20for%20SQL%20Server%2C%20IoT%20Hub%2C%20Service%20Bus%2C%20Event%20Hub%2C%20Logic%20App%2C%20VM%20Scale%20Set%2C%20Key%20Vault%2C%20AWS%20and%20GCP.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-139707470%22%20id%3D%22toc-hId-139707470%22%3EAuditing%20on%20SQL%20Server%20should%20be%20enabled%3C%2FH3%3E%0A%3CP%3EEnable%20auditing%20is%20suggested%20to%20track%20database%20activities.%20To%20remediate%2C%20ASC%20has%20a%20%3CSTRONG%3EQuick%20Fix%3C%2FSTRONG%3E%20button%20that%20will%20change%20the%20%3CEM%3EMicrosoft.Sql%2Fservers%2FauditingSettings%3C%2FEM%3E%20property%20%3CEM%3Estate%3C%2FEM%3E%20to%20%3CEM%3EEnabled%3C%2FEM%3E.%20The%20logic%20app%20will%20request%20the%20retention%20days%20and%20the%20storage%20account%20where%20the%20audit%20will%20be%20saved.%20The%20storage%20account%20can%20be%20created%20during%20that%20process%2C%20the%20template%20is%20in%20%3CA%20href%3D%22https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-policy%2Fmaster%2Fsamples%2FSQL%2Fdeploy-sql-server-auditing%2FcreateStorage.template.json%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ethis%20article%3C%2FA%3E.%20Nonetheless%2C%20there%20is%20also%20a%20manual%20remediation%20described%20in%20the%20%3CEM%3ERemediation%20Steps%3C%2FEM%3E.%26nbsp%3B%20The%20recommendation%20can%20be%20%3CEM%3EEnforced%3C%2FEM%3E%2C%20so%20that%20Azure%20policy's%20%3CEM%3EDeployIfNotExist%3C%2FEM%3E%20automatically%20remediates%20non-compliant%20resources%20upon%20creation.%20More%20information%20about%20Enforce%2FDeny%20can%20be%20found%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsecurity-center%2Fprevent-misconfigurations%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%26nbsp%3B%20To%20learn%20more%20about%20auditing%20capabilities%20in%20SQL%2C%20read%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fauditing-overview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ethis%20article%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22SQLremediation.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F247800iA64DFFE0AC28CBE2%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22SQLremediation.PNG%22%20alt%3D%22SQLremediation.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1667746993%22%20id%3D%22toc-hId--1667746993%22%3EDiagnostic%20logs%20in%20IoT%20Hub%20should%20be%20enabled%3C%2FH3%3E%0A%3CP%3EThis%20enables%20you%20to%20recreate%20activity%20trails%20for%20investigation%20purposes%20when%20a%20security%20incident%20occurs%20or%20your%20IOT%20Hub%20is%20compromised.%20The%20recommendation%20can%20be%20%3CEM%3EEnforced%3C%2FEM%3E%20and%20it%20also%20comes%20with%20a%20%3CSTRONG%3EQuick%20Fix%3C%2FSTRONG%3E%20where%20a%20Logic%20App%20modifies%20the%20%3CEM%3EMicrosoft.Devices%2FIotHubs%2Fproviders%2FdiagnosticSettings%3C%2FEM%3E%20Metrics%20%3CEM%3EAllMetrics%3C%2FEM%3E%20and%20the%20Logs%20%3CEM%3EConnections%3C%2FEM%3E%2C%20%3CEM%3EDeviceTelemetry%3C%2FEM%3E%2C%20%3CEM%3EC2DCommands%3C%2FEM%3E%2C%20%3CEM%3EDeviceIdentityOperations%3C%2FEM%3E%2C%20%3CEM%3EFileUploadOperations%3C%2FEM%3E%2C%20%3CEM%3ERoutes%3C%2FEM%3E%2C%20%3CEM%3ED2CTwinOperations%3C%2FEM%3E%2C%20%3CEM%3EC2DTwinOperations%3C%2FEM%3E%2C%20%3CEM%3ETwinQueries%3C%2FEM%3E%2C%20%3CEM%3EJobsOperations%3C%2FEM%3E%2C%20%3CEM%3EDirectMethods%3C%2FEM%3E%2C%20%3CEM%3EDistributedTracing%3C%2FEM%3E%2C%20%3CEM%3EConfigurations%3C%2FEM%3E%2C%20%3CEM%3EDeviceStreams%3C%2FEM%3E%20to%20%22enabled%22%3A%26nbsp%3Btrue.%20To%20learn%20more%20about%20Monitoring%20Azure%20IoT%20Hub%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fiot-hub%2Fmonitor-iot-hub%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Evisit%20this%20article%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-819765840%22%20id%3D%22toc-hId-819765840%22%3EDiagnostic%20logs%20in%20Service%20Bus%20should%20be%20enabled%3C%2FH3%3E%0A%3CP%3EThis%20recommendation%20can%20be%20%3CEM%3EEnforced%3C%2FEM%3E%2C%20and%20it%20has%20a%20%3CSTRONG%3EQuick%20Fix%3C%2FSTRONG%3E%20that%20will%20remediate%20the%20selected%20resources%20by%20modifying%20%3CEM%3EMicrosoft.ServiceBus%2Fnamespaces%2Fproviders%2FdiagnosticSettings%3C%2FEM%3E%20%E2%80%9CAll%20Metrics%E2%80%9D%20and%20%E2%80%9COperationalLogs%E2%80%9D%20to%20%22enabled%22%3A%20true.%20It%20is%20necessary%20to%20put%20the%20retention%20days%20to%20deploy%20the%20Logic%20App.%20To%20manually%20remediate%20it%2C%20follow%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fservice-bus-messaging%2Fservice-bus-diagnostic-logs%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ethis%20article%3C%2FA%3E.%26nbsp%3B%20To%20learn%20more%20about%20the%20Service%20Bus%20security%20baseline%2C%20read%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fservice-bus-messaging%2Fsecurity-baseline%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ethis%20article%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--987688623%22%20id%3D%22toc-hId--987688623%22%3EDiagnostic%20logs%20in%20Event%20Hub%20should%20be%20enabled%3C%2FH3%3E%0A%3CP%3EThe%20%3CSTRONG%3EQuick%20Fix%3C%2FSTRONG%3E%20has%20a%20Logic%20App%20that%20will%20modify%20for%20selected%20resources%20the%20%3CEM%3EMicrosoft.EventHub%2Fnamespaces%2Fproviders%2FdiagnosticSettings%3C%2FEM%3E%20metrics%20%3CEM%3EAllMetrics%3C%2FEM%3E%20and%20the%20logs%20%3CEM%3EArchiveLogs%3C%2FEM%3E%2C%20%3CEM%3EOperationalLogs%3C%2FEM%3E%2C%20%3CEM%3EAutoScaleLogs%3C%2FEM%3E%20to%20%22enabled%22%3A%20true%2C%20with%20the%20retention%20days%20input.%20This%20recommendation%20can%20be%20%3CEM%3EEnforced%3C%2FEM%3E.%20For%20manual%20remediation%20steps%2C%20visit%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fevent-hubs%2Fevent-hubs-diagnostic-logs%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ethis%20article%3C%2FA%3E.%20To%20learn%20more%20about%20the%20Event%20Hub%20security%20baseline%2C%20read%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fevent-hubs%2Fsecurity-baseline%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ethis%20article%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1499824210%22%20id%3D%22toc-hId-1499824210%22%3EDiagnostic%20logs%20in%20Logic%20Apps%20should%20be%20enabled%3C%2FH3%3E%0A%3CP%3EThe%20recommendation%20can%20be%20%3CEM%3EEnforced%3C%2FEM%3E%20and%20it%20comes%20with%20a%20%3CSTRONG%3EQuick%20Fix%3C%2FSTRONG%3E%20where%20a%20Logic%20App%20modifies%20the%20%3CEM%3EMicrosoft.Logic%2Fworkflows%2Fproviders%2FdiagnosticSettings%20%3C%2FEM%3Emetrics%20%E2%80%9CAllMetrics%E2%80%9D%20and%20logs%20%E2%80%9CWorkflowRuntime%E2%80%9D%20to%20%22enabled%22%3A%26nbsp%3Btrue.%20The%20retention%20days%20field%20has%20to%20be%20input%20at%20the%20beginning%20of%20the%20remediation.%20For%20manual%20remediation%20steps%2C%20visit%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Flogic-apps%2Fmonitor-logic-apps-log-analytics%23set-up-azure-monitor-logs%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ethis%20article%3C%2FA%3E.%20To%20learn%20more%20about%20Logic%20Apps%20monitoring%20in%20ASC%2C%20read%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Flogic-apps%2Fhealthy-unhealthy-resource%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ethis%20article%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--307630253%22%20id%3D%22toc-hId--307630253%22%3EDiagnostic%20logs%20in%20Virtual%20Machine%20Scale%20Sets%20should%20be%20enabled%3C%2FH3%3E%0A%3CP%3EThis%20specific%20recommendation%20does%20not%20come%20with%20the%20%3CEM%3EEnforce%3C%2FEM%3E%20feature%20nor%20a%20%3CSTRONG%3EQuick%20Fix%3C%2FSTRONG%3E.%20To%20configure%20the%20Azure%20Virtual%20Machine%20Scale%20Set%20diagnostics%20extension%20follow%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fcli%2Fazure%2Fvmss%2Fdiagnostics%3Fview%3Dazure-cli-latest%26amp%3BWT.mc_id%3DPortal-Microsoft_Azure_Security%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ethis%20document%3C%2FA%3E.%20The%20command%20az%20vmss%20diagnostics%20set%20will%20enable%20diagnostics%20on%20a%20VMSS.%20To%20learn%20more%20about%20the%20Azure%20security%20baseline%20for%20Virtual%20Machine%20Scale%20Sets%2C%20read%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machine-scale-sets%2Fsecurity-baseline%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ethis%20article%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--2115084716%22%20id%3D%22toc-hId--2115084716%22%3EDiagnostic%20logs%20in%20Key%20Vault%20should%20be%20enabled%3C%2FH3%3E%0A%3CP%3EThe%20recommendation%20can%20be%20%3CEM%3EEnforced%3C%2FEM%3E%20and%20it%20also%20comes%20with%20a%20%3CSTRONG%3EQuick%20Fix%3C%2FSTRONG%3E%20where%20the%20Logic%20App%20goes%20to%20the%20resource%20%3CEM%3EMicrosoft.KeyVault%2Fvaults%2Fproviders%2FdiagnosticSettings%3C%2FEM%3E%20and%20sets%20the%20metrics%20%3CEM%3EAllMetrics%3C%2FEM%3E%20and%20logs%20%3CEM%3EAuditEvent%3C%2FEM%3E%20to%20%22enabled%22%3A%26nbsp%3Btrue%20including%20the%20retention%20days%20input.%20For%20manual%20remediation%20steps%2C%20read%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fkey-vault%2Fgeneral%2Fhowto-logging%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ethis%20article%3C%2FA%3E.%20To%20learn%20more%20about%20monitoring%20and%20alerting%20in%20Azure%20Key%20Vault%2C%20visit%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fkey-vault%2Fgeneral%2Falert%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ethis%20article%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-372428117%22%20id%3D%22toc-hId-372428117%22%3EEnsure%20a%20log%20metric%20filter%20and%20alarm%20exist%20for%20security%20group%20changes%20%E2%80%93%20%3CSTRONG%3EAWS%20Preview%3C%2FSTRONG%3E%3C%2FH3%3E%0A%3CP%3EBy%20directing%20CloudTrail%20Logs%20to%20CloudWatch%20Logs%20real-time%20monitoring%20of%20API%20calls%20can%20be%20achieved.%20Metric%20filter%20and%20alarm%20should%20be%20established%20for%20changes%20to%20Security%20Groups.%20Recommendations%20for%20AWS%20resources%20do%20not%20have%20the%20%3CEM%3EEnforce%3C%2FEM%3E%20feature%2C%20%3CSTRONG%3EQuick%20Fix%3C%2FSTRONG%3E%20button%2C%20Trigger%20Logic%20App.%20To%20remediate%20them%2C%20follow%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.aws.amazon.com%2Fsecurityhub%2Flatest%2Fuserguide%2Fwhat-is-securityhub.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EAWS%20Security%20Hub%20documentation%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22AWSpreview.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F247798iFDBC2977FC091D85%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22AWSpreview.png%22%20alt%3D%22AWSpreview.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1435026346%22%20id%3D%22toc-hId--1435026346%22%3EEnsure%20that%20Cloud%20Audit%20Logging%20is%20configured%20properly%20across%20all%20services%20and%20all%20users%20from%20a%20project%20%E2%80%93%20%3CSTRONG%3EGCP%20Preview%3C%2FSTRONG%3E%3C%2FH3%3E%0A%3CP%3EEnsure%20that%20Cloud%20Audit%20Logging%20is%20configured%20to%20track%20read%20and%20write%20activities%20across%20all%20supported%20services%20and%20for%20all%20users.%20Configured%20this%20way%2C%20all%20administrative%20activities%2C%20or%20attempts%20to%20access%20user%20data%2C%20will%20be%20tracked.%20Recommendations%20for%20GCP%20resources%20do%20not%20have%20the%20%3CEM%3EEnforce%3C%2FEM%3E%20feature%2C%20%3CSTRONG%3EQuick%20Fix%3C%2FSTRONG%3E%20button%2C%20Trigger%20Logic%20App.%20To%20remediate%20them%2C%20follow%20the%20Manual%20Remediation%20Steps.%20For%20more%20information%2C%20visit%20the%20%3CA%20href%3D%22https%3A%2F%2Fcloud.google.com%2Flogging%2Fdocs%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EGCP%20documentation%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22GCPpreview.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F247799iD41D6613F1B5DE72%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22GCPpreview.png%22%20alt%3D%22GCPpreview.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3C%2FP%3E%3CDIV%20class%3D%22video-embed-center%20video-embed%22%3E%3CIFRAME%20class%3D%22embedly-embed%22%20src%3D%22https%3A%2F%2Fcdn.embedly.com%2Fwidgets%2Fmedia.html%3Fsrc%3Dhttps%253A%252F%252Fwww.youtube.com%252Fembed%252Fmm2Htzy5StY%253Ffeature%253Doembed%26amp%3Bdisplay_name%3DYouTube%26amp%3Burl%3Dhttps%253A%252F%252Fwww.youtube.com%252Fwatch%253Fv%253Dmm2Htzy5StY%26amp%3Bimage%3Dhttps%253A%252F%252Fi.ytimg.com%252Fvi%252Fmm2Htzy5StY%252Fhqdefault.jpg%26amp%3Bkey%3Db0d40caa4f094c68be7c29880b16f56e%26amp%3Btype%3Dtext%252Fhtml%26amp%3Bschema%3Dyoutube%22%20width%3D%22600%22%20height%3D%22337%22%20scrolling%3D%22no%22%20title%3D%22YouTube%20embed%22%20frameborder%3D%220%22%20allow%3D%22autoplay%3B%20fullscreen%22%20allowfullscreen%3D%22true%22%3E%3C%2FIFRAME%3E%3C%2FDIV%3E%3CP%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%223%22%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%3CSTRONG%3EP.S.%3C%2FSTRONG%3E%20Consider%20joining%20our%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FASCTechCommunity%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%20background%3A%20white%3B%22%3ETech%20Community%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%20where%20you%20can%20be%20one%20of%20the%20first%20to%20hear%20the%20latest%20Azure%20Security%20Center%20news%2C%20announcements%20and%20get%20your%20questions%20answered%20by%20Azure%20Security%20experts.%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EReviewer%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EYuri%20Diogenes%2C%20Principal%20Program%20Manager%20(%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F124214%22%20target%3D%22_blank%22%3E%40Yuri%20Diogenes%3C%2FA%3E%3CSPAN%3E)%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Co-Authors
Version history
Last update:
‎Mar 07 2021 07:21 AM
Updated by: