mojtaba-eshghie / HighGuard

The runtime monitoring tool for smart contracts high-level properties.
https://arxiv.org/abs/2305.08254
MIT License
5 stars 2 forks source link

Dev #3

Closed mojtaba-eshghie closed 1 year ago

gitguardian[bot] commented 1 year ago

⚠️ GitGuardian has uncovered 6 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
| GitGuardian id | Secret | Commit | Filename | | | -------------- | ------------------------- | ---------------- | --------------- | -------------------- | | [4891060](https://dashboard.gitguardian.com/incidents/4891060?occurrence=67446188) | Base64 Basic Authentication | e84d3070de097f51139c2c75daa9b477df5422dd | server/monitor/login.js | [View secret](https://github.com/mojtaba-eshghie/dragonclaw/commit/e84d3070de097f51139c2c75daa9b477df5422dd#diff-17746bffa55554d1fbd92e2fd061dfa1743ab1ebd40ff0b652f773f766c4b2b7R17) | | [4891060](https://dashboard.gitguardian.com/incidents/4891060?occurrence=67454263) | Base64 Basic Authentication | a94dd8799a78e8cb5f04730f8400e9bc3632f9bc | server/monitor/dcr-caller.js | [View secret](https://github.com/mojtaba-eshghie/dragonclaw/commit/a94dd8799a78e8cb5f04730f8400e9bc3632f9bc#diff-bc5113f797ee6f0fdef8dd7b4d90d7e21e0182dcb48963554aa2474f2cd1d780R6) | | [4891060](https://dashboard.gitguardian.com/incidents/4891060?occurrence=67454264) | Base64 Basic Authentication | a94dd8799a78e8cb5f04730f8400e9bc3632f9bc | server/monitor/login.js | [View secret](https://github.com/mojtaba-eshghie/dragonclaw/commit/a94dd8799a78e8cb5f04730f8400e9bc3632f9bc#diff-17746bffa55554d1fbd92e2fd061dfa1743ab1ebd40ff0b652f773f766c4b2b7L17) | | [4891060](https://dashboard.gitguardian.com/incidents/4891060?occurrence=67454265) | Base64 Basic Authentication | a94dd8799a78e8cb5f04730f8400e9bc3632f9bc | server/monitor/login.test.js | [View secret](https://github.com/mojtaba-eshghie/dragonclaw/commit/a94dd8799a78e8cb5f04730f8400e9bc3632f9bc#diff-7a619ff3836cca3007b44a040400ca16c1bdb99ca73e3c9ea5db30f0d341881cR5) | | [4891060](https://dashboard.gitguardian.com/incidents/4891060?occurrence=67562765) | Base64 Basic Authentication | 844407911baf43207f6dff61b4e7e2de30fe1417 | server/index.js | [View secret](https://github.com/mojtaba-eshghie/dragonclaw/commit/844407911baf43207f6dff61b4e7e2de30fe1417#diff-bcb729747c92e72c12e4590f736a334041a572c429756da8af60b6ab89c6be79R13) | | [4891060](https://dashboard.gitguardian.com/incidents/4891060?occurrence=67584098) | Base64 Basic Authentication | ba8228db9882ce6776b4c72d7ff2ebbdf60c8f2b | server/index.js | [View secret](https://github.com/mojtaba-eshghie/dragonclaw/commit/ba8228db9882ce6776b4c72d7ff2ebbdf60c8f2b#diff-bcb729747c92e72c12e4590f736a334041a572c429756da8af60b6ab89c6be79L13) |
🛠 Guidelines to remediate hardcoded secrets
1. Understand the implications of revoking this secret by investigating where it is used in your code. 2. Replace and store your secrets safely. [Learn here](https://blog.gitguardian.com/secrets-api-management?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) the best practices. 3. Revoke and [rotate these secrets](https://docs.gitguardian.com/secrets-detection/detectors/generics/base64_basic_auth#revoke-the-secret?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment). 4. If possible, [rewrite git history](https://blog.gitguardian.com/rewriting-git-history-cheatsheet?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment). Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data. To avoid such incidents in the future consider - following these [best practices](https://blog.gitguardian.com/secrets-api-management/?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) for managing and storing secrets including API keys and other credentials - install [secret detection on pre-commit](https://docs.gitguardian.com/internal-repositories-monitoring/integrations/git_hooks/pre_commit?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) to catch secret before it leaves your machine and ease remediation.

🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!