# Google Threat Intelligence IP info

Client SDK
Backend API
Mobile approve
SSO
Sub-journey
> Query the reputation of an IP address


## Description

This step looks up an IP address in Google Threat Intelligence and returns its reputation record, including how many security engines flag it as malicious. It's a **system execution** step — it runs entirely in the backend with no client-facing UI. Before using this step, configure a [Google Threat Intelligence connection](/guides/orchestration/external-connections/third-party-integrations/google_threat_intelligence) in Integration Hub.

The step returns the vendor's stored verdict for the IP. It doesn't trigger a new scan.

## Configuration

| Field | Required | Description |
|  --- | --- | --- |
| **Google Threat Intelligence Instance** | Yes | The connection to use, as configured in Integration Hub. |
| **IP address** | Yes | Expression that yields the IP address to query, e.g. the user's IP from the request context. |
| **x-tool header (optional)** | No | Value for the `x-tool` request header. Overrides the connection's default. Setting it enables `google_threat_intelligence_assessment` in the response where your license includes it. |
| **Output variable** | — | Name of the variable that stores the result. Defaults to `vt_ip`. |
| **Error output variable** | — | Name of the variable that stores the error if the step fails. |


Journey event data
This step can be configured to record step input and output data, or a custom payload, which is then surfaced in journey events in Journey Analytics for diagnostic purposes. For details, see [Additional data reporting](/guides/orchestration/getting-started/event_reporting).

## Output

The output variable holds Google Threat Intelligence's IP address record under `data`. There's no extra wrapper, so the path to a field starts at the variable name, for example `vt_ip.data.attributes.last_analysis_stats.malicious`.

| Field | Description |
|  --- | --- |
| `data.attributes.last_analysis_stats.malicious` | Number of engines that flag the IP as malicious. |
| `data.attributes.last_analysis_stats.suspicious` | Number of engines that flag the IP as suspicious. |
| `data.attributes.last_analysis_stats.harmless` | Number of engines that consider the IP harmless. |
| `data.attributes.reputation` | Community reputation score. |
| `data.attributes.country`, `data.attributes.as_owner` | Geolocation and network owner. |


The full set of fields is in the [Google Threat Intelligence IP address reference](https://gtidocs.virustotal.com/reference/ip-info). The exact fields returned depend on your license.

## Branches

| Branch | When it occurs |
|  --- | --- |
| **Success** | Google Threat Intelligence returns a record for the IP. |
| **Failed** | The request fails: the IP is unknown to Google Threat Intelligence, the API key is rejected, the quota is exceeded, the connection's rate limit is hit (`google_threat_intelligence_rate_limit_exceeded`), or the service is unreachable. The error is stored in the error output variable. |


## Example

Suppose a journey stores the user's IP address in a variable named `clientIp`. This step is configured mapping **IP address** `= clientIp`, storing the result in an output variable named `vt_ip`. A following [Condition](/guides/orchestration/journeys/condition) step checks `vt_ip.data.attributes.last_analysis_stats.malicious >= 5` and routes true to a [Reject](/guides/orchestration/journeys/reject_access) step.

Choose a threshold, not just greater than zero
A single engine flagging an indicator is often a false positive, even for well-known, legitimate IPs and domains. Use a threshold such as `>= 5` malicious engines rather than `> 0`.