TMAegis
More rules for alibaba

TMA-ALIBABA-2.18

Ensure a log monitoring and alerts are set up for usage of "root" account

HighLevel 1Manual reviewalibaba

Description

Real-time monitoring of API calls can be achieved by directing ActionTrail Logs to Log Service and establishing corresponding query and alarms. It is recommended that a query and alarm be established for console logins that are not protected by root login attempts. Monitoring for root account logins will provide visibility into the use of a fully privileged account and an opportunity to reduce the use of it. Reported as a manual review item: the benchmark audit needs console review or organisational judgement.

How it is checked

Audit method: Manual review

This recommendation cannot be checked automatically. A scan lists it with these instructions when you pass --include-manual.

Perform the following steps to ensure log monitoring and alerts are set for usage of "root" account. 1. Logon to SLS Console. 2. Click Log Service Audit Service in the navigation pane to go to the Log Service Audit Service page. 3. Ensure the Action Trail are Enabled under the Access to Cloud Products > Global Configuration page, and click Central Project. 4. Select Alerts. 5. Ensure below alert rule has been enabled and saved in the target actiontrail_log "event.eventName": ConsoleSignin and "event.userIdentity.type" : root-account

How it is fixed

Fix method: Guidance or infrastructure patch

Perform the following to ensure the log monitoring and alerts are set up for usage of "root" account: 1. Logon to SLS Console. 2. Click Log Service Audit Service in the navigation pane. 3. Go to Access to Cloud Products > Global Configuration page. a. Select a location of project for logs. b. Check the Action Trail and configure a proper days. c. Click Save to save the changes. 4. Go to Access to Cloud Products > Global Configurations click Central Project. 5. Select Log Management > Actiontrail Log. 6. In the search/analytics console, input below query "event.eventName": ConsoleSignin and "event.userIdentity.type" : root-account 7. Create a dashboard and set alert for the query result.

Properties

Operating systems
Any
Tags
alibabalogging
Reference
CIS Alibaba Cloud Foundation Benchmark v2.0.1 - 2.18 Ensure a log monitoring and alerts are set up for usage of "root" account