Back to Checks
Prowlerprowler-provider-chatgpt
ChatGPT workspace sets a default monthly usage limit for users
workspace_user_usage_limit_set
Service: workspaceSeverity: low
OfficialVerifiedPrivate
Categories:gen-ai
Resource Type:OpenAIWorkspace
The workspace default monthly usage limit, applied to default and usage-based seats, is checked for a finite cap.
Risk
Without a cap, one user, a leaked session or a runaway agent can consume usage-based credits without limit before anyone notices.
Run this check with Prowler
Run in Prowler CloudRun
prowler chatgpt --checks workspace_user_usage_limit_setRecommendation
Set a default monthly usage limit for users 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.workspace.workspace_client import workspace_client
class workspace_user_usage_limit_set(Check):
def execute(self):
limits = workspace_client.default_usage_limits
if limits is None:
return []
# An entry without a type is a finite cap: the spec defaults it to "limited".
capped = any(limit.get("type", "limited") == "limited" for limit in limits)
if capped:
text = "Workspace sets a default monthly usage limit for its users."
else:
text = "Workspace sets no default monthly usage limit for its users, so a single user's spend is uncapped."
return [finding(self.metadata(), workspace_client.resource, capped, text)]