Create tests for common vulnerabilities
Create tests for common vulnerabilities like SQL injection, path traversal, ... This way the application can never regress.
https://cwe.mitre.org/top25/archive/2020/2020_cwe_top25.html https://owasp.org/www-project-top-ten/