Tell HN: Simple Security tips
Simple things that you can do to increase your security without overhauling your whole system.
5 comments
Drop signatures from servers and packages used to build your applications.
The reason is that there are malicious crawlers that build up databases of version numbers and packages, then if a package exploit is announced you'll be visited very quickly by some joker to try to subvert your code.
There are those who do it 'blind', but by giving them an exact target you make it easier for them.
For instance, PHP puts a signature header in to Apaches headers by default, so does apache.
Most frameworks contain a default backlink to the maker of the frame work at the bottom of the templates and so on.
Removing these isn't going to make the vulnerabilities go away, but it might give you a little bit more time to plug the hole if one is found without being compromised.
The reason is that there are malicious crawlers that build up databases of version numbers and packages, then if a package exploit is announced you'll be visited very quickly by some joker to try to subvert your code.
There are those who do it 'blind', but by giving them an exact target you make it easier for them.
For instance, PHP puts a signature header in to Apaches headers by default, so does apache.
Most frameworks contain a default backlink to the maker of the frame work at the bottom of the templates and so on.
Removing these isn't going to make the vulnerabilities go away, but it might give you a little bit more time to plug the hole if one is found without being compromised.
Quite easily done is moving ssh to a non standard port. Similarly force it to use public key only authentication and/or only allow specific users/groups to login. Furthermore fail2ban or similar systems help prevent brute force attacks on ssh.
You can also use something like pound, which is surprisingly easy to configure, in front of your main webserver and let is sanitise everything as it comes in.
I would recommend having a firewall which allows only the bare minimum required, ie. http(s) and ssh, anything else you can set up to port forward through ssh without too much of an issue.
You can also use something like pound, which is surprisingly easy to configure, in front of your main webserver and let is sanitise everything as it comes in.
I would recommend having a firewall which allows only the bare minimum required, ie. http(s) and ssh, anything else you can set up to port forward through ssh without too much of an issue.
[deleted]
- denyhosts
- +1 Drop signatures from servers and packages used to build your applications
- run nmap against your own system to make sure you haven't left any unnecessary ports open
- run nikto against your own system and remediate
Cheers
- +1 Drop signatures from servers and packages used to build your applications
- run nmap against your own system to make sure you haven't left any unnecessary ports open
- run nikto against your own system and remediate
Cheers
[deleted]
Stopping SQL injections is obvious, but a lot fewer people remember to stop CSRF attacks, which can be solved pretty simply with one-time use tokens on forms.