-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #452 from Privado-Inc/dev
Release PR
- Loading branch information
Showing
15 changed files
with
169 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
sinks: | ||
- id: Leakages.Log.Critical | ||
name: Log Critical | ||
patterns: | ||
- "(?i).*(?:log|logger)->.*(?:emergency|alert|critical).*" | ||
tags: | ||
|
||
- id: Leakages.Log.Error | ||
name: Log Error | ||
patterns: | ||
- "(?i).*(?:log|logger)->.*(?:error).*" | ||
tags: | ||
|
||
- id: Leakages.Log.Warn | ||
name: Log Warn | ||
patterns: | ||
- "(?i).*(?:log|logger)->.*(?:warning).*" | ||
tags: | ||
|
||
- id: Leakages.Log.Debug | ||
name: Log Debug | ||
patterns: | ||
- "(?i).*(?:log|logger)->.*(?:debug).*" | ||
tags: | ||
|
||
- id: Leakages.Log.Info | ||
name: Log Info | ||
patterns: | ||
- "(?i).*(?:log|logger)->.*(?:info|notice).*" | ||
tags: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
# Sink Rules for Doctrine DB Interface | ||
|
||
sinks: | ||
- id: Storages.Doctrine.Interface.Initialize | ||
name: Doctrine Interface (Initialize) | ||
domains: | ||
- www.doctrine-project.org | ||
patterns: | ||
- "(?i).*(?:Doctrine\\\\ORM\\\\EntityManager).*(__construct)" | ||
|
||
- id: Storages.Doctrine.Interface.ReadAndWrite | ||
name: Doctrine Interface (Read and Write) | ||
domains: | ||
- www.doctrine-project.org | ||
patterns: | ||
- "(?i).*(?:Doctrine\\\\ORM\\\\EntityManager).*(getConnection|getMetadataFactory|getExpressionBuilder|beginTransaction|transactional|commit|rollback|getClassMetadata|createQuery|createNamedQuery|createNativeQuery|createNamedNativeQuery|createQueryBuilder|flush|find|getReference|getPartialReference|clear|close|persist|remove|refresh|detach|merge|copy|lock|getEventManager|create|insert|delete)" | ||
tags: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
# Sink Rules for Laravel DB Facade | ||
|
||
sinks: | ||
- id: Storages.Laravel.Facade.Initialize | ||
name: Laravel Facade (Initialize) | ||
domains: | ||
- laravel.com | ||
patterns: | ||
- "(?i).*(?:Illuminate\\\\Support\\\\Facades\\\\DB).*(connection)" | ||
|
||
- id: Storages.Laravel.Facade.ReadAndWrite | ||
name: Laravel Facade (Read and Write) | ||
domains: | ||
- laravel.com | ||
patterns: | ||
- "(?i).*(?:Illuminate\\\\Support\\\\Facades\\\\DB).*(select|selectResultSets|scalar|insert|prepareBindings|unprepared|statement|delete|update|transaction|commit|begin_transaction|rollBack|table)" | ||
tags: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
# Sink Rules for MySQL | ||
|
||
sinks: | ||
- id: Storages.MySQL.Initialize | ||
name: MySQL DB (Initialize) | ||
domains: | ||
- mysql.com | ||
patterns: | ||
- "(?i).*(?:mysqli|mysql).*(construct|connect)" | ||
|
||
- id: Storages.MySQL.ReadAndWrite | ||
name: MySQL DB (Read and Write) | ||
domains: | ||
- mysql.com | ||
patterns: | ||
- "(?i).*(?:mysqli|mysql|PDO).*(affected_rows|create_db|drop_db|construct|query|prepare|execute|bindValue|bind_param|setAttribute|store_result|fetch_all|fetch_array|fetch_row|num_fields|num_rows|next_result)" | ||
tags: | ||
|
||
- id: Storages.MySQL.ClearResources | ||
name: MySQL DB (Clear resources) | ||
domains: | ||
- mysql.com | ||
patterns: | ||
- "(?i).*(?:mysqli|mysql|PDO).*(free_result|close)" | ||
tags: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
# Sink Rules for storage database Elasticsearch - https://www.opensearch.org | ||
|
||
sinks: | ||
|
||
- id: Storages.Opensearch.Read | ||
name: Opensearch(Read) | ||
domains: | ||
- opensearch.org | ||
patterns: | ||
- "(?i).*(?:org[.]opensearch[.](action|client)).*(?:get|list|head|select|view|find|search|match).*" | ||
tags: | ||
|
||
- id: Storages.Opensearch.Write | ||
name: Opensearch(Write) | ||
domains: | ||
- opensearch.org | ||
patterns: | ||
- "(?i).*(?:org[.]opensearch[.](action|client)).*(?:add|copy|apply|create|delete|modify|remove|reset|restore|insert|drop|rename|save|set|update|bulkWrite).*" | ||
- "org.apache.flink.connector.opensearch.sink.OpensearchSinkBuilder.*" | ||
tags: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
# Sink Rules for PostgreSQL | ||
|
||
sinks: | ||
- id: Storages.PostgreSQL.Initialize | ||
name: PostgreSQL DB (Initialize) | ||
domains: | ||
- postgresql.org | ||
patterns: | ||
- "(?i).*(pg_connect|pg_connect_poll|pg_connection).*" | ||
|
||
- id: Storages.PostgreSQL.ReadAndWrite | ||
name: PostgreSQL DB (Read and Write) | ||
domains: | ||
- postgresql.org | ||
patterns: | ||
- "(?i).*(pg_query|pg_fetch|pg_field|pg_lo|pg_affected_rows|pg_num|pg_result|pg_set|pg_delete).*" | ||
tags: | ||
|
||
- id: Storages.PostgreSQL.ClearResources | ||
name: PostgreSQL DB (Clear resources) | ||
domains: | ||
- postgresql.org | ||
patterns: | ||
- "(?i).*(pg_free_result|pg_close|pg_cancel_query)" | ||
tags: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters