-
Notifications
You must be signed in to change notification settings - Fork 431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(events): restore dependency in hooked_syscall #3784
fix(events): restore dependency in hooked_syscall #3784
Conversation
The event dependency for do_init_module in the hooked_syscall event was removed in commit 43a3eac. As a result, installing a kernel module did not immediately trigger a syscall table integrity check.
IIRC we discussed this during the review of that code change. |
I just checked #3544 and didn't find such a discussion. Is it possible the discussion was internal? |
I just tried to bring him to the discussion because of a "timing" logic that currently exists and was discussed between him and me (#3544 (comment)). Before, as soon as you loaded the kernel module, if there was a hooked syscall you would get right away (after the module was loaded). Now, there is a time window between checks (for hooked syscalls). NOTE: I didnt check if its directly related to the lack of the dependency, nor went to the code to check, nor said I agree or disagree to your change (fyio). |
Yes, and that is because the dependency was removed. FWIW from this discussion it could mean it was intentional on his part. Regardless, for the product, this doesn't work so well for whatever reason. I don't want to add another configuration flag just for this event (we need event parameters/settings whatever for this) to decide between the two methods, so I propose just having them live side by side for now.
No harm done, don't worry. |
The change was intentional and the range randomness was also intentional. They wanted to avoid overloading the logic with loads/unloads (or too many loads) or something like that iirc. Whatever research and product team agrees seems fine, there is no right or wrong, just useful or not. Its good that you're looking into it. |
@OriGlassman Thanks for the detailed response! @rafaeldtinoco FYI looks like this can go ahead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after explanations.
1. Explain what the PR does
6298835:
Fix #3783
2. Explain how to test it
See issue.