Removing the generator from the wordpress header
Including the wordpress version number in the source code will help malicious attacks, as known exploits of non-updated versions of wordpress can be exploited.
Use the code snippet or plugin below to solve the problem.
<?php remove_action(‘wp_head’, ‘wp_generator’); ?>