Contributing
Every pattern in this registry was contributed by someone who needed it and decided to share the work.
How to submit a pattern
- Fork the patterns repository
- Create a YAML file in the appropriate jurisdiction directory
- Follow the testpattern/v1 schema
- Submit a pull request
Quality bar
Each pattern must have:
- At least 3 should_match and 2 should_not_match test cases
- False positive documentation
- At least one regulation and jurisdiction tag
- Confidence level with justification
- Corroborative evidence keywords where applicable
Pattern types
regex— Regular expression patternkeyword_list— List of keywords to matchkeyword_dictionary— Weighted keyword dictionaryfingerprint— Document fingerprint definition
Engine compatibility
boost_regex— Microsoft Purview (Boost.RegEx)pcre2— PCRE2 compatibleecma— JavaScript/ECMAScriptpython_re— Python re moduleuniversal— Works across all major engines
License
All patterns are released under the MIT License. By submitting a pattern, you agree to release it under MIT.