Skip to content

Commit

Permalink
api variable name match
Browse files Browse the repository at this point in the history
  • Loading branch information
khemrajrathore committed Mar 17, 2023
1 parent 1cc1108 commit 6d52c74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/systemConfig/java.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ systemConfig:
value: (?i)(?:url|client|openConnection|request|execute|newCall|load|host|access|fetch|get|getInputStream|getApod|getForObject|getForEntity|list|set|put|post|proceed|trace|patch|Path|send|sendAsync|remove|delete|write|read|assignment|provider|exchange|postForEntity)

- key: apiIdentifier
value: (?i).*((hook|base|authorize|provider|endpoint|installation)(s){0,1}(_){0,1}url|(slack|web)(_){0,1}hook|(rest|api)(_){0,1}endpoint).*
value: (?i).*((hook|base|authorize|provider|endpoint|installation|request|service)(s){0,1}(_){0,1}url|(slack|web)(_){0,1}hook|(rest|api|request|service)(_){0,1}endpoint).*
2 changes: 1 addition & 1 deletion rules/sinks/third_parties/api/java.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ sinks:
name: Third Party API
patterns:
- "(?i)((?:http|https):\\/\\/[a-zA-Z0-9_-][^)\\/(#|,!>\\s]{1,50}\\.(?:com|net|org|de|in|uk|us|io|gov|cn|ml|ai|ly|dev|cloud|me|icu|ru|info|top|tk|tr|cn|ga|cf|nl)).*(?<!png|jpeg|jpg|txt|blob|css|html|js|svg)"
- "(?i).*((hook|base|authorize|provider|endpoint|installation)(s){0,1}(_){0,1}url|(slack|web)(_){0,1}hook|(rest|api)(_){0,1}endpoint).*"
- "(?i).*((hook|base|authorize|provider|endpoint|installation|request|service)(s){0,1}(_){0,1}url|(slack|web)(_){0,1}hook|(rest|api|request|service)(_){0,1}endpoint).*"
tags:

0 comments on commit 6d52c74

Please sign in to comment.