Metadata-Version: 2.1
Name: slack-watchman
Version: 1.0.0
Summary: Monitoring your Slack instances for data leaks
Home-page: https://github.com/PaperMtn/slack-watchman
Author: PaperMtn
Author-email: papermtn@protonmail.com
License: GPL-3.0
Description: ![Slack Watchman](files/Slack_watchman_alt_var_1280x320.png)
        
        # Slack Watchman
        
        Monitoring you Slack workspaces for sensitive information
        
        ## About Slack Watchman
        Slack Watchman is an application that uses the Slack API to look for potentially sensitive data exposed in your Slack workspaces.
        
        ### Features
        Slack Watchman searches for, and reports back on:
        
        - Externally shared channels
        - Potential leaked passwords
        - AWS Keys
        - GCP keys
        - Slack API keys
        - Private keys
        - Bank card details
        - Certificate files
        - Potentially interesting/malicious files (.docm, .xlsm, .zip etc.)
        
        It also gives the following, which can be used for general auditing:
        - All channels
        - All users
        - All admins
        
        #### Time based searching
        You can run Slack Watchman to look for results going back as far as:
        - 7 days
        - 30 days
        - All time
        
        This means after one deep scan, you can schedule Slack Watchman to run regularly and only return results from your chosen timeframe.
        
        ## Requirements
        ### Slack API token
        To run Slack Watchman, you will need a Slack API OAuth access token. You can do this by creating a simple [Slack App](https://api.slack.com/apps).
        
        The app needs to have the following **User Token Scopes** added:
        ```
        channels:read
        files:read
        groups:read
        im:read
        links:read
        mpim:read
        remote_files:read
        search:read
        team:read
        users:read
        users:read.email
        ```
        **Note**: User tokens act on behalf of the user who authorises them, so I would suggest you create this app and authorise it using a service account, otherwise the app will have access to your private channels and chats.
        
        
        ### .conf file
        This API token needs to be stored in a file named `slack_watchman.conf` which is stored in your home directory. The file should take the following format:
        ```
        [auth]
        slack_token = xoxp-xxxxxxxxxx-...
        ```
        Slack Watchman will look for this file at runtime, and notify you if it's not there.
        
        ## Installation
        Install via pip
        
        `pip install slack-watchman`
        
        ## Usage
        Slack Watchman will be installed as a global command, use as follows:
        ```
        usage: slack-watchman [-h] --timeframe {w,m,a} [--all] [-U] [-C] [-a] [-g] [-s]
                           [-p] [-c] [-t] [-f] [-P]
        
        Slack Watchman: Monitoring you Slack workspaces for sensitive information
        
        optional arguments:
          -h, --help           show this help message and exit
          --timeframe {w,m,a}  How far back to search: w = one week, m = one month, a
                               = all time
          --all                Find everything
          -U, --users          Find all users, including admins
          -C, --channels       Find all channels, including external shared channels
          -a                   Look for AWS keys
          -g                   Look for GCP keys
          -s                   Look for Slack tokens
          -p                   Look for private keys
          -c                   Look for card details
          -t                   Look for certificate files
          -f                   Look for interesting files
          -P                   Look for passwords
          ```
        
        You can run Slack Watchman to look for everything:
        
        `slack-watchman --timeframe a --all`
        
        Or arguments can be grouped together to search more granularly. This will look for AWS keys, GCP keys and passwords for the last 30 days:
        
        `slack-watchman --timeframe m -agP`
        
Keywords: audit slack slack-watchman watchman blue-team red-team threat-hunting
Platform: UNKNOWN
Classifier: Intended Audience :: Information Technology
Classifier: Topic :: Security
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Description-Content-Type: text/markdown
