Skip to main content

Rule Extensions for Snyk Code is now generally available

New

Extend Snyk Code's security rules with your own code. Add your custom functions to an existing rule so the engine understands your project's specific logic and returns more accurate findings.

Start with custom sanitizers: register your in-house sanitizer functions so Snyk Code recognizes them as valid ways to clean data, and stops flagging the code paths your own security controls already protect.

What you can do

  • Define and manage custom sanitizers in the in-product UI, with an FQN builder to pinpoint the exact function, or through a public REST API.

  • Preview the impact of a change in the UI or with the impact-test API before you apply it — see how your findings change before anything reaches your team.

  • Agent-friendly API: manage and preview rule extensions programmatically, so automation and agents can configure them at scale.

  • Available to Enterprise customers.

For our closed-beta customers

Thank you for shaping Rule Extensions during the closed beta. There are a few migration steps to complete — please read the documentation.

Learn more in the Rule Extensions documentation and the API reference.

Headshot of Sebastian Roth

Sebastian Roth | Senior Product Manager