SlideShare une entreprise Scribd logo
1  sur  9
Télécharger pour lire hors ligne
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

Contenu connexe

Similaire à Rootkit tw(0224)

Adorable python
Adorable pythonAdorable python
Adorable pythonRhythm Sun
 
Shadow_Hunter Rootkit windows7 xcon2011 Scott
Shadow_Hunter Rootkit windows7 xcon2011 Scott Shadow_Hunter Rootkit windows7 xcon2011 Scott
Shadow_Hunter Rootkit windows7 xcon2011 Scott Sc0tt
 
Linux必备知识与Unix基础文化
Linux必备知识与Unix基础文化Linux必备知识与Unix基础文化
Linux必备知识与Unix基础文化Dahui Feng
 
20190118 auto encoder-explanation-allen_lee
20190118 auto encoder-explanation-allen_lee20190118 auto encoder-explanation-allen_lee
20190118 auto encoder-explanation-allen_leeYa-Lun Li
 
Jenkins x GitLab CI
Jenkins x GitLab CIJenkins x GitLab CI
Jenkins x GitLab CIYihsuan Chen
 
[students AI workshop] Pytorch
[students AI workshop]  Pytorch[students AI workshop]  Pytorch
[students AI workshop] PytorchTzu-Wei Huang
 
認試軟體測試的世界 & TDD/BDD 入門
認試軟體測試的世界 & TDD/BDD 入門認試軟體測試的世界 & TDD/BDD 入門
認試軟體測試的世界 & TDD/BDD 入門wantingj
 
Learn linux command
Learn linux commandLearn linux command
Learn linux commandxsoameix
 
深入理解Andorid重难点
深入理解Andorid重难点深入理解Andorid重难点
深入理解Andorid重难点Bin Shao
 
Noder eyes for frontend guys
Noder eyes for frontend guysNoder eyes for frontend guys
Noder eyes for frontend guysHsu Ping Feng
 
Python 于 webgame 的应用
Python 于 webgame 的应用Python 于 webgame 的应用
Python 于 webgame 的应用勇浩 赖
 
Continuous Delivery Workshop with Ansible x GitLab CI
Continuous Delivery Workshop with Ansible x GitLab CIContinuous Delivery Workshop with Ansible x GitLab CI
Continuous Delivery Workshop with Ansible x GitLab CIChu-Siang Lai
 
做卓有成效的程序员
做卓有成效的程序员做卓有成效的程序员
做卓有成效的程序员Lv Jian
 
Docker 基礎介紹與實戰
Docker 基礎介紹與實戰Docker 基礎介紹與實戰
Docker 基礎介紹與實戰Bo-Yi Wu
 
Xcode tutorial
Xcode tutorialXcode tutorial
Xcode tutorialMarch Liu
 
認識那條鯨魚 Docker 初探
認識那條鯨魚   Docker 初探認識那條鯨魚   Docker 初探
認識那條鯨魚 Docker 初探仲昀 王
 
Git 入門與實作
Git 入門與實作Git 入門與實作
Git 入門與實作奕浦 郭
 

Similaire à Rootkit tw(0224) (20)

Adorable python
Adorable pythonAdorable python
Adorable python
 
Shadow_Hunter Rootkit windows7 xcon2011 Scott
Shadow_Hunter Rootkit windows7 xcon2011 Scott Shadow_Hunter Rootkit windows7 xcon2011 Scott
Shadow_Hunter Rootkit windows7 xcon2011 Scott
 
Linux必备知识与Unix基础文化
Linux必备知识与Unix基础文化Linux必备知识与Unix基础文化
Linux必备知识与Unix基础文化
 
20190118 auto encoder-explanation-allen_lee
20190118 auto encoder-explanation-allen_lee20190118 auto encoder-explanation-allen_lee
20190118 auto encoder-explanation-allen_lee
 
Jenkins x GitLab CI
Jenkins x GitLab CIJenkins x GitLab CI
Jenkins x GitLab CI
 
[students AI workshop] Pytorch
[students AI workshop]  Pytorch[students AI workshop]  Pytorch
[students AI workshop] Pytorch
 
認試軟體測試的世界 & TDD/BDD 入門
認試軟體測試的世界 & TDD/BDD 入門認試軟體測試的世界 & TDD/BDD 入門
認試軟體測試的世界 & TDD/BDD 入門
 
Learn linux command
Learn linux commandLearn linux command
Learn linux command
 
深入理解Andorid重难点
深入理解Andorid重难点深入理解Andorid重难点
深入理解Andorid重难点
 
Learn python 1
Learn python 1Learn python 1
Learn python 1
 
Noder eyes for frontend guys
Noder eyes for frontend guysNoder eyes for frontend guys
Noder eyes for frontend guys
 
Python 于 webgame 的应用
Python 于 webgame 的应用Python 于 webgame 的应用
Python 于 webgame 的应用
 
Continuous Delivery Workshop with Ansible x GitLab CI
Continuous Delivery Workshop with Ansible x GitLab CIContinuous Delivery Workshop with Ansible x GitLab CI
Continuous Delivery Workshop with Ansible x GitLab CI
 
Build Your Own Android Toolchain from scratch
Build Your Own Android Toolchain from scratchBuild Your Own Android Toolchain from scratch
Build Your Own Android Toolchain from scratch
 
Django step0
Django step0Django step0
Django step0
 
做卓有成效的程序员
做卓有成效的程序员做卓有成效的程序员
做卓有成效的程序员
 
Docker 基礎介紹與實戰
Docker 基礎介紹與實戰Docker 基礎介紹與實戰
Docker 基礎介紹與實戰
 
Xcode tutorial
Xcode tutorialXcode tutorial
Xcode tutorial
 
認識那條鯨魚 Docker 初探
認識那條鯨魚   Docker 初探認識那條鯨魚   Docker 初探
認識那條鯨魚 Docker 初探
 
Git 入門與實作
Git 入門與實作Git 入門與實作
Git 入門與實作
 

Plus de Chia-Hao Tsai

[2019.05] HST - RegEx 101 ~ 1001
[2019.05] HST - RegEx 101 ~ 1001[2019.05] HST - RegEx 101 ~ 1001
[2019.05] HST - RegEx 101 ~ 1001Chia-Hao Tsai
 
[2019.02.16] hst - orm
[2019.02.16] hst  - orm[2019.02.16] hst  - orm
[2019.02.16] hst - ormChia-Hao Tsai
 
[2019.01.12] hst iptables 101 to 301
[2019.01.12] hst   iptables 101 to 301[2019.01.12] hst   iptables 101 to 301
[2019.01.12] hst iptables 101 to 301Chia-Hao Tsai
 
[2018.12.15] hst python object 102
[2018.12.15] hst   python object 102[2018.12.15] hst   python object 102
[2018.12.15] hst python object 102Chia-Hao Tsai
 
[2018.11.16] Python Object 101
[2018.11.16]  Python Object 101[2018.11.16]  Python Object 101
[2018.11.16] Python Object 101Chia-Hao Tsai
 
[2017.03.18] hst binary training part 1
[2017.03.18] hst binary training   part 1[2017.03.18] hst binary training   part 1
[2017.03.18] hst binary training part 1Chia-Hao Tsai
 
Rootkit 102 - Kernel-Based Rootkit
Rootkit 102 - Kernel-Based RootkitRootkit 102 - Kernel-Based Rootkit
Rootkit 102 - Kernel-Based RootkitChia-Hao Tsai
 
Rootkit 101 - 2nd Edition
Rootkit 101 - 2nd EditionRootkit 101 - 2nd Edition
Rootkit 101 - 2nd EditionChia-Hao Tsai
 
Learn Python in 30 min - 4
Learn Python in 30 min - 4Learn Python in 30 min - 4
Learn Python in 30 min - 4Chia-Hao Tsai
 
Learn python in 30 min - 3
Learn python in 30 min - 3Learn python in 30 min - 3
Learn python in 30 min - 3Chia-Hao Tsai
 
Learn python 2 - Real World Case
Learn python 2 - Real World CaseLearn python 2 - Real World Case
Learn python 2 - Real World CaseChia-Hao Tsai
 
Passwd crack introduction
Passwd crack   introductionPasswd crack   introduction
Passwd crack introductionChia-Hao Tsai
 
Security coding c and c++ ch8(2)
Security coding c and c++   ch8(2)Security coding c and c++   ch8(2)
Security coding c and c++ ch8(2)Chia-Hao Tsai
 
Security coding c and c++ ch8 (1)
Security coding c and c++   ch8 (1)Security coding c and c++   ch8 (1)
Security coding c and c++ ch8 (1)Chia-Hao Tsai
 

Plus de Chia-Hao Tsai (18)

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

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