diff --git a/rules/sinks/storages/cookiemanager/javascript.yaml b/rules/sinks/storages/cookiemanager/javascript.yaml index 58a60b91..4effeac3 100644 --- a/rules/sinks/storages/cookiemanager/javascript.yaml +++ b/rules/sinks/storages/cookiemanager/javascript.yaml @@ -1,5 +1,11 @@ sinks: + - id: Storages.Web.Sql + name: Web Sql Database + patterns: + - "(?i)(window.*opendatabase.*)(transaction|executesql)" + tags: + - id: Storages.Web.Cookie.Write name: Web Storage Cookie(Write) patterns: diff --git a/rules/sinks/storages/indexedDB/javascript.yaml b/rules/sinks/storages/indexedDB/javascript.yaml new file mode 100644 index 00000000..eee63030 --- /dev/null +++ b/rules/sinks/storages/indexedDB/javascript.yaml @@ -0,0 +1,17 @@ +sinks: + + - id: Storages.IndexedDB.Write + name: IndexedDB(Write) + domains: + - "w3.org/TR/IndexedDB" + patterns: + - "(?i)(idb).*(deletedb|transaction|createObjectStore|put|delete|clear|add)" + tags: + + - id: Storages.IndexedDB.Read + name: IndexedDB(Read) + domains: + - "w3.org/TR/IndexedDB" + patterns: + - "(?i)(idb).*(opendb|unwrap|wrap|get|getall)" + tags: \ No newline at end of file diff --git a/rules/sources/usage_data.yaml b/rules/sources/usage_data.yaml index 90c09b5d..8d4ee00e 100644 --- a/rules/sources/usage_data.yaml +++ b/rules/sources/usage_data.yaml @@ -5,7 +5,7 @@ sources: isSensitive: False sensitivity: medium patterns: - - "(?i).*(click(stream|track|log)|track{0,2}click|number[^\\s/(;)#|,=!>]{0,10}of[^\\s/(;)#|,=!>]{0,10}(?:clicks|click)|count[^\\s/(;)#|,=!>]{0,10}(?:clicks|click)).*" + - "(?i).*(click(stream|track|log)|track{0,2}click|number[^\\s/(;)#|,=!>]{0,10}of[^\\s/(;)#|,=!>]{0,10}(?:clicks|click)|count[^\\s/(;)#|,=!>]{0,10}(?:clicks|click)).*|trackInteractions|trackFrustrations" tags: law: GDPR