Skip to content
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

Technique to make LKM rootkit visible. #10

Open
MatheuZSecurity opened this issue Jun 19, 2024 · 0 comments
Open

Technique to make LKM rootkit visible. #10

MatheuZSecurity opened this issue Jun 19, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@MatheuZSecurity
Copy link

MatheuZSecurity commented Jun 19, 2024

Some rootkits or most of the open source LKM rootkits on github, always have a feature to make it visible again, for example diamorphine, brokepkg, etc... So, I created a tool called "imperius", which basically creates a linked list of structures called "module_entry" that have the name and address of the LKM rootkit function.

And then it adds an entry to the function that makes the LKM rootkit visible again, called "module_show" with its address, then it calls the function called "magick_lol()" that searches for this entry in the list and if found, calls the function associated with it.

To obtain this address, you can use, for example, trace, from "/sys/kernel/tracing/available_filter_functions_addrs" (however, this functionality is only available from kernel 6.5x onwards).

And it would be very interesting to have it as a feature on CrowArmor.

source of imperius: https://github.com/MatheuZSecurity/Imperius

@rem0obb rem0obb added the enhancement New feature or request label Jun 19, 2024
@rem0obb rem0obb self-assigned this Jun 19, 2024
@rem0obb rem0obb changed the title Técnica para tornar LKM rootkit visível. Technique to make LKM rootkit visible. Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants