We welcome new queries and improvements to existing ones!
- Create your query using the online Contribute button on the top right.
- Submit it directly — we'll review it and push it to the repository.
That's it! No need to fork, clone, or open a PR.
-
Explore existing queries
- Browse the repo to check if your query (or a similar one) already exists.
- If it does, consider enhancing it instead of duplicating.
-
Create your query in the right format
- Use the Contribute button to create a
.ymlfile in the correct format. - This ensures consistency across all queries in the repository.
- Use the Contribute button to create a
-
Add your query to the repo
- Fork this repository.
- Add your new
.ymlfile under the appropriate directory. - Make sure the file name is descriptive and aligned with the use case.
-
Submit a Pull Request
- Open a PR with your changes.
- Provide a short description of the query, including:
- The purpose of the query (e.g., detection of suspicious PowerShell activity).
- Related MITRE ATT&CK techniques, if applicable.
- Any limitations or known caveats.
- Clarity: Keep queries well-documented and include comments where necessary.
- Consistency: Use the YAML structure from the CQL Hub builder.
- Quality: Queries should be tested before submission to avoid false positives or broken logic.
- Attribution: Add yourself as the author in the YAML metadata so contributors get credit.