hawk-scanner


Namehawk-scanner JSON
Version 0.3.11 PyPI version JSON
download
home_pagehttps://github.com/rohitcoder/hawk-eye
SummaryA powerful scanner to scan your Filesystem, S3, MongoDB, MySQL, PostgreSQL, Redis, Slack, Google Cloud Storage and Firebase storage for PII and sensitive data using text and OCR analysis. Hawk-eye can also analyse supports most of the file types like docx, xlsx, pptx, pdf, jpg, png, gif, zip, tar, rar, etc.
upload_time2024-01-11 11:32:57
maintainer
docs_urlNone
authorRohit Kumar
requires_python
licenseApache License 2.0
keywords pii secrets sensitive-data cybersecurity scanner
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h1 align="center">🦅 Hawk-eye </h1> 
<p align="center"><b>Find PII & Secrets like never before across your entire infrastructure with same tool!</b></p>
<p align="center">
<a href="#description">Description</a> • <a href="#installation">Installation</a> • <a href="#features">Features</a> • <a href="#config">Configuration</a> • <a href="#acknowledgements">Acknowledgements</a><br><br>
   
[![Publish to PyPI.org](https://github.com/rohitcoder/hawk-eye/actions/workflows/pypi.yml/badge.svg)](https://github.com/rohitcoder/hawk-eye/actions/workflows/pypi.yml) 
<img alt="Static Badge" src="https://img.shields.io/badge/Supports-S3-yellow?logo=amazons3">
<img alt="Static Badge" src="https://img.shields.io/badge/Supports-GCP-red?logo=googlecloud">
<img alt="Static Badge" src="https://img.shields.io/badge/Supports-MysQL-green?logo=mysql">
<img alt="Static Badge" src="https://img.shields.io/badge/Supports-PostgreSQL-blue?logo=postgresql">
<img alt="Static Badge" src="https://img.shields.io/badge/Supports-Redis-red?logo=redis">
<img alt="Static Badge" src="https://img.shields.io/badge/Supports-On Prem-black?logo=amazonec2">
</p>

![HAWK Eye](assets/banner.png)
<div id="description">

### 🦅 HAWK Eye - Highly Advanced Watchful Keeper Eye

HAWK Eye is a powerful and versatile CLI (Command-Line Interface) tool designed to be your vigilant watchkeeper, guarding against potential data breaches and cyber threats across various platforms. Inspired by the precision and vision of majestic birds of prey, HAWK Eye swiftly scans multiple data sources, including S3, MySQL, PostgreSQL, MongoDB, CouchDB, Google Drive, Slack, Redis, Firebase, filesystem, and Google Cloud buckets (GCS), for Personally Identifiable Information (PII) and secrets. It uses text analysis and OCR techniques to go throug most of the documents, database and different file types like  docx, xlsx, pptx, pdf, jpg, png, gif, zip, tar, rar, etc.


### Why "HAWK Eye"?
The name "HAWK Eye" captures the essence of a Highly Advanced Watchful Keeper. Like the keen vision of a hawk, this tool enables you to monitor and safeguard your data with precision and accuracy, ensuring data privacy and security.
</div>

## HAWK Eye in Action

See how this works on Youtube - https://youtu.be/LuPXE7UJKOY

![HAWK Eye Demo](assets/preview.png)
![HAWK Eye Demo](assets/preview2.png)


<div id="installation">

## Installation via pip or pip3
   ```bash
      pip3 install hawk-scanner
   ```


## Example working command (Use all/fs/s3/gcs etc...)
   ```bash
      hawk_scanner all --connection connection.yml --fingerprint fingerprint.yml --json output.json --debug
   ```

### Note: Scanning Postgresql?, then you have to install some extra dependencies.

For scanning postgresql source, this tool requires psycopg2-binary dependency, we can't ship this dependency with main package because psycopg2-binary not works with most of the systems espically with Windows, so you have to install it manually.
   
   ```bash
      pip3 install psycopg2-binary
   ```

## Building or running from source

HAWK Eye is a Python-based CLI tool that can be installed using the following steps:

1. Clone the HAWK Eye repository to your local machine.
   ```bash
      git clone https://github.com/rohitcoder/hawk-eye.git
   ```
2. Navigate to the HAWK Eye directory.
3. Run the following command to install the required dependencies:
   ```bash
      pip3 install -r requirements.txt
   ```
4. Create a connection.yml file in the root directory and add your connection profiles (see the "How to Configure HAWK Eye Connections" section for details).
5. Run the following command to install HAWK Eye:
   ```bash
      python3 hawk_scanner/main.py
   ```
</div>

<div id="features">

## Key features
- Swiftly scans multiple data sources (S3, MySQL, PostgreSQL, Redis, Firebase, filesystem, and GCS) for PII data and malware exposure.
- Advanced algorithms and deep scanning capabilities provide thorough security auditing.
- Real-time alerts and notifications keep you informed of potential data vulnerabilities using Slack and other integrations, with more coming soon.
- New command support for S3, MySQL, PostgreSQL, Redis, Firebase, filesystem, and GCS expands the tool's capabilities.
- ``--debug`` flag enables printing of all debugging output for comprehensive troubleshooting.
- Save output in JSON format using the --json flag and specify a file name like --json output.json.
- Proudly crafted with love and a sense of humor to make your security journey enjoyable and stress-free.


## Usage
To unleash the power of HAWK Eye, simply follow the steps mentioned in the "Usage" section of the "README.md" file.

### Options
Note: If you don't provide any command, it will run all commands (firebase, fs, gcs, mysql, text, couchdb, gdrive, gdrive workspace, slack, postgresql, redis, s3) by default.
<table>
   <thead>
      <tr>
         <th>Option</th>
         <th>Description</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <td>
           firebase
         </td>
         <td>Scan Firebase profiles for PII and secrets data.</td>
      </tr>
      <tr>
         <td>
            fs
            <commit_id>
         </td>
         <td>Scan filesystem profiles for PII and secrets data.</td>
      </tr>
      <tr>
         <td>
            gcs
         </td>
         <td>Scan GCS (Google Cloud Storage) profiles for PII and secrets data.</td>
      </tr>
      <tr>
         <td>
            text
         </td>
         <td>Scan text or string for PII and secrets data.</td>
      </tr>
      <tr>
         <td>
            mysql
         <td>Scan MySQL profiles for PII and secrets data.</td>
      </tr>
      <tr>
         <td>
            mongodb
         <td>Scan MongoDB profiles for PII and secrets data.</td>
      </tr>
      <tr>
         <td>
            couchdb
         <td>Scan CouchDB profiles for PII and secrets data.</td>
      </tr>
      <tr>
         <td>
            slack
         <td>Scan slack profiles for PII and secrets data.</td>
      </tr>
      <tr>
         <td>
            postgresql
         <td>Scan postgreSQL profiles for PII and secrets data.</td>
      </tr>
      <tr>
         <td>
            redis
         </td>
         <td>Scan Redis profiles for PII and secrets data.</td>
      </tr>
      <tr>
         <td>
            s3
          </td>
         <td>Scan S3 profiles for PII and secrets data.</td>
      </tr>
      <tr>
         <td>
            gdrive
          </td>
         <td>Scan Google drive profiles for PII and secrets data.</td>
      </tr>
      <tr>
         <td>
            gdrive_workspace
          </td>
         <td>Scan Google drive Workspace profiles for PII and secrets data.</td>
      </tr>
      <tr>
         <td>--connection</td>
         <td>Provide a connection YAML local file path like --connection connection.yml, this file will contain all creds and configs for different sources and other configurations.</td>
      </tr>
      <tr>
         <td>--fingerprint</td>
         <td>Provide a fingerprint file path like --fingerprint fingerprint.yml, this file will override default fingerprints.</td>
      </tr>
      <tr>
         <td>--debug</td>
         <td>Enable Debug mode.</td>
      </tr>
      <tr>
         <td>--stdout</td>
         <td>Print output on stdout or terminal.</td>
      </tr>
      <tr>
         <td>--quiet</td>
         <td>Use --quiet flag if you want to hide all logs from your terminal.</td>
      </tr>
      <tr>
         <td>--json</td>
         <td>Provide --json file name to save output in json file like --json output.json</td>
      </tr>
      <tr>
         <td>--shutup</td>
         <td>Use --shutup flag if you want to hide Hawk ASCII art from your terminal 😁</td>
      </tr>
   </tbody>
</table>
</div>

<div id="config">

## How to Configure HAWK Eye Connections (Profiles in connection.yml)

HAWK Eye uses a YAML file to store connection profiles for various data sources. The connection.yml file is located in the config directory. You can add new profiles to this file to enable HAWK Eye to scan additional data sources. The following sections describe the process for adding new profiles to the connection.yml file.


### Your connection fille will look like this

```yaml
notify:
  redacted: True
  suppress_duplicates: True
  slack:
    webhook_url: https://hooks.slack.com/services/T0XXXXXXXXXXX/BXXXXXXXX/1CIyXXXXXXXXXXXXXXX

sources:
  redis:
    redis_example:
      host: YOUR_REDIS_HOST
  s3:
    s3_example:
      access_key: YOUR_S3_ACCESS_KEY
      secret_key: YOUR_S3_SECRET_KEY
      bucket_name: YOUR_S3_BUCKET_NAME
      cache: true
  gcs:
    gcs_example:
      credentials_file: /path/to/your/credential_file.json
      bucket_name: YOUR_GCS_BUCKET_NAME
      cache: true
      exclude_patterns:
        - .pdf
        - .docx
  firebase:
    firebase_example:
      credentials_file: /path/to/your/credential_file.json
      bucket_name: YOUR_FIREBASE_BUCKET_NAME
      cache: true
      exclude_patterns:
        - .pdf
        - .docx
  mysql:
    mysql_example:
      host: YOUR_MYSQL_HOST
      port: YOUR_MYSQL_PORT
      user: YOUR_MYSQL_USERNAME
      password: YOUR_MYSQL_PASSWORD
      database: YOUR_MYSQL_DATABASE_NAME
      limit_start: 0   # Specify the starting limit for the range
      limit_end: 500   # Specify the ending limit for the range
      tables:
        - table1
        - table2
  postgresql:
    postgresql_example:
      host: YOUR_POSTGRESQL_HOST
      port: YOUR_POSTGRESQL_PORT
      user: YOUR_POSTGRESQL_USERNAME
      password: YOUR_POSTGRESQL_PASSWORD
      database: YOUR_POSTGRESQL_DATABASE_NAME
      limit_start: 0   # Specify the starting limit for the range
      limit_end: 500   # Specify the ending limit for the range
      tables:
        - table1
        - table2
  mongodb:
    mongodb_example:
      uri: YOUR_MONGODB_URI
      host: YOUR_MONGODB_HOST
      port: YOUR_MONGODB_PORT
      username: YOUR_MONGODB_USERNAME
      password: YOUR_MONGODB_PASSWORD
      database: YOUR_MONGODB_DATABASE_NAME
      uri: YOUR_MONGODB_URI  # Use either URI or individual connection parameters
      limit_start: 0   # Specify the starting limit for the range
      limit_end: 500   # Specify the ending limit for the range
      collections:
        - collection1
        - collection2
  fs:
    fs_example:
      path: /path/to/your/filesystem/directory
      exclude_patterns:
        - .pdf
        - .docx
        - private
        - venv
        - node_modules
  
 gdrive:
    drive_example:
      folder_name:
      credentials_file: /Users/kumarohit/Downloads/client_secret.json ## this will be oauth app json file
      cache: true
      exclude_patterns:
        - .pdf
        - .docx

  gdrive_workspace:
    drive_example:
      folder_name:
      credentials_file: /Users/kumarohit/Downloads/client_secret.json ## this will be service account json file
      impersonate_users:
        - usera@amce.org
        - userb@amce.org
      cache: true
      exclude_patterns:
        - .pdf
        - .docx
  text:
    profile1:
      text: "Hello World HHWPK6943Q"
  slack:
    slack_example:
      token: xoxp-XXXXXXXXXXXXXXXXXXXXXXXXX # get your slack app these permissiosn https://api.slack.com/methods/team.info and https://api.slack.com/methods/conversations.list
      channel_types: "public_channel,private_channel"
      # Optional: List of channel names to check
      # channel_names:
      #   - general
      #   - random
```

You can add or remove profiles from the connection.yml file as needed. You can also configure only one or two data sources if you don't need to scan all of them.
</div>

## Adding New Commands
HAWK Eye's extensibility empowers developers to contribute new security commands. Here's how:

1. Fork the HAWK Eye repository to your GitHub account.
2. Create a new Python file for your security command inside the commands directory, with a descriptive name.
3. Define a function execute(args) within the new Python file, containing the logic for your command.
4. Provide clear documentation and comments explaining the purpose and usage of the new command.
5. Thoroughly test your command to ensure it works seamlessly and aligns with the existing features.
6. Submit a pull request from your branch to the main HAWK Eye repository.
7. The maintainers will review your contribution, provide feedback if needed, and merge your changes.

## Contribution Guidelines
We welcome contributions from the open-source community to enhance HAWK Eye's capabilities in securing data sources. To contribute:

1. Fork the HAWK Eye repository to your GitHub account.
2. Create a new branch from the main branch for your changes.
3. Adhere to the project's coding standards and style guidelines.
4. Write clear and concise commit messages for your changes.
5. Include appropriate test cases for new features or modifications.
6. Update the "README.md" file to reflect any changes or new features.
7. Submit a pull request from your branch to the main branch of the HAWK Eye repository.
8. The maintainers will review your pull request and work with you to address any concerns.
9. After approval, your contributions will be merged into the main codebase.

Join the HAWK Eye community and contribute to data source security worldwide. For any questions or assistance, feel free to open an issue on the repository.

If you find HAWK Eye useful and would like to support the project, please consider making a donation. All 100% of the donations will be distributed to charities focused on education welfare and animal help.

<div id="acknowledgements">

## Conferences and Talks
<ul type="disc">
<li><a href="https://www.blackhat.com/sector/2023/arsenal/schedule/index.html#hawk-eye---pii--secret-detection-tool-for-your-servers-database-filesystems-cloud-storage-services-35716" target="_blank">
Black Hat SecTor 2023 [Arsenal]</a></li>
<li><a href="https://blackhatmea.com/session/hawk-eye-pii-secret-detection-tool-your-servers-database-filesystems-cloud-storage-0" target="_blank">
Black Hat Middle East and Africa 2023 [Arsenal]</a></li>
<li><a href="https://www.blackhat.com/eu-23/arsenal/schedule/index.html#hawk-eye---pii--secret-detection-tool-for-your-servers-database-filesystems-cloud-storage-services-35711" target="_blank">
Black Hat Europe 2023 [Arsenal]</a></li>
</ul>

## 💪 Contributors
We extend our heartfelt appreciation to all contributors who continuously improve this tool! Your efforts are essential in strengthening the security landscape. 🙏

<a href="https://github.com/rohitcoder/hawk-eye/graphs/contributors">
  <img src="https://contrib.rocks/image?abc=1&repo=rohitcoder/hawk-eye" />
</a>
</div>

## Donation
#### How to Donate
Feel free to make a donation directly to the charities of your choice or send it to us, and we'll ensure it reaches the deserving causes. Just reach out to us on [LinkedIn](https://linkedin.com/in/rohitcoder) or [Twitter](https://twitter.com/rohitcoder) to let us know about your contribution. Your generosity and support mean the world to us, and we can't wait to express our heartfelt gratitude.

Your donations will play a significant role in making a positive impact in the lives of those in need. Thank you for considering supporting our cause!

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/rohitcoder/hawk-eye",
    "name": "hawk-scanner",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "pii secrets sensitive-data cybersecurity scanner",
    "author": "Rohit Kumar",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/d4/fd/a7cfb9864814c95d3aebceaa4a0bd98873c66f8b6b5ad1c5991d28c9ecb2/hawk_scanner-0.3.11.tar.gz",
    "platform": null,
    "description": "<h1 align=\"center\">\ud83e\udd85 Hawk-eye </h1> \n<p align=\"center\"><b>Find PII & Secrets like never before across your entire infrastructure with same tool!</b></p>\n<p align=\"center\">\n<a href=\"#description\">Description</a> \u2022 <a href=\"#installation\">Installation</a> \u2022 <a href=\"#features\">Features</a> \u2022 <a href=\"#config\">Configuration</a> \u2022 <a href=\"#acknowledgements\">Acknowledgements</a><br><br>\n   \n[![Publish to PyPI.org](https://github.com/rohitcoder/hawk-eye/actions/workflows/pypi.yml/badge.svg)](https://github.com/rohitcoder/hawk-eye/actions/workflows/pypi.yml) \n<img alt=\"Static Badge\" src=\"https://img.shields.io/badge/Supports-S3-yellow?logo=amazons3\">\n<img alt=\"Static Badge\" src=\"https://img.shields.io/badge/Supports-GCP-red?logo=googlecloud\">\n<img alt=\"Static Badge\" src=\"https://img.shields.io/badge/Supports-MysQL-green?logo=mysql\">\n<img alt=\"Static Badge\" src=\"https://img.shields.io/badge/Supports-PostgreSQL-blue?logo=postgresql\">\n<img alt=\"Static Badge\" src=\"https://img.shields.io/badge/Supports-Redis-red?logo=redis\">\n<img alt=\"Static Badge\" src=\"https://img.shields.io/badge/Supports-On Prem-black?logo=amazonec2\">\n</p>\n\n![HAWK Eye](assets/banner.png)\n<div id=\"description\">\n\n### \ud83e\udd85 HAWK Eye - Highly Advanced Watchful Keeper Eye\n\nHAWK Eye is a powerful and versatile CLI (Command-Line Interface) tool designed to be your vigilant watchkeeper, guarding against potential data breaches and cyber threats across various platforms. Inspired by the precision and vision of majestic birds of prey, HAWK Eye swiftly scans multiple data sources, including S3, MySQL, PostgreSQL, MongoDB, CouchDB, Google Drive, Slack, Redis, Firebase, filesystem, and Google Cloud buckets (GCS), for Personally Identifiable Information (PII) and secrets. It uses text analysis and OCR techniques to go throug most of the documents, database and different file types like  docx, xlsx, pptx, pdf, jpg, png, gif, zip, tar, rar, etc.\n\n\n### Why \"HAWK Eye\"?\nThe name \"HAWK Eye\" captures the essence of a Highly Advanced Watchful Keeper. Like the keen vision of a hawk, this tool enables you to monitor and safeguard your data with precision and accuracy, ensuring data privacy and security.\n</div>\n\n## HAWK Eye in Action\n\nSee how this works on Youtube - https://youtu.be/LuPXE7UJKOY\n\n![HAWK Eye Demo](assets/preview.png)\n![HAWK Eye Demo](assets/preview2.png)\n\n\n<div id=\"installation\">\n\n## Installation via pip or pip3\n   ```bash\n      pip3 install hawk-scanner\n   ```\n\n\n## Example working command (Use all/fs/s3/gcs etc...)\n   ```bash\n      hawk_scanner all --connection connection.yml --fingerprint fingerprint.yml --json output.json --debug\n   ```\n\n### Note: Scanning Postgresql?, then you have to install some extra dependencies.\n\nFor scanning postgresql source, this tool requires psycopg2-binary dependency, we can't ship this dependency with main package because psycopg2-binary not works with most of the systems espically with Windows, so you have to install it manually.\n   \n   ```bash\n      pip3 install psycopg2-binary\n   ```\n\n## Building or running from source\n\nHAWK Eye is a Python-based CLI tool that can be installed using the following steps:\n\n1. Clone the HAWK Eye repository to your local machine.\n   ```bash\n      git clone https://github.com/rohitcoder/hawk-eye.git\n   ```\n2. Navigate to the HAWK Eye directory.\n3. Run the following command to install the required dependencies:\n   ```bash\n      pip3 install -r requirements.txt\n   ```\n4. Create a connection.yml file in the root directory and add your connection profiles (see the \"How to Configure HAWK Eye Connections\" section for details).\n5. Run the following command to install HAWK Eye:\n   ```bash\n      python3 hawk_scanner/main.py\n   ```\n</div>\n\n<div id=\"features\">\n\n## Key features\n- Swiftly scans multiple data sources (S3, MySQL, PostgreSQL, Redis, Firebase, filesystem, and GCS) for PII data and malware exposure.\n- Advanced algorithms and deep scanning capabilities provide thorough security auditing.\n- Real-time alerts and notifications keep you informed of potential data vulnerabilities using Slack and other integrations, with more coming soon.\n- New command support for S3, MySQL, PostgreSQL, Redis, Firebase, filesystem, and GCS expands the tool's capabilities.\n- ``--debug`` flag enables printing of all debugging output for comprehensive troubleshooting.\n- Save output in JSON format using the --json flag and specify a file name like --json output.json.\n- Proudly crafted with love and a sense of humor to make your security journey enjoyable and stress-free.\n\n\n## Usage\nTo unleash the power of HAWK Eye, simply follow the steps mentioned in the \"Usage\" section of the \"README.md\" file.\n\n### Options\nNote: If you don't provide any command, it will run all commands (firebase, fs, gcs, mysql, text, couchdb, gdrive, gdrive workspace, slack, postgresql, redis, s3) by default.\n<table>\n   <thead>\n      <tr>\n         <th>Option</th>\n         <th>Description</th>\n      </tr>\n   </thead>\n   <tbody>\n      <tr>\n         <td>\n           firebase\n         </td>\n         <td>Scan Firebase profiles for PII and secrets data.</td>\n      </tr>\n      <tr>\n         <td>\n            fs\n            <commit_id>\n         </td>\n         <td>Scan filesystem profiles for PII and secrets data.</td>\n      </tr>\n      <tr>\n         <td>\n            gcs\n         </td>\n         <td>Scan GCS (Google Cloud Storage) profiles for PII and secrets data.</td>\n      </tr>\n      <tr>\n         <td>\n            text\n         </td>\n         <td>Scan text or string for PII and secrets data.</td>\n      </tr>\n      <tr>\n         <td>\n            mysql\n         <td>Scan MySQL profiles for PII and secrets data.</td>\n      </tr>\n      <tr>\n         <td>\n            mongodb\n         <td>Scan MongoDB profiles for PII and secrets data.</td>\n      </tr>\n      <tr>\n         <td>\n            couchdb\n         <td>Scan CouchDB profiles for PII and secrets data.</td>\n      </tr>\n      <tr>\n         <td>\n            slack\n         <td>Scan slack profiles for PII and secrets data.</td>\n      </tr>\n      <tr>\n         <td>\n            postgresql\n         <td>Scan postgreSQL profiles for PII and secrets data.</td>\n      </tr>\n      <tr>\n         <td>\n            redis\n         </td>\n         <td>Scan Redis profiles for PII and secrets data.</td>\n      </tr>\n      <tr>\n         <td>\n            s3\n          </td>\n         <td>Scan S3 profiles for PII and secrets data.</td>\n      </tr>\n      <tr>\n         <td>\n            gdrive\n          </td>\n         <td>Scan Google drive profiles for PII and secrets data.</td>\n      </tr>\n      <tr>\n         <td>\n            gdrive_workspace\n          </td>\n         <td>Scan Google drive Workspace profiles for PII and secrets data.</td>\n      </tr>\n      <tr>\n         <td>--connection</td>\n         <td>Provide a connection YAML local file path like --connection connection.yml, this file will contain all creds and configs for different sources and other configurations.</td>\n      </tr>\n      <tr>\n         <td>--fingerprint</td>\n         <td>Provide a fingerprint file path like --fingerprint fingerprint.yml, this file will override default fingerprints.</td>\n      </tr>\n      <tr>\n         <td>--debug</td>\n         <td>Enable Debug mode.</td>\n      </tr>\n      <tr>\n         <td>--stdout</td>\n         <td>Print output on stdout or terminal.</td>\n      </tr>\n      <tr>\n         <td>--quiet</td>\n         <td>Use --quiet flag if you want to hide all logs from your terminal.</td>\n      </tr>\n      <tr>\n         <td>--json</td>\n         <td>Provide --json file name to save output in json file like --json output.json</td>\n      </tr>\n      <tr>\n         <td>--shutup</td>\n         <td>Use --shutup flag if you want to hide Hawk ASCII art from your terminal \ud83d\ude01</td>\n      </tr>\n   </tbody>\n</table>\n</div>\n\n<div id=\"config\">\n\n## How to Configure HAWK Eye Connections (Profiles in connection.yml)\n\nHAWK Eye uses a YAML file to store connection profiles for various data sources. The connection.yml file is located in the config directory. You can add new profiles to this file to enable HAWK Eye to scan additional data sources. The following sections describe the process for adding new profiles to the connection.yml file.\n\n\n### Your connection fille will look like this\n\n```yaml\nnotify:\n  redacted: True\n  suppress_duplicates: True\n  slack:\n    webhook_url: https://hooks.slack.com/services/T0XXXXXXXXXXX/BXXXXXXXX/1CIyXXXXXXXXXXXXXXX\n\nsources:\n  redis:\n    redis_example:\n      host: YOUR_REDIS_HOST\n  s3:\n    s3_example:\n      access_key: YOUR_S3_ACCESS_KEY\n      secret_key: YOUR_S3_SECRET_KEY\n      bucket_name: YOUR_S3_BUCKET_NAME\n      cache: true\n  gcs:\n    gcs_example:\n      credentials_file: /path/to/your/credential_file.json\n      bucket_name: YOUR_GCS_BUCKET_NAME\n      cache: true\n      exclude_patterns:\n        - .pdf\n        - .docx\n  firebase:\n    firebase_example:\n      credentials_file: /path/to/your/credential_file.json\n      bucket_name: YOUR_FIREBASE_BUCKET_NAME\n      cache: true\n      exclude_patterns:\n        - .pdf\n        - .docx\n  mysql:\n    mysql_example:\n      host: YOUR_MYSQL_HOST\n      port: YOUR_MYSQL_PORT\n      user: YOUR_MYSQL_USERNAME\n      password: YOUR_MYSQL_PASSWORD\n      database: YOUR_MYSQL_DATABASE_NAME\n      limit_start: 0   # Specify the starting limit for the range\n      limit_end: 500   # Specify the ending limit for the range\n      tables:\n        - table1\n        - table2\n  postgresql:\n    postgresql_example:\n      host: YOUR_POSTGRESQL_HOST\n      port: YOUR_POSTGRESQL_PORT\n      user: YOUR_POSTGRESQL_USERNAME\n      password: YOUR_POSTGRESQL_PASSWORD\n      database: YOUR_POSTGRESQL_DATABASE_NAME\n      limit_start: 0   # Specify the starting limit for the range\n      limit_end: 500   # Specify the ending limit for the range\n      tables:\n        - table1\n        - table2\n  mongodb:\n    mongodb_example:\n      uri: YOUR_MONGODB_URI\n      host: YOUR_MONGODB_HOST\n      port: YOUR_MONGODB_PORT\n      username: YOUR_MONGODB_USERNAME\n      password: YOUR_MONGODB_PASSWORD\n      database: YOUR_MONGODB_DATABASE_NAME\n      uri: YOUR_MONGODB_URI  # Use either URI or individual connection parameters\n      limit_start: 0   # Specify the starting limit for the range\n      limit_end: 500   # Specify the ending limit for the range\n      collections:\n        - collection1\n        - collection2\n  fs:\n    fs_example:\n      path: /path/to/your/filesystem/directory\n      exclude_patterns:\n        - .pdf\n        - .docx\n        - private\n        - venv\n        - node_modules\n  \n gdrive:\n    drive_example:\n      folder_name:\n      credentials_file: /Users/kumarohit/Downloads/client_secret.json ## this will be oauth app json file\n      cache: true\n      exclude_patterns:\n        - .pdf\n        - .docx\n\n  gdrive_workspace:\n    drive_example:\n      folder_name:\n      credentials_file: /Users/kumarohit/Downloads/client_secret.json ## this will be service account json file\n      impersonate_users:\n        - usera@amce.org\n        - userb@amce.org\n      cache: true\n      exclude_patterns:\n        - .pdf\n        - .docx\n  text:\n    profile1:\n      text: \"Hello World HHWPK6943Q\"\n  slack:\n    slack_example:\n      token: xoxp-XXXXXXXXXXXXXXXXXXXXXXXXX # get your slack app these permissiosn https://api.slack.com/methods/team.info and https://api.slack.com/methods/conversations.list\n      channel_types: \"public_channel,private_channel\"\n      # Optional: List of channel names to check\n      # channel_names:\n      #   - general\n      #   - random\n```\n\nYou can add or remove profiles from the connection.yml file as needed. You can also configure only one or two data sources if you don't need to scan all of them.\n</div>\n\n## Adding New Commands\nHAWK Eye's extensibility empowers developers to contribute new security commands. Here's how:\n\n1. Fork the HAWK Eye repository to your GitHub account.\n2. Create a new Python file for your security command inside the commands directory, with a descriptive name.\n3. Define a function execute(args) within the new Python file, containing the logic for your command.\n4. Provide clear documentation and comments explaining the purpose and usage of the new command.\n5. Thoroughly test your command to ensure it works seamlessly and aligns with the existing features.\n6. Submit a pull request from your branch to the main HAWK Eye repository.\n7. The maintainers will review your contribution, provide feedback if needed, and merge your changes.\n\n## Contribution Guidelines\nWe welcome contributions from the open-source community to enhance HAWK Eye's capabilities in securing data sources. To contribute:\n\n1. Fork the HAWK Eye repository to your GitHub account.\n2. Create a new branch from the main branch for your changes.\n3. Adhere to the project's coding standards and style guidelines.\n4. Write clear and concise commit messages for your changes.\n5. Include appropriate test cases for new features or modifications.\n6. Update the \"README.md\" file to reflect any changes or new features.\n7. Submit a pull request from your branch to the main branch of the HAWK Eye repository.\n8. The maintainers will review your pull request and work with you to address any concerns.\n9. After approval, your contributions will be merged into the main codebase.\n\nJoin the HAWK Eye community and contribute to data source security worldwide. For any questions or assistance, feel free to open an issue on the repository.\n\nIf you find HAWK Eye useful and would like to support the project, please consider making a donation. All 100% of the donations will be distributed to charities focused on education welfare and animal help.\n\n<div id=\"acknowledgements\">\n\n## Conferences and Talks\n<ul type=\"disc\">\n<li><a href=\"https://www.blackhat.com/sector/2023/arsenal/schedule/index.html#hawk-eye---pii--secret-detection-tool-for-your-servers-database-filesystems-cloud-storage-services-35716\" target=\"_blank\">\nBlack Hat SecTor 2023 [Arsenal]</a></li>\n<li><a href=\"https://blackhatmea.com/session/hawk-eye-pii-secret-detection-tool-your-servers-database-filesystems-cloud-storage-0\" target=\"_blank\">\nBlack Hat Middle East and Africa 2023 [Arsenal]</a></li>\n<li><a href=\"https://www.blackhat.com/eu-23/arsenal/schedule/index.html#hawk-eye---pii--secret-detection-tool-for-your-servers-database-filesystems-cloud-storage-services-35711\" target=\"_blank\">\nBlack Hat Europe 2023 [Arsenal]</a></li>\n</ul>\n\n## \ud83d\udcaa Contributors\nWe extend our heartfelt appreciation to all contributors who continuously improve this tool! Your efforts are essential in strengthening the security landscape. \ud83d\ude4f\n\n<a href=\"https://github.com/rohitcoder/hawk-eye/graphs/contributors\">\n  <img src=\"https://contrib.rocks/image?abc=1&repo=rohitcoder/hawk-eye\" />\n</a>\n</div>\n\n## Donation\n#### How to Donate\nFeel free to make a donation directly to the charities of your choice or send it to us, and we'll ensure it reaches the deserving causes. Just reach out to us on [LinkedIn](https://linkedin.com/in/rohitcoder) or [Twitter](https://twitter.com/rohitcoder) to let us know about your contribution. Your generosity and support mean the world to us, and we can't wait to express our heartfelt gratitude.\n\nYour donations will play a significant role in making a positive impact in the lives of those in need. Thank you for considering supporting our cause!\n",
    "bugtrack_url": null,
    "license": "Apache License 2.0",
    "summary": "A powerful scanner to scan your Filesystem, S3, MongoDB, MySQL, PostgreSQL, Redis, Slack, Google Cloud Storage and Firebase storage for PII and sensitive data using text and OCR analysis. Hawk-eye can also analyse supports most of the file types like docx, xlsx, pptx, pdf, jpg, png, gif, zip, tar, rar, etc.",
    "version": "0.3.11",
    "project_urls": {
        "Homepage": "https://github.com/rohitcoder/hawk-eye"
    },
    "split_keywords": [
        "pii",
        "secrets",
        "sensitive-data",
        "cybersecurity",
        "scanner"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "92b66414263b35e1af43902ff36bb290ba0450d074f41d98ebfb284284526adf",
                "md5": "1607e158e55c7635461aef49b41ccb52",
                "sha256": "d00e611afc83b467e41f15f1cd5d89146f29160ce56eb456eac48a4d39edb75b"
            },
            "downloads": -1,
            "filename": "hawk_scanner-0.3.11-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1607e158e55c7635461aef49b41ccb52",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 37251,
            "upload_time": "2024-01-11T11:32:55",
            "upload_time_iso_8601": "2024-01-11T11:32:55.553606Z",
            "url": "https://files.pythonhosted.org/packages/92/b6/6414263b35e1af43902ff36bb290ba0450d074f41d98ebfb284284526adf/hawk_scanner-0.3.11-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d4fda7cfb9864814c95d3aebceaa4a0bd98873c66f8b6b5ad1c5991d28c9ecb2",
                "md5": "1eeb9d36e023b22bdf32858e402225fc",
                "sha256": "c633c1b72900b7cdf161fa7bf675646c4d8599c073e4bc5205523f95be85b91b"
            },
            "downloads": -1,
            "filename": "hawk_scanner-0.3.11.tar.gz",
            "has_sig": false,
            "md5_digest": "1eeb9d36e023b22bdf32858e402225fc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 33054,
            "upload_time": "2024-01-11T11:32:57",
            "upload_time_iso_8601": "2024-01-11T11:32:57.370989Z",
            "url": "https://files.pythonhosted.org/packages/d4/fd/a7cfb9864814c95d3aebceaa4a0bd98873c66f8b6b5ad1c5991d28c9ecb2/hawk_scanner-0.3.11.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-11 11:32:57",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "rohitcoder",
    "github_project": "hawk-eye",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "hawk-scanner"
}
        
Elapsed time: 0.16931s