It has been quite some time since I last posted here about msec. For the past few weeks, it received some attention and now I guess many of the features I wanted to push for Mandriva 2010.1 are implemented. So I’ll describe the most interesting ones in this blog post (and save some for later
).
First of all, starting with Mandriva 2010.1, msec will support user-defined periodicity for all periodic security checks. Therefore, it is possible to specify if each test should be executed daily (like in all previous msec versions), weekly or even monthly. In my opinion, this feature is one of the most interesting among all others, because it allows you to fine-tune the balance between security checks and daily I/O load caused by some expensive checks.
By default, checks which require lots of I/O (e.g., checking for unowned files, or world-writable files, and so on) will run weekly on the standard security level. Why so? Because this check was responsible for approximately 80% of all time required to run the periodic checks, and on most of the machines its results did not differ between consecutive days. Surely, it is nice to have a daily notification of all those changes, but the I/O cost of it is unacceptable high. Of course, you can define the periodicity of all such checks to be daily when you want, by using msecgui application of editing the configuration file manually
.
Another interesting feature was the de-duplication of variables between main msec configuration file (security.conf) and the level configuration file (for example, level.standard). On previous versions, all variables were defined in security.conf, even if they have exactly the same value as the default one for the current security level. This way, it was easier to see all the configuration at once by looking into /etc/security/msec/security.conf file. On the other hand, it lead to duplication of almost all variables..
So for 2010.1, the behavior when saving the configuration file was modified to be more logical (and similar to the one of msecgui, which displays variables that differ from the default values for the security level in different way). If you want to redefine a variable, just specify it in security.conf and this change will take effect. If you want to disable a variable completely, just define it to an empty value (like, CHECK_SOMETHING=), like in previous versions, and it will be disabled.
To simplify this, we could use the following analogy: in previous msec versions (e.g., 2009.1 and 2010.0), the security.conf file contains the whole security configuration of msec plus the name of the security level which is used as base. In 2010.1, it contains the reference to the base security level plus only the variables which must be overridden for this level. In other words, on Mandriva 2010.1 just by looking at the msec security file it is possible to say “this machine is configured to use the same configuration as on standard security level, except those three checks that should be disabled).
There is yet another reason for this change, which will be described in details when it gets implemented (probably in a few coming weeks). So stay tuned for more news
.
Another feature was the possibility of running the RedHat sectool checks periodically, among with all other msec checks. Just install sectool package from the contrib, and its checks will be executed automatically by msec.
Additionally, the integration between msec and msecperms applications was improved, making it easier to switch security levels and creating custom levels.
Besides those changes, several msec messages were improved to make them easier to understand by non-geek users
, and, like usual, several bugs were fixed.
Like always, I am very interested in your feedback on those changed. Please, feel free to drop me a note whether you like these features, dislike them, or any other kind of comments about msec.












[...] posted here: Eugeni: Msec updates getting (mostly) ready for 2010.1 Tags: [...]
[...] Msec updates getting (mostly) ready for 2010.1 It has been quite some time since I last posted here about msec. For the past few weeks, it received some attention and now I guess many of the features I wanted to push for Mandriva 2010.1 are implemented. So I’ll describe the most interesting ones in this blog post (and save some for later ). [...]
Great, this seems very promising.
I would be happy to test it, … someday.
While working on the MSEC French Mandriva Wiki page (by the way, could you have a look at it and tell what is wrong or misconceived ? http://wiki.mandriva.com/fr/Msec), I noticed that the files in /etc/profile.d/* are supposed to have 755 default permissions in msec. As far as I can see, these files are just sourced in /etc/profile and /etc/bashrc and so they need not be executable (?), and if so they could/should have default permissions 644 ?
Well, anyway, I thank you very much for your valuable work on msec !
Dialogs where user can enter rules are not userfriendly, values are sometimes not very easy to guess.
So I suggest this to improve the GUI :
File : add a pushbutton [Navigate] that opens a fileselector
User and group : should be combo boxes, pre-filled with existing users and groups
Permissions : should be replaced by check boxes
@ptyxs the reason for 755 permissions in /etc/profile.d/* are mostly historical ones, they come from the days of old msec.
Few scripts check if the scripts are executable before attempting to source them, but it is not the case with /etc/profile and /etc/bashrc. So I think they do not need 755 permissions anymore. Thanks for noticing that.
@PapaJaac – indeed, the gui is not so user friendly for those cases. It is in my long-standing TODO list to improve it, I think it is the oldest entry in TODO. I’ll try to fix it for the next release.