Back to Checks
ChatGPT workspace plugins are not editable by the whole workspace
plugin_not_workspace_editable
Service: pluginSeverity: high
OfficialVerifiedPrivate
Categories:gen-aisoftware-supply-chain
Resource Type:OpenAIChatGPTPlugin
Each live workspace plugin is checked for a workspace-wide share with the editor or owner role.
Risk
If everyone in the workspace can edit a plugin, any member, or anyone who takes over a member account, can change the skills and tools every user of that plugin runs.
Run this check with Prowler
Run in Prowler CloudInstall
pip install --extra-index-url https://__token__:${PROWLER_REGISTRY_DOWNLOAD_API_KEY}@registry.prowler.com/simple/ "prowler-provider-chatgpt[runtime]"Run
prowler chatgpt --checks plugin_not_workspace_editableRecommendation
Share the plugin with the workspace as reader and grant editor only to named users or groups.
Check Code
from prowler.lib.check.models import Check
from prowler_provider_chatgpt.check_report import finding
from prowler_provider_chatgpt.services.plugin.plugin_client import plugin_client
EDIT_ROLES = {"editor", "owner"}
class plugin_not_workspace_editable(Check):
def execute(self):
findings = []
for plugin in plugin_client.plugins or []:
roles = EDIT_ROLES & set(plugin["workspace_roles"])
if roles:
text = f"Plugin {plugin['name']} gives everyone in the workspace the {'/'.join(sorted(roles))} role."
else:
text = f"Plugin {plugin['name']} does not let everyone in the workspace edit it."
findings.append(finding(self.metadata(), plugin, not roles, text))
return findings