dcg

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
~/.config/dcg/config.toml
[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].

  1. automation-platform-webhook

    High

    Zapier/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
  2. discord-webhook

    High

    Posting 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
  3. google-chat-webhook

    High

    Posting 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
  4. power-automate-trigger

    High

    Triggering 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
  5. request-catcher-service

    High

    Request-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
  6. slack-incoming-webhook

    High

    Posting 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
  7. slack-web-api-write

    High

    Slack 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
  8. teams-connector-webhook

    High

    Posting 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
  9. telegram-bot-api

    High

    The 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
  10. twilio-message-send

    High

    The 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
  11. generic-incoming-webhook

    Medium

    A 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-context
  • dcg-self-inspection