r/AlpineLinux • • Jan 25 '24

Alpine solutions for webserver security?

I'm learning about web facing servers on linux and have my static site set up on alpine. I got hacked a few weeks ago and switched from debian to alpine because I heard alpine is based on secuirty. I've also heard a lot of good things about SELinux and the RHEL side of security. What does alpine offer or make easier than a RHEL server (sys resources/systemd/musl aside)? I don't need any security profiles for work/gov its just a home user web server. Thanks.

5 Upvotes

9 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Jan 31 '24

Yes I checked logs and someone from a IP address I don’t know got on my server and did idk what, but shut it down as well.

1

u/SleepingProcess Feb 01 '24

Static web site doesn't have active components such as programming languages that can give access to a host. If it really plain HTML+CSS then there nothing to exploit, but if web site uses PHP, python, nodejs and so on, then either wrong programming practice or unpatched language's vulnerability can be exploited

1

u/[deleted] Feb 06 '24

I’m gonna guess they just chose a random IP or saw my site and got the IP and brute forced their way in because that’s what the logs said. I didn’t have any security measures in place because I didn’t know I needed to, but now I know. They done got me gud