Title: ⚓️ New persistenceProvider Hook for OWASP DefectDojo · Issue #171 · secureCodeBox/secureCodeBox · GitHub
Open Graph Title: ⚓️ New persistenceProvider Hook for OWASP DefectDojo · Issue #171 · secureCodeBox/secureCodeBox
X Title: ⚓️ New persistenceProvider Hook for OWASP DefectDojo · Issue #171 · secureCodeBox/secureCodeBox
Description: New Hook implementation request Is your feature request related to a problem? Please describe. As a User i would like to use the OWASP DefectDojo Projekt to analyse my findings (instead or in parallel to my kibana dashboard). While the s...
Open Graph Description: New Hook implementation request Is your feature request related to a problem? Please describe. As a User i would like to use the OWASP DefectDojo Projekt to analyse my findings (instead or in paral...
X Description: New Hook implementation request Is your feature request related to a problem? Please describe. As a User i would like to use the OWASP DefectDojo Projekt to analyse my findings (instead or in paral...
Opengraph URL: https://github.com/secureCodeBox/secureCodeBox/issues/171
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"⚓️ New persistenceProvider Hook for OWASP DefectDojo","articleBody":"\u003c!--\r\nThank you for contributing to our project 🙌\r\n\r\nBefore opening a new issue, please make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead. Also, please, have a look at our FAQs and existing questions before opening a new question.\r\n--\u003e\r\n\r\n## New Hook implementation request\r\n\r\n**Is your feature request related to a problem? Please describe.**\r\nAs a User i would like to use the [OWASP DefectDojo Projekt](https://www.owasp.org/index.php/OWASP_DefectDojo_Project) to analyse my findings (_instead or in parallel to my kibana dashboard_). While the secureCodeBox has its major focus on the automation part of the security scanner execution, defectDojo is good in visualising, deduplication and analysing the findings.\r\n\r\nTo integrate OWASP DefectDojo it's necessary to implement a new Hook which pushes the raw finding results of each scanner to the [DefectDojo API: ImportScan](https://app.swaggerhub.com/apis/DefectDojo/defect-dojo_api_v_2/1.0.0#/import-scan/import-scan_create). DefectDojo can be started as a separate Docker Container or via HelmChart in a K8S cluster environment.\r\n\r\nPossible Scanner Integrations:\r\n- NMAP (XML output (use -oX))\r\n- Nikto (XML output)\r\n- ZAP (ZAP XML report format)\r\n\r\n**Describe the solution you'd like**\r\nThe is already a working integration solution implemented for the secureCodeBox V1, which maybe can be migrated or reused in the secureCodeBox V2. Therefore the existing code must be wrapped in a Hook.\r\n\r\n**Describe alternatives you've considered**\r\nAnother alternative could be implement this hook with a complete green field approach. But this alternative would take much longer and has no real benefits.\r\n\r\n**Additional context**\r\n- https://github.com/secureCodeBox/engine/tree/master/scb-persistenceproviders/defectdojo-persistenceprovider\r\n- https://github.com/secureCodeBox/engine/tree/feature/defect-dojo-config-extension/scb-persistenceproviders/defectdojo-persistenceprovider\r\n\r\n## Steps to implement a new Hook\r\n\u003c!--\r\nHint: A general guide how to implement a new scanner is documented [here](https://github.com/secureCodeBox/secureCodeBox/tree/master/docs/developer-guide)\r\n--\u003e\r\n\r\n- [x] Create a new folder with the name of the [hook here](https://github.com/secureCodeBox/secureCodeBox/tree/master/hooks)\r\n- [x] Add a README and give a brief overview of the scanner and its configuration options.\r\n- [x] Add (optional) a Dockerfile for the scanner if there is no existing one publicly available on dockerHub\r\n- [x] Use the [Hook-SDK](https://github.com/secureCodeBox/secureCodeBox/tree/master/hook-sdk) to implement a new hook (currently based on NodeJS)\r\n- [x] Add unit tests with at minimum 80% test coverage\r\n- [ ] Add some example scan.yaml and finding.yaml files in the example folder\r\n- [ ] Implement a new integration test for the hook [here](https://github.com/secureCodeBox/secureCodeBox/tree/master/tests/integration)\r\n","author":{"url":"https://github.com/rfelber","@type":"Person","name":"rfelber"},"datePublished":"2020-10-21T10:36:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/171/secureCodeBox/issues/171"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:97893476-ebcb-6e5f-f6d1-849ac7301a97 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AA34:1AEB5C:9D99D5:D90053:69775D11 |
| html-safe-nonce | e9562692415a56152877e41f94230e930bbae12adf1008e7c8bc17ac5bdfaaca |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTM0OjFBRUI1Qzo5RDk5RDU6RDkwMDUzOjY5Nzc1RDExIiwidmlzaXRvcl9pZCI6IjgwMzk2NTU0OTgyNDU5NTQ4MzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 94df65918f9264cf8bb9041dade83555c26e027c2f19dbad5333f6c7b8cc80fe |
| hovercard-subject-tag | issue:726355826 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/secureCodeBox/secureCodeBox/171/issue_layout |
| twitter:image | https://opengraph.githubassets.com/87062b3c5ee239a5229bf8f4dcb8b65d08fb0184abe8d1a208aaf103e1c5e637/secureCodeBox/secureCodeBox/issues/171 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/87062b3c5ee239a5229bf8f4dcb8b65d08fb0184abe8d1a208aaf103e1c5e637/secureCodeBox/secureCodeBox/issues/171 |
| og:image:alt | New Hook implementation request Is your feature request related to a problem? Please describe. As a User i would like to use the OWASP DefectDojo Projekt to analyse my findings (instead or in paral... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rfelber |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3310064f35a62c06a4024ba37f41c06836f39376a095c2dfd2c4b693c34965be |
| turbo-cache-control | no-preview |
| go-import | github.com/secureCodeBox/secureCodeBox git https://github.com/secureCodeBox/secureCodeBox.git |
| octolytics-dimension-user_id | 34573705 |
| octolytics-dimension-user_login | secureCodeBox |
| octolytics-dimension-repository_id | 80711933 |
| octolytics-dimension-repository_nwo | secureCodeBox/secureCodeBox |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 80711933 |
| octolytics-dimension-repository_network_root_nwo | secureCodeBox/secureCodeBox |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 67d5f8d1d53c3cc4f49fc3bb8029933c3dc219e6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width