Back to Checks
chatgpt

Workspace GPTs do not use custom actions

gpt_custom_actions_disabled
Service: gptSeverity: high
OfficialVerifiedPrivate
Categories:gen-aitrust-boundaries
Resource Type:OpenAIGpt

Each live ChatGPT workspace GPT is checked for custom actions, the tool that lets a GPT call an external API with data from the conversation.

Prowler logoProwlerprowler-provider-chatgpt

Risk

A custom action sends conversation content to a third-party endpoint chosen by the GPT builder, outside the workspace's data controls.

Run this check with Prowler

Run in Prowler Cloud
Run
prowler chatgpt --checks gpt_custom_actions_disabled

Recommendation

Remove the custom action from the GPT, or restrict who can build GPTs with actions in the workspace settings.

Check Code

from prowler.lib.check.models import Check

from prowler_provider_chatgpt.check_report import finding
from prowler_provider_chatgpt.services.gpt.gpt_client import gpt_client


class gpt_custom_actions_disabled(Check):
    def execute(self):
        findings = []
        for gpt in gpt_client.gpts or []:
            if gpt["tool_types"] is None:
                continue
            if "custom_action" in gpt["tool_types"]:
                domains = ", ".join(gpt["action_domains"]) or "an external API"
                text = f"GPT {gpt['name']} has custom actions that call {domains}."
                findings.append(finding(self.metadata(), gpt, False, text))
            else:
                text = f"GPT {gpt['name']} has no custom actions."
                findings.append(finding(self.metadata(), gpt, True, text))
        return findings