Skip to content

Commit

Permalink
Merge pull request #112 from Privado-Inc/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
khemrajrathore authored Dec 16, 2022
2 parents 78257e2 + b489c57 commit 095ed88
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 7 deletions.
14 changes: 12 additions & 2 deletions config/semantics/java.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,21 @@

semantics:
- signature: "android.text.TextUtils.isEmpty:boolean(java.lang.String)"
flow: "1->-1"

- signature: "android.text.TextUtils.isEmpty:<unresolvedSignature>(1)"

- signature: "org.apache.http.HttpResponse.getStatusLine:org.apache.http.StatusLine()"
flow: "0->0"

- signature: "org.apache.http.HttpResponse.getStatusLine:<unresolvedSignature>(0)"
flow: "0->0"

- signature: "org.apache.http.StatusLine.getStatusCode:boolean()"


- signature: "org.apache.http.StatusLine.getStatusCode:<unresolvedSignature>(0)"

- signature: "javax.persistence.Query.setParameter:<unresolvedSignature>(2)"
flow: "1->0 2->0"

- signature: "javax.persistence.EntityManager.find:<unresolvedSignature>(2)"
flow: "0->-1 1->-1 2->-1"
2 changes: 1 addition & 1 deletion rules/sinks/leakages/logs/java.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ sinks:
- id: Leakages.Log.Debug
name: Log Debug
patterns:
- "(?i)(?:org.slf4j.Logger|org.apache.logging.log4j|org.tinylog.Logger|ch.qos.logback|java.util.logging|timber.log.Timber|android.util.Log).*(debug|log|[.](d|v)[:]).*"
- "(?i)(?:org.slf4j.Logger|org.apache.logging.log4j|org.tinylog.Logger|ch.qos.logback|java.util.logging|timber.log.Timber|android.util.Log).*(debug|log|trace|[.](d|v|t)[:]).*"
tags:

- id: Leakages.Log.Info
Expand Down
2 changes: 1 addition & 1 deletion rules/sinks/third_parties/sdk/sendgrid/java.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ sinks:
domains:
- "sendgrid.com"
patterns:
- "(?i)(clj-sendgrid|com[.]flozano[.]sendgrid|com[.]sendgrid[.]labs|com[.]sendgrid).*"
- "(?i)(clj-sendgrid|com[.]flozano[.]sendgrid|com[.]sendgrid[.]labs|com[.]sendgrid).*(?<!getbody|getStatusCode):.*"
tags:
2 changes: 1 addition & 1 deletion rules/sources/contact_data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sources:
isSensitive: False
sensitivity: medium
patterns:
- "(?i)(.*(?<!(ip|mac|email|server|logical|physical|port|public|private)[-_]?)address)|(?:home|house|billing|mailing|shipping|contact|delivery|office|person|policyholder|insurer|claimant)[^\\s/(;)#|,=!>]{0,10}(?:address|addr)|(?:pin|zip|postal|metro)[-_\\[<'. ]{0,2}code|(?:delivery|pickup)[^\\s/(;)#|,=!>]{0,10}(?:location|position)|house[^\\s/(;)#|,=!>]{0,2}(?:number|no)|address[-_.]{0,2}line"
- "(?i)(.*(?<!(ip|mac|email|server|logical|physical|port|public|private|inet|cc|bcc|to|data|internet|host|remote)[-_]?)address)|(?:home|house|billing|mailing|shipping|contact|delivery|office|person|policyholder|insurer|claimant)[^\\s/(;)#|,=!>]{0,10}(?:address|addr)|(?:pin|zip|postal|metro)[-_\\[<'. ]{0,2}code|(?:delivery|pickup)[^\\s/(;)#|,=!>]{0,10}(?:location|position)|house[^\\s/(;)#|,=!>]{0,2}(?:number|no)|address[-_.]{0,2}line]"
tags:
law: GDPR

Expand Down
2 changes: 1 addition & 1 deletion rules/sources/financial_data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ sources:
isSensitive: False
sensitivity: high
patterns:
- "(?i).*(virtual[^\\s/(;)#|,=!>]{0,5}payment[^\\s/(;)#|,=!>]{0,5}address|virtual[^\\s/(;)#|,=!>]{0,5}payment|upi[-_\\[<'.]{0,2}id)|(merchant|payee|payment|retailer|dealer|seller|vendor)[-_]{0,1}vpa|vpa[-_]{0,1}id"
- "(?i).*(virtual[^\\s/(;)#|,=!>]{0,5}payment[^\\s/(;)#|,=!>]{0,5}address|virtual[^\\s/(;)#|,=!>]{0,5}payment|upi[-_<'.]{0,2}id)|(merchant|payee|payment|retailer|dealer|seller|vendor)[-_]{0,1}vpa|vpa[-_]{0,1}id"
tags:
law: GDPR

Expand Down
2 changes: 1 addition & 1 deletion rules/sources/personal_identification.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ sources:
isSensitive: False
sensitivity: low
patterns:
- "(?i).*(?:first|given|full)[^\\s/(;)#|,=!>]{0,5}name"
- "(?i).*((?:first|given)[^\\s/(;)#|,=!>]{0,5}|full)name"
tags:
law: GDPR

Expand Down

0 comments on commit 095ed88

Please sign in to comment.