Koozali.org: home of the SME Server

Intrusion Detection Tools

Offline morpheus

  • *
  • 48
  • +0/-0
Intrusion Detection Tools
« 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.
I can open the door but you have to walk through it.

Offline Jean-Philippe Pialasse

  • *
  • 2,763
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Intrusion Detection Tools
« Reply #1 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

Offline morpheus

  • *
  • 48
  • +0/-0
Re: Intrusion Detection Tools
« Reply #2 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
I can open the door but you have to walk through it.

Offline ReetP

  • *
  • 3,734
  • +5/-0
Re: Intrusion Detection Tools
« Reply #3 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
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline morpheus

  • *
  • 48
  • +0/-0
Re: Intrusion Detection Tools
« Reply #4 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
I can open the door but you have to walk through it.

Offline ReetP

  • *
  • 3,734
  • +5/-0
Re: Intrusion Detection Tools
« Reply #5 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
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Jean-Philippe Pialasse

  • *
  • 2,763
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Intrusion Detection Tools
« Reply #6 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.
« Last Edit: July 05, 2017, 05:56:50 PM by Jean-Philippe Pialasse »

Offline morpheus

  • *
  • 48
  • +0/-0
Re: Intrusion Detection Tools
« Reply #7 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.
I can open the door but you have to walk through it.

Offline ReetP

  • *
  • 3,734
  • +5/-0
Re: Intrusion Detection Tools
« Reply #8 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)
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Jean-Philippe Pialasse

  • *
  • 2,763
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Intrusion Detection Tools
« Reply #9 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 ;)

Offline ReetP

  • *
  • 3,734
  • +5/-0
Re: Intrusion Detection Tools
« Reply #10 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
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Jean-Philippe Pialasse

  • *
  • 2,763
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Intrusion Detection Tools
« Reply #11 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.

Offline ReetP

  • *
  • 3,734
  • +5/-0
Re: Intrusion Detection Tools
« Reply #12 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 ;-)
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Jean-Philippe Pialasse

  • *
  • 2,763
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Intrusion Detection Tools
« Reply #13 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


Offline Jean-Philippe Pialasse

  • *
  • 2,763
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Intrusion Detection Tools
« Reply #15 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.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Intrusion Detection Tools
« Reply #16 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

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Intrusion Detection Tools
« Reply #17 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!

Offline ReetP

  • *
  • 3,734
  • +5/-0
Re: Intrusion Detection Tools
« Reply #18 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/
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline brianr

  • *
  • 988
  • +2/-0
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........