To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 563e7aa0 authored by Axel Beckert's avatar Axel Beckert

Also check for some Diamorphine based kernel modules

parent 13d56006
......@@ -94,6 +94,18 @@ foreach my $glob (sort keys %ioc) {
}
}
# Check for the diamorphine Linux Kernel Module
# (https://github.com/m0nad/Diamorphine)
# Perl's "kill(63, $$);" kills the script, so let's put a /bin/sh inbetween.
system('kill -63 $$');
my @lsmod = `lsmod`;
my @suspicious = grep /\b(diamorphine|scsi|iscsi|readaps)\b/, @lsmod;
foreach my $lkm (@suspicious) {
print "$hostname: SUSPICIOUS KERNEL MODULE: $lkm";
$found++;
}
# Summary
if ($verbose) {
if ($found == 0) {
print "$hostname: CLEAN\n";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment