Google Threat Intelligence - API Migration guide for Mandiant Advantage former users

This guide serves as a follow-up to the Google Threat Intelligence Migration Guide for former Mandiant users. It's designed to help users transition from the Mandiant Advantage API to the Google Threat Intelligence (Google TI) API. Please consider this an additional resource alongside the official API documentation.

Building on that foundation, developers can leverage the comprehensive suite of Google TI API v3 endpoints for building custom integrations. These powerful endpoints provide access to an extensive range of tools, features, and functionalities that mirror those available in the web interface, all accessible under a single, globally used server URL: www.virustotal.com/api/v3/.

In the following sections, we'll cover key aspects of migrating to Google Threat Intelligence. We'll specifically address:

  • API authentication methods
  • API URL and paths mapping to the Google TI API:
    • Mandiant's Digital Threat Management (DTM)
    • Mandiant's Attack Surface Management (ASM)
    • Mandiant's Threat Intelligence API

Finally we'll take a deep dive into the Threat Intelligence module itself. This section will highlight several key differences and new concepts, and introduce Google TI tools the reader might not be familiar with yet. The guide closes with how the Agentic platform can help you migrate existing Mandiant Advantage API scripts automatically.

🚧

Skipping introductory content

If you'd like to skip the introductory content, you can jump straight to the Threat Intelligence API Endpoints Mapping section here!

API Authentication

Unlike Mandiant, which typically offers both Bearer Token Authentication and Basic Authentication, Google TI primarily uses API keys for authentication. Any endpoints that support additional authentication methods will explicitly indicate it in their specific documentation.

Each Google TI user has its own unique API key, but service accounts were specifically designed for automation tasks. They are not tied to individual users, do not require an email address for creation, and provide API authentication solely via API keys accessible only to group administrators, and only administrators can create them.

API Key

Users can access their individual API key on the platform by navigating to the API key option in either the left navigation menu bar or the top-right User menu:

Left menu bar -> API key option
User menu -> API key option

Administrators can access service accounts' API keys on the platform by navigating to the top-right User menu, selecting My Group option, and then heading to the Members tab. Within the Service accounts section, they'll find dedicated buttons to view and copy each service account's API key.

User menu -> My Group option -> Members tab -> Service accounts section

User menu -> My Group option -> Members tab -> Service accounts section

API URL & Paths segments mapping

When migrating to Google TI, in addition to the authentication method, the other most critical change is the update to API server URLs and their corresponding paths. While much of the core functionality from Mandiant's modules remains, specifically for ASM and DTM, the access points have been consolidated and streamlined under the Google TI umbrella.

The table below provides a clear mapping of the base URLs and initial path segments from Mandiant's core modules (ASM, DTM, and the Threat Intelligence module) to their equivalents within the new Google TI API.

ServiceMandiant Advantage Base URL + pathGoogle TI Base URL + path
(*) Threat Intelligenceapi.intelligence.mandiant.com/v4/www.virustotal.com/api/v3/
DTMapi.intelligence.mandiant.com/v4/dtm/www.virustotal.com/api/v3/dtm/
ASMasm-api.advantage.mandiant.com/api/v1/www.virustotal.com/api/v3/asm/

(*) The next section of this document details the equivalent Threat Intelligence endpoints and highlights other differences and concepts to take into account when migrating.

Digital Threat Monitoring (DTM) & Attack Surface Management (ASM)

When transitioning from Mandiant to Google TI, the core functionality and structure of the Digital Threat Management (DTM) and Attack Surface Management (ASM) APIs largely remain the same. The primary difference lies in their server URLs and the initial segments of their paths as shown in the previous table. Please refer to the Google TI documentation for:

Threat Intelligence API

Before we dive into the Threat Intelligence endpoints, it's helpful to first understand some key Google TI concepts and differences between Mandiant Threat Intelligence API and Google TI API specifically.

Google TI API objects

It's important to note that while Google TI provides all information found in Mandiant API objects (and more), the JSON response objects have different structures. The following list shows the most popular objects and links to their respective documentation, where their JSON structure is defined:

  • Indicators of Compromise

  • Threat Intelligence objects: note that these objects include the origin attribute which identifies the source of the data for their attributes. Google Threat Intelligence origin refers to objects whose information was checked and validated by the Mandiant analysts, Partner origin refers to the objects coming from our trusted external partners and Crowdsourced origin refers to objects created by the rest of the community.

While these are some of the frequently encountered objects, Google TI offers a more extensive range of object types. For a comprehensive definition of all available objects and their structures, please refer to the API Objects documentation.

Google TI Relationships endpoints

Most objects in the documentation include a Relationships section. Values in this section can be used, along with the specific object id, to retrieve additional related or associated objects as documented here:

  • /api/v3/{collection name}/{object id}?relationships={relationship} - returns one relationship objects' descriptors, which include only the most relevant attributes of the related objects such as their type, id and links to retrieve the complete objects.
  • /api/v3/{collection name}/{object id}?relationships={relationship1},{relationship2} - returns several relationships objects' descriptors , which include only the most relevant attributes of the related objects such as their type, id and links to retrieve the complete objects.
  • /api/v3/{collection name}/{object id}/{relationship} - returns one relationship complete objects, not only their descriptors.

{collection name} can be one of the following: files, urls, domains, ip_addresses, domains, ip_addresses or collections for all Threat Intelligence objects such as Threat Actors, Campaigns, Reports, Vulnerabilities, etc.

Additional observations

  • Pagination: Mandiant does pagination through the next field of the JSON response, while Google TI does it via links -> next field.
Mandiant Advantage Threat IntelligenceGoogle TI
  {
   "next": "next URL value"
  }
{
"links": { 
  "self": "current URL",
  "next": "next URL value"
  }
}
  • Indicators of Compromise: here are the differences in how indicator types are named in their respective JSON responses
Mandiant Advantage Threat IntelligenceGoogle TI
"type": "ipv4""type": "ip_address"
"type": "md5""type": "file"
"type": "fqdn""type": "domain"
"type": "url""type": "url"
  • Set of objects: while Mandiant's API separates different object types into distinct JSON response fields (threat-actors, campaigns, malware, vulnerability, objects for reports, and indicators), Google TI is consistent and simplifies this by grouping all objects under a single data field. The specific object type is then identified by the type attribute for indicators or the collection_type attribute for other Threat Intelligence objects.
Mandiant Advantage Threat IntelligenceGoogle TI
  {
   "threat-actors": [...]
  }
  {
     …
    "data": [
      {
        "type": "collection",
        "collection_type":"threat_actor"
      }
    ]
  }
  • HTTP POST method: In Google TI the POST method is reserved to send data to the platform, such as creating new IoC Collections, building Threat Graphs, adding community comments to objects cards and more. All requests for retrieving information from our databases require the GET method.
  • Object identifiers: in Google TI, Threat Intelligence objects (including Actors, Malware, Tools, Campaigns, IoC Collections, Vulnerabilities, and Reports) and IoCs are consistently identified in API JSON responses by the id attribute. Same id values are displayed on the browser URL when opening any object card or IoC report.
IoCID value
File(*) Sha256 hash
URLCheck here URL id representation
DomainDomain name
IP addressIP address

(*) While SHA256 is the primary identifier for files, MD5 and SHA1 hashes can also be used for unique identification. Please note that files integrated from Mandiant without provided binary content can only be searched using their MD5 hash, not SHA256.

  • Google TI score: endpoints that can provide the Google TI assessment of an object require the x-tool header to do so. This header must specify the tool or service that will be consuming our data. Without this header, the Google TI score will not be returned.
headers = {
   "accept": "application/json",
   "x-apikey": "your API key",
   "X-tool":"SIEM custom integration"
}

Migrating scripts with the Agentic platform

The Agentic platform can help you translate existing Mandiant Advantage Threat Intelligence (MATI) API v4 integrations into Google TI API v3 code. It applies the mappings and differences described in this guide, so you can use it to speed up the migration of your own scripts and then review the result.

🚧

Special privileges required

The Agentic platform is only available to users with the Google Threat Intelligence (Google TI) Enterprise or Enterprise Plus licenses.

What you can migrate

You can ask the Agentic platform to:

  • Translate a legacy MATI v4 script (for example, a python-requests polling loop or a set of cURL commands) into an equivalent Google TI API v3 script.
  • Map individual MATI v4 endpoints, query parameters, or response fields to their Google TI API v3 equivalents.
  • Explain data differences between both APIs, such as date formats, empty results, or object identifiers.

Migration requests are supported for the following areas of the MATI v4 API:

AreaMandiant Advantage API v4 pathGoogle TI API v3 equivalent
Indicators/v4/indicator/api/v3/files/{id}, /api/v3/domains/{domain}, /api/v3/ip_addresses/{ip}, /api/v3/urls/{id}, /api/v3/threat_lists
Malware/v4/malware/api/v3/collections with collection_type:malware-family
Threat Actors/v4/actor/api/v3/collections with collection_type:threat-actor
Campaigns/v4/campaign/api/v3/collections with collection_type:campaign
Reports/v4/report/api/v3/collections with collection_type:report
Vulnerabilities/v4/vulnerability/api/v3/collections with collection_type:vulnerability
YARA rules and search/v4/yara, /v4/search/api/v3/intelligence/hunting_rulesets, /api/v3/intelligence/search

Steps

Step 1: Start a conversation with your legacy integration

  1. Open the Agentic platform and start a new conversation (see Starting conversations).
  2. Describe what you want to migrate and paste the MATI v4 endpoint, cURL command, or script. For example:
    • "Migrate this Mandiant Advantage API v4 script to the Google TI API v3:", followed by your script.
    • "What is the Google TI API v3 equivalent of the MATI v4 endpoint /v4/actor/{id}/reports?"
  3. Optionally, state the output you want, such as a Python script, cURL commands, or an endpoint and field mapping table.
Agentic conversation box with a request to migrate a Mandiant Advantage API v4 script to the Google TI API v3

The Agentic platform recognizes migration requests and applies its MATI v4 to Google TI API v3 migration knowledge automatically. You do not need to select or enable anything.

⚠️

Do not share credentials

Remove API keys, OAuth client secrets, and bearer tokens from your scripts before you paste them into a conversation. In the migrated code, read your Google TI API key from an environment variable instead of writing it in the script.

Step 2: Review and test the migrated code

The response includes the migrated code together with notes about the changes it applied, such as the new pagination and the field mapping:

Agentic response with the migration notes and the migrated Python script for the Google TI API v3

Before you use the code in production:

  1. Set your Google TI API key (see API Key) and run the code against a small set of known objects.
  2. Compare the output with the output of your legacy integration.
  3. Use follow-up prompts in the same conversation to refine the result, for example to add error handling or to keep only the fields your integration consumes.

What the migrated code changes

The migrated code applies the main differences between both APIs that are described in this guide:

  • Authentication: OAuth2 bearer tokens are replaced with the x-apikey header, and the x-tool header is added so that responses include the Google TI score.
  • Pagination: MATI v4 offset and next pagination is replaced with cursor-based pagination through the links -> next field (see Pagination).
  • Unified objects: Malware, Threat Actors, Campaigns, Reports, and Vulnerabilities are retrieved as collections filtered by collection_type.
  • Related objects: lists of related objects that MATI v4 returned inline are retrieved through relationships endpoints, only for the data your integration actually uses.
  • Indicator polling: polling loops on /v4/indicator with start_epoch are replaced with the Threat Lists endpoints, which return categorized Indicators of Compromise (IoCs) in hourly batches.
🚧

Object identifiers do not match

Threat Actors, Malware, and Campaigns use STIX-style identifiers on both platforms (for example, threat-actor--<uuid>), but the identifier values are different in MATI v4 and Google TI. If your integration stores MATI v4 identifiers, look up each object by name in Google TI first and use the Google TI id from then on. When your script uses MATI v4 identifiers, the Agentic platform warns you about this and adds a name lookup step to the migrated code.


Did this page help you?