René's URL Explorer Experiment


Title: 🕸 Extend the Cascading-Scans Hook to generate custom labels or annotations for subsequent scans · Issue #334 · secureCodeBox/secureCodeBox · GitHub

Open Graph Title: 🕸 Extend the Cascading-Scans Hook to generate custom labels or annotations for subsequent scans · Issue #334 · secureCodeBox/secureCodeBox

X Title: 🕸 Extend the Cascading-Scans Hook to generate custom labels or annotations for subsequent scans · Issue #334 · secureCodeBox/secureCodeBox

Description: ➹ New Feature request Is your feature request related to a problem? As a secureCodeBox user i would like to use the cascading rules in combination with the DefectDojo-Persistence Hook to examine all results efficiently in OWASP DefectDoj...

Open Graph Description: ➹ New Feature request Is your feature request related to a problem? As a secureCodeBox user i would like to use the cascading rules in combination with the DefectDojo-Persistence Hook to examine al...

X Description: ➹ New Feature request Is your feature request related to a problem? As a secureCodeBox user i would like to use the cascading rules in combination with the DefectDojo-Persistence Hook to examine al...

Opengraph URL: https://github.com/secureCodeBox/secureCodeBox/issues/334

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"🕸 Extend the Cascading-Scans Hook to generate custom labels or annotations for subsequent scans","articleBody":"## ➹ New Feature request\r\n\u003c!--\r\nThank you for reporting an issue in our documentation 🙌\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.\r\n--\u003e\r\n\r\n### Is your feature request related to a problem?\r\n\u003c!-- Please describe a clear and concise description of what the problem is. Ex. I'm always frustrated when [...] --\u003e\r\nAs a secureCodeBox user i would like to use the [cascading rules](https://docs.securecodebox.io/docs/hooks/cascading-scans) in combination with the [**DefectDojo-Persistence Hook**](https://docs.securecodebox.io/docs/hooks/defectdojo) to examine all results efficiently in [OWASP DefectDojo](https://github.com/DefectDojo/django-DefectDojo) (DD).\r\n\r\nImagine a SCB NMAP `scheduledScan` setup for a company with a large network in combination with cascading rules. This results in hundreds or even thousands of subsequent scans started by the [cascading scans hook](https://docs.securecodebox.io/docs/hooks/cascading-scans). \r\n\r\n```yaml\r\napiVersion: execution.securecodebox.io/v1\r\nkind: ScheduledScan\r\nmetadata:\r\n  name: nmap-large-network-scan\r\n  namespace: demo-scans\r\n  labels:\r\n    organization: \"OWASP\"\r\n    location: barcelona\r\n    vlan: lan\r\nspec:\r\n  interval: 24h\r\n  successfulJobsHistoryLimit: 1\r\n  failedJobsHistoryLimit: 1\r\n  scanSpec:\r\n    scanType: \"nmap\"\r\n    parameters:\r\n      - \"-T4\"\r\n      - \"-sV\"\r\n      - \"--version-intensity\"\r\n      - \"4\"\r\n      - \"192.168.0.1/24\"\r\n    cascades:\r\n      matchLabels:\r\n        # Uses all CascadingRules in the namespace which are labelled as \"non-invasive\" and a intensiveness level of \"light\"\r\n        securecodebox.io/invasive: non-invasive\r\n        securecodebox.io/intensive: light\r\n```\r\n\r\nThis works really nicely in combination with an [elasticsearch backend](https://docs.securecodebox.io/docs/hooks/elasticsearch). \r\n\r\nBut trying to do something similar in OWASP DefectDojo would result in hundreds or even thousands DefectDojo products for _each successful subsequent scan_. The name of each imported DefectDojo `Product` would be the generated `scan` name like `ssh-scan-demo-lan-1616202292-ssh-scan-tc754`. To prevent this it is necessary to add some [DefectDojo-Hook specific annotation](https://docs.securecodebox.io/docs/hooks/defectdojo#complete-example-scan) to each _subsequent scan_ to relate them to the correct DefectDojo `Product` or `Engagement` name.\r\n\r\nProblem is 🧐: currently this is not possible to configure within the `cascading rules` or a `scan`. But it would be very helpful 😆\r\n\r\nThere is already a function implemented in the *cascading hook* which ensures that all `parent scan` labels are copied to all subsequent scans:\r\nhttps://github.com/secureCodeBox/secureCodeBox/blob/0257ddaa07540381d3a056a7cc7b7fc740926f43/hooks/declarative-subsequent-scans/scan-helpers.ts#L79-L90\r\n\r\n### Describe the solution you'd like\r\n\u003c!-- A clear and concise description of what you want to happen. --\u003e\r\nIt should be possible to define and copy custom labels and annotations for each subsequent scan. There are different scenarios to take into account:\r\n1) Copy all `labels` and `annotations` from the `parent scan` to every `subsequent scan`\r\n2) Generate new labels and annotations based on a lightweight template syntax and the given `parent scan` or `findings` data.\r\n\r\n#### Examples\r\n`ScheduledScan` NMAP Definition Example:\r\n```yaml\r\napiVersion: execution.securecodebox.io/v1\r\nkind: ScheduledScan\r\nmetadata:\r\n  name: nmap-large-network-scan\r\n  namespace: demo-scans\r\n  annotations:\r\n    defectdojo.securecodebox.io/product-name: \"barcelona-network-scan\"\r\n    defectdojo.securecodebox.io/product-type-name: \"OWASP\"\r\n    defectdojo.securecodebox.io/product-tags: vulnerable,appsec,network\r\n    defectdojo.securecodebox.io/engagement-name: \"scb-automated-scan\"\r\n    defectdojo.securecodebox.io/engagement-tags: \"automated,daily\"\r\n  labels:\r\n    organization: \"OWASP\"\r\n    location: barcelona\r\n    vlan: lan\r\nspec:\r\n  interval: 24h\r\n  successfulJobsHistoryLimit: 1\r\n  failedJobsHistoryLimit: 1\r\n  scanSpec:\r\n    scanType: \"nmap\"\r\n    parameters:\r\n      - \"-T4\"\r\n      - \"-sV\"\r\n      - \"192.168.0.1/24\"\r\n    cascades:\r\n      # True if all scan (parent) labels are copied to each subsequent scan (child), otherwise false. Default: true\r\n      inheritLabels: true\r\n      # True if all scan (parent) annotations are copied to each subsequent scan (child), otherwise false. Default: true\r\n      inheritAnnotations: true\r\n      # Uses all CascadingRules in the namespace which are labelled as \"non-invasive\" and a intensiveness level of \"light\"\r\n      matchLabels:\r\n        securecodebox.io/invasive: non-invasive\r\n        securecodebox.io/intensive: light\r\n```\r\n\r\nOWASP ZAP Cascading Rule Example\r\n\r\n```yaml\r\napiVersion: \"cascading.securecodebox.io/v1\"\r\nkind: CascadingRule\r\nmetadata:\r\n  name: \"zap-http\"\r\n  labels:\r\n    securecodebox.io/invasive: non-invasive\r\n    securecodebox.io/intensive: medium\r\nspec:\r\n  matches:\r\n    anyOf:\r\n      - category: \"Open Port\"\r\n        attributes:\r\n          service: http\r\n          state: open\r\n      - category: \"Open Port\"\r\n        attributes:\r\n          service: https\r\n          state: open\r\n  # Configures additional label added to each subsequent scan (child)\r\n  scanLabels:\r\n    mynewlabel: {{$.metadata.name}}\r\n  # Configures additional annotation added to each subsequent scan (child)\r\n  scanAnnotations:\r\n    defectdojo.securecodebox.io/product-name: \"{{$.hostOrIP}}\"\r\n    defectdojo.securecodebox.io/product-type-name: \"{{$.metadata.labels.organization}}\"\r\n    defectdojo.securecodebox.io/product-tags: vulnerable,appsec,owasp-top-ten,vulnapp\r\n    defectdojo.securecodebox.io/engagement-name: \"{{$.hostOrIP}}\"\r\n  scanSpec:\r\n    scanType: \"zap-baseline\"\r\n    parameters: [\"-t\", \"{{attributes.service}}://{{$.hostOrIP}}\"]\r\n```\r\n\r\n### Describe alternatives you've considered\r\n\u003c!-- A clear and concise description of any alternative solutions or features you've considered. --\u003e\r\n\r\n### Additional context\r\n\u003c!-- Add any other context or screenshots about the feature request here. --\u003e\r\n","author":{"url":"https://github.com/rfelber","@type":"Person","name":"rfelber"},"datePublished":"2021-03-20T21:16:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/334/secureCodeBox/issues/334"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a700d5fe-e0fb-8579-fac5-16d105f4f640
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id966E:1E64:C9A4D1:FF8AE6:698FEE30
html-safe-noncef7e98629dfa49c58d4c5a802d41ab12ddce76c984541f74b85ea9ac5b2a9e374
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjZFOjFFNjQ6QzlBNEQxOkZGOEFFNjo2OThGRUUzMCIsInZpc2l0b3JfaWQiOiI3MDg5OTAwNTM2NzQ1NDIyMzg0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac107bca6ef1052277f8bce229fe132c8478a11799d3351b26e80ed32882211690
hovercard-subject-tagissue:836912591
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/secureCodeBox/secureCodeBox/334/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b498a3b32e2564762087eeb67104f9b686b9470bf78f356c6f252b289646bb9c/secureCodeBox/secureCodeBox/issues/334
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b498a3b32e2564762087eeb67104f9b686b9470bf78f356c6f252b289646bb9c/secureCodeBox/secureCodeBox/issues/334
og:image:alt➹ New Feature request Is your feature request related to a problem? As a secureCodeBox user i would like to use the cascading rules in combination with the DefectDojo-Persistence Hook to examine al...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerfelber
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-preview
go-importgithub.com/secureCodeBox/secureCodeBox git https://github.com/secureCodeBox/secureCodeBox.git
octolytics-dimension-user_id34573705
octolytics-dimension-user_loginsecureCodeBox
octolytics-dimension-repository_id80711933
octolytics-dimension-repository_nwosecureCodeBox/secureCodeBox
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id80711933
octolytics-dimension-repository_network_root_nwosecureCodeBox/secureCodeBox
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/secureCodeBox/secureCodeBox/issues/334#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FsecureCodeBox%2FsecureCodeBox%2Fissues%2F334
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FsecureCodeBox%2FsecureCodeBox%2Fissues%2F334
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=secureCodeBox%2FsecureCodeBox
Reloadhttps://github.com/secureCodeBox/secureCodeBox/issues/334
Reloadhttps://github.com/secureCodeBox/secureCodeBox/issues/334
Reloadhttps://github.com/secureCodeBox/secureCodeBox/issues/334
secureCodeBox https://github.com/secureCodeBox
secureCodeBoxhttps://github.com/secureCodeBox/secureCodeBox
Notifications https://github.com/login?return_to=%2FsecureCodeBox%2FsecureCodeBox
Fork 179 https://github.com/login?return_to=%2FsecureCodeBox%2FsecureCodeBox
Star 955 https://github.com/login?return_to=%2FsecureCodeBox%2FsecureCodeBox
Code https://github.com/secureCodeBox/secureCodeBox
Issues 71 https://github.com/secureCodeBox/secureCodeBox/issues
Pull requests 4 https://github.com/secureCodeBox/secureCodeBox/pulls
Discussions https://github.com/secureCodeBox/secureCodeBox/discussions
Actions https://github.com/secureCodeBox/secureCodeBox/actions
Projects 1 https://github.com/secureCodeBox/secureCodeBox/projects
Security 1 https://github.com/secureCodeBox/secureCodeBox/security
Insights https://github.com/secureCodeBox/secureCodeBox/pulse
Code https://github.com/secureCodeBox/secureCodeBox
Issues https://github.com/secureCodeBox/secureCodeBox/issues
Pull requests https://github.com/secureCodeBox/secureCodeBox/pulls
Discussions https://github.com/secureCodeBox/secureCodeBox/discussions
Actions https://github.com/secureCodeBox/secureCodeBox/actions
Projects https://github.com/secureCodeBox/secureCodeBox/projects
Security https://github.com/secureCodeBox/secureCodeBox/security
Insights https://github.com/secureCodeBox/secureCodeBox/pulse
New issuehttps://github.com/login?return_to=https://github.com/secureCodeBox/secureCodeBox/issues/334
New issuehttps://github.com/login?return_to=https://github.com/secureCodeBox/secureCodeBox/issues/334
#430https://github.com/secureCodeBox/secureCodeBox/pull/430
🕸 Extend the Cascading-Scans Hook to generate custom labels or annotations for subsequent scanshttps://github.com/secureCodeBox/secureCodeBox/issues/334#top
#430https://github.com/secureCodeBox/secureCodeBox/pull/430
defectdojoAll issues regarding the DefectDojo Integrationhttps://github.com/secureCodeBox/secureCodeBox/issues?q=state%3Aopen%20label%3A%22defectdojo%22
enhancementNew feature or requesthttps://github.com/secureCodeBox/secureCodeBox/issues?q=state%3Aopen%20label%3A%22enhancement%22
hookImplement or update a hookhttps://github.com/secureCodeBox/secureCodeBox/issues?q=state%3Aopen%20label%3A%22hook%22
v2.8.0https://github.com/secureCodeBox/secureCodeBox/milestone/7
https://github.com/rfelber
https://github.com/rfelber
rfelberhttps://github.com/rfelber
on Mar 20, 2021https://github.com/secureCodeBox/secureCodeBox/issues/334#issue-836912591
cascading ruleshttps://docs.securecodebox.io/docs/hooks/cascading-scans
DefectDojo-Persistence Hookhttps://docs.securecodebox.io/docs/hooks/defectdojo
OWASP DefectDojohttps://github.com/DefectDojo/django-DefectDojo
cascading scans hookhttps://docs.securecodebox.io/docs/hooks/cascading-scans
elasticsearch backendhttps://docs.securecodebox.io/docs/hooks/elasticsearch
DefectDojo-Hook specific annotationhttps://docs.securecodebox.io/docs/hooks/defectdojo#complete-example-scan
secureCodeBox/hooks/declarative-subsequent-scans/scan-helpers.tshttps://github.com/secureCodeBox/secureCodeBox/blob/0257ddaa07540381d3a056a7cc7b7fc740926f43/hooks/declarative-subsequent-scans/scan-helpers.ts#L79-L90
0257ddahttps://github.com/secureCodeBox/secureCodeBox/commit/0257ddaa07540381d3a056a7cc7b7fc740926f43
defectdojoAll issues regarding the DefectDojo Integrationhttps://github.com/secureCodeBox/secureCodeBox/issues?q=state%3Aopen%20label%3A%22defectdojo%22
enhancementNew feature or requesthttps://github.com/secureCodeBox/secureCodeBox/issues?q=state%3Aopen%20label%3A%22enhancement%22
hookImplement or update a hookhttps://github.com/secureCodeBox/secureCodeBox/issues?q=state%3Aopen%20label%3A%22hook%22
v2.8.0https://github.com/secureCodeBox/secureCodeBox/milestone/7
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.