r/sysadmin • • Feb 28 '17

Linux Sever Security Checklist?

I am currently looking into expanding my range of skills in the server admin roles. Looking to learn defensive security in more detail. This post is a sort of general inquiry attempting to find out what I should start learning first for a seasoned "beginner". I've been able to break in, but never really looked into keeping people out properly.

Please and thanks.

[Feb28 00:34] iptables denied: IN=enp5s0 OUT= MAC=ff:ff:ff:ff:ff:ff:44:d9:e7:bc:67:21:08:00 SRC=10.0.0.1 DST=255.255.255.255 LEN=170 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=56574 DPT=10001 LEN=150                                    │··········································
[ +10.002208] iptables denied: IN=enp5s0 OUT= MAC=ff:ff:ff:ff:ff:ff:44:d9:e7:bc:67:21:08:00 SRC=10.0.0.1 DST=255.255.255.255 LEN=170 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=37088 DPT=10001 LEN=150                                    │··········································
[ +10.003004] iptables denied: IN=enp5s0 OUT= MAC=ff:ff:ff:ff:ff:ff:44:d9:e7:bc:67:21:08:00 SRC=10.0.0.1 DST=255.255.255.255 LEN=170 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=52401 DPT=10001 LEN=150                                    │··········································
[ +10.002951] iptables denied: IN=enp5s0 OUT= MAC=ff:ff:ff:ff:ff:ff:44:d9:e7:bc:67:21:08:00 SRC=10.0.0.1 DST=255.255.255.255 LEN=170 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=54993 DPT=10001 LEN=150                                    │··········································
[ +10.002403] iptables denied: IN=enp5s0 OUT= MAC=ff:ff:ff:ff:ff:ff:44:d9:e7:bc:67:21:08:00 SRC=10.0.0.1 DST=255.255.255.255 LEN=170 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=48813 DPT=10001 LEN=150                                    │··········································
[Feb28 00:35] iptables denied: IN=enp5s0 OUT= MAC=ff:ff:ff:ff:ff:ff:44:d9:e7:bc:67:21:08:00 SRC=10.0.0.1 DST=255.255.255.255 LEN=170 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=42947 DPT=10001 LEN=150                                    │··········································
[ +10.002974] iptables denied: IN=enp5s0 OUT= MAC=ff:ff:ff:ff:ff:ff:44:d9:e7:bc:67:21:08:00 SRC=10.0.0.1 DST=255.255.255.255 LEN=170 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=44312 DPT=10001 LEN=150                                    │··········································
[ +10.002324] iptables denied: IN=enp5s0 OUT= MAC=ff:ff:ff:ff:ff:ff:44:d9:e7:bc:67:21:08:00 SRC=10.0.0.1 DST=255.255.255.255 LEN=170 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=33737 DPT=10001 LEN=150                                    │··········································
[ +10.002880] iptables denied: IN=enp5s0 OUT= MAC=ff:ff:ff:ff:ff:ff:44:d9:e7:bc:67:21:08:00 SRC=10.0.0.1 DST=255.255.255.255 LEN=170 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=44426 DPT=10001 LEN=150                                    │··········································
[ +10.101496] iptables denied: IN=enp5s0 OUT= MAC=ff:ff:ff:ff:ff:ff:44:d9:e7:bc:67:21:08:00 SRC=10.0.0.1 DST=255.255.255.255 LEN=170 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=51603 DPT=10001 LEN=150                                    │··········································
[Feb28 00:36] iptables denied: IN=enp5s0 OUT= MAC=ff:ff:ff:ff:ff:ff:44:d9:e7:bc:67:21:08:00 SRC=10.0.0.1 DST=255.255.255.255 LEN=170 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=38538 DPT=10001 LEN=150                                    │··········································
[ +10.003008] iptables denied: IN=enp5s0 OUT= MAC=ff:ff:ff:ff:ff:ff:44:d9:e7:bc:67:21:08:00 SRC=10.0.0.1 DST=255.255.255.255 LEN=170 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=44367 DPT=10001 LEN=150                                    │··········································
[  +5.416712] iptables denied: IN=virbr0 OUT= MAC= SRC=192.168.122.1 DST=192.168.122.255 LEN=257 TOS=0x00 PREC=0x00 TTL=64 ID=16241 DF PROTO=UDP SPT=138 DPT=138 LEN=237                                                                        │··········································se
[ +14.708034] iptables denied: IN=enp5s0 OUT= MAC=ff:ff:ff:ff:ff:ff:44:d9:e7:bc:67:21:08:00 SRC=10.0.0.1 DST=255.255.255.255 LEN=170 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=44008 DPT=10001 LEN=150 
133 Upvotes

90 comments sorted by

View all comments

Show parent comments

1

u/AfroThundr3007730 Jack of All Trades Mar 01 '17

The NIST curves such as secp256k1, secp384r1, and secp521r1 are supported in x509, and thus also supported in Microsoft CAs. I don't think support for Ed25519 and x25519 will be implemented until this draft becomes a standard: https://datatracker.ietf.org/doc/draft-ietf-curdle-pkix/

1

u/dangolo never go full cloud Mar 01 '17

Are those based on the brainpool curves?

A lot of the industry says Curve25519 or bust and trust in it enough to have implimented it as a default.

We'll probably have chosen another pki vendor by the time MS adds it.

This is all I have found so far about MS and 25519 but still no mention of its implementation in the enterprise CA role. https://technet.microsoft.com/en-us/windows-server-docs/security/tls/tls-schannel-ssp-changes-in-windows-10-and-windows-server-2016

1

u/AfroThundr3007730 Jack of All Trades Mar 01 '17 edited Mar 01 '17

Well the Brainpool curves were created to address concerns with the NIST curves (see RFC5639) and to provide equivalent security, with a minor hit to performance (link).

I'd also note that OpenSSL hasn't implemented support for Curve25519 yet either, since they also appear to be waiting on that draft to finalize (see Github).

1

u/dangolo never go full cloud Mar 02 '17

Very informative. How does one stay up to date on that part of the industry?

2

u/AfroThundr3007730 Jack of All Trades Mar 04 '17

Sorry for the delayed response. I find this stuff mostly just reading a bunch of RFCs and Cryptography Stack Exchange. Also having to manage a PKI (with both M$ and OpenSSL) along with IKEv2/IPsec VPNs using Elliptic Curve cryptography gives me a reason to stay up to date on it.

I'm also a bit of a security nut...

1

u/dangolo never go full cloud Mar 04 '17

Do you employ any tools to make PKI management a little less painful?

1

u/AfroThundr3007730 Jack of All Trades Mar 04 '17

Unfortunately, no. We're still building out our infrastructure and until the environment begins to stabilise, It'd be difficult to come up with a decent automated solution for the multiplicity of devices that need certs right now.

Even the current PKI is temporary until we get new hardware and HSMs for the CAs. At that point I intend to put some serious work into getting everything scripted and automated. At least with everything I'm learning from the current setup, I can avoid most of the problems we're having now when building the new one.

1

u/dangolo never go full cloud Mar 04 '17 edited Mar 06 '17

You should write a guide ;)

What were some of the tough lessons learned from version 1 of your pki before deciding to upgrade/replace it?

I actually posted a question here about cert management yesterday too. https://www.reddit.com/r/sysadmin/comments/5xd2cr/cert_management_how_can_i_automate_cert_renewal/

→ More replies (0)