Back to Checks
googleworkspace

Suspicious programmatic login alert rule is configured

rules_suspicious_programmatic_login_alert_configured
Service: rulesSeverity: low
OfficialBuilt-inVerified
Categories:loggingidentity-access
Resource Type:NotDefined

The Suspicious programmatic login system-defined alert rule should be enabled with alerts sent to the alert center, email notifications turned on, recipients set to all super administrators, and severity set to Low or higher. This ensures administrators are notified when Google detects suspicious login attempts from applications or programs.

Prowler logoProwlerprowler-provider-googleworkspace

Risk

Without this alert enabled, administrators will not be notified of suspicious programmatic login attempts. This could indicate automated credential stuffing or unauthorized API access using compromised credentials.

Run this check with Prowler

Run in Prowler Cloud
Run
prowler googleworkspace --checks rules_suspicious_programmatic_login_alert_configured

Recommendation

Configure the Suspicious programmatic login alert rule with alert center ON, email notifications ON, and recipients set to all super administrators.

Remediation

Other

1Sign in to the Google **Admin console** at https://admin.google.com
2Select **Rules**
3Under **Google protects you by default** select **View list**
4Scroll to **Suspicious programmatic login** and select it
5Within the Actions pane, click the edit pencil
6Select **Send to alert center** to set the alert to ON
7Set the alert severity to **Low**
8Select **Send email notifications**
9Ensure **All super administrators** is selected as recipients
10Click **Review** to confirm the values
11Click **Update Rule**

Check Code

from typing import List

from prowler.lib.check.models import Check, CheckReportGoogleWorkspace
from prowler.providers.googleworkspace.services.rules.lib.alerts import (
    evaluate_system_defined_alert,
)
from prowler.providers.googleworkspace.services.rules.rules_client import (
    rules_client,
)

RULE_NAME = "Suspicious programmatic login"
MINIMUM_SEVERITY = "LOW"


class rules_suspicious_programmatic_login_alert_configured(Check):
    """Check that the Suspicious programmatic login system-defined alert rule is fully configured.

    CIS 6.5 requires the rule to be on, to notify by email, to include all
    super administrators as recipients and to be set to LOW severity or higher.
    """

    def execute(self) -> List[CheckReportGoogleWorkspace]:
        return evaluate_system_defined_alert(
            rules_client, self.metadata(), RULE_NAME, MINIMUM_SEVERITY
        )