{"id":21054729,"url":"https://github.com/papermtn/slack-watchman-enterprise-grid","last_synced_at":"2025-05-15T22:34:22.362Z","repository":{"id":42482705,"uuid":"439654299","full_name":"PaperMtn/slack-watchman-enterprise-grid","owner":"PaperMtn","description":"Monitoring your Slack Enterprise Grid for sensitive information","archived":false,"fork":false,"pushed_at":"2023-04-15T20:09:24.000Z","size":121,"stargazers_count":20,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-04T03:47:44.026Z","etag":null,"topics":["blue-team","blueteam","cybersecurity","dlp","infosec","monitoring","purple-team","purpleteam","red-team","redteam","security","slack","slack-api","slack-enterprise-grid","tools"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PaperMtn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-18T15:50:14.000Z","updated_at":"2024-10-29T00:02:57.000Z","dependencies_parsed_at":"2022-09-18T22:23:31.171Z","dependency_job_id":null,"html_url":"https://github.com/PaperMtn/slack-watchman-enterprise-grid","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaperMtn%2Fslack-watchman-enterprise-grid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaperMtn%2Fslack-watchman-enterprise-grid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaperMtn%2Fslack-watchman-enterprise-grid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaperMtn%2Fslack-watchman-enterprise-grid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PaperMtn","download_url":"https://codeload.github.com/PaperMtn/slack-watchman-enterprise-grid/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254433582,"owners_count":22070493,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blue-team","blueteam","cybersecurity","dlp","infosec","monitoring","purple-team","purpleteam","red-team","redteam","security","slack","slack-api","slack-enterprise-grid","tools"],"created_at":"2024-11-19T16:17:01.513Z","updated_at":"2025-05-15T22:34:19.032Z","avatar_url":"https://github.com/PaperMtn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://i.imgur.com/VPgx6ra.png\" width=\"550\"\u003e\n\n# Slack Watchman for Enterprise Grid\n![Python 2.7 and 3 compatible](https://img.shields.io/pypi/pyversions/slack-watchman-eg)\n![PyPI version](https://img.shields.io/pypi/v/slack-watchman-eg.svg)\n![License: MIT](https://img.shields.io/pypi/l/slack-watchman-eg.svg)\n\n\n## About Slack Watchman for Enterprise Grid\n\nSlack Watchman for Enterprise Grid uses the Slack Enterprise Grid DLP API to look for potentially exposed secrets and sensitive data in Slack Enterprise Grid.\n\n**Note**: Slack Watchman for Enterprise Grid is designed for Enterprise Grid subscribers of Slack only. If you use Slack without an Enterprise subscription, you can use the standard version of [Slack Watchman](https://github.com/PaperMtn/slack-watchman)\n\n### Features\nSlack Watchman for Enterprise Grid looks for:\n\n- API Keys, Tokens \u0026 Service Accounts\n  - AWS, Azure, GCP, Google API, Slack (keys \u0026 webhooks), Twitter, Facebook, GitHub\n  - Generic Private keys\n  - Access Tokens, Bearer Tokens, Client Secrets, Private Tokens\n- Files\n  - Certificate files\n  - Potentially interesting/malicious/sensitive files (.docm, .xlsm, .zip etc.)\n  - Executable files\n  - Keychain files\n  - Config files for popular services (Terraform, Jenkins, OpenVPN and more)\n- Personal Data\n  - Leaked passwords\n  - Passport numbers, Dates of birth, Social security numbers, National insurance numbers, Drivers licence numbers (UK), Individual Taxpayer Identification Number\n  - CVs, salary information\n- Financial data\n  - PayPal Braintree tokens, Bank card details, IBAN numbers, CUSIP numbers\n  - Budget files\n  \nIt looks for this exposed data across all workspaces in the Enterprise, in the following locations:\n- Public channels\n- Private channels\n- Draft messages\n- Slack connect channels\n- Direct messages\n- Multi-person direct messages\n\n#### Time based searching\nSlack Watchman for Enterprise Grid can search through all messages sent in your Enterprise in the previous 24 hours. Limitations in the API, and data processing bottlenecks, don't allow for any further than 24 hours to be queried. \n\nYou can provide time periods to search for using the `--hours` and `--minutes` options at runtime. This means you can schedule running regularly, and in general little and often is the best approach.\n\n#### Multiprocessing\nMultiprocessing is used to search the potentially huge amount of data retrieved when getting all messages sent in an Enterprise. You can specify how many cores to use at runtime, and the more cores you use, the faster processing is generally done. That being said, you are still constrained by the API.\n\nI have found the most efficient approach is to use between 8-12 cores.\n\nYou can specify cores using the optional flag `--cores` at runtime. If this flag is not set, Slack Watchman will automatically use all available cores up to a maximum of 8.\n### Signatures\nSlack Watchman uses custom YAML signatures to detect matches in Slack. These signatures are pulled from the central [Watchman Signatures repository](https://github.com/PaperMtn/watchman-signatures). Slack Watchman for Enterprise Grid automatically updates its signature base at runtime to ensure its using the latest signatures to detect secrets. \n\n## Requirements\n### Slack API token\nTo run Slack Watchman for Enterprise Grid, you will need a Slack API access token that is authorised to use the Enterprise DLP API.\n\nTo do this, you need to create a [Slack App](https://api.slack.com/apps) and install it at the organisation level.\n\nThe app needs to have the following **User Token Scopes** added:\n```\ndiscovery:read\ndiscovery:write\nteam:read\nusers:read\n```\n**Note**: `discovery:read` and `discovery:write` can only be added to an app by Slack themselves, you will need to contact your Slack CSM. They will also provide you with instructions on how to install the app at organisation level and retrieve the access token.\n\n#### Providing token\nProvide the token in the environment variable `SLACK_WATCHMAN_EG_TOKEN`\n\n## Installation\nYou can install the latest stable version via pip:\n\n`python3 -m pip install slack-watchman-eg`\n\nOr build from source yourself:\n\nDownload the release source files, then from the top level repository run:\n```shell\npython3 -m pip build\npython3 -m pip install --force-reinstall dist/*.whl\n```\n\n## Docker Image\n\nSlack Watchman for Enterprise Grid is also available from the Docker hub as a Docker image:\n\n`docker pull papermountain/slack-watchman-eg:latest`\n\nYou can then run Slack Watchman for Enterprise Grid in a container, making sure you pass the required environment variables:\n\n```\n// help\ndocker run --rm papermountain/slack-watchman-eg -h\n\n// scan all\ndocker run --rm -e SLACK_WATCHMAN_EG_TOKENN=xoxp... papermountain/slack-watchman-eg --hours 1 --cores 8\ndocker run --rm --env-file .env papermountain/slack-watchman-eg --hours 1 --cores 8\n```\n\n## Usage\n```\nusage: slack-watchman-eg [-h] [--hours HOURS] [--minutes MINUTES] [--output {json,terminal}] [--cores CORES] [--version] [--users] [--workspaces] [--debug] [--verbose]\n\nMonitoring your Slack Enterprise Grid for sensitive information\n\noptions:\n  -h, --help            show this help message and exit\n  --hours HOURS, -hr HOURS\n                        How far back to search in whole hours between 1-24. Defaults to 1 if no acceptable value given\n  --minutes MINUTES, -m MINUTES\n                        How far back to search in whole minutes between 1-60\n  --output {json,terminal}, -o {json,terminal}\n                        What logging output to use - JSON formatted output, or textual outputfor reading via terminal. Default is terminal\n  --cores CORES, -c CORES\n                        Number of cores to use between 1-12\n  --version, -v         show program's version number and exit\n  --users, -u           Return all users\n  --workspaces, -w      Return all workspaces\n  --debug, -d           Turn on debug level logging\n  --verbose, -V         Turn on more verbose output for JSON logging. This includes more fields, but is larger\n```\n\n## Other Watchman apps\nYou may be interested in the other apps in the Watchman family:\n- [Slack Watchman](https://github.com/PaperMtn/slack-watchman)\n- [GitLab Watchman](https://github.com/PaperMtn/gitlab-watchman)\n- [GitHub Watchman](https://github.com/PaperMtn/github-watchman)\n\n## License\nThe source code for this project is released under the [GNU General Public Licence](https://www.gnu.org/licenses/licenses.html#GPL). This project is not associated with Slack Technologies or Salesforce.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpapermtn%2Fslack-watchman-enterprise-grid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpapermtn%2Fslack-watchman-enterprise-grid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpapermtn%2Fslack-watchman-enterprise-grid/lists"}