Careful Company: Chat & Webhook Egress
careful_company_running_windows.chat
Blocks posting to outbound chat and webhook destinations: Slack incoming webhooks and Web API writes, Microsoft Teams connectors and Power Automate triggers, Discord webhooks, Telegram bot API, Google Chat spaces, Twilio messages, Zapier/IFTTT hooks, PagerDuty events, and request catchers such as webhook.site and interact.sh.
- 11blocking rules
- 2safe patterns
- 10High
- 1Medium
[packs]
enabled = ["careful_company_running_windows.chat"]Evaluated when a command contains slack, Slack, SLACK, hooks, Hooks, HOOKS, webhook, Webhook, WEBHOOK, office.com.
Blocking rules
Each rule ID is careful_company_running_windows.chat:<name>. Use it in allowlists and [policy.rules].
Highautomation-platform-webhookZapier/IFTTT/PagerDuty event hooks forward the payload to a third-party automation.
Explanation
These endpoints hand the request body to an automation platform that can relay it onward — to mail, a spreadsheet, a chat channel, or an arbitrary HTTP call — under an account that may not be company-managed. Safer alternatives: - Inspect the automation instead of triggering it - Allowlist the specific trigger if it is an approved integration
Highdiscord-webhookPosting to a Discord webhook publishes data into a Discord channel.
Explanation
A Discord webhook URL accepts an unauthenticated POST with message content and file attachments, publishing them to a channel that is frequently outside company control. Safer alternatives: - Keep the output local and let a person share it - Allowlist the exact command if a specific bot notification is approved
Highgoogle-chat-webhookPosting to a Google Chat space webhook publishes data into that space.
Explanation
`chat.googleapis.com/v1/spaces/<space>/messages?key=...` posts a message into a Google Chat space; the key and token in the query string are the only credential. Safer alternatives: - Print the message and let a person post it
Highpower-automate-triggerTriggering a Power Automate / Logic Apps workflow URL sends the payload outside this machine.
Explanation
Power Automate workflow URLs (`*.logic.azure.com/.../triggers/manual/paths/invoke`) are the replacement for retiring Office 365 connectors. The POST body is handed to a cloud workflow that can mail it, post it to Teams, or write it to storage. Safer alternatives: - Inspect the workflow definition rather than invoking it - Allowlist the specific trigger if this automation is approved
Highrequest-catcher-serviceRequest-catcher services record whatever is sent to them.
Explanation
These services exist to capture and display arbitrary inbound requests, which makes them the default drop point for anything being taken off a machine. Payloads sit on a third-party server that anyone with the link can read. (Tunnel-rendezvous hostnames such as `*.ngrok.io` are owned by `tunnel:tunnel-client-binary`, whose keywords can actually reach them.) Safer alternatives: - Point integration tests at a listener on localhost - Use a company-hosted endpoint for anything carrying real data
Highslack-incoming-webhookPosting to a Slack incoming webhook sends data into a Slack channel.
Explanation
A `hooks.slack.com/services/...` URL accepts an unauthenticated POST and publishes the body into a channel. The URL is the credential, so anything that can read it can post — including whatever text or file contents the agent chose to include. Safer alternatives: - Print the message locally and let a person post it - Allowlist the exact command if a specific notification is approved
Highslack-web-api-writeSlack Web API write methods post messages or upload files to Slack.
Explanation
`chat.postMessage` publishes a message and the `files.upload*` family uploads file content into a workspace, using a token already present on the machine. Read methods such as `conversations.history` are not affected by this rule. Safer alternatives: - Use read-only Slack methods to look things up - Have a person post anything that needs to reach the workspace
Highteams-connector-webhookPosting to a Microsoft Teams connector webhook sends data into a Teams channel.
Explanation
An Office 365 connector URL (`*.webhook.office.com/webhookb2/...`) accepts an unauthenticated POST and renders the payload as a card in a Teams channel. As with Slack, the URL itself is the only credential. Safer alternatives: - Leave the message on the console for a person to relay - Allowlist a specific, reviewed notification command
Hightelegram-bot-apiThe Telegram bot API sends messages and documents to a chat.
Explanation
`api.telegram.org/bot<token>/sendMessage` and `/sendDocument` deliver text and files to any chat the bot can reach. The bot token in the URL is the whole authorization. Safer alternatives: - Keep the data local and have a person forward what is needed
Hightwilio-message-sendThe Twilio Messages API sends SMS or WhatsApp messages to arbitrary numbers.
Explanation
A POST to the Twilio `/Messages` resource sends an SMS or WhatsApp message using the account credentials on the machine — an outbound channel that leaves the corporate network entirely and reaches a personal device. Safer alternatives: - Read-only Twilio calls (usage, logs) are unaffected - Route approved messaging through the application, not an ad-hoc command
Mediumgeneric-incoming-webhookA long opaque token under a /hooks/ path is an incoming-webhook endpoint.
Explanation
Mattermost, Rocket.Chat, and many self-hosted chat servers publish incoming webhooks as `/hooks/<opaque-token>`. The shape is distinctive enough to flag, but generic enough that this rule warns rather than blocks — and an internally hosted chat server (loopback, RFC1918, `*.corp`/`*.internal`) is excluded outright. Safer alternatives: - If this is your own chat server on a public address, allowlist the rule for that host - Otherwise treat the post as an outbound message and get it approved
Safe patterns
Checked first. A command that matches one is never blocked by this pack.
read-only-data-contextdcg-self-inspection