Back to Checks
Prowlerprowler-provider-chatgpt
Workspace GPTs do not have web browsing enabled
gpt_web_browsing_disabled
Service: gptSeverity: medium
OfficialVerifiedPrivate
Categories:gen-aitrust-boundaries
Resource Type:OpenAIGpt
Each live ChatGPT workspace GPT is checked for the web browsing tool.
Risk
Browsing lets a GPT fetch untrusted web content into the conversation, the main path for indirect prompt injection and for data leaking through crafted URLs.
Run this check with Prowler
Run in Prowler CloudRun
prowler chatgpt --checks gpt_web_browsing_disabledRecommendation
Disable web browsing on GPTs that do not need 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_web_browsing_disabled(Check):
def execute(self):
findings = []
for gpt in gpt_client.gpts or []:
if gpt["tool_types"] is None:
continue
browsing = "browser" in gpt["tool_types"]
if browsing:
text = f"GPT {gpt['name']} has web browsing enabled."
else:
text = f"GPT {gpt['name']} has web browsing disabled."
findings.append(finding(self.metadata(), gpt, not browsing, text))
return findings