Back to Checks
Prowlerprowler-provider-chatgpt
ChatGPT GPT custom actions use authentication
gpt_custom_actions_authenticated
Service: gptSeverity: medium
OfficialVerifiedPrivate
Categories:gen-aitrust-boundaries
Resource Type:OpenAIGpt
Each GPT with custom actions is checked for actions whose authentication type is none.
Risk
An action without authentication calls an API that accepts requests from anyone. Whatever it reads or changes through the GPT is equally open to anyone on the internet.
Run this check with Prowler
Run in Prowler CloudRun
prowler chatgpt --checks gpt_custom_actions_authenticatedRecommendation
Configure API key or OAuth authentication on the action, or remove it.
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_authenticated(Check):
def execute(self):
findings = []
for gpt in gpt_client.gpts or []:
# None: the export does not report the GPT's tools.
if gpt["tool_types"] is None or "custom_action" not in gpt["tool_types"]:
continue
open_domains = gpt["unauthenticated_action_domains"]
if open_domains:
text = f"GPT {gpt['name']} has custom actions with no authentication that call {', '.join(open_domains)}."
else:
text = f"GPT {gpt['name']} authenticates every custom action."
findings.append(finding(self.metadata(), gpt, not open_domains, text))
return findings