From 76b10495531e1e3d7137129f5b32a60cba782be5 Mon Sep 17 00:00:00 2001 From: Ankit Kumar Date: Mon, 23 Oct 2023 17:12:31 +0530 Subject: [PATCH 1/8] Added go third party rules --- rules/sinks/leakages/logs/go.yaml | 6 ++++++ rules/sinks/third_parties/sdk/deepmap/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/harbor/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/knadh/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/prometheus/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/uber/go.yaml | 13 +++++++++++++ 6 files changed, 71 insertions(+) create mode 100644 rules/sinks/third_parties/sdk/deepmap/go.yaml create mode 100644 rules/sinks/third_parties/sdk/harbor/go.yaml create mode 100644 rules/sinks/third_parties/sdk/knadh/go.yaml create mode 100644 rules/sinks/third_parties/sdk/prometheus/go.yaml create mode 100644 rules/sinks/third_parties/sdk/uber/go.yaml diff --git a/rules/sinks/leakages/logs/go.yaml b/rules/sinks/leakages/logs/go.yaml index 4b2b3a09..55c9ffb3 100644 --- a/rules/sinks/leakages/logs/go.yaml +++ b/rules/sinks/leakages/logs/go.yaml @@ -6,6 +6,7 @@ sinks: - "(?i)(github.com/rs/zerolog/log).*[.](Error).*(Msg)" - "(?i)(github.com/sirupsen/logrus).*[.](error)(f?)" - "(?i)(go.uber.org/zap).*[.](error)(f|ln|w)?" + - "(?i)(github.com/go-logr/zapr).*[.](error)(f|ln|w)?" - "(?i)(github.com/golang/glog).*[.](error)(depth|depthf|f|ln)?" - "(?i)(gopkg.in/inconshreveable/log15).*[.](error)" tags: @@ -16,6 +17,7 @@ sinks: - "(?i)(github.com/rs/zerolog/log).*[.](Warn).*(Msg)" - "(?i)(github.com/sirupsen/logrus).*[.](warn)(f?)" - "(?i)(go.uber.org/zap).*[.](warn)(f|ln|w)?" + - "(?i)(github.com/go-logr/zapr).*[.](warn)(f|ln|w)?" - "(?i)(github.com/golang/glog).*[.](warn)(depth|depthf|f|ln)?" - "(?i)(gopkg.in/inconshreveable/log15).*[.](warn)" tags: @@ -26,6 +28,7 @@ sinks: - "(?i)(github.com/rs/zerolog/log).*[.](Debug).*(Msg)" - "(?i)(github.com/sirupsen/logrus).*[.](debug)(f?)" - "(?i)(go.uber.org/zap).*[.](debug)(f|ln|w)?" + - "(?i)(github.com/go-logr/zapr).*[.](debug)(f|ln|w)?" - "(?i)(github.com/golang/glog).*[.](debug)(depth|depthf|f|ln)?" - "(?i)(gopkg.in/inconshreveable/log15).*[.](debug)" tags: @@ -36,6 +39,7 @@ sinks: - "(?i)(github.com/rs/zerolog/log).*[.](Info).*(Msg)" - "(?i)(github.com/sirupsen/logrus).*[.](info)(f?)" - "(?i)(go.uber.org/zap).*[.](info)(f|ln|w)?" + - "(?i)(github.com/go-logr/zapr).*[.](info)(f|ln|w)?" - "(?i)(github.com/golang/glog).*[.](info)(depth|depthf|f|ln)?" - "(?i)(gopkg.in/inconshreveable/log15).*[.](info)" tags: @@ -45,6 +49,7 @@ sinks: patterns: - "(?i)(github.com/sirupsen/logrus).*[.](fatal)(f?)" - "(?i)(go.uber.org/zap).*[.](fatal)(f|ln|w)?" + - "(?i)(github.com/go-logr/zapr).*[.](fatal)(f|ln|w)?" - "(?i)(github.com/golang/glog).*[.](fatal)(depth|depthf|f|ln)?" tags: @@ -53,6 +58,7 @@ sinks: patterns: - "(?i)(github.com/sirupsen/logrus).*[.](panic)(f?)" - "(?i)(go.uber.org/zap).*[.](panic)(f|ln|w)?" + - "(?i)(github.com/go-logr/zapr).*[.](panic)(f|ln|w)?" tags: - id: Leakages.Log.Console diff --git a/rules/sinks/third_parties/sdk/deepmap/go.yaml b/rules/sinks/third_parties/sdk/deepmap/go.yaml new file mode 100644 index 00000000..07ca3d1a --- /dev/null +++ b/rules/sinks/third_parties/sdk/deepmap/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Deepmap + name: Deepmap + domains: + - "deepmap.com" + patterns: + - "(?i)(github.com/deepmap/oapi-codegen).*" + tags: diff --git a/rules/sinks/third_parties/sdk/harbor/go.yaml b/rules/sinks/third_parties/sdk/harbor/go.yaml new file mode 100644 index 00000000..ff3269d7 --- /dev/null +++ b/rules/sinks/third_parties/sdk/harbor/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Harbor + name: Harbor + domains: + - "harbor.io" + patterns: + - "(?i)(github.com/goharbor/go-client).*" + tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/knadh/go.yaml b/rules/sinks/third_parties/sdk/knadh/go.yaml new file mode 100644 index 00000000..ef19f811 --- /dev/null +++ b/rules/sinks/third_parties/sdk/knadh/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.knadh + name: knadh + domains: + - "knadh.com" + patterns: + - "(?i)(github.com/knadh/koanf).*" + tags: diff --git a/rules/sinks/third_parties/sdk/prometheus/go.yaml b/rules/sinks/third_parties/sdk/prometheus/go.yaml new file mode 100644 index 00000000..1abc094c --- /dev/null +++ b/rules/sinks/third_parties/sdk/prometheus/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Prometheus + name: Prometheus + domains: + - "prometheus.com" + patterns: + - "(?i)(https://github.com/prometheus/client_golang).*" + tags: diff --git a/rules/sinks/third_parties/sdk/uber/go.yaml b/rules/sinks/third_parties/sdk/uber/go.yaml new file mode 100644 index 00000000..c6731d0a --- /dev/null +++ b/rules/sinks/third_parties/sdk/uber/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Uber + name: Uber + domains: + - "uber.com" + patterns: + - "(?i)(github.com/uber-go/tally).*" + tags: From ca2fcf3820b957ab28447b2182d2b601169d1a5c Mon Sep 17 00:00:00 2001 From: Ankit Kumar Date: Thu, 26 Oct 2023 11:49:05 +0530 Subject: [PATCH 2/8] Added more GO third parties --- rules/sinks/third_parties/sdk/atlassian/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/cloudevents/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/datadog/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/emersion/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/google/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/grafana/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/hashicorp/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/machineBox/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/nats/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/openai/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/pagerduty/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/sentry/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/wavefront/go.yaml | 13 +++++++++++++ 13 files changed, 169 insertions(+) create mode 100644 rules/sinks/third_parties/sdk/atlassian/go.yaml create mode 100644 rules/sinks/third_parties/sdk/cloudevents/go.yaml create mode 100644 rules/sinks/third_parties/sdk/datadog/go.yaml create mode 100644 rules/sinks/third_parties/sdk/emersion/go.yaml create mode 100644 rules/sinks/third_parties/sdk/google/go.yaml create mode 100644 rules/sinks/third_parties/sdk/grafana/go.yaml create mode 100644 rules/sinks/third_parties/sdk/hashicorp/go.yaml create mode 100644 rules/sinks/third_parties/sdk/machineBox/go.yaml create mode 100644 rules/sinks/third_parties/sdk/nats/go.yaml create mode 100644 rules/sinks/third_parties/sdk/openai/go.yaml create mode 100644 rules/sinks/third_parties/sdk/pagerduty/go.yaml create mode 100644 rules/sinks/third_parties/sdk/sentry/go.yaml create mode 100644 rules/sinks/third_parties/sdk/wavefront/go.yaml diff --git a/rules/sinks/third_parties/sdk/atlassian/go.yaml b/rules/sinks/third_parties/sdk/atlassian/go.yaml new file mode 100644 index 00000000..0d7edca4 --- /dev/null +++ b/rules/sinks/third_parties/sdk/atlassian/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Atlassian + name: Atlassian + domains: + - "atlassian.com" + patterns: + - "(?i)(github.com/andygrunwald/go-jira).*" + tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/cloudevents/go.yaml b/rules/sinks/third_parties/sdk/cloudevents/go.yaml new file mode 100644 index 00000000..6096e891 --- /dev/null +++ b/rules/sinks/third_parties/sdk/cloudevents/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Cloudevents + name: Cloudevents + domains: + - "cloudevents.io" + patterns: + - "(?i)(github.com/cloudevents/sdk-go).*" + tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/datadog/go.yaml b/rules/sinks/third_parties/sdk/datadog/go.yaml new file mode 100644 index 00000000..4f115776 --- /dev/null +++ b/rules/sinks/third_parties/sdk/datadog/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Datadog + name: Datadog + domains: + - "datadog.com" + patterns: + - "(?i)(https://github.com/DataDog/datadog-go).*" + tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/emersion/go.yaml b/rules/sinks/third_parties/sdk/emersion/go.yaml new file mode 100644 index 00000000..6bd48a56 --- /dev/null +++ b/rules/sinks/third_parties/sdk/emersion/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Emersion + name: Emersion + domains: + - "emersion.io" + patterns: + - "(?i)(github.com/emersion/)(go-sasl|smtp).*" + tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/google/go.yaml b/rules/sinks/third_parties/sdk/google/go.yaml new file mode 100644 index 00000000..e2eb1d24 --- /dev/null +++ b/rules/sinks/third_parties/sdk/google/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Google.Github + name: Google Github + domains: + - "github.google.com" + patterns: + - "(?i)(https://github.com/google/go-github).*" + tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/grafana/go.yaml b/rules/sinks/third_parties/sdk/grafana/go.yaml new file mode 100644 index 00000000..dbe54683 --- /dev/null +++ b/rules/sinks/third_parties/sdk/grafana/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.grafana + name: Grafana + domains: + - "grafana.com" + patterns: + - "(?i)(github.com/grafana-tools/sdk).*" + tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/hashicorp/go.yaml b/rules/sinks/third_parties/sdk/hashicorp/go.yaml new file mode 100644 index 00000000..f32a99ab --- /dev/null +++ b/rules/sinks/third_parties/sdk/hashicorp/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Hashicorp + name: Hashicorp + domains: + - "hashicorp.io" + patterns: + - "(?i)(https://github.com/hashicorp/consul).*" + tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/machineBox/go.yaml b/rules/sinks/third_parties/sdk/machineBox/go.yaml new file mode 100644 index 00000000..30b1ac0f --- /dev/null +++ b/rules/sinks/third_parties/sdk/machineBox/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Machinebox + name: MachineBox + domains: + - "machinebox.com" + patterns: + - "(?i)(github.com/machinebox/graphql).*" + tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/nats/go.yaml b/rules/sinks/third_parties/sdk/nats/go.yaml new file mode 100644 index 00000000..f2ab83fa --- /dev/null +++ b/rules/sinks/third_parties/sdk/nats/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Nats + name: Nats + domains: + - "nats.io" + patterns: + - "(?i)(github.com/nats-io/nats.go).*" + tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/openai/go.yaml b/rules/sinks/third_parties/sdk/openai/go.yaml new file mode 100644 index 00000000..fa74135d --- /dev/null +++ b/rules/sinks/third_parties/sdk/openai/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.OpenAI + name: OpenAI + domains: + - "openai.com" + patterns: + - "(?i)(https://github.com/sashabaranov/go-openai).*" + tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/pagerduty/go.yaml b/rules/sinks/third_parties/sdk/pagerduty/go.yaml new file mode 100644 index 00000000..3b12ab58 --- /dev/null +++ b/rules/sinks/third_parties/sdk/pagerduty/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Pagerduty + name: Pagerduty + domains: + - "pagerduty.com" + patterns: + - "(?i)(github.com/PagerDuty/go-pagerduty).*" + tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/sentry/go.yaml b/rules/sinks/third_parties/sdk/sentry/go.yaml new file mode 100644 index 00000000..b22a8ea6 --- /dev/null +++ b/rules/sinks/third_parties/sdk/sentry/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Sentry + name: Sentry + domains: + - "sentry.io" + patterns: + - "(?i)(github.com/getsentry/sentry-go).*" + tags: diff --git a/rules/sinks/third_parties/sdk/wavefront/go.yaml b/rules/sinks/third_parties/sdk/wavefront/go.yaml new file mode 100644 index 00000000..d3dd4c79 --- /dev/null +++ b/rules/sinks/third_parties/sdk/wavefront/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Wavefront + name: Wavefront + domains: + - "wavefront.com" + patterns: + - "(?i)(https://github.com/wavefronthq/wavefront-sdk-go).*" + tags: \ No newline at end of file From af6df339fb7cdf6a1a26efe10fc06d6840a9bb14 Mon Sep 17 00:00:00 2001 From: Ankit Kumar Date: Sun, 29 Oct 2023 21:20:02 +0530 Subject: [PATCH 3/8] Added more rules --- rules/sinks/third_parties/sdk/adyen/go.yaml | 13 ++++++ .../third_parties/sdk/alibabacloud/go.yaml | 13 ++++++ rules/sinks/third_parties/sdk/amazon/go.yaml | 13 ++++++ rules/sinks/third_parties/sdk/auth0/go.yaml | 13 ++++++ .../sdk/braintreepayments/go.yaml | 13 ++++++ .../third_parties/sdk/cloudevents/go.yaml | 2 +- rules/sinks/third_parties/sdk/datadog/go.yaml | 4 +- .../sinks/third_parties/sdk/datadoghq/go.yaml | 13 ++++++ rules/sinks/third_parties/sdk/delinea/go.yaml | 13 ++++++ rules/sinks/third_parties/sdk/dropbox/go.yaml | 13 ++++++ rules/sinks/third_parties/sdk/elastic/go.yaml | 13 ++++++ rules/sinks/third_parties/sdk/expo/go.yaml | 13 ++++++ .../sinks/third_parties/sdk/facebook/go.yaml | 13 ++++++ .../third_parties/sdk/gocharting/go.yaml | 13 ++++++ rules/sinks/third_parties/sdk/google/go.yaml | 45 ++++++++++++++++++- rules/sinks/third_parties/sdk/harbor/go.yaml | 4 +- .../sinks/third_parties/sdk/hashicorp/go.yaml | 8 ++-- .../third_parties/sdk/launchdarkly/go.yaml | 13 ++++++ .../sinks/third_parties/sdk/microsoft/go.yaml | 13 ++++++ .../sinks/third_parties/sdk/newrelic/go.yaml | 13 ++++++ rules/sinks/third_parties/sdk/okta/go.yaml | 13 ++++++ rules/sinks/third_parties/sdk/pulumi/go.yaml | 14 ++++++ rules/sinks/third_parties/sdk/slack/go.yaml | 13 ++++++ rules/sinks/third_parties/sdk/tencent/go.yaml | 13 ++++++ rules/sinks/third_parties/sdk/trello/go.yaml | 13 ++++++ rules/sinks/third_parties/sdk/twitter/go.yaml | 13 ++++++ .../third_parties/sdk/vaultproject/go.yaml | 13 ++++++ rules/sinks/third_parties/sdk/vmware/go.yaml | 13 ++++++ rules/sinks/third_parties/sdk/wechat/go.yaml | 13 ++++++ .../sinks/third_parties/sdk/whatsapp/go.yaml | 13 ++++++ rules/sinks/third_parties/sdk/workos/go.yaml | 13 ++++++ 31 files changed, 391 insertions(+), 11 deletions(-) create mode 100644 rules/sinks/third_parties/sdk/adyen/go.yaml create mode 100644 rules/sinks/third_parties/sdk/alibabacloud/go.yaml create mode 100644 rules/sinks/third_parties/sdk/amazon/go.yaml create mode 100644 rules/sinks/third_parties/sdk/auth0/go.yaml create mode 100644 rules/sinks/third_parties/sdk/braintreepayments/go.yaml create mode 100644 rules/sinks/third_parties/sdk/datadoghq/go.yaml create mode 100644 rules/sinks/third_parties/sdk/delinea/go.yaml create mode 100644 rules/sinks/third_parties/sdk/dropbox/go.yaml create mode 100644 rules/sinks/third_parties/sdk/elastic/go.yaml create mode 100644 rules/sinks/third_parties/sdk/expo/go.yaml create mode 100644 rules/sinks/third_parties/sdk/facebook/go.yaml create mode 100644 rules/sinks/third_parties/sdk/gocharting/go.yaml create mode 100644 rules/sinks/third_parties/sdk/launchdarkly/go.yaml create mode 100644 rules/sinks/third_parties/sdk/microsoft/go.yaml create mode 100644 rules/sinks/third_parties/sdk/newrelic/go.yaml create mode 100644 rules/sinks/third_parties/sdk/okta/go.yaml create mode 100644 rules/sinks/third_parties/sdk/pulumi/go.yaml create mode 100644 rules/sinks/third_parties/sdk/slack/go.yaml create mode 100644 rules/sinks/third_parties/sdk/tencent/go.yaml create mode 100644 rules/sinks/third_parties/sdk/trello/go.yaml create mode 100644 rules/sinks/third_parties/sdk/twitter/go.yaml create mode 100644 rules/sinks/third_parties/sdk/vaultproject/go.yaml create mode 100644 rules/sinks/third_parties/sdk/vmware/go.yaml create mode 100644 rules/sinks/third_parties/sdk/wechat/go.yaml create mode 100644 rules/sinks/third_parties/sdk/whatsapp/go.yaml create mode 100644 rules/sinks/third_parties/sdk/workos/go.yaml diff --git a/rules/sinks/third_parties/sdk/adyen/go.yaml b/rules/sinks/third_parties/sdk/adyen/go.yaml new file mode 100644 index 00000000..a869893b --- /dev/null +++ b/rules/sinks/third_parties/sdk/adyen/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Adyen + name: Adyen + domains: + - "adyen.com" + patterns: + - "(?i)(github.com)[\\/](adyen)[\\/](adyen-go-api-library).*" + tags: diff --git a/rules/sinks/third_parties/sdk/alibabacloud/go.yaml b/rules/sinks/third_parties/sdk/alibabacloud/go.yaml new file mode 100644 index 00000000..aae461be --- /dev/null +++ b/rules/sinks/third_parties/sdk/alibabacloud/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Alibabacloud + name: Alibabacloud + domains: + - "alibabacloud.com" + patterns: + - "(?i)(github.com)[\\/](hashicorp|aliyun|nacos-group|alibabacloud-go|cxr29|aliyunmq)[\\/](vault-plugin-auth-alicloud|vault-plugin-secrets-alicloud|alibaba-cloud-sdk-go\\/sdk\\/requests|nacos-sdk-go\\/clients|tea-oss-sdk\\/client|aliyun-oss-go-sdk|aliyun-log-go-sdk|aliyun-openapi-go-sdk|aliyun-datahub-sdk-go\\/datahub|fc-go-sdk|aliyun-mns-go-sdk|mq-http-go-sdk).*" + tags: diff --git a/rules/sinks/third_parties/sdk/amazon/go.yaml b/rules/sinks/third_parties/sdk/amazon/go.yaml new file mode 100644 index 00000000..fa7ba171 --- /dev/null +++ b/rules/sinks/third_parties/sdk/amazon/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Amazon.Aws + name: Amazon Aws + domains: + - "aws.amazon.com" + patterns: + - "(?i)(github.com|go.temporal.io|gitlab.bingosoft.net)[\\/](aws|aws-sdk|hashicorp|minio|qor|conku|qorpress|touyu|kisrobot|m-hosoi|aavshr|unicloud-uos|pendo-io|journeymidnight|SaiVishwas|shashank-sachan|jviney|pulumi|skmcgrail|jftuga|IBM|orozery|getlantern|alice02|golang|opentracing-contrib|dtannen|gametimesf|phacops|mattaitchison|peterdeka|euank|uber|rhnvrm)[\\/](aws-sdk-go|aws-lambda-go|minio-go|aws-cdk-go|smithy-go|amazon-pay-sdk-go|uos-sdk-go|pulumi-aws|sns_publish|ibm-cos-sdk-go|nifcloud-sdk-go|amazon-ecs-agent|go-firehose|go-kinesis|athenadriver|simples3).*" + tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/auth0/go.yaml b/rules/sinks/third_parties/sdk/auth0/go.yaml new file mode 100644 index 00000000..1af8e555 --- /dev/null +++ b/rules/sinks/third_parties/sdk/auth0/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Auth0 + name: Auth0 + domains: + - "auth0.com" + patterns: + - "(?i)(github.com)[\\/](auth0-community)[\\/](go-auth0).*" + tags: diff --git a/rules/sinks/third_parties/sdk/braintreepayments/go.yaml b/rules/sinks/third_parties/sdk/braintreepayments/go.yaml new file mode 100644 index 00000000..2f65052d --- /dev/null +++ b/rules/sinks/third_parties/sdk/braintreepayments/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Braintreepayments + name: Braintreepayments + domains: + - "braintreepayments.com" + patterns: + - "(?i)(github.com)[\\/](BoltApp)[\\/](braintree-go).*" + tags: diff --git a/rules/sinks/third_parties/sdk/cloudevents/go.yaml b/rules/sinks/third_parties/sdk/cloudevents/go.yaml index 6096e891..5eeea1a7 100644 --- a/rules/sinks/third_parties/sdk/cloudevents/go.yaml +++ b/rules/sinks/third_parties/sdk/cloudevents/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "cloudevents.io" patterns: - - "(?i)(github.com/cloudevents/sdk-go).*" + - "(?i)(github.com)[\\/](cloudevents)[\\/](sdk-go).*" tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/datadog/go.yaml b/rules/sinks/third_parties/sdk/datadog/go.yaml index 4f115776..bd6064d7 100644 --- a/rules/sinks/third_parties/sdk/datadog/go.yaml +++ b/rules/sinks/third_parties/sdk/datadog/go.yaml @@ -7,7 +7,7 @@ sinks: - id: ThirdParties.SDK.Datadog name: Datadog domains: - - "datadog.com" + - "datadoghq.com" patterns: - - "(?i)(https://github.com/DataDog/datadog-go).*" + - "(?i)(github.com)[\\/](DataDog)[\\/](datadog-go).*" tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/datadoghq/go.yaml b/rules/sinks/third_parties/sdk/datadoghq/go.yaml new file mode 100644 index 00000000..51b26a8b --- /dev/null +++ b/rules/sinks/third_parties/sdk/datadoghq/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Datadoghq + name: Datadoghq + domains: + - "datadoghq.com" + patterns: + - "(?i)(github.com)[\\/](DataDog)[\\/](opencensus-go-exporter-datadog).*" + tags: diff --git a/rules/sinks/third_parties/sdk/delinea/go.yaml b/rules/sinks/third_parties/sdk/delinea/go.yaml new file mode 100644 index 00000000..b6739483 --- /dev/null +++ b/rules/sinks/third_parties/sdk/delinea/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Delinea + name: Delinea + domains: + - "delinea.com/centrify" + patterns: + - "(?i)(github.com)[\\/](centrify)[\\/](cloud-golang-sdk).*" + tags: diff --git a/rules/sinks/third_parties/sdk/dropbox/go.yaml b/rules/sinks/third_parties/sdk/dropbox/go.yaml new file mode 100644 index 00000000..ae6adbc6 --- /dev/null +++ b/rules/sinks/third_parties/sdk/dropbox/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Dropbox + name: Dropbox + domains: + - "dropbox.com" + patterns: + - "(?i)(github.com)[\\/](dropbox|toanqng|henrikcozza|skynet-core)[\\/](dropbox-sdk-go-unofficial|dropbox-go-sdk).*" + tags: diff --git a/rules/sinks/third_parties/sdk/elastic/go.yaml b/rules/sinks/third_parties/sdk/elastic/go.yaml new file mode 100644 index 00000000..2767d6dc --- /dev/null +++ b/rules/sinks/third_parties/sdk/elastic/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Elastic + name: Elastic + domains: + - "elastic.co" + patterns: + - "(?i)(go.elastic.co|gopkg.in)[\\/](apm|olivere\\/elastic|go-elasticsearch).*" + tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/expo/go.yaml b/rules/sinks/third_parties/sdk/expo/go.yaml new file mode 100644 index 00000000..13259a1e --- /dev/null +++ b/rules/sinks/third_parties/sdk/expo/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Expo.Docs + name: Expo Docs + domains: + - "docs.expo.dev" + patterns: + - "(?i)(github.com)[\\/](adierkens|Terminux)[\\/](expo-server-sdk-go|exponent-server-sdk-go).*" + tags: diff --git a/rules/sinks/third_parties/sdk/facebook/go.yaml b/rules/sinks/third_parties/sdk/facebook/go.yaml new file mode 100644 index 00000000..ef0b34ef --- /dev/null +++ b/rules/sinks/third_parties/sdk/facebook/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Facebook + name: Facebook + domains: + - "facebook.com" + patterns: + - "(?i)(github.com)[\\/](madebyais|muhfaris|bnjjj)[\\/](facebook-go-sdk|gomessenger).*" + tags: diff --git a/rules/sinks/third_parties/sdk/gocharting/go.yaml b/rules/sinks/third_parties/sdk/gocharting/go.yaml new file mode 100644 index 00000000..e6f2dd74 --- /dev/null +++ b/rules/sinks/third_parties/sdk/gocharting/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Gocharting + name: Gocharting + domains: + - "gocharting.com" + patterns: + - "(?i)(github.com)[\\/](wcharczuk)[\\/](go-chart).*" + tags: diff --git a/rules/sinks/third_parties/sdk/google/go.yaml b/rules/sinks/third_parties/sdk/google/go.yaml index e2eb1d24..d4e196e1 100644 --- a/rules/sinks/third_parties/sdk/google/go.yaml +++ b/rules/sinks/third_parties/sdk/google/go.yaml @@ -4,10 +4,51 @@ sinks: + - id: ThirdParties.SDK.Google.Cloud + name: Google Cloud + domains: + - "cloud.google.com" + patterns: + - "(?i)(github.com|cloud.google.com)[\\/](GoogleCloudPlatform|googleapis|fsouza|gogo|go|graymeta)[\\/](k8s-cloud-provider|enterprise-certificate-proxy|fake-gcs-server|googleapis|cloudtasks|language|automl|video|securitycenter|videointelligence|dataproc|monitoring|secretmanager|storagetransfer|texttospeech|gaming|opentelemetry-operations-go|asset|functions-framework-go|servicedirectory|speech|container|kms|dlp|grafeas|functions|/pubsublite|compute|talent|stow).*" + tags: + - id: ThirdParties.SDK.Google.Github name: Google Github domains: - "github.google.com" patterns: - - "(?i)(https://github.com/google/go-github).*" - tags: \ No newline at end of file + - "(?i)(github.com\\/google\\/go-github).*" + tags: + + - id: ThirdParties.SDK.Google.Map + name: Google Map + domains: + - "map.google.com" + patterns: + - "(?i)(googlemaps.github.io\\/maps).*" + tags: + + - id: ThirdParties.SDK.Google.Firebase + name: Google Firebase + domains: + - "firebase.google.com" + patterns: + - "(?i)(github.com)[\\/](firebase.google.com|acoshift)[\\/](go).*" + tags: + + - id: ThirdParties.SDK.Google.Cloud.GRPC + name: Google Cloud GRPC + domains: + - "cloud.google.com/endpoints/docs/grpc" + patterns: + - "(?i)(github.com)[\\/](GoogleCloudPlatform)[\\/](golang-samples\\/run\\/grpc-ping).*" + tags: + + - id: ThirdParties.SDK.Google.Cloud.Firestore + name: Google Cloud Firestore + domains: + - "firebase.google.com" + patterns: + - "(?i)(github.com)[\\/](GoogleCloudPlatform)[\\/](firestore-gorilla-sessions).*" + tags: + diff --git a/rules/sinks/third_parties/sdk/harbor/go.yaml b/rules/sinks/third_parties/sdk/harbor/go.yaml index ff3269d7..6d320c2e 100644 --- a/rules/sinks/third_parties/sdk/harbor/go.yaml +++ b/rules/sinks/third_parties/sdk/harbor/go.yaml @@ -7,7 +7,7 @@ sinks: - id: ThirdParties.SDK.Harbor name: Harbor domains: - - "harbor.io" + - "goharbor.io" patterns: - - "(?i)(github.com/goharbor/go-client).*" + - "(?i)(github.com)[\\/](goharbor)[\\/](go-client).*" tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/hashicorp/go.yaml b/rules/sinks/third_parties/sdk/hashicorp/go.yaml index f32a99ab..7a9b5487 100644 --- a/rules/sinks/third_parties/sdk/hashicorp/go.yaml +++ b/rules/sinks/third_parties/sdk/hashicorp/go.yaml @@ -4,10 +4,10 @@ sinks: - - id: ThirdParties.SDK.Hashicorp - name: Hashicorp + - id: ThirdParties.SDK.Hashicorp.consul + name: Hashicorp Consul domains: - - "hashicorp.io" + - "consul.io" patterns: - - "(?i)(https://github.com/hashicorp/consul).*" + - "(?i)(github.com)[\\/](hashicorp)[\\/](consul|terraform-plugin-sdk).*" tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/launchdarkly/go.yaml b/rules/sinks/third_parties/sdk/launchdarkly/go.yaml new file mode 100644 index 00000000..8d3068d4 --- /dev/null +++ b/rules/sinks/third_parties/sdk/launchdarkly/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Launchdarkly + name: Launchdarkly + domains: + - "launchdarkly.com" + patterns: + - "(?i)(github.com)[\\/](launchdarkly)[\\/](eventsource).*" + tags: diff --git a/rules/sinks/third_parties/sdk/microsoft/go.yaml b/rules/sinks/third_parties/sdk/microsoft/go.yaml new file mode 100644 index 00000000..0df100ad --- /dev/null +++ b/rules/sinks/third_parties/sdk/microsoft/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Microsoft + name: Microsoft + domains: + - "azure.microsoft.com" + patterns: + - "(?i)(github.com)[\\/](Azure|AzureAD|microsoft|MSOpenTech|kris-nova|kubicorn|pulumi|vmware|SsrCoder|pmalek-sumo|wiz-sec|jackesdavid|msopentech|discentem|dennis-menge|veertuinc|beyondnetworks|peterzeller|dbaur|larstore|johnstairs|tadelesh|hashicorp|tombuildsstuff)[\\/](azure-pipeline-go|azure-sdk-for-go|kiota\\/abstractions\\/go|kubicorn\\/cloud\\/azure|pulumi-azure|vra-sdk-go\\/pkg\\/client\\/fabric_azure_storage_account|onedrive-sdk-golang|go-autorest|go-ntlmssp|vault-plugin-auth-azure|go-azure-helpers|giovanni|azure-devops-go-api|azure-service-bus-go|go-amqp|azure-amqp-common-go|microsoft-authentication-library-for-go).*" + tags: diff --git a/rules/sinks/third_parties/sdk/newrelic/go.yaml b/rules/sinks/third_parties/sdk/newrelic/go.yaml new file mode 100644 index 00000000..54932198 --- /dev/null +++ b/rules/sinks/third_parties/sdk/newrelic/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Newrelic + name: Newrelic + domains: + - "newrelic.com" + patterns: + - "(?i)(github.com)[\\/](newrelic)[\\/](go-agent).*" + tags: diff --git a/rules/sinks/third_parties/sdk/okta/go.yaml b/rules/sinks/third_parties/sdk/okta/go.yaml new file mode 100644 index 00000000..f0e5f69e --- /dev/null +++ b/rules/sinks/third_parties/sdk/okta/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Okta + name: Okta + domains: + - "okta.com" + patterns: + - "(?i)(github.com)[\\/](chrismalek)[\\/](oktasdk-go).*" + tags: diff --git a/rules/sinks/third_parties/sdk/pulumi/go.yaml b/rules/sinks/third_parties/sdk/pulumi/go.yaml new file mode 100644 index 00000000..1c476430 --- /dev/null +++ b/rules/sinks/third_parties/sdk/pulumi/go.yaml @@ -0,0 +1,14 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Pulumi + name: Pulumi + domains: + - "pulumi.com" + patterns: + - "(?i)(github.com)[\\/](pulumi)[\\/](pulumi\\/sdk).*" + tags: + diff --git a/rules/sinks/third_parties/sdk/slack/go.yaml b/rules/sinks/third_parties/sdk/slack/go.yaml new file mode 100644 index 00000000..5278e841 --- /dev/null +++ b/rules/sinks/third_parties/sdk/slack/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Slack + name: Slack + domains: + - "slack.com" + patterns: + - "(?i)(github.com)[\\/](blend|totvs|gogurgaon|seratch|ericogr|lacework|totvs)[\\/](go-sdk\\/slack|pulumi-slack\\/sdk|joinslack\\/api|go-slack-sdk-experimental|pulumi-resource-slack\\/sdk\\/go|pulumi-slack\\/sdk\\/go|go-sdk\\/api|pulumi-slack-remover).*" + tags: diff --git a/rules/sinks/third_parties/sdk/tencent/go.yaml b/rules/sinks/third_parties/sdk/tencent/go.yaml new file mode 100644 index 00000000..ea6e4c24 --- /dev/null +++ b/rules/sinks/third_parties/sdk/tencent/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Tencent + name: Tencent + domains: + - "tencent.com" + patterns: + - "(?i)(github.com)[\\/](tencentcloud)[\\/](tencentcloud-sdk-go).*" + tags: diff --git a/rules/sinks/third_parties/sdk/trello/go.yaml b/rules/sinks/third_parties/sdk/trello/go.yaml new file mode 100644 index 00000000..d9c3858c --- /dev/null +++ b/rules/sinks/third_parties/sdk/trello/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Hashicorp.Trello + name: Trello + domains: + - "trello.com" + patterns: + - "(?i)(github.com)[\\/](adlio)[\\/](trello).*" + tags: diff --git a/rules/sinks/third_parties/sdk/twitter/go.yaml b/rules/sinks/third_parties/sdk/twitter/go.yaml new file mode 100644 index 00000000..cf7920f3 --- /dev/null +++ b/rules/sinks/third_parties/sdk/twitter/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Twitter + name: Twitter + domains: + - "twitter.com" + patterns: + - "(?i)(github.com)[\\/](contextgg)[\\/](go-sdk\\/autha\\/providers\\/twitter).*" + tags: diff --git a/rules/sinks/third_parties/sdk/vaultproject/go.yaml b/rules/sinks/third_parties/sdk/vaultproject/go.yaml new file mode 100644 index 00000000..9d4ccdaa --- /dev/null +++ b/rules/sinks/third_parties/sdk/vaultproject/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Hashicorp.vault + name: Hashicorp Vault + domains: + - "vaultproject.io" + patterns: + - "(?i)(github.com)[\\/](hashicorp)[\\/](vault-plugin-auth-kerberos|vault-plugin-auth-kubernetes|vault-plugin-auth-oci|vault-plugin-secrets-ad|vault-plugin-secrets-kv|vault-plugin-secrets-openldap|vault-plugin-secrets-terraform).*" + tags: diff --git a/rules/sinks/third_parties/sdk/vmware/go.yaml b/rules/sinks/third_parties/sdk/vmware/go.yaml new file mode 100644 index 00000000..b086cce9 --- /dev/null +++ b/rules/sinks/third_parties/sdk/vmware/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Vmware + name: Vmware + domains: + - "vmware.com" + patterns: + - "(?i)(github.com)[\\/](vmware|clumio-code|laidbackware)[\\/](vsphere-automation-sdk-go|alb-sdk|photon-controller-go-sdk|vra-sdk-go\\/pkg\\/client|clumio-go-sdk\\/controllers|vmware-download-sdk).*" + tags: diff --git a/rules/sinks/third_parties/sdk/wechat/go.yaml b/rules/sinks/third_parties/sdk/wechat/go.yaml new file mode 100644 index 00000000..d449c8b7 --- /dev/null +++ b/rules/sinks/third_parties/sdk/wechat/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Wechat + name: Wechat + domains: + - "wechat.com" + patterns: + - "(?i)(github.com)[\\/](chanxuehong|chanxuehong|XieXianbin|esap)[\\/](wechat).*" + tags: diff --git a/rules/sinks/third_parties/sdk/whatsapp/go.yaml b/rules/sinks/third_parties/sdk/whatsapp/go.yaml new file mode 100644 index 00000000..6628f39b --- /dev/null +++ b/rules/sinks/third_parties/sdk/whatsapp/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Whatsapp + name: Whatsapp + domains: + - "whatsapp.com" + patterns: + - "(?i)(github.com)[\\/](Rhymen)[\\/](go-whatsapp).*" + tags: diff --git a/rules/sinks/third_parties/sdk/workos/go.yaml b/rules/sinks/third_parties/sdk/workos/go.yaml new file mode 100644 index 00000000..23a859d9 --- /dev/null +++ b/rules/sinks/third_parties/sdk/workos/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Workos + name: Workos + domains: + - "workos.com" + patterns: + - "(?i)(github.com)[\\/](workos)[\\/](workos-go).*" + tags: From c2c6b46f51b92df957e3bc48002291df62538fe9 Mon Sep 17 00:00:00 2001 From: Ankit Kumar Date: Mon, 30 Oct 2023 10:38:08 +0530 Subject: [PATCH 4/8] added more rules --- .../sinks/third_parties/sdk/africastalking/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/aftership/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/alibabacloud/go.yaml | 2 +- rules/sinks/third_parties/sdk/amplitude/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/auth0/go.yaml | 2 +- rules/sinks/third_parties/sdk/bing/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/callr/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/checkout/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/consul/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/dropbox/go.yaml | 2 +- rules/sinks/third_parties/sdk/ebay/go.yaml | 12 ++++++++++++ rules/sinks/third_parties/sdk/evernote/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/github/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/gitlab/go.yaml | 12 ++++++++++++ rules/sinks/third_parties/sdk/hubspot/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/instana/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/kucoin/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/launchdarkly/go.yaml | 2 +- rules/sinks/third_parties/sdk/line/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/liqpay/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/mercadolibre/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/minio/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/nats/go.yaml | 2 +- rules/sinks/third_parties/sdk/onesignal/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/paypal/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/segment/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/sendgrid/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/sensorsdata/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/sentry/go.yaml | 2 +- rules/sinks/third_parties/sdk/shopify/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/squareup/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/stripe/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/taobao/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/temporal/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/tencent/go.yaml | 8 ++++++++ rules/sinks/third_parties/sdk/transbank/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/uber/go.yaml | 2 +- rules/sinks/third_parties/sdk/umeng/go.yaml | 13 +++++++++++++ .../sinks/third_parties/sdk/virgilsecurity/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/wechat/go.yaml | 2 +- rules/sinks/third_parties/sdk/xiaomi/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/yandex/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/yoomoney/go.yaml | 13 +++++++++++++ rules/sinks/third_parties/sdk/yunpian/go.yaml | 13 +++++++++++++ 44 files changed, 469 insertions(+), 8 deletions(-) create mode 100644 rules/sinks/third_parties/sdk/africastalking/go.yaml create mode 100644 rules/sinks/third_parties/sdk/aftership/go.yaml create mode 100644 rules/sinks/third_parties/sdk/amplitude/go.yaml create mode 100644 rules/sinks/third_parties/sdk/bing/go.yaml create mode 100644 rules/sinks/third_parties/sdk/callr/go.yaml create mode 100644 rules/sinks/third_parties/sdk/checkout/go.yaml create mode 100644 rules/sinks/third_parties/sdk/consul/go.yaml create mode 100644 rules/sinks/third_parties/sdk/ebay/go.yaml create mode 100644 rules/sinks/third_parties/sdk/evernote/go.yaml create mode 100644 rules/sinks/third_parties/sdk/github/go.yaml create mode 100644 rules/sinks/third_parties/sdk/gitlab/go.yaml create mode 100644 rules/sinks/third_parties/sdk/hubspot/go.yaml create mode 100644 rules/sinks/third_parties/sdk/instana/go.yaml create mode 100644 rules/sinks/third_parties/sdk/kucoin/go.yaml create mode 100644 rules/sinks/third_parties/sdk/line/go.yaml create mode 100644 rules/sinks/third_parties/sdk/liqpay/go.yaml create mode 100644 rules/sinks/third_parties/sdk/mercadolibre/go.yaml create mode 100644 rules/sinks/third_parties/sdk/minio/go.yaml create mode 100644 rules/sinks/third_parties/sdk/onesignal/go.yaml create mode 100644 rules/sinks/third_parties/sdk/paypal/go.yaml create mode 100644 rules/sinks/third_parties/sdk/segment/go.yaml create mode 100644 rules/sinks/third_parties/sdk/sendgrid/go.yaml create mode 100644 rules/sinks/third_parties/sdk/sensorsdata/go.yaml create mode 100644 rules/sinks/third_parties/sdk/shopify/go.yaml create mode 100644 rules/sinks/third_parties/sdk/squareup/go.yaml create mode 100644 rules/sinks/third_parties/sdk/stripe/go.yaml create mode 100644 rules/sinks/third_parties/sdk/taobao/go.yaml create mode 100644 rules/sinks/third_parties/sdk/temporal/go.yaml create mode 100644 rules/sinks/third_parties/sdk/transbank/go.yaml create mode 100644 rules/sinks/third_parties/sdk/umeng/go.yaml create mode 100644 rules/sinks/third_parties/sdk/virgilsecurity/go.yaml create mode 100644 rules/sinks/third_parties/sdk/xiaomi/go.yaml create mode 100644 rules/sinks/third_parties/sdk/yandex/go.yaml create mode 100644 rules/sinks/third_parties/sdk/yoomoney/go.yaml create mode 100644 rules/sinks/third_parties/sdk/yunpian/go.yaml diff --git a/rules/sinks/third_parties/sdk/africastalking/go.yaml b/rules/sinks/third_parties/sdk/africastalking/go.yaml new file mode 100644 index 00000000..bfd9fcea --- /dev/null +++ b/rules/sinks/third_parties/sdk/africastalking/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Africastalking + name: Africastalking + domains: + - "africastalking.com" + patterns: + - "(?i)(github.com)[\\/](kingzbauer)[\\/](africastalking-go).*" + tags: diff --git a/rules/sinks/third_parties/sdk/aftership/go.yaml b/rules/sinks/third_parties/sdk/aftership/go.yaml new file mode 100644 index 00000000..73fefbbd --- /dev/null +++ b/rules/sinks/third_parties/sdk/aftership/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Aftership + name: Aftership + domains: + - "aftership.com" + patterns: + - "(?i)(github.com)[\\/](jackharley7|aftership)[\\/](aftership-sdk-go|).*" + tags: diff --git a/rules/sinks/third_parties/sdk/alibabacloud/go.yaml b/rules/sinks/third_parties/sdk/alibabacloud/go.yaml index aae461be..403c7ea0 100644 --- a/rules/sinks/third_parties/sdk/alibabacloud/go.yaml +++ b/rules/sinks/third_parties/sdk/alibabacloud/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "alibabacloud.com" patterns: - - "(?i)(github.com)[\\/](hashicorp|aliyun|nacos-group|alibabacloud-go|cxr29|aliyunmq)[\\/](vault-plugin-auth-alicloud|vault-plugin-secrets-alicloud|alibaba-cloud-sdk-go\\/sdk\\/requests|nacos-sdk-go\\/clients|tea-oss-sdk\\/client|aliyun-oss-go-sdk|aliyun-log-go-sdk|aliyun-openapi-go-sdk|aliyun-datahub-sdk-go\\/datahub|fc-go-sdk|aliyun-mns-go-sdk|mq-http-go-sdk).*" + - "(?i)(github.com)[\\/](hashicorp|aliyun|nacos-group|alibabacloud-go|cxr29|aliyunmq|tencentyun|huaweicloud|RandolphCYG|likexian)[\\/](vault-plugin-auth-alicloud|vault-plugin-secrets-alicloud|alibaba-cloud-sdk-go\\/sdk\\/requests|nacos-sdk-go\\/clients|tea-oss-sdk\\/client|aliyun-oss-go-sdk|aliyun-log-go-sdk|aliyun-openapi-go-sdk|aliyun-datahub-sdk-go\\/datahub|fc-go-sdk|aliyun-mns-go-sdk|mq-http-go-sdk|vod-go-sdk|huaweicloud-sdk-go|hwc-sdk\\/services|tencentcloud-sdk-go).*" tags: diff --git a/rules/sinks/third_parties/sdk/amplitude/go.yaml b/rules/sinks/third_parties/sdk/amplitude/go.yaml new file mode 100644 index 00000000..23e89c8d --- /dev/null +++ b/rules/sinks/third_parties/sdk/amplitude/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Amplitude + name: Amplitude + domains: + - "amplitude.com" + patterns: + - "(?i)(github.com)[\\/](renatoaf|gotokatsuya)[\\/](amplitude-go|amplitude-sdk-go).*" + tags: diff --git a/rules/sinks/third_parties/sdk/auth0/go.yaml b/rules/sinks/third_parties/sdk/auth0/go.yaml index 1af8e555..c09b40bf 100644 --- a/rules/sinks/third_parties/sdk/auth0/go.yaml +++ b/rules/sinks/third_parties/sdk/auth0/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "auth0.com" patterns: - - "(?i)(github.com)[\\/](auth0-community)[\\/](go-auth0).*" + - "(?i)(github.com)[\\/](auth0-community|pulumi|auth0-lab)[\\/](go-auth0|pulumi-auth0\\/sdk\\/v2\\/go\\/auth0|fga-go-sdk).*" tags: diff --git a/rules/sinks/third_parties/sdk/bing/go.yaml b/rules/sinks/third_parties/sdk/bing/go.yaml new file mode 100644 index 00000000..081c710f --- /dev/null +++ b/rules/sinks/third_parties/sdk/bing/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Bing + name: Bing + domains: + - "bing.com" + patterns: + - "(?i)(github.com)[\\/](kritzware|chigley|godofdream)[\\/](bing-ads-go-sdk).*" + tags: diff --git a/rules/sinks/third_parties/sdk/callr/go.yaml b/rules/sinks/third_parties/sdk/callr/go.yaml new file mode 100644 index 00000000..b15c2aa0 --- /dev/null +++ b/rules/sinks/third_parties/sdk/callr/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Callr + name: Callr + domains: + - "callr.com" + patterns: + - "(?i)(github.com)[\\/](THECALLR)[\\/](sdk-go).*" + tags: diff --git a/rules/sinks/third_parties/sdk/checkout/go.yaml b/rules/sinks/third_parties/sdk/checkout/go.yaml new file mode 100644 index 00000000..03b86d11 --- /dev/null +++ b/rules/sinks/third_parties/sdk/checkout/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Checkout + name: Checkout + domains: + - "checkout.com" + patterns: + - "(?i)(github.com)[\\/](checkout)[\\/](checkout-sdk-go\\/payments).*" + tags: diff --git a/rules/sinks/third_parties/sdk/consul/go.yaml b/rules/sinks/third_parties/sdk/consul/go.yaml new file mode 100644 index 00000000..16eeee08 --- /dev/null +++ b/rules/sinks/third_parties/sdk/consul/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Consul + name: Consul + domains: + - "consul.io" + patterns: + - "(?i)(github.com|gopkg.in)[\\/](launchdarkly|yingyingtang-brex|hashicorp)[\\/](go-server-sdk.v4|go-server-sdk-consul|go-server-sdk\\/ldconsul|go-client.v4\\/ldconsul|go-client\\/ldconsul|packer-plugin-sdk\\/template|waypoint-plugin-sdk).*" + tags: diff --git a/rules/sinks/third_parties/sdk/dropbox/go.yaml b/rules/sinks/third_parties/sdk/dropbox/go.yaml index ae6adbc6..e8d6e442 100644 --- a/rules/sinks/third_parties/sdk/dropbox/go.yaml +++ b/rules/sinks/third_parties/sdk/dropbox/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "dropbox.com" patterns: - - "(?i)(github.com)[\\/](dropbox|toanqng|henrikcozza|skynet-core)[\\/](dropbox-sdk-go-unofficial|dropbox-go-sdk).*" + - "(?i)(github.com)[\\/](dropbox|toanqng|henrikcozza|skynet-core|neevaco|herval|ncw|milanaleksic|gwatts|hushed|ga-con|intello-io)[\\/](dropbox-sdk-go-unofficial|dropbox-go-sdk).*" tags: diff --git a/rules/sinks/third_parties/sdk/ebay/go.yaml b/rules/sinks/third_parties/sdk/ebay/go.yaml new file mode 100644 index 00000000..7bbdb363 --- /dev/null +++ b/rules/sinks/third_parties/sdk/ebay/go.yaml @@ -0,0 +1,12 @@ +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Ebay + name: Ebay + domains: + - "ebay.com" + patterns: + - "(?i)(github.com)[\\/](feelinc)[\\/](go_ebay_sdk).*" + tags: diff --git a/rules/sinks/third_parties/sdk/evernote/go.yaml b/rules/sinks/third_parties/sdk/evernote/go.yaml new file mode 100644 index 00000000..553b218b --- /dev/null +++ b/rules/sinks/third_parties/sdk/evernote/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Evernote + name: Evernote + domains: + - "evernote.com" + patterns: + - "(?i)(github.com)[\\/](TcM1911|dreampuf|quekshuy|aliabdullahcp|double1996|shinofara|tcm1911)[\\/](evernote-sdk-golang|evernote-golang-sdk).*" + tags: diff --git a/rules/sinks/third_parties/sdk/github/go.yaml b/rules/sinks/third_parties/sdk/github/go.yaml new file mode 100644 index 00000000..0168dfc2 --- /dev/null +++ b/rules/sinks/third_parties/sdk/github/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Github + name: Github + domains: + - "github.com" + patterns: + - "(?i)(github.com)[\\/](gogs)[\\/](git-module).*" + tags: diff --git a/rules/sinks/third_parties/sdk/gitlab/go.yaml b/rules/sinks/third_parties/sdk/gitlab/go.yaml new file mode 100644 index 00000000..7831785f --- /dev/null +++ b/rules/sinks/third_parties/sdk/gitlab/go.yaml @@ -0,0 +1,12 @@ +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Gitlab + name: Gitlab + domains: + - "gitlab.com" + patterns: + - "(?i)(github.com)[\\/](xanzy)[\\/](go-gitlab).*" + tags: diff --git a/rules/sinks/third_parties/sdk/hubspot/go.yaml b/rules/sinks/third_parties/sdk/hubspot/go.yaml new file mode 100644 index 00000000..b68efe88 --- /dev/null +++ b/rules/sinks/third_parties/sdk/hubspot/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Hubspot + name: Hubspot + domains: + - "hubspot.com" + patterns: + - "(?i)(github.com)[\\/](getwagz|Getwagz)[\\/](hubspot-sdk).*" + tags: diff --git a/rules/sinks/third_parties/sdk/instana/go.yaml b/rules/sinks/third_parties/sdk/instana/go.yaml new file mode 100644 index 00000000..0fae19d3 --- /dev/null +++ b/rules/sinks/third_parties/sdk/instana/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Instana + name: Instana + domains: + - "instana.com" + patterns: + - "(?i)(github.com)[\\/](instana)[\\/](go-sensor).*" + tags: diff --git a/rules/sinks/third_parties/sdk/kucoin/go.yaml b/rules/sinks/third_parties/sdk/kucoin/go.yaml new file mode 100644 index 00000000..e5ea4aeb --- /dev/null +++ b/rules/sinks/third_parties/sdk/kucoin/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Kucoin + name: Kucoin + domains: + - "kucoin.com" + patterns: + - "(?i)(github.com)[\\/](Kucoin|aharenaz|newgoo|reid-garner|orrelln|blackbittech)[\\/](kucoin-go-sdk|kumex-go-sdk|kucoin-futures-go-sdk).*" + tags: diff --git a/rules/sinks/third_parties/sdk/launchdarkly/go.yaml b/rules/sinks/third_parties/sdk/launchdarkly/go.yaml index 8d3068d4..392a50f9 100644 --- a/rules/sinks/third_parties/sdk/launchdarkly/go.yaml +++ b/rules/sinks/third_parties/sdk/launchdarkly/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "launchdarkly.com" patterns: - - "(?i)(github.com)[\\/](launchdarkly)[\\/](eventsource).*" + - "(?i)(github.com)[\\/](launchdarkly)[\\/](eventsource|go-sdk-common|go-server-sdk|go-server-sdk-evaluation|go-server-sdk-redis-redigo).*" tags: diff --git a/rules/sinks/third_parties/sdk/line/go.yaml b/rules/sinks/third_parties/sdk/line/go.yaml new file mode 100644 index 00000000..22cea07c --- /dev/null +++ b/rules/sinks/third_parties/sdk/line/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Line + name: Line + domains: + - "line.me" + patterns: + - "(?i)(github.com)[\\/](gotokatsuya|chy168)[\\/](line-pay-sdk-go).*" + tags: diff --git a/rules/sinks/third_parties/sdk/liqpay/go.yaml b/rules/sinks/third_parties/sdk/liqpay/go.yaml new file mode 100644 index 00000000..83c5b0b0 --- /dev/null +++ b/rules/sinks/third_parties/sdk/liqpay/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Liqpay + name: Liqpay + domains: + - "liqpay.ua" + patterns: + - "(?i)(github.com)[\\/](liqpay)[\\/](go-sdk).*" + tags: diff --git a/rules/sinks/third_parties/sdk/mercadolibre/go.yaml b/rules/sinks/third_parties/sdk/mercadolibre/go.yaml new file mode 100644 index 00000000..b101ecdf --- /dev/null +++ b/rules/sinks/third_parties/sdk/mercadolibre/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Mercadolibre + name: Mercadolibre + domains: + - "mercadolibre.com" + patterns: + - "(?i)(github.com)[\\/](tiaguinho|mercadolibre)[\\/](mercadolibre-go-sdk|golang-sdk).*" + tags: diff --git a/rules/sinks/third_parties/sdk/minio/go.yaml b/rules/sinks/third_parties/sdk/minio/go.yaml new file mode 100644 index 00000000..2b16949f --- /dev/null +++ b/rules/sinks/third_parties/sdk/minio/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Min + name: Min + domains: + - "min.io" + patterns: + - "(?i)(github.com)[\\/](minio)[\\/](mc).*" + tags: diff --git a/rules/sinks/third_parties/sdk/nats/go.yaml b/rules/sinks/third_parties/sdk/nats/go.yaml index f2ab83fa..1db42a4f 100644 --- a/rules/sinks/third_parties/sdk/nats/go.yaml +++ b/rules/sinks/third_parties/sdk/nats/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "nats.io" patterns: - - "(?i)(github.com/nats-io/nats.go).*" + - "(?i)(github.com)[\\/](nats-io)[\\/](nats.go).*" tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/onesignal/go.yaml b/rules/sinks/third_parties/sdk/onesignal/go.yaml new file mode 100644 index 00000000..32e8d100 --- /dev/null +++ b/rules/sinks/third_parties/sdk/onesignal/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Onesignal + name: Onesignal + domains: + - "onesignal.com" + patterns: + - "(?i)(github.com)[\\/](peelz|KodepandaID)[\\/](onesignal-go-sdk|go-onesignal-sdk).*" + tags: diff --git a/rules/sinks/third_parties/sdk/paypal/go.yaml b/rules/sinks/third_parties/sdk/paypal/go.yaml new file mode 100644 index 00000000..6886f63a --- /dev/null +++ b/rules/sinks/third_parties/sdk/paypal/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Paypal + name: Paypal + domains: + - "paypal.com" + patterns: + - "(?i)(github.com)[\\/](logpacker)[\\/](PayPal-Go-SDK).*" + tags: diff --git a/rules/sinks/third_parties/sdk/segment/go.yaml b/rules/sinks/third_parties/sdk/segment/go.yaml new file mode 100644 index 00000000..13577bc9 --- /dev/null +++ b/rules/sinks/third_parties/sdk/segment/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Segment + name: Segment + domains: + - "segment.com" + patterns: + - "(?i)(github.com)[\\/](segmentio)[\\/](asm).*" + tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/sendgrid/go.yaml b/rules/sinks/third_parties/sdk/sendgrid/go.yaml new file mode 100644 index 00000000..260c3399 --- /dev/null +++ b/rules/sinks/third_parties/sdk/sendgrid/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Sendgrid + name: Sendgrid + domains: + - "sendgrid.com" + patterns: + - "(?i)(gopkg.in|github.com)[\\/](sendgrid)[\\/](sendgrid-go|smtpapi-go).*" + tags: diff --git a/rules/sinks/third_parties/sdk/sensorsdata/go.yaml b/rules/sinks/third_parties/sdk/sensorsdata/go.yaml new file mode 100644 index 00000000..55b5ddcc --- /dev/null +++ b/rules/sinks/third_parties/sdk/sensorsdata/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Sensorsdata + name: Sensorsdata + domains: + - "sensorsdata.cn" + patterns: + - "(?i)(github.com)[\\/](sensorsdata)[\\/](sa-sdk-go\\/structs|abtesting-sdk-go).*" + tags: diff --git a/rules/sinks/third_parties/sdk/sentry/go.yaml b/rules/sinks/third_parties/sdk/sentry/go.yaml index b22a8ea6..8cb3f3ab 100644 --- a/rules/sinks/third_parties/sdk/sentry/go.yaml +++ b/rules/sinks/third_parties/sdk/sentry/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "sentry.io" patterns: - - "(?i)(github.com/getsentry/sentry-go).*" + - "(?i)(github.com)[\\/](getsentry|harmony-development|blend)[\\/](sentry-go|go-sdk\\/sentry).*" tags: diff --git a/rules/sinks/third_parties/sdk/shopify/go.yaml b/rules/sinks/third_parties/sdk/shopify/go.yaml new file mode 100644 index 00000000..7d1bdc47 --- /dev/null +++ b/rules/sinks/third_parties/sdk/shopify/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Shopify + name: Shopify + domains: + - "shopify.com" + patterns: + - "(?i)(github.com)[\\/](cloudevents)[\\/](sdk-go).*" + tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/squareup/go.yaml b/rules/sinks/third_parties/sdk/squareup/go.yaml new file mode 100644 index 00000000..a5f16ffb --- /dev/null +++ b/rules/sinks/third_parties/sdk/squareup/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Squareup + name: Squareup + domains: + - "squareup.com" + patterns: + - "(?i)(github.com)[\\/](square)[\\/](square-connect-go-sdk).*" + tags: diff --git a/rules/sinks/third_parties/sdk/stripe/go.yaml b/rules/sinks/third_parties/sdk/stripe/go.yaml new file mode 100644 index 00000000..77132d08 --- /dev/null +++ b/rules/sinks/third_parties/sdk/stripe/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Stripe + name: Stripe + domains: + - "stripe.com" + patterns: + - "(?i)(github.com)[\\/](stripe)[\\/](stripe-go).*" + tags: diff --git a/rules/sinks/third_parties/sdk/taobao/go.yaml b/rules/sinks/third_parties/sdk/taobao/go.yaml new file mode 100644 index 00000000..d693f8c0 --- /dev/null +++ b/rules/sinks/third_parties/sdk/taobao/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Taobao + name: Taobao + domains: + - "taobao.com" + patterns: + - "(?i)(github.com)[\\/](changkong|yaofangou|beJuvenile)[\\/](open_taobao|go-sdk-taobao).*" + tags: diff --git a/rules/sinks/third_parties/sdk/temporal/go.yaml b/rules/sinks/third_parties/sdk/temporal/go.yaml new file mode 100644 index 00000000..78cccf42 --- /dev/null +++ b/rules/sinks/third_parties/sdk/temporal/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Temporal + name: Temporal + domains: + - "temporal.io" + patterns: + - "(?i)(github.com)[\\/](spiral|cretz)[\\/](go-sdk\\/temporal|temporal-sdk-go-advanced).*" + tags: diff --git a/rules/sinks/third_parties/sdk/tencent/go.yaml b/rules/sinks/third_parties/sdk/tencent/go.yaml index ea6e4c24..c902c772 100644 --- a/rules/sinks/third_parties/sdk/tencent/go.yaml +++ b/rules/sinks/third_parties/sdk/tencent/go.yaml @@ -11,3 +11,11 @@ sinks: patterns: - "(?i)(github.com)[\\/](tencentcloud)[\\/](tencentcloud-sdk-go).*" tags: + + - id: ThirdParties.SDK.Tencent.Cloud + name: Tencent Cloud + domains: + - "intl.cloud.tencent.com" + patterns: + - "(?i)(github.com)[\\/](tencentyun|tencentad|dreamCodeMan|bulletRush|lily-lee|SiCo-Ops|MangoMilk|dreamcodeman|teamlint|cosmos|mozillazg|lewzylu|huanght1997|likexian|yiGmMk|liuyongqing|Garyluoluoluo)[\\/](qcloud-cos-sts-sdk\\/go|qcloud-sdk|qcloud-cos-go-sdk|cloud-go-sdk\\/qcloud|go-sdk\\/qcloud|qcloud-sms|cosmos-sdk|cos-go-sdk-v5|go-cos|marketing-api-go-sdk).*" + tags: diff --git a/rules/sinks/third_parties/sdk/transbank/go.yaml b/rules/sinks/third_parties/sdk/transbank/go.yaml new file mode 100644 index 00000000..903987cd --- /dev/null +++ b/rules/sinks/third_parties/sdk/transbank/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Transbank + name: Transbank + domains: + - "transbank.mn" + patterns: + - "(?i)(github.com)[\\/](v1nland|microapis)[\\/](transbank-sdk-golang).*" + tags: diff --git a/rules/sinks/third_parties/sdk/uber/go.yaml b/rules/sinks/third_parties/sdk/uber/go.yaml index c6731d0a..7405076a 100644 --- a/rules/sinks/third_parties/sdk/uber/go.yaml +++ b/rules/sinks/third_parties/sdk/uber/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "uber.com" patterns: - - "(?i)(github.com/uber-go/tally).*" + - "(?i)(github.com|go.uber.org)[\\/](uber-go\\/tally|goleak).*" tags: diff --git a/rules/sinks/third_parties/sdk/umeng/go.yaml b/rules/sinks/third_parties/sdk/umeng/go.yaml new file mode 100644 index 00000000..ef4b50ee --- /dev/null +++ b/rules/sinks/third_parties/sdk/umeng/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Umeng + name: Umeng + domains: + - "umeng.com" + patterns: + - "(?i)(github.com)[\\/](shfc|kkkbird|huangfuhui|uhhc)[\\/](umeng-openapi-sdk|umeng-push).*" + tags: diff --git a/rules/sinks/third_parties/sdk/virgilsecurity/go.yaml b/rules/sinks/third_parties/sdk/virgilsecurity/go.yaml new file mode 100644 index 00000000..2e96dd7a --- /dev/null +++ b/rules/sinks/third_parties/sdk/virgilsecurity/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Virgilsecurity + name: Virgilsecurity + domains: + - "virgilsecurity.com" + patterns: + - "(?i)(github.com|gopkg.in)[\\/](VirgilSecurity|tochka)[\\/](virgil-sdk-go).*" + tags: diff --git a/rules/sinks/third_parties/sdk/wechat/go.yaml b/rules/sinks/third_parties/sdk/wechat/go.yaml index d449c8b7..ed23034e 100644 --- a/rules/sinks/third_parties/sdk/wechat/go.yaml +++ b/rules/sinks/third_parties/sdk/wechat/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "wechat.com" patterns: - - "(?i)(github.com)[\\/](chanxuehong|chanxuehong|XieXianbin|esap)[\\/](wechat).*" + - "(?i)(github.com)[\\/](chanxuehong|chanxuehong|XieXianbin|esap|rixingyike|zhi-miao)[\\/](wechat|wechat-sdk\\/pay).*" tags: diff --git a/rules/sinks/third_parties/sdk/xiaomi/go.yaml b/rules/sinks/third_parties/sdk/xiaomi/go.yaml new file mode 100644 index 00000000..dd21d8a7 --- /dev/null +++ b/rules/sinks/third_parties/sdk/xiaomi/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Xiaomi + name: Xiaomi + domains: + - "xiaomi.com" + patterns: + - "(?i)(github.com)[\\/](XiaoMi|cristiane|rxwen|curltech|ling-bin)[\\/](galaxy-sdk-go|go-push-sdk|xiaomi-go-sdk-push|galaxy-fds-sdk-golang).*" + tags: diff --git a/rules/sinks/third_parties/sdk/yandex/go.yaml b/rules/sinks/third_parties/sdk/yandex/go.yaml new file mode 100644 index 00000000..35082e62 --- /dev/null +++ b/rules/sinks/third_parties/sdk/yandex/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Yandex + name: Yandex + domains: + - "yandex.com" + patterns: + - "(?i)(github.com)[\\/](yandex-cloud)[\\/](go-sdk|ydb-go-sdk).*" + tags: diff --git a/rules/sinks/third_parties/sdk/yoomoney/go.yaml b/rules/sinks/third_parties/sdk/yoomoney/go.yaml new file mode 100644 index 00000000..6aaea7b2 --- /dev/null +++ b/rules/sinks/third_parties/sdk/yoomoney/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Yoomoney + name: Yoomoney + domains: + - "yoomoney.ru" + patterns: + - "(?i)(github.com)[\\/](telf01)[\\/](yookassa-go-sdk).*" + tags: diff --git a/rules/sinks/third_parties/sdk/yunpian/go.yaml b/rules/sinks/third_parties/sdk/yunpian/go.yaml new file mode 100644 index 00000000..7d3d5ed5 --- /dev/null +++ b/rules/sinks/third_parties/sdk/yunpian/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Yunpian + name: Yunpian + domains: + - "yunpian.com" + patterns: + - "(?i)(github.com)[\\/](yunpian|FeiniuBus|fixJ|venuses|feiniubus)[\\/](yunpian-go-sdk).*" + tags: From 34129ddcee4b050a334e61e90c8ef1fe72dde356 Mon Sep 17 00:00:00 2001 From: Ankit Kumar Date: Mon, 30 Oct 2023 10:47:25 +0530 Subject: [PATCH 5/8] go rule fix --- rules/sinks/third_parties/sdk/deepmap/go.yaml | 2 +- rules/sinks/third_parties/sdk/knadh/go.yaml | 2 +- rules/sinks/third_parties/sdk/prometheus/go.yaml | 13 ------------- 3 files changed, 2 insertions(+), 15 deletions(-) delete mode 100644 rules/sinks/third_parties/sdk/prometheus/go.yaml diff --git a/rules/sinks/third_parties/sdk/deepmap/go.yaml b/rules/sinks/third_parties/sdk/deepmap/go.yaml index 07ca3d1a..9f520c46 100644 --- a/rules/sinks/third_parties/sdk/deepmap/go.yaml +++ b/rules/sinks/third_parties/sdk/deepmap/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "deepmap.com" patterns: - - "(?i)(github.com/deepmap/oapi-codegen).*" + - "(?i)(github.com)[\\/](deepmap)[\\/](oapi-codegen).*" tags: diff --git a/rules/sinks/third_parties/sdk/knadh/go.yaml b/rules/sinks/third_parties/sdk/knadh/go.yaml index ef19f811..273dbe30 100644 --- a/rules/sinks/third_parties/sdk/knadh/go.yaml +++ b/rules/sinks/third_parties/sdk/knadh/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "knadh.com" patterns: - - "(?i)(github.com/knadh/koanf).*" + - "(?i)(github.com)[\\/](knadh)[\\/](koanf).*" tags: diff --git a/rules/sinks/third_parties/sdk/prometheus/go.yaml b/rules/sinks/third_parties/sdk/prometheus/go.yaml deleted file mode 100644 index 1abc094c..00000000 --- a/rules/sinks/third_parties/sdk/prometheus/go.yaml +++ /dev/null @@ -1,13 +0,0 @@ - -# Sink rule for ThirdParty SDK -# The id follows a format : "ThirdParties.SDK.." - -sinks: - - - id: ThirdParties.SDK.Prometheus - name: Prometheus - domains: - - "prometheus.com" - patterns: - - "(?i)(https://github.com/prometheus/client_golang).*" - tags: From 3406b8762572a75bc0364c11bbcdf3062308d555 Mon Sep 17 00:00:00 2001 From: Ankit Kumar Date: Tue, 31 Oct 2023 12:21:17 +0530 Subject: [PATCH 6/8] go third party rule fix --- rules/sinks/third_parties/sdk/adyen/go.yaml | 2 +- rules/sinks/third_parties/sdk/africastalking/go.yaml | 2 +- rules/sinks/third_parties/sdk/aftership/go.yaml | 2 +- rules/sinks/third_parties/sdk/alibabacloud/go.yaml | 2 +- rules/sinks/third_parties/sdk/amazon/go.yaml | 2 +- rules/sinks/third_parties/sdk/amplitude/go.yaml | 2 +- rules/sinks/third_parties/sdk/auth0/go.yaml | 2 +- rules/sinks/third_parties/sdk/bing/go.yaml | 2 +- rules/sinks/third_parties/sdk/braintreepayments/go.yaml | 2 +- rules/sinks/third_parties/sdk/callr/go.yaml | 2 +- rules/sinks/third_parties/sdk/checkout/go.yaml | 2 +- rules/sinks/third_parties/sdk/cloudevents/go.yaml | 2 +- rules/sinks/third_parties/sdk/consul/go.yaml | 2 +- rules/sinks/third_parties/sdk/datadog/go.yaml | 2 +- rules/sinks/third_parties/sdk/datadoghq/go.yaml | 2 +- rules/sinks/third_parties/sdk/deepmap/go.yaml | 2 +- rules/sinks/third_parties/sdk/delinea/go.yaml | 2 +- rules/sinks/third_parties/sdk/dropbox/go.yaml | 2 +- rules/sinks/third_parties/sdk/ebay/go.yaml | 2 +- rules/sinks/third_parties/sdk/elastic/go.yaml | 2 +- rules/sinks/third_parties/sdk/evernote/go.yaml | 2 +- rules/sinks/third_parties/sdk/expo/go.yaml | 2 +- rules/sinks/third_parties/sdk/facebook/go.yaml | 2 +- rules/sinks/third_parties/sdk/github/go.yaml | 2 +- rules/sinks/third_parties/sdk/gitlab/go.yaml | 2 +- rules/sinks/third_parties/sdk/gocharting/go.yaml | 2 +- rules/sinks/third_parties/sdk/google/go.yaml | 8 ++++---- rules/sinks/third_parties/sdk/harbor/go.yaml | 2 +- rules/sinks/third_parties/sdk/hashicorp/go.yaml | 2 +- rules/sinks/third_parties/sdk/hubspot/go.yaml | 2 +- rules/sinks/third_parties/sdk/instana/go.yaml | 2 +- rules/sinks/third_parties/sdk/knadh/go.yaml | 2 +- rules/sinks/third_parties/sdk/kucoin/go.yaml | 2 +- rules/sinks/third_parties/sdk/launchdarkly/go.yaml | 2 +- rules/sinks/third_parties/sdk/line/go.yaml | 2 +- rules/sinks/third_parties/sdk/liqpay/go.yaml | 2 +- rules/sinks/third_parties/sdk/mercadolibre/go.yaml | 2 +- rules/sinks/third_parties/sdk/microsoft/go.yaml | 2 +- rules/sinks/third_parties/sdk/minio/go.yaml | 2 +- rules/sinks/third_parties/sdk/nats/go.yaml | 2 +- rules/sinks/third_parties/sdk/newrelic/go.yaml | 2 +- rules/sinks/third_parties/sdk/okta/go.yaml | 2 +- rules/sinks/third_parties/sdk/onesignal/go.yaml | 2 +- rules/sinks/third_parties/sdk/paypal/go.yaml | 2 +- rules/sinks/third_parties/sdk/pulumi/go.yaml | 2 +- rules/sinks/third_parties/sdk/segment/go.yaml | 2 +- rules/sinks/third_parties/sdk/sendgrid/go.yaml | 2 +- rules/sinks/third_parties/sdk/sensorsdata/go.yaml | 2 +- rules/sinks/third_parties/sdk/sentry/go.yaml | 2 +- rules/sinks/third_parties/sdk/shopify/go.yaml | 2 +- rules/sinks/third_parties/sdk/slack/go.yaml | 2 +- rules/sinks/third_parties/sdk/squareup/go.yaml | 2 +- rules/sinks/third_parties/sdk/stripe/go.yaml | 2 +- rules/sinks/third_parties/sdk/taobao/go.yaml | 2 +- rules/sinks/third_parties/sdk/temporal/go.yaml | 2 +- rules/sinks/third_parties/sdk/tencent/go.yaml | 4 ++-- rules/sinks/third_parties/sdk/transbank/go.yaml | 2 +- rules/sinks/third_parties/sdk/trello/go.yaml | 2 +- rules/sinks/third_parties/sdk/twitter/go.yaml | 2 +- rules/sinks/third_parties/sdk/uber/go.yaml | 2 +- rules/sinks/third_parties/sdk/umeng/go.yaml | 2 +- rules/sinks/third_parties/sdk/vaultproject/go.yaml | 2 +- rules/sinks/third_parties/sdk/virgilsecurity/go.yaml | 2 +- rules/sinks/third_parties/sdk/vmware/go.yaml | 2 +- rules/sinks/third_parties/sdk/wechat/go.yaml | 2 +- rules/sinks/third_parties/sdk/whatsapp/go.yaml | 2 +- rules/sinks/third_parties/sdk/workos/go.yaml | 2 +- rules/sinks/third_parties/sdk/xiaomi/go.yaml | 2 +- rules/sinks/third_parties/sdk/yandex/go.yaml | 2 +- rules/sinks/third_parties/sdk/yoomoney/go.yaml | 2 +- rules/sinks/third_parties/sdk/yunpian/go.yaml | 2 +- 71 files changed, 75 insertions(+), 75 deletions(-) diff --git a/rules/sinks/third_parties/sdk/adyen/go.yaml b/rules/sinks/third_parties/sdk/adyen/go.yaml index a869893b..e91873e4 100644 --- a/rules/sinks/third_parties/sdk/adyen/go.yaml +++ b/rules/sinks/third_parties/sdk/adyen/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "adyen.com" patterns: - - "(?i)(github.com)[\\/](adyen)[\\/](adyen-go-api-library).*" + - "(?i)(github.com)(/)(adyen)(/)(adyen-go-api-library).*" tags: diff --git a/rules/sinks/third_parties/sdk/africastalking/go.yaml b/rules/sinks/third_parties/sdk/africastalking/go.yaml index bfd9fcea..f25988d2 100644 --- a/rules/sinks/third_parties/sdk/africastalking/go.yaml +++ b/rules/sinks/third_parties/sdk/africastalking/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "africastalking.com" patterns: - - "(?i)(github.com)[\\/](kingzbauer)[\\/](africastalking-go).*" + - "(?i)(github.com)(/)(kingzbauer)(/)(africastalking-go).*" tags: diff --git a/rules/sinks/third_parties/sdk/aftership/go.yaml b/rules/sinks/third_parties/sdk/aftership/go.yaml index 73fefbbd..27c274ff 100644 --- a/rules/sinks/third_parties/sdk/aftership/go.yaml +++ b/rules/sinks/third_parties/sdk/aftership/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "aftership.com" patterns: - - "(?i)(github.com)[\\/](jackharley7|aftership)[\\/](aftership-sdk-go|).*" + - "(?i)(github.com)(/)(jackharley7|aftership)(/)(aftership-sdk-go).*" tags: diff --git a/rules/sinks/third_parties/sdk/alibabacloud/go.yaml b/rules/sinks/third_parties/sdk/alibabacloud/go.yaml index 403c7ea0..a6da27cd 100644 --- a/rules/sinks/third_parties/sdk/alibabacloud/go.yaml +++ b/rules/sinks/third_parties/sdk/alibabacloud/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "alibabacloud.com" patterns: - - "(?i)(github.com)[\\/](hashicorp|aliyun|nacos-group|alibabacloud-go|cxr29|aliyunmq|tencentyun|huaweicloud|RandolphCYG|likexian)[\\/](vault-plugin-auth-alicloud|vault-plugin-secrets-alicloud|alibaba-cloud-sdk-go\\/sdk\\/requests|nacos-sdk-go\\/clients|tea-oss-sdk\\/client|aliyun-oss-go-sdk|aliyun-log-go-sdk|aliyun-openapi-go-sdk|aliyun-datahub-sdk-go\\/datahub|fc-go-sdk|aliyun-mns-go-sdk|mq-http-go-sdk|vod-go-sdk|huaweicloud-sdk-go|hwc-sdk\\/services|tencentcloud-sdk-go).*" + - "(?i)(github.com)(/)(hashicorp|aliyun|nacos-group|alibabacloud-go|cxr29|aliyunmq|tencentyun|huaweicloud|RandolphCYG|likexian)(/)(vault-plugin-auth-alicloud|vault-plugin-secrets-alicloud|alibaba-cloud-sdk-go\\/sdk\\/requests|nacos-sdk-go\\/clients|tea-oss-sdk\\/client|aliyun-oss-go-sdk|aliyun-log-go-sdk|aliyun-openapi-go-sdk|aliyun-datahub-sdk-go\\/datahub|fc-go-sdk|aliyun-mns-go-sdk|mq-http-go-sdk|vod-go-sdk|huaweicloud-sdk-go|hwc-sdk\\/services|tencentcloud-sdk-go).*" tags: diff --git a/rules/sinks/third_parties/sdk/amazon/go.yaml b/rules/sinks/third_parties/sdk/amazon/go.yaml index fa7ba171..447da541 100644 --- a/rules/sinks/third_parties/sdk/amazon/go.yaml +++ b/rules/sinks/third_parties/sdk/amazon/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "aws.amazon.com" patterns: - - "(?i)(github.com|go.temporal.io|gitlab.bingosoft.net)[\\/](aws|aws-sdk|hashicorp|minio|qor|conku|qorpress|touyu|kisrobot|m-hosoi|aavshr|unicloud-uos|pendo-io|journeymidnight|SaiVishwas|shashank-sachan|jviney|pulumi|skmcgrail|jftuga|IBM|orozery|getlantern|alice02|golang|opentracing-contrib|dtannen|gametimesf|phacops|mattaitchison|peterdeka|euank|uber|rhnvrm)[\\/](aws-sdk-go|aws-lambda-go|minio-go|aws-cdk-go|smithy-go|amazon-pay-sdk-go|uos-sdk-go|pulumi-aws|sns_publish|ibm-cos-sdk-go|nifcloud-sdk-go|amazon-ecs-agent|go-firehose|go-kinesis|athenadriver|simples3).*" + - "(?i)(github.com|go.temporal.io|gitlab.bingosoft.net)(/)(aws|aws-sdk|hashicorp|minio|qor|conku|qorpress|touyu|kisrobot|m-hosoi|aavshr|unicloud-uos|pendo-io|journeymidnight|SaiVishwas|shashank-sachan|jviney|pulumi|skmcgrail|jftuga|IBM|orozery|getlantern|alice02|golang|opentracing-contrib|dtannen|gametimesf|phacops|mattaitchison|peterdeka|euank|uber|rhnvrm)(/)(aws-sdk-go|aws-lambda-go|minio-go|aws-cdk-go|smithy-go|amazon-pay-sdk-go|uos-sdk-go|pulumi-aws|sns_publish|ibm-cos-sdk-go|nifcloud-sdk-go|amazon-ecs-agent|go-firehose|go-kinesis|athenadriver|simples3).*" tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/amplitude/go.yaml b/rules/sinks/third_parties/sdk/amplitude/go.yaml index 23e89c8d..38ab491a 100644 --- a/rules/sinks/third_parties/sdk/amplitude/go.yaml +++ b/rules/sinks/third_parties/sdk/amplitude/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "amplitude.com" patterns: - - "(?i)(github.com)[\\/](renatoaf|gotokatsuya)[\\/](amplitude-go|amplitude-sdk-go).*" + - "(?i)(github.com)(/)(renatoaf|gotokatsuya)(/)(amplitude-go|amplitude-sdk-go).*" tags: diff --git a/rules/sinks/third_parties/sdk/auth0/go.yaml b/rules/sinks/third_parties/sdk/auth0/go.yaml index c09b40bf..5507dc1e 100644 --- a/rules/sinks/third_parties/sdk/auth0/go.yaml +++ b/rules/sinks/third_parties/sdk/auth0/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "auth0.com" patterns: - - "(?i)(github.com)[\\/](auth0-community|pulumi|auth0-lab)[\\/](go-auth0|pulumi-auth0\\/sdk\\/v2\\/go\\/auth0|fga-go-sdk).*" + - "(?i)(github.com)(/)(auth0-community|pulumi|auth0-lab)(/)(go-auth0|pulumi-auth0\\/sdk\\/v2\\/go\\/auth0|fga-go-sdk).*" tags: diff --git a/rules/sinks/third_parties/sdk/bing/go.yaml b/rules/sinks/third_parties/sdk/bing/go.yaml index 081c710f..bd86e873 100644 --- a/rules/sinks/third_parties/sdk/bing/go.yaml +++ b/rules/sinks/third_parties/sdk/bing/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "bing.com" patterns: - - "(?i)(github.com)[\\/](kritzware|chigley|godofdream)[\\/](bing-ads-go-sdk).*" + - "(?i)(github.com)(/)(kritzware|chigley|godofdream)(/)(bing-ads-go-sdk).*" tags: diff --git a/rules/sinks/third_parties/sdk/braintreepayments/go.yaml b/rules/sinks/third_parties/sdk/braintreepayments/go.yaml index 2f65052d..2c65f51a 100644 --- a/rules/sinks/third_parties/sdk/braintreepayments/go.yaml +++ b/rules/sinks/third_parties/sdk/braintreepayments/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "braintreepayments.com" patterns: - - "(?i)(github.com)[\\/](BoltApp)[\\/](braintree-go).*" + - "(?i)(github.com)(/)(BoltApp)(/)(braintree-go).*" tags: diff --git a/rules/sinks/third_parties/sdk/callr/go.yaml b/rules/sinks/third_parties/sdk/callr/go.yaml index b15c2aa0..ab3d7a57 100644 --- a/rules/sinks/third_parties/sdk/callr/go.yaml +++ b/rules/sinks/third_parties/sdk/callr/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "callr.com" patterns: - - "(?i)(github.com)[\\/](THECALLR)[\\/](sdk-go).*" + - "(?i)(github.com)(/)(THECALLR)(/)(sdk-go).*" tags: diff --git a/rules/sinks/third_parties/sdk/checkout/go.yaml b/rules/sinks/third_parties/sdk/checkout/go.yaml index 03b86d11..f13f539a 100644 --- a/rules/sinks/third_parties/sdk/checkout/go.yaml +++ b/rules/sinks/third_parties/sdk/checkout/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "checkout.com" patterns: - - "(?i)(github.com)[\\/](checkout)[\\/](checkout-sdk-go\\/payments).*" + - "(?i)(github.com)(/)(checkout)(/)(checkout-sdk-go\\/payments).*" tags: diff --git a/rules/sinks/third_parties/sdk/cloudevents/go.yaml b/rules/sinks/third_parties/sdk/cloudevents/go.yaml index 5eeea1a7..9f53e962 100644 --- a/rules/sinks/third_parties/sdk/cloudevents/go.yaml +++ b/rules/sinks/third_parties/sdk/cloudevents/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "cloudevents.io" patterns: - - "(?i)(github.com)[\\/](cloudevents)[\\/](sdk-go).*" + - "(?i)(github.com)(/)(cloudevents)(/)(sdk-go).*" tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/consul/go.yaml b/rules/sinks/third_parties/sdk/consul/go.yaml index 16eeee08..c6813baa 100644 --- a/rules/sinks/third_parties/sdk/consul/go.yaml +++ b/rules/sinks/third_parties/sdk/consul/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "consul.io" patterns: - - "(?i)(github.com|gopkg.in)[\\/](launchdarkly|yingyingtang-brex|hashicorp)[\\/](go-server-sdk.v4|go-server-sdk-consul|go-server-sdk\\/ldconsul|go-client.v4\\/ldconsul|go-client\\/ldconsul|packer-plugin-sdk\\/template|waypoint-plugin-sdk).*" + - "(?i)(github.com|gopkg.in)(/)(launchdarkly|yingyingtang-brex|hashicorp)(/)(go-server-sdk.v4|go-server-sdk-consul|go-server-sdk\\/ldconsul|go-client.v4\\/ldconsul|go-client\\/ldconsul|packer-plugin-sdk\\/template|waypoint-plugin-sdk).*" tags: diff --git a/rules/sinks/third_parties/sdk/datadog/go.yaml b/rules/sinks/third_parties/sdk/datadog/go.yaml index bd6064d7..22d22908 100644 --- a/rules/sinks/third_parties/sdk/datadog/go.yaml +++ b/rules/sinks/third_parties/sdk/datadog/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "datadoghq.com" patterns: - - "(?i)(github.com)[\\/](DataDog)[\\/](datadog-go).*" + - "(?i)(github.com)(/)(DataDog)(/)(datadog-go).*" tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/datadoghq/go.yaml b/rules/sinks/third_parties/sdk/datadoghq/go.yaml index 51b26a8b..e489e562 100644 --- a/rules/sinks/third_parties/sdk/datadoghq/go.yaml +++ b/rules/sinks/third_parties/sdk/datadoghq/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "datadoghq.com" patterns: - - "(?i)(github.com)[\\/](DataDog)[\\/](opencensus-go-exporter-datadog).*" + - "(?i)(github.com)(/)(DataDog)(/)(opencensus-go-exporter-datadog).*" tags: diff --git a/rules/sinks/third_parties/sdk/deepmap/go.yaml b/rules/sinks/third_parties/sdk/deepmap/go.yaml index 9f520c46..cb8e6f68 100644 --- a/rules/sinks/third_parties/sdk/deepmap/go.yaml +++ b/rules/sinks/third_parties/sdk/deepmap/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "deepmap.com" patterns: - - "(?i)(github.com)[\\/](deepmap)[\\/](oapi-codegen).*" + - "(?i)(github.com)(/)(deepmap)(/)(oapi-codegen).*" tags: diff --git a/rules/sinks/third_parties/sdk/delinea/go.yaml b/rules/sinks/third_parties/sdk/delinea/go.yaml index b6739483..c29c7c93 100644 --- a/rules/sinks/third_parties/sdk/delinea/go.yaml +++ b/rules/sinks/third_parties/sdk/delinea/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "delinea.com/centrify" patterns: - - "(?i)(github.com)[\\/](centrify)[\\/](cloud-golang-sdk).*" + - "(?i)(github.com)(/)(centrify)(/)(cloud-golang-sdk).*" tags: diff --git a/rules/sinks/third_parties/sdk/dropbox/go.yaml b/rules/sinks/third_parties/sdk/dropbox/go.yaml index e8d6e442..0a40fb6b 100644 --- a/rules/sinks/third_parties/sdk/dropbox/go.yaml +++ b/rules/sinks/third_parties/sdk/dropbox/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "dropbox.com" patterns: - - "(?i)(github.com)[\\/](dropbox|toanqng|henrikcozza|skynet-core|neevaco|herval|ncw|milanaleksic|gwatts|hushed|ga-con|intello-io)[\\/](dropbox-sdk-go-unofficial|dropbox-go-sdk).*" + - "(?i)(github.com)(/)(dropbox|toanqng|henrikcozza|skynet-core|neevaco|herval|ncw|milanaleksic|gwatts|hushed|ga-con|intello-io)(/)(dropbox-sdk-go-unofficial|dropbox-go-sdk).*" tags: diff --git a/rules/sinks/third_parties/sdk/ebay/go.yaml b/rules/sinks/third_parties/sdk/ebay/go.yaml index 7bbdb363..1bd66af0 100644 --- a/rules/sinks/third_parties/sdk/ebay/go.yaml +++ b/rules/sinks/third_parties/sdk/ebay/go.yaml @@ -8,5 +8,5 @@ sinks: domains: - "ebay.com" patterns: - - "(?i)(github.com)[\\/](feelinc)[\\/](go_ebay_sdk).*" + - "(?i)(github.com)(/)(feelinc)(/)(go_ebay_sdk).*" tags: diff --git a/rules/sinks/third_parties/sdk/elastic/go.yaml b/rules/sinks/third_parties/sdk/elastic/go.yaml index 2767d6dc..6ce37c47 100644 --- a/rules/sinks/third_parties/sdk/elastic/go.yaml +++ b/rules/sinks/third_parties/sdk/elastic/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "elastic.co" patterns: - - "(?i)(go.elastic.co|gopkg.in)[\\/](apm|olivere\\/elastic|go-elasticsearch).*" + - "(?i)(go.elastic.co|gopkg.in)(/)(apm|olivere\\/elastic|go-elasticsearch).*" tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/evernote/go.yaml b/rules/sinks/third_parties/sdk/evernote/go.yaml index 553b218b..3cc3e4ed 100644 --- a/rules/sinks/third_parties/sdk/evernote/go.yaml +++ b/rules/sinks/third_parties/sdk/evernote/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "evernote.com" patterns: - - "(?i)(github.com)[\\/](TcM1911|dreampuf|quekshuy|aliabdullahcp|double1996|shinofara|tcm1911)[\\/](evernote-sdk-golang|evernote-golang-sdk).*" + - "(?i)(github.com)(/)(TcM1911|dreampuf|quekshuy|aliabdullahcp|double1996|shinofara|tcm1911)(/)(evernote-sdk-golang|evernote-golang-sdk).*" tags: diff --git a/rules/sinks/third_parties/sdk/expo/go.yaml b/rules/sinks/third_parties/sdk/expo/go.yaml index 13259a1e..ac673ece 100644 --- a/rules/sinks/third_parties/sdk/expo/go.yaml +++ b/rules/sinks/third_parties/sdk/expo/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "docs.expo.dev" patterns: - - "(?i)(github.com)[\\/](adierkens|Terminux)[\\/](expo-server-sdk-go|exponent-server-sdk-go).*" + - "(?i)(github.com)(/)(adierkens|Terminux)(/)(expo-server-sdk-go|exponent-server-sdk-go).*" tags: diff --git a/rules/sinks/third_parties/sdk/facebook/go.yaml b/rules/sinks/third_parties/sdk/facebook/go.yaml index ef0b34ef..5f1ac30d 100644 --- a/rules/sinks/third_parties/sdk/facebook/go.yaml +++ b/rules/sinks/third_parties/sdk/facebook/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "facebook.com" patterns: - - "(?i)(github.com)[\\/](madebyais|muhfaris|bnjjj)[\\/](facebook-go-sdk|gomessenger).*" + - "(?i)(github.com)(/)(madebyais|muhfaris|bnjjj)(/)(facebook-go-sdk|gomessenger).*" tags: diff --git a/rules/sinks/third_parties/sdk/github/go.yaml b/rules/sinks/third_parties/sdk/github/go.yaml index 0168dfc2..b3e4fac0 100644 --- a/rules/sinks/third_parties/sdk/github/go.yaml +++ b/rules/sinks/third_parties/sdk/github/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "github.com" patterns: - - "(?i)(github.com)[\\/](gogs)[\\/](git-module).*" + - "(?i)(github.com)(/)(gogs)(/)(git-module).*" tags: diff --git a/rules/sinks/third_parties/sdk/gitlab/go.yaml b/rules/sinks/third_parties/sdk/gitlab/go.yaml index 7831785f..54e9de27 100644 --- a/rules/sinks/third_parties/sdk/gitlab/go.yaml +++ b/rules/sinks/third_parties/sdk/gitlab/go.yaml @@ -8,5 +8,5 @@ sinks: domains: - "gitlab.com" patterns: - - "(?i)(github.com)[\\/](xanzy)[\\/](go-gitlab).*" + - "(?i)(github.com)(/)(xanzy)(/)(go-gitlab).*" tags: diff --git a/rules/sinks/third_parties/sdk/gocharting/go.yaml b/rules/sinks/third_parties/sdk/gocharting/go.yaml index e6f2dd74..4c85c6c8 100644 --- a/rules/sinks/third_parties/sdk/gocharting/go.yaml +++ b/rules/sinks/third_parties/sdk/gocharting/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "gocharting.com" patterns: - - "(?i)(github.com)[\\/](wcharczuk)[\\/](go-chart).*" + - "(?i)(github.com)(/)(wcharczuk)(/)(go-chart).*" tags: diff --git a/rules/sinks/third_parties/sdk/google/go.yaml b/rules/sinks/third_parties/sdk/google/go.yaml index d4e196e1..cb7d6c3d 100644 --- a/rules/sinks/third_parties/sdk/google/go.yaml +++ b/rules/sinks/third_parties/sdk/google/go.yaml @@ -9,7 +9,7 @@ sinks: domains: - "cloud.google.com" patterns: - - "(?i)(github.com|cloud.google.com)[\\/](GoogleCloudPlatform|googleapis|fsouza|gogo|go|graymeta)[\\/](k8s-cloud-provider|enterprise-certificate-proxy|fake-gcs-server|googleapis|cloudtasks|language|automl|video|securitycenter|videointelligence|dataproc|monitoring|secretmanager|storagetransfer|texttospeech|gaming|opentelemetry-operations-go|asset|functions-framework-go|servicedirectory|speech|container|kms|dlp|grafeas|functions|/pubsublite|compute|talent|stow).*" + - "(?i)(github.com|cloud.google.com)(/)(GoogleCloudPlatform|googleapis|fsouza|gogo|go|graymeta)(/)(k8s-cloud-provider|enterprise-certificate-proxy|fake-gcs-server|googleapis|cloudtasks|language|automl|video|securitycenter|videointelligence|dataproc|monitoring|secretmanager|storagetransfer|texttospeech|gaming|opentelemetry-operations-go|asset|functions-framework-go|servicedirectory|speech|container|kms|dlp|grafeas|functions|/pubsublite|compute|talent|stow).*" tags: - id: ThirdParties.SDK.Google.Github @@ -33,7 +33,7 @@ sinks: domains: - "firebase.google.com" patterns: - - "(?i)(github.com)[\\/](firebase.google.com|acoshift)[\\/](go).*" + - "(?i)(github.com)(/)(firebase.google.com|acoshift)(/)(go).*" tags: - id: ThirdParties.SDK.Google.Cloud.GRPC @@ -41,7 +41,7 @@ sinks: domains: - "cloud.google.com/endpoints/docs/grpc" patterns: - - "(?i)(github.com)[\\/](GoogleCloudPlatform)[\\/](golang-samples\\/run\\/grpc-ping).*" + - "(?i)(github.com)(/)(GoogleCloudPlatform)(/)(golang-samples\\/run\\/grpc-ping).*" tags: - id: ThirdParties.SDK.Google.Cloud.Firestore @@ -49,6 +49,6 @@ sinks: domains: - "firebase.google.com" patterns: - - "(?i)(github.com)[\\/](GoogleCloudPlatform)[\\/](firestore-gorilla-sessions).*" + - "(?i)(github.com)(/)(GoogleCloudPlatform)(/)(firestore-gorilla-sessions).*" tags: diff --git a/rules/sinks/third_parties/sdk/harbor/go.yaml b/rules/sinks/third_parties/sdk/harbor/go.yaml index 6d320c2e..2d345e55 100644 --- a/rules/sinks/third_parties/sdk/harbor/go.yaml +++ b/rules/sinks/third_parties/sdk/harbor/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "goharbor.io" patterns: - - "(?i)(github.com)[\\/](goharbor)[\\/](go-client).*" + - "(?i)(github.com)(/)(goharbor)(/)(go-client).*" tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/hashicorp/go.yaml b/rules/sinks/third_parties/sdk/hashicorp/go.yaml index 7a9b5487..b2da0ac4 100644 --- a/rules/sinks/third_parties/sdk/hashicorp/go.yaml +++ b/rules/sinks/third_parties/sdk/hashicorp/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "consul.io" patterns: - - "(?i)(github.com)[\\/](hashicorp)[\\/](consul|terraform-plugin-sdk).*" + - "(?i)(github.com)(/)(hashicorp)(/)(consul|terraform-plugin-sdk).*" tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/hubspot/go.yaml b/rules/sinks/third_parties/sdk/hubspot/go.yaml index b68efe88..8d1b3ae3 100644 --- a/rules/sinks/third_parties/sdk/hubspot/go.yaml +++ b/rules/sinks/third_parties/sdk/hubspot/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "hubspot.com" patterns: - - "(?i)(github.com)[\\/](getwagz|Getwagz)[\\/](hubspot-sdk).*" + - "(?i)(github.com)(/)(getwagz|Getwagz)(/)(hubspot-sdk).*" tags: diff --git a/rules/sinks/third_parties/sdk/instana/go.yaml b/rules/sinks/third_parties/sdk/instana/go.yaml index 0fae19d3..2c590245 100644 --- a/rules/sinks/third_parties/sdk/instana/go.yaml +++ b/rules/sinks/third_parties/sdk/instana/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "instana.com" patterns: - - "(?i)(github.com)[\\/](instana)[\\/](go-sensor).*" + - "(?i)(github.com)(/)(instana)(/)(go-sensor).*" tags: diff --git a/rules/sinks/third_parties/sdk/knadh/go.yaml b/rules/sinks/third_parties/sdk/knadh/go.yaml index 273dbe30..c8b864b0 100644 --- a/rules/sinks/third_parties/sdk/knadh/go.yaml +++ b/rules/sinks/third_parties/sdk/knadh/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "knadh.com" patterns: - - "(?i)(github.com)[\\/](knadh)[\\/](koanf).*" + - "(?i)(github.com)(/)(knadh)(/)(koanf).*" tags: diff --git a/rules/sinks/third_parties/sdk/kucoin/go.yaml b/rules/sinks/third_parties/sdk/kucoin/go.yaml index e5ea4aeb..c62ed517 100644 --- a/rules/sinks/third_parties/sdk/kucoin/go.yaml +++ b/rules/sinks/third_parties/sdk/kucoin/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "kucoin.com" patterns: - - "(?i)(github.com)[\\/](Kucoin|aharenaz|newgoo|reid-garner|orrelln|blackbittech)[\\/](kucoin-go-sdk|kumex-go-sdk|kucoin-futures-go-sdk).*" + - "(?i)(github.com)(/)(Kucoin|aharenaz|newgoo|reid-garner|orrelln|blackbittech)(/)(kucoin-go-sdk|kumex-go-sdk|kucoin-futures-go-sdk).*" tags: diff --git a/rules/sinks/third_parties/sdk/launchdarkly/go.yaml b/rules/sinks/third_parties/sdk/launchdarkly/go.yaml index 392a50f9..b66e4bd9 100644 --- a/rules/sinks/third_parties/sdk/launchdarkly/go.yaml +++ b/rules/sinks/third_parties/sdk/launchdarkly/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "launchdarkly.com" patterns: - - "(?i)(github.com)[\\/](launchdarkly)[\\/](eventsource|go-sdk-common|go-server-sdk|go-server-sdk-evaluation|go-server-sdk-redis-redigo).*" + - "(?i)(github.com)(/)(launchdarkly)(/)(eventsource|go-sdk-common|go-server-sdk|go-server-sdk-evaluation|go-server-sdk-redis-redigo).*" tags: diff --git a/rules/sinks/third_parties/sdk/line/go.yaml b/rules/sinks/third_parties/sdk/line/go.yaml index 22cea07c..92ca78e5 100644 --- a/rules/sinks/third_parties/sdk/line/go.yaml +++ b/rules/sinks/third_parties/sdk/line/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "line.me" patterns: - - "(?i)(github.com)[\\/](gotokatsuya|chy168)[\\/](line-pay-sdk-go).*" + - "(?i)(github.com)(/)(gotokatsuya|chy168)(/)(line-pay-sdk-go).*" tags: diff --git a/rules/sinks/third_parties/sdk/liqpay/go.yaml b/rules/sinks/third_parties/sdk/liqpay/go.yaml index 83c5b0b0..0a3edabf 100644 --- a/rules/sinks/third_parties/sdk/liqpay/go.yaml +++ b/rules/sinks/third_parties/sdk/liqpay/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "liqpay.ua" patterns: - - "(?i)(github.com)[\\/](liqpay)[\\/](go-sdk).*" + - "(?i)(github.com)(/)(liqpay)(/)(go-sdk).*" tags: diff --git a/rules/sinks/third_parties/sdk/mercadolibre/go.yaml b/rules/sinks/third_parties/sdk/mercadolibre/go.yaml index b101ecdf..3d82e922 100644 --- a/rules/sinks/third_parties/sdk/mercadolibre/go.yaml +++ b/rules/sinks/third_parties/sdk/mercadolibre/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "mercadolibre.com" patterns: - - "(?i)(github.com)[\\/](tiaguinho|mercadolibre)[\\/](mercadolibre-go-sdk|golang-sdk).*" + - "(?i)(github.com)(/)(tiaguinho|mercadolibre)(/)(mercadolibre-go-sdk|golang-sdk).*" tags: diff --git a/rules/sinks/third_parties/sdk/microsoft/go.yaml b/rules/sinks/third_parties/sdk/microsoft/go.yaml index 0df100ad..77902bde 100644 --- a/rules/sinks/third_parties/sdk/microsoft/go.yaml +++ b/rules/sinks/third_parties/sdk/microsoft/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "azure.microsoft.com" patterns: - - "(?i)(github.com)[\\/](Azure|AzureAD|microsoft|MSOpenTech|kris-nova|kubicorn|pulumi|vmware|SsrCoder|pmalek-sumo|wiz-sec|jackesdavid|msopentech|discentem|dennis-menge|veertuinc|beyondnetworks|peterzeller|dbaur|larstore|johnstairs|tadelesh|hashicorp|tombuildsstuff)[\\/](azure-pipeline-go|azure-sdk-for-go|kiota\\/abstractions\\/go|kubicorn\\/cloud\\/azure|pulumi-azure|vra-sdk-go\\/pkg\\/client\\/fabric_azure_storage_account|onedrive-sdk-golang|go-autorest|go-ntlmssp|vault-plugin-auth-azure|go-azure-helpers|giovanni|azure-devops-go-api|azure-service-bus-go|go-amqp|azure-amqp-common-go|microsoft-authentication-library-for-go).*" + - "(?i)(github.com)(/)(Azure|AzureAD|microsoft|MSOpenTech|kris-nova|kubicorn|pulumi|vmware|SsrCoder|pmalek-sumo|wiz-sec|jackesdavid|msopentech|discentem|dennis-menge|veertuinc|beyondnetworks|peterzeller|dbaur|larstore|johnstairs|tadelesh|hashicorp|tombuildsstuff)(/)(azure-pipeline-go|azure-sdk-for-go|kiota\\/abstractions\\/go|kubicorn\\/cloud\\/azure|pulumi-azure|vra-sdk-go\\/pkg\\/client\\/fabric_azure_storage_account|onedrive-sdk-golang|go-autorest|go-ntlmssp|vault-plugin-auth-azure|go-azure-helpers|giovanni|azure-devops-go-api|azure-service-bus-go|go-amqp|azure-amqp-common-go|microsoft-authentication-library-for-go).*" tags: diff --git a/rules/sinks/third_parties/sdk/minio/go.yaml b/rules/sinks/third_parties/sdk/minio/go.yaml index 2b16949f..5c392647 100644 --- a/rules/sinks/third_parties/sdk/minio/go.yaml +++ b/rules/sinks/third_parties/sdk/minio/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "min.io" patterns: - - "(?i)(github.com)[\\/](minio)[\\/](mc).*" + - "(?i)(github.com)(/)(minio)(/)(mc).*" tags: diff --git a/rules/sinks/third_parties/sdk/nats/go.yaml b/rules/sinks/third_parties/sdk/nats/go.yaml index 1db42a4f..a3ccc8df 100644 --- a/rules/sinks/third_parties/sdk/nats/go.yaml +++ b/rules/sinks/third_parties/sdk/nats/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "nats.io" patterns: - - "(?i)(github.com)[\\/](nats-io)[\\/](nats.go).*" + - "(?i)(github.com)(/)(nats-io)(/)(nats.go).*" tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/newrelic/go.yaml b/rules/sinks/third_parties/sdk/newrelic/go.yaml index 54932198..d854f161 100644 --- a/rules/sinks/third_parties/sdk/newrelic/go.yaml +++ b/rules/sinks/third_parties/sdk/newrelic/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "newrelic.com" patterns: - - "(?i)(github.com)[\\/](newrelic)[\\/](go-agent).*" + - "(?i)(github.com)(/)(newrelic)(/)(go-agent).*" tags: diff --git a/rules/sinks/third_parties/sdk/okta/go.yaml b/rules/sinks/third_parties/sdk/okta/go.yaml index f0e5f69e..599035db 100644 --- a/rules/sinks/third_parties/sdk/okta/go.yaml +++ b/rules/sinks/third_parties/sdk/okta/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "okta.com" patterns: - - "(?i)(github.com)[\\/](chrismalek)[\\/](oktasdk-go).*" + - "(?i)(github.com)(/)(chrismalek)(/)(oktasdk-go).*" tags: diff --git a/rules/sinks/third_parties/sdk/onesignal/go.yaml b/rules/sinks/third_parties/sdk/onesignal/go.yaml index 32e8d100..c6254670 100644 --- a/rules/sinks/third_parties/sdk/onesignal/go.yaml +++ b/rules/sinks/third_parties/sdk/onesignal/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "onesignal.com" patterns: - - "(?i)(github.com)[\\/](peelz|KodepandaID)[\\/](onesignal-go-sdk|go-onesignal-sdk).*" + - "(?i)(github.com)(/)(peelz|KodepandaID)(/)(onesignal-go-sdk|go-onesignal-sdk).*" tags: diff --git a/rules/sinks/third_parties/sdk/paypal/go.yaml b/rules/sinks/third_parties/sdk/paypal/go.yaml index 6886f63a..8a22c050 100644 --- a/rules/sinks/third_parties/sdk/paypal/go.yaml +++ b/rules/sinks/third_parties/sdk/paypal/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "paypal.com" patterns: - - "(?i)(github.com)[\\/](logpacker)[\\/](PayPal-Go-SDK).*" + - "(?i)(github.com)(/)(logpacker)(/)(PayPal-Go-SDK).*" tags: diff --git a/rules/sinks/third_parties/sdk/pulumi/go.yaml b/rules/sinks/third_parties/sdk/pulumi/go.yaml index 1c476430..1bdd02d4 100644 --- a/rules/sinks/third_parties/sdk/pulumi/go.yaml +++ b/rules/sinks/third_parties/sdk/pulumi/go.yaml @@ -9,6 +9,6 @@ sinks: domains: - "pulumi.com" patterns: - - "(?i)(github.com)[\\/](pulumi)[\\/](pulumi\\/sdk).*" + - "(?i)(github.com)(/)(pulumi)(/)(pulumi\\/sdk).*" tags: diff --git a/rules/sinks/third_parties/sdk/segment/go.yaml b/rules/sinks/third_parties/sdk/segment/go.yaml index 13577bc9..ed166792 100644 --- a/rules/sinks/third_parties/sdk/segment/go.yaml +++ b/rules/sinks/third_parties/sdk/segment/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "segment.com" patterns: - - "(?i)(github.com)[\\/](segmentio)[\\/](asm).*" + - "(?i)(github.com)(/)(segmentio)(/)(asm).*" tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/sendgrid/go.yaml b/rules/sinks/third_parties/sdk/sendgrid/go.yaml index 260c3399..5ad2286a 100644 --- a/rules/sinks/third_parties/sdk/sendgrid/go.yaml +++ b/rules/sinks/third_parties/sdk/sendgrid/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "sendgrid.com" patterns: - - "(?i)(gopkg.in|github.com)[\\/](sendgrid)[\\/](sendgrid-go|smtpapi-go).*" + - "(?i)(gopkg.in|github.com)(/)(sendgrid)(/)(sendgrid-go|smtpapi-go).*" tags: diff --git a/rules/sinks/third_parties/sdk/sensorsdata/go.yaml b/rules/sinks/third_parties/sdk/sensorsdata/go.yaml index 55b5ddcc..11a0795f 100644 --- a/rules/sinks/third_parties/sdk/sensorsdata/go.yaml +++ b/rules/sinks/third_parties/sdk/sensorsdata/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "sensorsdata.cn" patterns: - - "(?i)(github.com)[\\/](sensorsdata)[\\/](sa-sdk-go\\/structs|abtesting-sdk-go).*" + - "(?i)(github.com)(/)(sensorsdata)(/)(sa-sdk-go\\/structs|abtesting-sdk-go).*" tags: diff --git a/rules/sinks/third_parties/sdk/sentry/go.yaml b/rules/sinks/third_parties/sdk/sentry/go.yaml index 8cb3f3ab..76428d08 100644 --- a/rules/sinks/third_parties/sdk/sentry/go.yaml +++ b/rules/sinks/third_parties/sdk/sentry/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "sentry.io" patterns: - - "(?i)(github.com)[\\/](getsentry|harmony-development|blend)[\\/](sentry-go|go-sdk\\/sentry).*" + - "(?i)(github.com)(/)(getsentry|harmony-development|blend)(/)(sentry-go|go-sdk\\/sentry).*" tags: diff --git a/rules/sinks/third_parties/sdk/shopify/go.yaml b/rules/sinks/third_parties/sdk/shopify/go.yaml index 7d1bdc47..4ca412a1 100644 --- a/rules/sinks/third_parties/sdk/shopify/go.yaml +++ b/rules/sinks/third_parties/sdk/shopify/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "shopify.com" patterns: - - "(?i)(github.com)[\\/](cloudevents)[\\/](sdk-go).*" + - "(?i)(github.com)(/)(cloudevents)(/)(sdk-go).*" tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/slack/go.yaml b/rules/sinks/third_parties/sdk/slack/go.yaml index 5278e841..26c66830 100644 --- a/rules/sinks/third_parties/sdk/slack/go.yaml +++ b/rules/sinks/third_parties/sdk/slack/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "slack.com" patterns: - - "(?i)(github.com)[\\/](blend|totvs|gogurgaon|seratch|ericogr|lacework|totvs)[\\/](go-sdk\\/slack|pulumi-slack\\/sdk|joinslack\\/api|go-slack-sdk-experimental|pulumi-resource-slack\\/sdk\\/go|pulumi-slack\\/sdk\\/go|go-sdk\\/api|pulumi-slack-remover).*" + - "(?i)(github.com)(/)(blend|totvs|gogurgaon|seratch|ericogr|lacework|totvs)(/)(go-sdk\\/slack|pulumi-slack\\/sdk|joinslack\\/api|go-slack-sdk-experimental|pulumi-resource-slack\\/sdk\\/go|pulumi-slack\\/sdk\\/go|go-sdk\\/api|pulumi-slack-remover).*" tags: diff --git a/rules/sinks/third_parties/sdk/squareup/go.yaml b/rules/sinks/third_parties/sdk/squareup/go.yaml index a5f16ffb..12acc44b 100644 --- a/rules/sinks/third_parties/sdk/squareup/go.yaml +++ b/rules/sinks/third_parties/sdk/squareup/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "squareup.com" patterns: - - "(?i)(github.com)[\\/](square)[\\/](square-connect-go-sdk).*" + - "(?i)(github.com)(/)(square)(/)(square-connect-go-sdk).*" tags: diff --git a/rules/sinks/third_parties/sdk/stripe/go.yaml b/rules/sinks/third_parties/sdk/stripe/go.yaml index 77132d08..ce2b5ac4 100644 --- a/rules/sinks/third_parties/sdk/stripe/go.yaml +++ b/rules/sinks/third_parties/sdk/stripe/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "stripe.com" patterns: - - "(?i)(github.com)[\\/](stripe)[\\/](stripe-go).*" + - "(?i)(github.com)(/)(stripe)(/)(stripe-go).*" tags: diff --git a/rules/sinks/third_parties/sdk/taobao/go.yaml b/rules/sinks/third_parties/sdk/taobao/go.yaml index d693f8c0..41ef131d 100644 --- a/rules/sinks/third_parties/sdk/taobao/go.yaml +++ b/rules/sinks/third_parties/sdk/taobao/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "taobao.com" patterns: - - "(?i)(github.com)[\\/](changkong|yaofangou|beJuvenile)[\\/](open_taobao|go-sdk-taobao).*" + - "(?i)(github.com)(/)(changkong|yaofangou|beJuvenile)(/)(open_taobao|go-sdk-taobao).*" tags: diff --git a/rules/sinks/third_parties/sdk/temporal/go.yaml b/rules/sinks/third_parties/sdk/temporal/go.yaml index 78cccf42..fe46c8ab 100644 --- a/rules/sinks/third_parties/sdk/temporal/go.yaml +++ b/rules/sinks/third_parties/sdk/temporal/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "temporal.io" patterns: - - "(?i)(github.com)[\\/](spiral|cretz)[\\/](go-sdk\\/temporal|temporal-sdk-go-advanced).*" + - "(?i)(github.com)(/)(spiral|cretz)(/)(go-sdk\\/temporal|temporal-sdk-go-advanced).*" tags: diff --git a/rules/sinks/third_parties/sdk/tencent/go.yaml b/rules/sinks/third_parties/sdk/tencent/go.yaml index c902c772..d903a700 100644 --- a/rules/sinks/third_parties/sdk/tencent/go.yaml +++ b/rules/sinks/third_parties/sdk/tencent/go.yaml @@ -9,7 +9,7 @@ sinks: domains: - "tencent.com" patterns: - - "(?i)(github.com)[\\/](tencentcloud)[\\/](tencentcloud-sdk-go).*" + - "(?i)(github.com)(/)(tencentcloud)(/)(tencentcloud-sdk-go).*" tags: - id: ThirdParties.SDK.Tencent.Cloud @@ -17,5 +17,5 @@ sinks: domains: - "intl.cloud.tencent.com" patterns: - - "(?i)(github.com)[\\/](tencentyun|tencentad|dreamCodeMan|bulletRush|lily-lee|SiCo-Ops|MangoMilk|dreamcodeman|teamlint|cosmos|mozillazg|lewzylu|huanght1997|likexian|yiGmMk|liuyongqing|Garyluoluoluo)[\\/](qcloud-cos-sts-sdk\\/go|qcloud-sdk|qcloud-cos-go-sdk|cloud-go-sdk\\/qcloud|go-sdk\\/qcloud|qcloud-sms|cosmos-sdk|cos-go-sdk-v5|go-cos|marketing-api-go-sdk).*" + - "(?i)(github.com)(/)(tencentyun|tencentad|dreamCodeMan|bulletRush|lily-lee|SiCo-Ops|MangoMilk|dreamcodeman|teamlint|cosmos|mozillazg|lewzylu|huanght1997|likexian|yiGmMk|liuyongqing|Garyluoluoluo)(/)(qcloud-cos-sts-sdk\\/go|qcloud-sdk|qcloud-cos-go-sdk|cloud-go-sdk\\/qcloud|go-sdk\\/qcloud|qcloud-sms|cosmos-sdk|cos-go-sdk-v5|go-cos|marketing-api-go-sdk).*" tags: diff --git a/rules/sinks/third_parties/sdk/transbank/go.yaml b/rules/sinks/third_parties/sdk/transbank/go.yaml index 903987cd..525cbed7 100644 --- a/rules/sinks/third_parties/sdk/transbank/go.yaml +++ b/rules/sinks/third_parties/sdk/transbank/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "transbank.mn" patterns: - - "(?i)(github.com)[\\/](v1nland|microapis)[\\/](transbank-sdk-golang).*" + - "(?i)(github.com)(/)(v1nland|microapis)(/)(transbank-sdk-golang).*" tags: diff --git a/rules/sinks/third_parties/sdk/trello/go.yaml b/rules/sinks/third_parties/sdk/trello/go.yaml index d9c3858c..f3be2dd4 100644 --- a/rules/sinks/third_parties/sdk/trello/go.yaml +++ b/rules/sinks/third_parties/sdk/trello/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "trello.com" patterns: - - "(?i)(github.com)[\\/](adlio)[\\/](trello).*" + - "(?i)(github.com)(/)(adlio)(/)(trello).*" tags: diff --git a/rules/sinks/third_parties/sdk/twitter/go.yaml b/rules/sinks/third_parties/sdk/twitter/go.yaml index cf7920f3..fafd6ebd 100644 --- a/rules/sinks/third_parties/sdk/twitter/go.yaml +++ b/rules/sinks/third_parties/sdk/twitter/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "twitter.com" patterns: - - "(?i)(github.com)[\\/](contextgg)[\\/](go-sdk\\/autha\\/providers\\/twitter).*" + - "(?i)(github.com)(/)(contextgg)(/)(go-sdk\\/autha\\/providers\\/twitter).*" tags: diff --git a/rules/sinks/third_parties/sdk/uber/go.yaml b/rules/sinks/third_parties/sdk/uber/go.yaml index 7405076a..6d092d19 100644 --- a/rules/sinks/third_parties/sdk/uber/go.yaml +++ b/rules/sinks/third_parties/sdk/uber/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "uber.com" patterns: - - "(?i)(github.com|go.uber.org)[\\/](uber-go\\/tally|goleak).*" + - "(?i)(github.com|go.uber.org)(/)(uber-go\\/tally|goleak).*" tags: diff --git a/rules/sinks/third_parties/sdk/umeng/go.yaml b/rules/sinks/third_parties/sdk/umeng/go.yaml index ef4b50ee..7c957774 100644 --- a/rules/sinks/third_parties/sdk/umeng/go.yaml +++ b/rules/sinks/third_parties/sdk/umeng/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "umeng.com" patterns: - - "(?i)(github.com)[\\/](shfc|kkkbird|huangfuhui|uhhc)[\\/](umeng-openapi-sdk|umeng-push).*" + - "(?i)(github.com)(/)(shfc|kkkbird|huangfuhui|uhhc)(/)(umeng-openapi-sdk|umeng-push).*" tags: diff --git a/rules/sinks/third_parties/sdk/vaultproject/go.yaml b/rules/sinks/third_parties/sdk/vaultproject/go.yaml index 9d4ccdaa..121ee5f8 100644 --- a/rules/sinks/third_parties/sdk/vaultproject/go.yaml +++ b/rules/sinks/third_parties/sdk/vaultproject/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "vaultproject.io" patterns: - - "(?i)(github.com)[\\/](hashicorp)[\\/](vault-plugin-auth-kerberos|vault-plugin-auth-kubernetes|vault-plugin-auth-oci|vault-plugin-secrets-ad|vault-plugin-secrets-kv|vault-plugin-secrets-openldap|vault-plugin-secrets-terraform).*" + - "(?i)(github.com)(/)(hashicorp)(/)(vault-plugin-auth-kerberos|vault-plugin-auth-kubernetes|vault-plugin-auth-oci|vault-plugin-secrets-ad|vault-plugin-secrets-kv|vault-plugin-secrets-openldap|vault-plugin-secrets-terraform).*" tags: diff --git a/rules/sinks/third_parties/sdk/virgilsecurity/go.yaml b/rules/sinks/third_parties/sdk/virgilsecurity/go.yaml index 2e96dd7a..4e933ba4 100644 --- a/rules/sinks/third_parties/sdk/virgilsecurity/go.yaml +++ b/rules/sinks/third_parties/sdk/virgilsecurity/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "virgilsecurity.com" patterns: - - "(?i)(github.com|gopkg.in)[\\/](VirgilSecurity|tochka)[\\/](virgil-sdk-go).*" + - "(?i)(github.com|gopkg.in)(/)(VirgilSecurity|tochka)(/)(virgil-sdk-go).*" tags: diff --git a/rules/sinks/third_parties/sdk/vmware/go.yaml b/rules/sinks/third_parties/sdk/vmware/go.yaml index b086cce9..7e409a11 100644 --- a/rules/sinks/third_parties/sdk/vmware/go.yaml +++ b/rules/sinks/third_parties/sdk/vmware/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "vmware.com" patterns: - - "(?i)(github.com)[\\/](vmware|clumio-code|laidbackware)[\\/](vsphere-automation-sdk-go|alb-sdk|photon-controller-go-sdk|vra-sdk-go\\/pkg\\/client|clumio-go-sdk\\/controllers|vmware-download-sdk).*" + - "(?i)(github.com)(/)(vmware|clumio-code|laidbackware)(/)(vsphere-automation-sdk-go|alb-sdk|photon-controller-go-sdk|vra-sdk-go\\/pkg\\/client|clumio-go-sdk\\/controllers|vmware-download-sdk).*" tags: diff --git a/rules/sinks/third_parties/sdk/wechat/go.yaml b/rules/sinks/third_parties/sdk/wechat/go.yaml index ed23034e..18bbeefe 100644 --- a/rules/sinks/third_parties/sdk/wechat/go.yaml +++ b/rules/sinks/third_parties/sdk/wechat/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "wechat.com" patterns: - - "(?i)(github.com)[\\/](chanxuehong|chanxuehong|XieXianbin|esap|rixingyike|zhi-miao)[\\/](wechat|wechat-sdk\\/pay).*" + - "(?i)(github.com)(/)(chanxuehong|chanxuehong|XieXianbin|esap|rixingyike|zhi-miao)(/)(wechat|wechat-sdk\\/pay).*" tags: diff --git a/rules/sinks/third_parties/sdk/whatsapp/go.yaml b/rules/sinks/third_parties/sdk/whatsapp/go.yaml index 6628f39b..b8d50317 100644 --- a/rules/sinks/third_parties/sdk/whatsapp/go.yaml +++ b/rules/sinks/third_parties/sdk/whatsapp/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "whatsapp.com" patterns: - - "(?i)(github.com)[\\/](Rhymen)[\\/](go-whatsapp).*" + - "(?i)(github.com)(/)(Rhymen)(/)(go-whatsapp).*" tags: diff --git a/rules/sinks/third_parties/sdk/workos/go.yaml b/rules/sinks/third_parties/sdk/workos/go.yaml index 23a859d9..8c05dc0d 100644 --- a/rules/sinks/third_parties/sdk/workos/go.yaml +++ b/rules/sinks/third_parties/sdk/workos/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "workos.com" patterns: - - "(?i)(github.com)[\\/](workos)[\\/](workos-go).*" + - "(?i)(github.com)(/)(workos)(/)(workos-go).*" tags: diff --git a/rules/sinks/third_parties/sdk/xiaomi/go.yaml b/rules/sinks/third_parties/sdk/xiaomi/go.yaml index dd21d8a7..0584c367 100644 --- a/rules/sinks/third_parties/sdk/xiaomi/go.yaml +++ b/rules/sinks/third_parties/sdk/xiaomi/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "xiaomi.com" patterns: - - "(?i)(github.com)[\\/](XiaoMi|cristiane|rxwen|curltech|ling-bin)[\\/](galaxy-sdk-go|go-push-sdk|xiaomi-go-sdk-push|galaxy-fds-sdk-golang).*" + - "(?i)(github.com)(/)(XiaoMi|cristiane|rxwen|curltech|ling-bin)(/)(galaxy-sdk-go|go-push-sdk|xiaomi-go-sdk-push|galaxy-fds-sdk-golang).*" tags: diff --git a/rules/sinks/third_parties/sdk/yandex/go.yaml b/rules/sinks/third_parties/sdk/yandex/go.yaml index 35082e62..8cb8c0ba 100644 --- a/rules/sinks/third_parties/sdk/yandex/go.yaml +++ b/rules/sinks/third_parties/sdk/yandex/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "yandex.com" patterns: - - "(?i)(github.com)[\\/](yandex-cloud)[\\/](go-sdk|ydb-go-sdk).*" + - "(?i)(github.com)(/)(yandex-cloud)(/)(go-sdk|ydb-go-sdk).*" tags: diff --git a/rules/sinks/third_parties/sdk/yoomoney/go.yaml b/rules/sinks/third_parties/sdk/yoomoney/go.yaml index 6aaea7b2..a561b0c6 100644 --- a/rules/sinks/third_parties/sdk/yoomoney/go.yaml +++ b/rules/sinks/third_parties/sdk/yoomoney/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "yoomoney.ru" patterns: - - "(?i)(github.com)[\\/](telf01)[\\/](yookassa-go-sdk).*" + - "(?i)(github.com)(/)(telf01)(/)(yookassa-go-sdk).*" tags: diff --git a/rules/sinks/third_parties/sdk/yunpian/go.yaml b/rules/sinks/third_parties/sdk/yunpian/go.yaml index 7d3d5ed5..575b834f 100644 --- a/rules/sinks/third_parties/sdk/yunpian/go.yaml +++ b/rules/sinks/third_parties/sdk/yunpian/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "yunpian.com" patterns: - - "(?i)(github.com)[\\/](yunpian|FeiniuBus|fixJ|venuses|feiniubus)[\\/](yunpian-go-sdk).*" + - "(?i)(github.com)(/)(yunpian|FeiniuBus|fixJ|venuses|feiniubus)(/)(yunpian-go-sdk).*" tags: From 6de48a4dab71dff09027fe9df6610bcf11863ded Mon Sep 17 00:00:00 2001 From: Ankit Kumar Date: Tue, 31 Oct 2023 12:31:12 +0530 Subject: [PATCH 7/8] go third party backslash fix --- rules/sinks/third_parties/sdk/auth0/go.yaml | 2 +- rules/sinks/third_parties/sdk/checkout/go.yaml | 2 +- rules/sinks/third_parties/sdk/consul/go.yaml | 2 +- rules/sinks/third_parties/sdk/elastic/go.yaml | 2 +- rules/sinks/third_parties/sdk/google/go.yaml | 6 +++--- rules/sinks/third_parties/sdk/microsoft/go.yaml | 2 +- rules/sinks/third_parties/sdk/pulumi/go.yaml | 2 +- rules/sinks/third_parties/sdk/sensorsdata/go.yaml | 2 +- rules/sinks/third_parties/sdk/sentry/go.yaml | 2 +- rules/sinks/third_parties/sdk/slack/go.yaml | 2 +- rules/sinks/third_parties/sdk/temporal/go.yaml | 2 +- rules/sinks/third_parties/sdk/tencent/go.yaml | 2 +- rules/sinks/third_parties/sdk/twitter/go.yaml | 2 +- rules/sinks/third_parties/sdk/uber/go.yaml | 2 +- rules/sinks/third_parties/sdk/vmware/go.yaml | 2 +- rules/sinks/third_parties/sdk/wechat/go.yaml | 2 +- 16 files changed, 18 insertions(+), 18 deletions(-) diff --git a/rules/sinks/third_parties/sdk/auth0/go.yaml b/rules/sinks/third_parties/sdk/auth0/go.yaml index 5507dc1e..ddee025c 100644 --- a/rules/sinks/third_parties/sdk/auth0/go.yaml +++ b/rules/sinks/third_parties/sdk/auth0/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "auth0.com" patterns: - - "(?i)(github.com)(/)(auth0-community|pulumi|auth0-lab)(/)(go-auth0|pulumi-auth0\\/sdk\\/v2\\/go\\/auth0|fga-go-sdk).*" + - "(?i)(github.com)(/)(auth0-community|pulumi|auth0-lab)(/)(go-auth0|pulumi-auth0/sdk/v2/go/auth0|fga-go-sdk).*" tags: diff --git a/rules/sinks/third_parties/sdk/checkout/go.yaml b/rules/sinks/third_parties/sdk/checkout/go.yaml index f13f539a..59e3a43c 100644 --- a/rules/sinks/third_parties/sdk/checkout/go.yaml +++ b/rules/sinks/third_parties/sdk/checkout/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "checkout.com" patterns: - - "(?i)(github.com)(/)(checkout)(/)(checkout-sdk-go\\/payments).*" + - "(?i)(github.com)(/)(checkout)(/)(checkout-sdk-go/payments).*" tags: diff --git a/rules/sinks/third_parties/sdk/consul/go.yaml b/rules/sinks/third_parties/sdk/consul/go.yaml index c6813baa..cda3faae 100644 --- a/rules/sinks/third_parties/sdk/consul/go.yaml +++ b/rules/sinks/third_parties/sdk/consul/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "consul.io" patterns: - - "(?i)(github.com|gopkg.in)(/)(launchdarkly|yingyingtang-brex|hashicorp)(/)(go-server-sdk.v4|go-server-sdk-consul|go-server-sdk\\/ldconsul|go-client.v4\\/ldconsul|go-client\\/ldconsul|packer-plugin-sdk\\/template|waypoint-plugin-sdk).*" + - "(?i)(github.com|gopkg.in)(/)(launchdarkly|yingyingtang-brex|hashicorp)(/)(go-server-sdk.v4|go-server-sdk-consul|go-server-sdk/ldconsul|go-client/ldconsul|go-client/ldconsul|packer-plugin-sdk/template|waypoint-plugin-sdk).*" tags: diff --git a/rules/sinks/third_parties/sdk/elastic/go.yaml b/rules/sinks/third_parties/sdk/elastic/go.yaml index 6ce37c47..d3d614ec 100644 --- a/rules/sinks/third_parties/sdk/elastic/go.yaml +++ b/rules/sinks/third_parties/sdk/elastic/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "elastic.co" patterns: - - "(?i)(go.elastic.co|gopkg.in)(/)(apm|olivere\\/elastic|go-elasticsearch).*" + - "(?i)(go.elastic.co|gopkg.in)(/)(apm|olivere/elastic|go-elasticsearch).*" tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/google/go.yaml b/rules/sinks/third_parties/sdk/google/go.yaml index cb7d6c3d..8d4c830b 100644 --- a/rules/sinks/third_parties/sdk/google/go.yaml +++ b/rules/sinks/third_parties/sdk/google/go.yaml @@ -17,7 +17,7 @@ sinks: domains: - "github.google.com" patterns: - - "(?i)(github.com\\/google\\/go-github).*" + - "(?i)(github.com)(/)(google)(/)(go-github).*" tags: - id: ThirdParties.SDK.Google.Map @@ -25,7 +25,7 @@ sinks: domains: - "map.google.com" patterns: - - "(?i)(googlemaps.github.io\\/maps).*" + - "(?i)(googlemaps.github.io/maps).*" tags: - id: ThirdParties.SDK.Google.Firebase @@ -41,7 +41,7 @@ sinks: domains: - "cloud.google.com/endpoints/docs/grpc" patterns: - - "(?i)(github.com)(/)(GoogleCloudPlatform)(/)(golang-samples\\/run\\/grpc-ping).*" + - "(?i)(github.com)(/)(GoogleCloudPlatform)(/)(golang-samples/run/grpc-ping).*" tags: - id: ThirdParties.SDK.Google.Cloud.Firestore diff --git a/rules/sinks/third_parties/sdk/microsoft/go.yaml b/rules/sinks/third_parties/sdk/microsoft/go.yaml index 77902bde..0c885541 100644 --- a/rules/sinks/third_parties/sdk/microsoft/go.yaml +++ b/rules/sinks/third_parties/sdk/microsoft/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "azure.microsoft.com" patterns: - - "(?i)(github.com)(/)(Azure|AzureAD|microsoft|MSOpenTech|kris-nova|kubicorn|pulumi|vmware|SsrCoder|pmalek-sumo|wiz-sec|jackesdavid|msopentech|discentem|dennis-menge|veertuinc|beyondnetworks|peterzeller|dbaur|larstore|johnstairs|tadelesh|hashicorp|tombuildsstuff)(/)(azure-pipeline-go|azure-sdk-for-go|kiota\\/abstractions\\/go|kubicorn\\/cloud\\/azure|pulumi-azure|vra-sdk-go\\/pkg\\/client\\/fabric_azure_storage_account|onedrive-sdk-golang|go-autorest|go-ntlmssp|vault-plugin-auth-azure|go-azure-helpers|giovanni|azure-devops-go-api|azure-service-bus-go|go-amqp|azure-amqp-common-go|microsoft-authentication-library-for-go).*" + - "(?i)(github.com)(/)(Azure|AzureAD|microsoft|MSOpenTech|kris-nova|kubicorn|pulumi|vmware|SsrCoder|pmalek-sumo|wiz-sec|jackesdavid|msopentech|discentem|dennis-menge|veertuinc|beyondnetworks|peterzeller|dbaur|larstore|johnstairs|tadelesh|hashicorp|tombuildsstuff)(/)(azure-pipeline-go|azure-sdk-for-go|kiota/abstractions/go|kubicorn/cloud/azure|pulumi-azure|vra-sdk-go/pkg/client/fabric_azure_storage_account|onedrive-sdk-golang|go-autorest|go-ntlmssp|vault-plugin-auth-azure|go-azure-helpers|giovanni|azure-devops-go-api|azure-service-bus-go|go-amqp|azure-amqp-common-go|microsoft-authentication-library-for-go).*" tags: diff --git a/rules/sinks/third_parties/sdk/pulumi/go.yaml b/rules/sinks/third_parties/sdk/pulumi/go.yaml index 1bdd02d4..8f49162d 100644 --- a/rules/sinks/third_parties/sdk/pulumi/go.yaml +++ b/rules/sinks/third_parties/sdk/pulumi/go.yaml @@ -9,6 +9,6 @@ sinks: domains: - "pulumi.com" patterns: - - "(?i)(github.com)(/)(pulumi)(/)(pulumi\\/sdk).*" + - "(?i)(github.com)(/)(pulumi)(/)(pulumi/sdk).*" tags: diff --git a/rules/sinks/third_parties/sdk/sensorsdata/go.yaml b/rules/sinks/third_parties/sdk/sensorsdata/go.yaml index 11a0795f..c5014ca9 100644 --- a/rules/sinks/third_parties/sdk/sensorsdata/go.yaml +++ b/rules/sinks/third_parties/sdk/sensorsdata/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "sensorsdata.cn" patterns: - - "(?i)(github.com)(/)(sensorsdata)(/)(sa-sdk-go\\/structs|abtesting-sdk-go).*" + - "(?i)(github.com)(/)(sensorsdata)(/)(sa-sdk-go/structs|abtesting-sdk-go).*" tags: diff --git a/rules/sinks/third_parties/sdk/sentry/go.yaml b/rules/sinks/third_parties/sdk/sentry/go.yaml index 76428d08..f124210d 100644 --- a/rules/sinks/third_parties/sdk/sentry/go.yaml +++ b/rules/sinks/third_parties/sdk/sentry/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "sentry.io" patterns: - - "(?i)(github.com)(/)(getsentry|harmony-development|blend)(/)(sentry-go|go-sdk\\/sentry).*" + - "(?i)(github.com)(/)(getsentry|harmony-development|blend)(/)(sentry-go|go-sdk/sentry).*" tags: diff --git a/rules/sinks/third_parties/sdk/slack/go.yaml b/rules/sinks/third_parties/sdk/slack/go.yaml index 26c66830..2046afa9 100644 --- a/rules/sinks/third_parties/sdk/slack/go.yaml +++ b/rules/sinks/third_parties/sdk/slack/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "slack.com" patterns: - - "(?i)(github.com)(/)(blend|totvs|gogurgaon|seratch|ericogr|lacework|totvs)(/)(go-sdk\\/slack|pulumi-slack\\/sdk|joinslack\\/api|go-slack-sdk-experimental|pulumi-resource-slack\\/sdk\\/go|pulumi-slack\\/sdk\\/go|go-sdk\\/api|pulumi-slack-remover).*" + - "(?i)(github.com)(/)(blend|totvs|gogurgaon|seratch|ericogr|lacework|totvs)(/)(go-sdk/slack|pulumi-slack/sdk|joinslack/api|go-slack-sdk-experimental|pulumi-resource-slack/sdk/go|pulumi-slack/sdk/go|go-sdk/api|pulumi-slack-remover).*" tags: diff --git a/rules/sinks/third_parties/sdk/temporal/go.yaml b/rules/sinks/third_parties/sdk/temporal/go.yaml index fe46c8ab..3870d519 100644 --- a/rules/sinks/third_parties/sdk/temporal/go.yaml +++ b/rules/sinks/third_parties/sdk/temporal/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "temporal.io" patterns: - - "(?i)(github.com)(/)(spiral|cretz)(/)(go-sdk\\/temporal|temporal-sdk-go-advanced).*" + - "(?i)(github.com)(/)(spiral|cretz)(/)(go-sdk/temporal|temporal-sdk-go-advanced).*" tags: diff --git a/rules/sinks/third_parties/sdk/tencent/go.yaml b/rules/sinks/third_parties/sdk/tencent/go.yaml index d903a700..b84a0c82 100644 --- a/rules/sinks/third_parties/sdk/tencent/go.yaml +++ b/rules/sinks/third_parties/sdk/tencent/go.yaml @@ -17,5 +17,5 @@ sinks: domains: - "intl.cloud.tencent.com" patterns: - - "(?i)(github.com)(/)(tencentyun|tencentad|dreamCodeMan|bulletRush|lily-lee|SiCo-Ops|MangoMilk|dreamcodeman|teamlint|cosmos|mozillazg|lewzylu|huanght1997|likexian|yiGmMk|liuyongqing|Garyluoluoluo)(/)(qcloud-cos-sts-sdk\\/go|qcloud-sdk|qcloud-cos-go-sdk|cloud-go-sdk\\/qcloud|go-sdk\\/qcloud|qcloud-sms|cosmos-sdk|cos-go-sdk-v5|go-cos|marketing-api-go-sdk).*" + - "(?i)(github.com)(/)(tencentyun|tencentad|dreamCodeMan|bulletRush|lily-lee|SiCo-Ops|MangoMilk|dreamcodeman|teamlint|cosmos|mozillazg|lewzylu|huanght1997|likexian|yiGmMk|liuyongqing|Garyluoluoluo)(/)(qcloud-cos-sts-sdk/go|qcloud-sdk|qcloud-cos-go-sdk|cloud-go-sdk/qcloud|go-sdk/qcloud|qcloud-sms|cosmos-sdk|cos-go-sdk-v5|go-cos|marketing-api-go-sdk).*" tags: diff --git a/rules/sinks/third_parties/sdk/twitter/go.yaml b/rules/sinks/third_parties/sdk/twitter/go.yaml index fafd6ebd..4d8316b5 100644 --- a/rules/sinks/third_parties/sdk/twitter/go.yaml +++ b/rules/sinks/third_parties/sdk/twitter/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "twitter.com" patterns: - - "(?i)(github.com)(/)(contextgg)(/)(go-sdk\\/autha\\/providers\\/twitter).*" + - "(?i)(github.com)(/)(contextgg)(/)(go-sdk\\/autha/providers/twitter).*" tags: diff --git a/rules/sinks/third_parties/sdk/uber/go.yaml b/rules/sinks/third_parties/sdk/uber/go.yaml index 6d092d19..12048858 100644 --- a/rules/sinks/third_parties/sdk/uber/go.yaml +++ b/rules/sinks/third_parties/sdk/uber/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "uber.com" patterns: - - "(?i)(github.com|go.uber.org)(/)(uber-go\\/tally|goleak).*" + - "(?i)(github.com|go.uber.org)(/)(uber-go/tally|goleak).*" tags: diff --git a/rules/sinks/third_parties/sdk/vmware/go.yaml b/rules/sinks/third_parties/sdk/vmware/go.yaml index 7e409a11..3631259e 100644 --- a/rules/sinks/third_parties/sdk/vmware/go.yaml +++ b/rules/sinks/third_parties/sdk/vmware/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "vmware.com" patterns: - - "(?i)(github.com)(/)(vmware|clumio-code|laidbackware)(/)(vsphere-automation-sdk-go|alb-sdk|photon-controller-go-sdk|vra-sdk-go\\/pkg\\/client|clumio-go-sdk\\/controllers|vmware-download-sdk).*" + - "(?i)(github.com)(/)(vmware|clumio-code|laidbackware)(/)(vsphere-automation-sdk-go|alb-sdk|photon-controller-go-sdk|vra-sdk-go/pkg/client|clumio-go-sdk/controllers|vmware-download-sdk).*" tags: diff --git a/rules/sinks/third_parties/sdk/wechat/go.yaml b/rules/sinks/third_parties/sdk/wechat/go.yaml index 18bbeefe..3a8cc95e 100644 --- a/rules/sinks/third_parties/sdk/wechat/go.yaml +++ b/rules/sinks/third_parties/sdk/wechat/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "wechat.com" patterns: - - "(?i)(github.com)(/)(chanxuehong|chanxuehong|XieXianbin|esap|rixingyike|zhi-miao)(/)(wechat|wechat-sdk\\/pay).*" + - "(?i)(github.com)(/)(chanxuehong|chanxuehong|XieXianbin|esap|rixingyike|zhi-miao)(/)(wechat|wechat-sdk/pay).*" tags: From d61cff5eb4805cba6d178d15a85142e1ca42674a Mon Sep 17 00:00:00 2001 From: Ankit Kumar Date: Tue, 31 Oct 2023 14:35:10 +0530 Subject: [PATCH 8/8] go third parties rule fix --- rules/sinks/third_parties/sdk/hubspot/go.yaml | 2 +- rules/sinks/third_parties/sdk/machineBox/go.yaml | 13 ------------- rules/sinks/third_parties/sdk/microsoft/go.yaml | 2 +- 3 files changed, 2 insertions(+), 15 deletions(-) delete mode 100644 rules/sinks/third_parties/sdk/machineBox/go.yaml diff --git a/rules/sinks/third_parties/sdk/hubspot/go.yaml b/rules/sinks/third_parties/sdk/hubspot/go.yaml index 8d1b3ae3..2b9efa97 100644 --- a/rules/sinks/third_parties/sdk/hubspot/go.yaml +++ b/rules/sinks/third_parties/sdk/hubspot/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "hubspot.com" patterns: - - "(?i)(github.com)(/)(getwagz|Getwagz)(/)(hubspot-sdk).*" + - "(?i)(github.com)(/)(getwagz)(/)(hubspot-sdk).*" tags: diff --git a/rules/sinks/third_parties/sdk/machineBox/go.yaml b/rules/sinks/third_parties/sdk/machineBox/go.yaml deleted file mode 100644 index 30b1ac0f..00000000 --- a/rules/sinks/third_parties/sdk/machineBox/go.yaml +++ /dev/null @@ -1,13 +0,0 @@ - -# Sink rule for ThirdParty SDK -# The id follows a format : "ThirdParties.SDK.." - -sinks: - - - id: ThirdParties.SDK.Machinebox - name: MachineBox - domains: - - "machinebox.com" - patterns: - - "(?i)(github.com/machinebox/graphql).*" - tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/microsoft/go.yaml b/rules/sinks/third_parties/sdk/microsoft/go.yaml index 0c885541..d106dea9 100644 --- a/rules/sinks/third_parties/sdk/microsoft/go.yaml +++ b/rules/sinks/third_parties/sdk/microsoft/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "azure.microsoft.com" patterns: - - "(?i)(github.com)(/)(Azure|AzureAD|microsoft|MSOpenTech|kris-nova|kubicorn|pulumi|vmware|SsrCoder|pmalek-sumo|wiz-sec|jackesdavid|msopentech|discentem|dennis-menge|veertuinc|beyondnetworks|peterzeller|dbaur|larstore|johnstairs|tadelesh|hashicorp|tombuildsstuff)(/)(azure-pipeline-go|azure-sdk-for-go|kiota/abstractions/go|kubicorn/cloud/azure|pulumi-azure|vra-sdk-go/pkg/client/fabric_azure_storage_account|onedrive-sdk-golang|go-autorest|go-ntlmssp|vault-plugin-auth-azure|go-azure-helpers|giovanni|azure-devops-go-api|azure-service-bus-go|go-amqp|azure-amqp-common-go|microsoft-authentication-library-for-go).*" + - "(?i)(github.com)(/)(Azure|AzureAD|microsoft|MSOpenTech|kris-nova|kubicorn|pulumi|vmware|SsrCoder|pmalek-sumo|wiz-sec|jackesdavid|msopentech|discentem|dennis-menge|veertuinc|beyondnetworks|peterzeller|dbaur|larstore|johnstairs|tadelesh|hashicorp|tombuildsstuff)(/)(azure-pipeline-go|azure-sdk-for-go|kiota/abstractions/go|kubicorn/cloud/azure|pulumi-azure/sdk|vra-sdk-go/pkg/client/fabric_azure_storage_account|onedrive-sdk-golang|go-autorest|go-ntlmssp|vault-plugin-auth-azure|go-azure-helpers|giovanni|azure-devops-go-api|azure-service-bus-go|go-amqp|azure-amqp-common-go|microsoft-authentication-library-for-go).*" tags: