Git Product home page Git Product logo

hideproc-lkm's Introduction

hideproc-lkm

Linux 4.9 Loadable Kernel Module to hide processes from system utilities

Proof of Concept

root @ debtest ~/hideproc-lkm # ./putfile&
[1] 1942

root @ debtest ~/hideproc-lkm # ls -l /tmp/test-put
-rw-r--r-- 1 root root 4 Aug 24 22:24 /tmp/test-put

root @ debtest ~/hideproc-lkm # rm /tmp/test-put

root @ debtest ~/hideproc-lkm # ls -l /tmp/test-put
-rw-r--r-- 1 root root 4 Aug 24 22:24 /tmp/test-put

root @ debtest ~/hideproc-lkm # ps aux | grep putfile
root      1942  0.0  0.0   4172   640 pts/0    SN   22:24   0:00 ./putfile
root      1949  0.0  0.0  12784   964 pts/0    S+   22:25   0:00 grep --color=auto putfile

root @ debtest ~/hideproc-lkm # dmesg -C

root @ debtest ~/hideproc-lkm # insmod hideproc.ko verb=1 target_pid=1942

root @ debtest ~/hideproc-lkm # rmmod hideproc

root @ debtest ~/hideproc-lkm # dmesg -c
[  510.232550] Target PID is 1942
[  510.232561] Process id is 1942
[  510.232561] Next process is insmod
[  510.232562] Prev process is kworker/1:0
[  516.951242] Goodbye, World!

root @ debtest ~/hideproc-lkm # ps aux | grep putfile

root @ debtest ~/hideproc-lkm [1] # ls -l /tmp/test-put
-rw-r--r-- 1 root root 4 Aug 24 22:26 /tmp/test-put

root @ debtest ~/hideproc-lkm # rm /tmp/test-put

root @ debtest ~/hideproc-lkm # ls -l /tmp/test-put
-rw-r--r-- 1 root root 4 Aug 24 22:26 /tmp/test-put

hideproc-lkm's People

Contributors

iansus avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.