Initial Access: Log4j Compromise Attempt

This document describes a threat finding type in Security Command Center. Threat findings are generated by threat detectors when they detect a potential threat in your cloud resources. For a full list of available threat findings, see Threat findings index .

Overview

This finding is generated when Java Naming and Directory Interface (JNDI) lookups within headers or URL parameters are detected. These lookups may indicate attempts at Log4Shell exploitation.

How to respond

To respond to this finding, do the following:

Step 1: Review finding details

  1. Open an Initial Access: Log4j Compromise Attempt finding, as directed in Reviewing finding details . The details panel for the finding opens to the Summarytab.

  2. On the Summarytab, review the information in the following sections:

    • What was detected
    • Affected resource
    • Related links, especially the following fields:
      • Cloud Logging URI: link to Logging entries.
      • MITRE ATT&CK method: link to the MITRE ATT&CK documentation.
      • Related findings: links to any related findings.
    • In the detail view of the finding, click the JSONtab.
    • In the JSON, note the following fields.

    • properties

      • loadBalancerName : the name of the load balancer that received the JNDI lookup
      • requestUrl : the request URL of the HTTP request. If present, this contains a JNDI lookup.
      • requestUserAgent : the user agent that sent the HTTP request. If present, this contains a JNDI lookup.
      • refererUrl : the URL of the page that sent the HTTP request. If present, this contains a JNDI lookup.

Step 2: Check logs

  1. In the Google Cloud console, go to Logs Explorerby clicking the link in the Cloud Logging URIfield from step 1 .
  2. On the page that loads, check the httpRequest fields for string tokens like ${jndi:ldap:// that may indicate possible exploitation attempts.

    See CVE-2021-44228: Detecting Log4Shell exploit in the Logging documentation for example strings to search for and for an example query.

Step 3: Research attack and response methods

  1. Review the MITRE ATT&CK framework entry for this finding type: Exploit Public-Facing Application .
  2. Review related findings by clicking the link on the Related findingson the Related findingsrow in the Summarytab of the finding details. Related findings are the same finding type and the same instance and network.
  3. To develop a response plan, combine your investigation results with MITRE research.

Step 4: Implement your response

The following response plan might be appropriate for this finding, but might also impact operations. Carefully evaluate the information you gather in your investigation to determine the best way to resolve findings.

What's next

Create a Mobile Website
View Site in Mobile | Classic
Share by: