The security system is one of the most powerful parts of Symfony and can largely be controlled via its configuration.
The Security component provides a complete security system for your web application.
Symfony Security ACL Component
phpcs-security-audit is a set of PHP_CodeSniffer rules that finds vulnerabilities and weaknesses related to security in PHP code
The objective of this class is offer an automatic system of protection for developers's projects and simplify some security operations as the check of CSRF or XSS all in a simple class. Infact you could just call the main method to have better security yet without too much complicated operations.
Security provides an infrastructure for sophisticated authorization systems, which makes it possible to easily separate the actual authorization logic from so called user providers that hold the users credentials. It is inspired by the Java Spring framework.
The Guard component brings many layers of authentication together, making it much easier to create complex authentication systems where you have total control.