Google Gemini (v1.0.4)

Leverage Google's advanced AI models for intelligent analysis, content generation, and conversational capabilities in your workflows.

Author
Cortex XSOAR
Support
xsoar
URL
https://www.paloaltonetworks.com/cortex
Categories
Cloud Services

Integrations (1)

README

Google Gemini Pack

In today’s rapidly evolving threat landscape, security teams need intelligent analysis capabilities to process large volumes of data, generate insights, and accelerate incident response. The Google Gemini pack brings Google’s advanced AI models directly into your XSOAR workflows, enabling natural language processing, content analysis, and intelligent automation for security operations.

What does this pack do?

This pack provides the following capabilities:

This pack contains the GoogleGemini integration that connects to Google’s Generative AI API, allowing you to incorporate powerful language model capabilities into your security automation and investigation processes. The integration supports both Google AI Studio (API key) and Google Cloud Vertex AI (service account) authentication.

Before You Start

Requirements

Option A: Get Your AI Studio API Key

  1. Go to Google AI Studio.
  2. Create a new API key or use an existing one.
  3. Ensure the key has access to the Generative Language API.

Option B: Set up Your Vertex AI Service Account

  1. In the Google Cloud console, go to IAM & Admin > Service Accounts.
  2. Create a service account with the Vertex AI User role (roles/aiplatform.user).
  3. Generate a JSON key and download it.
  4. Ensure the Vertex AI API is enabled in your project.

Configuration

  1. In Cortex XSOAR, navigate to Settings > Integrations.
  2. Search for Google Gemini and add a new instance.
  3. Set the Authentication Type to either AI Studio API Key or Vertex AI Service Account.
  4. Configure the following parameters:

Common Parameters:

AI Studio Parameters:

Vertex AI Parameters:

Integration Usage

Basic

Use the google-gemini-send-message command to send prompts to the AI model:

!google-gemini-send-message prompt="Analyze this suspicious email and identify potential IOCs"

With Conversation History

Maintain context across multiple exchanges:

!google-gemini-send-message prompt="What are the next investigation steps?" history='[{"role":"user","parts":[{"text":"Previous question"}]},{"role":"model","parts":[{"text":"Previous response"}]}]'

With Automatic Conversation Management

Enable conversation history management to automatically maintain context:

!google-gemini-send-message prompt="Analyze this alert" save_conversation=true

When save_conversation is enabled, the integration automatically:

Integration Commands

Troubleshooting

For more information, see the Google AI documentation or contact the pack maintainer.