overhead of auditd
Hi,
Turning on all system calls in audit.rules, and transferring a tar file to the target system (CentOS 7, 4 cores), I found "auditd" consumes high CPU usage. Is it expected?
BTW, after turning write-logs off, and add dispatcher, both "audispd" and "auditd" are consuming high CPU.
Regards
Hai
Hello,
Quoted 3 lines · EDT 杨海
Turning on all system calls in audit.rules, and transferring a tar file to the target system (CentOS 7, 4 cores), I found "auditd" consumes high CPU usage. Is it expected?
It would not be surprising. Some system calls have more overhead than others. So, depending on everything that is running, you can kill your system.
Quoted 2 lines
BTW, after turning write-logs off, and add dispatcher, both "audispd" and "auditd" are consuming high CPU.
They have a lot of events to handle.
-Steve
--
Linux-audit mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-audit
Hi Steve,
I ever read the document you wrote about laying IDS on top of auditd. And I suppose inotify could be lightweight for IDS. Any comment?
Best regards
Hai
------------------ Original ------------------
From: "Steve Grubb"<[email protected]>; Date: Fri, Jul 12, 2019 08:14 PM To: "linux-audit"<[email protected]>;
Cc: "杨海"<[email protected]>;
Subject: Re: overhead of auditd
Hello,
Quoted 3 lines · EDT 杨海
Turning on all system calls in audit.rules, and transferring a tar file to the target system (CentOS 7, 4 cores), I found "auditd" consumes high CPU usage. Is it expected?
It would not be surprising. Some system calls have more overhead than others. So, depending on everything that is running, you can kill your system.
Quoted 2 lines
BTW, after turning write-logs off, and add dispatcher, both "audispd" and "auditd" are consuming high CPU.
They have a lot of events to handle.
-Steve
You can enable the syscalls that you think will be helpful from an IDS perspective.
There are also other downstream tools like goaudit and OSS kernel modules like sysdig falco (not related to auditd) which may be able to simplify things for you.
Farhan
Quoted 39 lines · 杨海
Hi Steve,
I ever read the document you wrote about laying IDS on top of auditd. And I suppose inotify could be lightweight for IDS. Any comment?
Best regards
Hai------------------ Original ------------------
*From: * "Steve Grubb"<[email protected]>;
*Date: * Fri, Jul 12, 2019 08:14 PM
*To: * "linux-audit"<[email protected]>;
*Cc: * "杨海"<[email protected]>;
*Subject: * Re: overhead of auditdHello,
Quoted 1 line · EDT 杨海
Turning on all system calls in audit.rules, and transferring a tar file
to
Quoted 2 lines
the target system (CentOS 7, 4 cores), I found "auditd" consumes high CPU usage. Is it expected?
It would not be surprising. Some system calls have more overhead than others.
So, depending on everything that is running, you can kill your system.Quoted 2 lines
BTW, after turning write-logs off, and add dispatcher, both "audispd" and "auditd" are consuming high CPU.
They have a lot of events to handle.
-Steve
--
Linux-audit mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-audit
Quoted 2 lines · EDT 杨海
I ever read the document you wrote about laying IDS on top of auditd. And I suppose inotify could be lightweight for IDS. Any comment?
Yes, audit works fine for IDS work. But one would not audit all syscalls for every program. That will kill your system. You have to be selective about what you are auditing.
-Steve
Quoted 15 lines
------------------ Original ------------------
From: "Steve Grubb"<[email protected]>; Date: Fri, Jul 12, 2019 08:14 PM To: "linux-audit"<[email protected]>;Cc: "杨海"<[email protected]>;
Subject: Re: overhead of auditdHello,
Quoted 3 lines · EDT 杨海
Turning on all system calls in audit.rules, and transferring a tar file to the target system (CentOS 7, 4 cores), I found "auditd" consumes high CPU usage. Is it expected?
Quoted 8 lines
It would not be surprising. Some system calls have more overhead than others. So, depending on everything that is running, you can kill your system.
Quoted 2 lines
BTW, after turning write-logs off, and add dispatcher, both "audispd" and "auditd" are consuming high CPU.
They have a lot of events to handle.
--
Linux-audit mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-audit