reliable and secure circabccirca-support.eu/docs/maintain a reliable and secure... ·...

25
circa-support.eu circa-support.eu Reliable and secure CIRCABC nidbs CIRCABC Conference 23.04.2010 Jan Büren

Upload: others

Post on 04-Jul-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Reliable and secure CIRCABCcirca-support.eu/docs/Maintain a reliable and secure... · 2010-08-26 · circa-support.eu Alfresco 3 Stable community CIRCABC 3.2 TOMCAT All Gaul is occupied

circa-support.eucirca-support.euReliable and secure CIRCABC

nidbs CIRCABCConference

23.04.2010Jan Büren

Page 2: Reliable and secure CIRCABCcirca-support.eu/docs/Maintain a reliable and secure... · 2010-08-26 · circa-support.eu Alfresco 3 Stable community CIRCABC 3.2 TOMCAT All Gaul is occupied

circa-support.euTactical Overview, Sir!

✔ CIRCABC architecture

✔ Network analysis

✔ Management pitfalls

✔ Recommendations

✔ Optional Stuff

Page 3: Reliable and secure CIRCABCcirca-support.eu/docs/Maintain a reliable and secure... · 2010-08-26 · circa-support.eu Alfresco 3 Stable community CIRCABC 3.2 TOMCAT All Gaul is occupied

circa-support.euSimplify it: components

Alfresco 3 Stable community

CIRCABC 3.2

Page 4: Reliable and secure CIRCABCcirca-support.eu/docs/Maintain a reliable and secure... · 2010-08-26 · circa-support.eu Alfresco 3 Stable community CIRCABC 3.2 TOMCAT All Gaul is occupied

circa-support.euStill simple: deliver pretty pages

Browser

Alfresco 3 Stable community

CIRCABC 3.2

http

TOMCAT

FILESDATA-BASE

Page 5: Reliable and secure CIRCABCcirca-support.eu/docs/Maintain a reliable and secure... · 2010-08-26 · circa-support.eu Alfresco 3 Stable community CIRCABC 3.2 TOMCAT All Gaul is occupied

circa-support.eu

Alfresco 3 Stable community

CIRCABC 3.2

TOMCAT

All Gaul is occupied by romans http

http

Browser

CIFSCIFS

FTPFTP

Page 6: Reliable and secure CIRCABCcirca-support.eu/docs/Maintain a reliable and secure... · 2010-08-26 · circa-support.eu Alfresco 3 Stable community CIRCABC 3.2 TOMCAT All Gaul is occupied

circa-support.euexternal port scan

FTPFTPCIFSCIFS

RMIRMIHTTPHTTP

Page 7: Reliable and secure CIRCABCcirca-support.eu/docs/Maintain a reliable and secure... · 2010-08-26 · circa-support.eu Alfresco 3 Stable community CIRCABC 3.2 TOMCAT All Gaul is occupied

circa-support.euHow hard do they knock?

CIFS-Interface:CIFS-Interface:10 seconds 10 seconds 11 unsuccessful logins11 unsuccessful logins

Page 8: Reliable and secure CIRCABCcirca-support.eu/docs/Maintain a reliable and secure... · 2010-08-26 · circa-support.eu Alfresco 3 Stable community CIRCABC 3.2 TOMCAT All Gaul is occupied

circa-support.euThey knock with dictionaries!

User does not exist, billgates

User does not exist, Administrador'

User does not exist, serveur ftp

User does not exist, box1

User does not exist, Administrada

User does not exist, Administrateur

User does not exist, DiVX

Page 9: Reliable and secure CIRCABCcirca-support.eu/docs/Maintain a reliable and secure... · 2010-08-26 · circa-support.eu Alfresco 3 Stable community CIRCABC 3.2 TOMCAT All Gaul is occupied

circa-support.euThe knock with force!

350202 login attempts350202 login attempts

Installation: 20.3.2009First attack: 26.4.2009Last attack: 01.2.2010

Page 10: Reliable and secure CIRCABCcirca-support.eu/docs/Maintain a reliable and secure... · 2010-08-26 · circa-support.eu Alfresco 3 Stable community CIRCABC 3.2 TOMCAT All Gaul is occupied

circa-support.euTomcat on / off – internal ports

Page 11: Reliable and secure CIRCABCcirca-support.eu/docs/Maintain a reliable and secure... · 2010-08-26 · circa-support.eu Alfresco 3 Stable community CIRCABC 3.2 TOMCAT All Gaul is occupied

circa-support.eu(RMI?) + (RTFM!) == JMX

JMX: Java Management Extensions

jmx:rmi:localhost:50500

Page 12: Reliable and secure CIRCABCcirca-support.eu/docs/Maintain a reliable and secure... · 2010-08-26 · circa-support.eu Alfresco 3 Stable community CIRCABC 3.2 TOMCAT All Gaul is occupied

circa-support.euSpeak friend and Enter

ControlRulechange_asap

Page 13: Reliable and secure CIRCABCcirca-support.eu/docs/Maintain a reliable and secure... · 2010-08-26 · circa-support.eu Alfresco 3 Stable community CIRCABC 3.2 TOMCAT All Gaul is occupied

circa-support.eu

JMX tools can (...)stop, re-configure andrestart subsystems without shutting down Alfresco.

Alfresco 3.2 JMX monitoring

CIFS enabled true

Page 14: Reliable and secure CIRCABCcirca-support.eu/docs/Maintain a reliable and secure... · 2010-08-26 · circa-support.eu Alfresco 3 Stable community CIRCABC 3.2 TOMCAT All Gaul is occupied

circa-support.euLuckily, I couldn't make it ...

http://jared.ottleys.net/alfresco/tunneling-debug-and-jmx-for-alfresco

Page 15: Reliable and secure CIRCABCcirca-support.eu/docs/Maintain a reliable and secure... · 2010-08-26 · circa-support.eu Alfresco 3 Stable community CIRCABC 3.2 TOMCAT All Gaul is occupied

circa-support.euMore default (http) entry points

✔ JBOSS Administration

✔ Tomcat Administration

✔ Hidden admin URLs

Page 16: Reliable and secure CIRCABCcirca-support.eu/docs/Maintain a reliable and secure... · 2010-08-26 · circa-support.eu Alfresco 3 Stable community CIRCABC 3.2 TOMCAT All Gaul is occupied

circa-support.euSimple advice: just pretty pages

● Disable CIFS / FTP

● Disable Tomcat Admin

● Bind services on localhost

● Change default passwords

Alfresco 3 Stable community

CIRCABC 3.2

TOMCAThttp

Browser

Page 17: Reliable and secure CIRCABCcirca-support.eu/docs/Maintain a reliable and secure... · 2010-08-26 · circa-support.eu Alfresco 3 Stable community CIRCABC 3.2 TOMCAT All Gaul is occupied

circa-support.euadvanced advice: proxy it!

Alfresco 3 Stable community

CIRCABC 3.2

TOMCAT

Http 8180

Browser

Reverseproxy

https 443

CIFSFTPJMX

Page 18: Reliable and secure CIRCABCcirca-support.eu/docs/Maintain a reliable and secure... · 2010-08-26 · circa-support.eu Alfresco 3 Stable community CIRCABC 3.2 TOMCAT All Gaul is occupied

circa-support.euCombine simple and advanced

Alfresco 3 Stable community

CIRCABC 3.2

TOMCAT

Http 8180

Browser

Reverseproxy

https 443

Page 19: Reliable and secure CIRCABCcirca-support.eu/docs/Maintain a reliable and secure... · 2010-08-26 · circa-support.eu Alfresco 3 Stable community CIRCABC 3.2 TOMCAT All Gaul is occupied

circa-support.eudon't do what they told ya!

Please use your distribution´s package:

Page 20: Reliable and secure CIRCABCcirca-support.eu/docs/Maintain a reliable and secure... · 2010-08-26 · circa-support.eu Alfresco 3 Stable community CIRCABC 3.2 TOMCAT All Gaul is occupied

circa-support.euThings I didn`t manage ...

● Disabling JMX● Bind JMX __ONLY__ localhost● Use jconsole with CIRCABC

… if you can, write to: [email protected]

Page 21: Reliable and secure CIRCABCcirca-support.eu/docs/Maintain a reliable and secure... · 2010-08-26 · circa-support.eu Alfresco 3 Stable community CIRCABC 3.2 TOMCAT All Gaul is occupied

circa-support.eu

Quotations were taken from:

● Rage against the machine● Lord of the Rings

Legal issues

Pretty Pictures from:

● freebsd-image-gallery.netcode.pl● kendgame.bridigum.com

Page 22: Reliable and secure CIRCABCcirca-support.eu/docs/Maintain a reliable and secure... · 2010-08-26 · circa-support.eu Alfresco 3 Stable community CIRCABC 3.2 TOMCAT All Gaul is occupied

circa-support.eu

Alfresco 3 Stable community

CIRCABC 3.2

TOMCAT

CONTENTFILESDATA-

BASE

Backup considerations

HIBERNATE LUCENE

INDEXFILES

Page 23: Reliable and secure CIRCABCcirca-support.eu/docs/Maintain a reliable and secure... · 2010-08-26 · circa-support.eu Alfresco 3 Stable community CIRCABC 3.2 TOMCAT All Gaul is occupied

circa-support.euCold backup

● STOP CIRCABC

● DATABASE DUMP

● BACKUP FILES AND DUMPS

● START CIRCABC

Page 24: Reliable and secure CIRCABCcirca-support.eu/docs/Maintain a reliable and secure... · 2010-08-26 · circa-support.eu Alfresco 3 Stable community CIRCABC 3.2 TOMCAT All Gaul is occupied

circa-support.euHot backup

● DATABASE DUMP

● BACKUP FILES (EXCEPT LUCENE-INDEXES!) AND DUMPS

Page 25: Reliable and secure CIRCABCcirca-support.eu/docs/Maintain a reliable and secure... · 2010-08-26 · circa-support.eu Alfresco 3 Stable community CIRCABC 3.2 TOMCAT All Gaul is occupied

circa-support.euIncremental backup considerations

● USE checksums● Do not RELY on size or timestamp