Skip to content

Commit

Permalink
Merge pull request #359 from Privado-Inc/dev
Browse files Browse the repository at this point in the history
add android collection rules (#356)
  • Loading branch information
pandurangpatil authored Nov 27, 2023
2 parents c2a7c88 + b2fffbf commit 93abfc0
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 4 deletions.
43 changes: 43 additions & 0 deletions rules/collections/android/any.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
collections:
- id: Collections.Android.Form.Email
name: Android app email input
patterns:
- "(?i)email.*"
tags:

- id: Collections.Android.Form.User
name: Android app username input
patterns:
- "(?i)user.*"
tags:

- id: Collections.Android.Form.Address
name: Address text input Android
patterns:
- "(?i)address.*"
tags:

- id: Collections.Android.Form.PhoneNumber
name: Phone number input Android
patterns:
- "(?i)phone.*"
tags:

- id: Collections.Android.Form.ZipCode
name: Zip code input Android
patterns:
- "(?i)zip.*"
tags:

- id: Collections.Android.Form.Password
name: Password input Android
patterns:
- "(?i)password.*"
tags:

- id: Collections.Android.Form.Sensitve
name: Miscellaneous sensitive text input Android
patterns:
- ".*(?i)(bio|message|detail|comment).*"
tags:

4 changes: 2 additions & 2 deletions rules/sinks/storages/elasticsearch/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ sinks:
domains:
- elastic.co
patterns:
- "(?i)(github.com/olivere/elastic).*(Search)"
- "(?i)(github.com|gopkg.in)(/)(olivere)(/)(elastic).*(Search)"
tags:

- id: Storages.Elasticsearch.Write
name: Elasticsearch(Write)
domains:
- elastic.co
patterns:
- "(?i)(github.com/olivere/elastic).*(CreateIndex|Delete|Update)"
- "(?i)(github.com|gopkg.in)(/)(olivere)(/)(elastic).*(CreateIndex|Delete|Update)"
tags:
12 changes: 12 additions & 0 deletions rules/sinks/third_parties/sdk/confluent/go.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Sink rule for ThirdParty SDK
# The id follows a format : "ThirdParties.SDK.<THIRD_PARTY_ORGANISATION>.<SUB_ORGANISATION_IF_APPLICABLE>"

sinks:

- id: ThirdParties.SDK.Confluent.Kafka
name: Confluent Kafka
domains:
- "confluent.io"
patterns:
- "(?i)(github.com)(/)(confluentinc)(/)(confluent-kafka-go).*"
tags:
2 changes: 1 addition & 1 deletion rules/sinks/third_parties/sdk/datadog/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ sinks:
domains:
- "datadoghq.com"
patterns:
- "(?i)(github.com)(/)(DataDog)(/)(datadog-go).*"
- "(?i)(github.com|gopkg.in)(/)(DataDog)(/)(datadog-go|dd-trace-go).*"
tags:
13 changes: 13 additions & 0 deletions rules/sinks/third_parties/sdk/opentelemetry/go.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

# Sink rule for ThirdParty SDK
# The id follows a format : "ThirdParties.SDK.<THIRD_PARTY_ORGANISATION>.<SUB_ORGANISATION_IF_APPLICABLE>"

sinks:

- id: ThirdParties.SDK.Opentelemetry
name: Opentelemetry
domains:
- "opentelemetry.io"
patterns:
- "(?i)(go.opentelemetry.io)(/)(contrib|otel).*"
tags:
2 changes: 1 addition & 1 deletion rules/sinks/third_parties/sdk/temporal/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ sinks:
domains:
- "temporal.io"
patterns:
- "(?i)(github.com)(/)(spiral|cretz)(/)(go-sdk/temporal|temporal-sdk-go-advanced).*"
- "(?i)(github.com|go.temporal.io)(/)(spiral|cretz|sdk)(/)(go-sdk/temporal|temporal-sdk-go-advanced).*"
tags:

0 comments on commit 93abfc0

Please sign in to comment.