Koozali.org: home of the SME Server

Obsolete Releases => SME 9.x Contribs => Topic started by: morpheus on July 05, 2017, 02:17:54 AM

Title: Intrusion Detection Tools
Post by: morpheus on July 05, 2017, 02:17:54 AM
I have perused the contribs, but can't find any intrusion detection tools available like Snort/Suricata/Tripwire etc. Arpwatch is fine for alerting me, but I need a better tool to monitor changes.

Any ideas/pointers gladly welcomed.
Title: Re: Intrusion Detection Tools
Post by: Jean-Philippe Pialasse on July 05, 2017, 06:03:38 AM
For what it is worth you have https://wiki.contribs.org/Rkhunter


Long time ago there was a snort contrib, but it fails to have a maintainer. It could be nice to see someone porting it or suricat/ tripwire to sme9
Title: Re: Intrusion Detection Tools
Post by: morpheus on July 05, 2017, 06:45:34 AM
Is there a guide for making a contrib somewhere? I am a beginner with sme server, but have extensive programming experience, and writing documentation
Title: Re: Intrusion Detection Tools
Post by: ReetP on July 05, 2017, 11:37:56 AM
Is there a guide for making a contrib somewhere? I am a beginner with sme server, but have extensive programming experience, and writing documentation

As a wiki and Docs 'maintainer' you should know where to look ;-)

https://wiki.contribs.org/Category:Howto

Developer section :-)

You really want a dedicated build box.

Either use SME:
https://wiki.contribs.org/Simple_Package_Modification

or CentOS 6:
https://wiki.contribs.org/Setting_up_RPM_Building_for_SME_Server

After that you can use anonymous CVS to pull contribs and have a look at what goes on inside.

They are basically standard RPMS, but with a kinky bit called createlinks to add all the SME related wizardry

If you need a hand then ask here in the Development forum, or the devinfo mailing list.

If you want a play on my build box then let me know and I can give you access to mess about (note I am no coder - just learned a bit by doing a lot of reading and asking questions)

B. Rgds
John
Title: Re: Intrusion Detection Tools
Post by: morpheus on July 05, 2017, 01:33:42 PM
thanks for pointers. I do have a test box at home to test out stuff before applying to the production server I maintain for ngo
Title: Re: Intrusion Detection Tools
Post by: ReetP on July 05, 2017, 02:52:41 PM
thanks for pointers. I do have a test box at home to test out stuff before applying to the production server I maintain for ngo

Cool. If you want a hand please ask - I am happy to help with stuff like this. I am no genius coder, but I can patch, and build an RPM etc.

There are a few gotchas that I can possibly help you with and save you a bit  of time :-) Just shout. You can pick up my address off bugzilla and email me if required.

B. Rgds
John
Title: Re: Intrusion Detection Tools
Post by: Jean-Philippe Pialasse on July 05, 2017, 05:54:49 PM
or CentOS 6:
https://wiki.contribs.org/Setting_up_RPM_Building_for_SME_Server

only thing to add to John intervention , prefer CentOS 7 if you opt for this way (which I did).
You will be bale to build both for sme9 and sme10, and your buidl system will be supported much more longer !


I will also be happy to give a hand if you need, both for the production of the contrib or the configuration of the build system.

also you should use your test box with virtualisation, this way you will have both test VMs and build environment on the same hardware.
Title: Re: Intrusion Detection Tools
Post by: morpheus on July 06, 2017, 02:30:58 AM
At present I have 9.* running on my server. I will do a rebuild to 10 when I get a chance, add developer tools. I have experience with Debian not Centos. Will add all the required developer tools.

Thanks for the offers of help, appreciated.
Title: Re: Intrusion Detection Tools
Post by: ReetP on July 06, 2017, 02:35:32 AM
You can mock build for v10 on a v9 box (my build box is plain CentOS 6)
Title: Re: Intrusion Detection Tools
Post by: Jean-Philippe Pialasse on July 06, 2017, 05:00:46 PM
You can mock build for v10 on a v9 box (my build box is plain CentOS 6)
remains the 4 years more of tranquility if you install CentOs7 now ;)
Title: Re: Intrusion Detection Tools
Post by: ReetP on July 06, 2017, 05:15:48 PM
remains the 4 years more of tranquility if you install CentOs7 now ;)

systemd goodness ? No thanks..... I'd rather play Russian roulette with 6 bullets
Title: Re: Intrusion Detection Tools
Post by: Jean-Philippe Pialasse on July 06, 2017, 05:40:39 PM
systemd goodness ? No thanks..... I'd rather play Russian roulette with 6 bullets
forgot this one ;) your allergy to systemd

well it does not itch taht bad for a buildsystem, and while you want to keep 3 more years without systemd, which I could understand, some other might prefer not to have to install a new buildsystem in 3 years if they can wait 7 years to have to do it.
Title: Re: Intrusion Detection Tools
Post by: ReetP on July 06, 2017, 06:02:37 PM
Yup, I understand. I need to undergo aversion therapy or something.

Or copy SME to Devuan or BSD ;-)
Title: Re: Intrusion Detection Tools
Post by: Jean-Philippe Pialasse on July 06, 2017, 06:26:33 PM
Or copy SME to Devuan or BSD ;-)
sound like a plan, speaking of therapy, how many are you in your head ?  ;-) This should be a whole team for this job
Title: Re: Intrusion Detection Tools
Post by: CharlieBrady on July 06, 2017, 10:05:52 PM
For what it is worth you have https://wiki.contribs.org/Rkhunter

Not a good idea...

http://www.openwall.com/lists/oss-security/2017/06/29/2
Title: Re: Intrusion Detection Tools
Post by: Jean-Philippe Pialasse on July 07, 2017, 12:14:25 AM
Not a good idea...

http://www.openwall.com/lists/oss-security/2017/06/29/2

indeed,

I have added a warning on the contribs, and I just build a new version with update disabled as default.
Title: Re: Intrusion Detection Tools
Post by: CharlieBrady on July 07, 2017, 12:28:53 AM
systemd goodness ?

e.g. running services which say:

User=7up

with root privileges?

http://www.openwall.com/lists/oss-security/2017/07/06/17
Title: Re: Intrusion Detection Tools
Post by: CharlieBrady on July 07, 2017, 12:29:33 AM
I have added a warning on the contribs, and I just build a new version with update disabled as default.

Good plan!
Title: Re: Intrusion Detection Tools
Post by: ReetP on July 07, 2017, 08:45:29 AM
e.g. running services which say:
User=7up
with root privileges?

Didn't want to mention that one ;-)

ROFLMAO

Never assume, and sanitise your inputs

Obligatory xkcd for Mr Poettering

https://www.xkcd.com/327/
Title: Re: Intrusion Detection Tools
Post by: brianr on July 07, 2017, 01:09:24 PM
https://www.xkcd.com/327/

 :)