Rootkit in Linux
     hack-stuff
Rootkit
● Rootkit 簡介
  ○ 概念與目的


● Level 0
  ○ 簡單但可能很有效的...
● Level 1
  ○ 容易實作但也容易被發現...
● Level 2
  ○ 十分有效...
簡介 (接續)

● Rootkit == 軟體
  ○ 設計用來隱藏訊息
  ○ 可以跟其他惡意軟體整合
  ○ 也能用來保護(keyword: sony 藍光)


● Rootkit == 管理工具
  ○ 原則上需要最高權限
  ○ 也可以用來偷最高權限的資料
  ○ 或許能用來繞過最高權限的檢查
概念

● 隱藏
 ○ 正在執行的程式
 ○ 存在的檔案
 ○ 網路流量
在開始之前...
 Process                        /bin/ls


                  /proc/[pid]
                                     User-Space



                                     Kernel-Space




  ??? Structure
Level 0
● 重新包裝原本的程式
  ○ 使用直譯式語言 (bash/perl/python...)
  ○ 過濾資訊
● 優點
  ○ 實作簡單
● 缺點
  ○ 容易抓包
● Demo
  ○ ...
Level 1
● 替換原本的程式
  ○ 在程式碼中加入自己的邏輯
  ○ 提供程式原本的功能
● 優點
  ○ 完美過濾
● 缺點
  ○ 需要會寫程式(script kiddie out!)
  ○ 必須拿到原始碼
● Demo
  ○ ...
Level 2
● 替換 kernel
  ○ 替換或移除掉 kernel 訊息
  ○ 改變在 kernel 上實作的邏輯
● 優點
  ○ 幾乎找不到...
  ○ 修改所有訊息, 甚至可以假造訊息
● 缺點
  ○ 十分難實作
  ○ 高度平台相關, 原則上不能跨平台!
● Demo
  ○ ...
Ref

● Source code
  ○   https://github.com/cmj0121/HST-
      Course

More Related Content

PDF
Using vim
PPT
Rootkit
PPT
Rootkit
PPTX
Spyware and rootkit
PDF
Security Bootcamp 2013 - Tấn công bằng mã độc - Trương Minh Nhật Quang
PDF
Rootkit 101
PPT
20030623 linuxbasic and-security
PPTX
20121111 linux intro
Using vim
Rootkit
Rootkit
Spyware and rootkit
Security Bootcamp 2013 - Tấn công bằng mã độc - Trương Minh Nhật Quang
Rootkit 101
20030623 linuxbasic and-security
20121111 linux intro

Similar to Rootkit tw(0224) (6)

PDF
教青少年寫程式
PDF
Taiwanese Experience in IT
PDF
Develop Your Own Operating System
PDF
看似比較簡單的Linux推坑教學 Linux安裝篇 ArchLabs 2019.01.20安裝 Part2
PDF
【HITCON FreeTalk】Supply Chain Attack
PPTX
虎尾科大報告
教青少年寫程式
Taiwanese Experience in IT
Develop Your Own Operating System
看似比較簡單的Linux推坑教學 Linux安裝篇 ArchLabs 2019.01.20安裝 Part2
【HITCON FreeTalk】Supply Chain Attack
虎尾科大報告
Ad

More from Chia-Hao Tsai (19)

PDF
[2019.05] HST - RegEx 101 ~ 1001
PDF
[2019.02.16] hst - orm
PDF
[2019.01.12] hst iptables 101 to 301
PDF
[2018.12.15] hst python object 102
PDF
[2018.11.16] Python Object 101
PDF
[2017.03.18] hst binary training part 1
PDF
Rootkit 102 - Kernel-Based Rootkit
PDF
Rootkit 101 - 2nd Edition
PDF
ELF 101
PDF
Maker - WiFi AP
PDF
Learn Python in 30 min - 4
PDF
Learn python in 30 min - 3
PDF
Learn python 2 - Real World Case
PDF
Learn python 1
PDF
HoneyCon 2014
PDF
Passwd crack introduction
PDF
Security coding c and c++ ch8(2)
PDF
Security coding c and c++ ch8 (1)
PDF
Build web server
[2019.05] HST - RegEx 101 ~ 1001
[2019.02.16] hst - orm
[2019.01.12] hst iptables 101 to 301
[2018.12.15] hst python object 102
[2018.11.16] Python Object 101
[2017.03.18] hst binary training part 1
Rootkit 102 - Kernel-Based Rootkit
Rootkit 101 - 2nd Edition
ELF 101
Maker - WiFi AP
Learn Python in 30 min - 4
Learn python in 30 min - 3
Learn python 2 - Real World Case
Learn python 1
HoneyCon 2014
Passwd crack introduction
Security coding c and c++ ch8(2)
Security coding c and c++ ch8 (1)
Build web server
Ad

Rootkit tw(0224)

  • 1. Rootkit in Linux hack-stuff
  • 2. Rootkit ● Rootkit 簡介 ○ 概念與目的 ● Level 0 ○ 簡單但可能很有效的... ● Level 1 ○ 容易實作但也容易被發現... ● Level 2 ○ 十分有效...
  • 3. 簡介 (接續) ● Rootkit == 軟體 ○ 設計用來隱藏訊息 ○ 可以跟其他惡意軟體整合 ○ 也能用來保護(keyword: sony 藍光) ● Rootkit == 管理工具 ○ 原則上需要最高權限 ○ 也可以用來偷最高權限的資料 ○ 或許能用來繞過最高權限的檢查
  • 4. 概念 ● 隱藏 ○ 正在執行的程式 ○ 存在的檔案 ○ 網路流量
  • 5. 在開始之前... Process /bin/ls /proc/[pid] User-Space Kernel-Space ??? Structure
  • 6. Level 0 ● 重新包裝原本的程式 ○ 使用直譯式語言 (bash/perl/python...) ○ 過濾資訊 ● 優點 ○ 實作簡單 ● 缺點 ○ 容易抓包 ● Demo ○ ...
  • 7. Level 1 ● 替換原本的程式 ○ 在程式碼中加入自己的邏輯 ○ 提供程式原本的功能 ● 優點 ○ 完美過濾 ● 缺點 ○ 需要會寫程式(script kiddie out!) ○ 必須拿到原始碼 ● Demo ○ ...
  • 8. Level 2 ● 替換 kernel ○ 替換或移除掉 kernel 訊息 ○ 改變在 kernel 上實作的邏輯 ● 優點 ○ 幾乎找不到... ○ 修改所有訊息, 甚至可以假造訊息 ● 缺點 ○ 十分難實作 ○ 高度平台相關, 原則上不能跨平台! ● Demo ○ ...
  • 9. Ref ● Source code ○ https://github.com/cmj0121/HST- Course