handsomeboy
    • 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
      • Invitee
    • Publish Note

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

      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.
      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
    • Engagement control
    • 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 Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Versions and GitHub Sync Engagement control 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
Invitee
Publish Note

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

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.
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
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
# TeamT5 2023 第三組 ###### tags: `TeamT5` [TOC] <!-- - 惡意程式 - 檔案資訊 - 執行流程 - 通訊協定 - 加解密演算法 - 後門功能 - 常駐方式 - 中繼站 - 基本資訊 - 關連資訊 - 威脅情資 - 攻擊者 - 攻擊時間 - 受害者 - 其他發現 --> ## 5e4cb0cc51202cef27c4f5da63362ceee8c29a03e61ac19efda3c137b657d9ef - Time stamp - 1992-06-19 15:22:17 ![](https://i.imgur.com/LhWQJtu.png) ![](https://i.imgur.com/Zp6N1BL.png) - IDA Pro 1. Software/Borland/Delphi/ - RTL ![](https://i.imgur.com/Tt66GEY.png) ![](https://i.imgur.com/DA1PwBt.png) - FPUMaskValue是Borland Delphi使用註冊表的方法 - locales - 是用在LOAD DLL用的地方,但確實沒有那麼單純[Source](https://www.oreilly.com/library/view/delphi-in-a/1565926595/re166.html) ![](https://i.imgur.com/M7DOrXo.png) - 如果當前目錄下沒有我們要的DLL,他會去找這些registry key value去看有沒有相關的值,如果有就會去讀對應的位置 2. Mikrotik/winbox ![](https://i.imgur.com/6fboawj.png) - google ![](https://i.imgur.com/5fvZLut.png) - Addresses.cdb ![](https://i.imgur.com/UmnHjAj.png) 3. username/passwd ![](https://i.imgur.com/RgjFSwS.png) - Email - IMAP/POP3 - base64做壓縮傳送 4. Winscp ![](https://i.imgur.com/6upHGCF.png) - Winscp的session ![](https://i.imgur.com/KkVRg5Y.png) 5. 神秘的hash ![](https://i.imgur.com/9oCMfCy.png) ![](https://i.imgur.com/mtuLPWm.png) 回追ida可以看到跟一些阿里布達的東西一起被使用 ![](https://i.imgur.com/kaiJEi9.png) 蠻有趣的是他call好像都是call 相關的offset 6. VNC ![](https://i.imgur.com/yPxrYYP.png) ![](https://i.imgur.com/JIfuRsI.png) 7. 傳輸方式 ![](https://i.imgur.com/QLS14w5.png) 也可以透過靜態去看 ![](https://i.imgur.com/KAivUx5.png) 他的socket number是6也就是TCP 8. multicache ![](https://i.imgur.com/1xTh5p2.png) ![](https://i.imgur.com/B1DZEUG.png) > 每次您開始使用新的應用程序時,Windows 操作系統都會自動從 exe 文件的版本資源中提取應用程序名稱,並將其存儲在稱為“MuiCache”的註冊表項中以備後用。 對於 XP,這是指註冊表項 HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\MUICache。 8. main function ![](https://i.imgur.com/TN5PAuU.png) 可以看到他會先去call Adodb:TAD0Command為ActiveX Data Objects - 超老舊的command controller - 再往裡面追 ![](https://i.imgur.com/6lKsCNy.png) ```yara= rule amadeyv1{ strings: $hash = "6c1c64cbab800abc258d14d786b8581c" $mulcache = "Local Settings\\Software\\Microsoft\\Windows\\Shell\\MuiCache" $htons = {6A 50 E8 1A 2D FF FF} $sessions = "Software\\Martin Prikryl\\WinSCP 2\\Sessions" $ActiveX = {8D 45 FC E8 7D FE FF FF} condition: all of them } ``` ## c98c6cce1f6d5d8428978db579c7a281de9546412515c9e8f9714659c33b31c8 - virustotal - [Source](https://www.virustotal.com/gui/file/c98c6cce1f6d5d8428978db579c7a281de9546412515c9e8f9714659c33b31c8/community) ![](https://i.imgur.com/2KKTOT7.png) - Time stamp - 2022-03-09 18:40:02 ![](https://i.imgur.com/LuXQveg.png) - Anyrun - Process ![](https://i.imgur.com/TWMApVK.png) ![](https://i.imgur.com/6JHg2mS.png) - network - http request ![](https://i.imgur.com/ZziTENO.png) ![](https://i.imgur.com/irnqlku.png) - connections ![](https://i.imgur.com/kohI4Fn.png) - files ![](https://i.imgur.com/v6FQ98N.png) ![](https://i.imgur.com/XqRGlki.png) ![](https://i.imgur.com/osgOWWH.png) ![](https://i.imgur.com/hKMa8Dx.png) ## 05847bf9a320e87d373b870a41aba44a977e0e8bbb170cb928d1b906fdc22b01 - Time stamp - 2022-03-20 05:11:25 ![](https://i.imgur.com/uMfG7GD.png) - 2022-03-20 20:11:25 - 不知道為什麼 Time stamp不一樣,應該是時區的問題 ![](https://i.imgur.com/EMW75Bg.png) - [Anyrun](https://app.any.run/tasks/fb2cd82e-719d-4b8f-90b6-37773d0c5939/) - process ![](https://i.imgur.com/Bp0a7lA.png) - http request ![](https://i.imgur.com/ZRtpMEa.png) - network ![](https://i.imgur.com/N3BG73r.png) - files ![](https://i.imgur.com/SQ9CdP6.png) - Name - `gntuud.exe` by VT - 似乎不是有意義的英文或外文 - Weird icon ![](https://i.imgur.com/lrJg9dn.png) - DIE ![](https://i.imgur.com/szx3640.png) - Strings - 奇怪的字串,似乎不是有意義的英文或外文 ![](https://i.imgur.com/6Mgb4g2.jpg) - PDB 位置 `C:\regew tuvuzocavobef\90\kovururapisu.pdb` - IDA Pro 1. 執行存在 PE 中的第一階段 shellcode。 ![](https://i.imgur.com/bwqK3WI.png) ![](https://i.imgur.com/kGShnaI.png) 2. 第一階段 shellcode 取得 Win API。 ![](https://i.imgur.com/6bLnY9q.png) 3. 第一階段 shellcode 執行第二階段 shellcode。 ![](https://i.imgur.com/gvmcIWJ.png) 4. 第二階段 shellcode 的 memory map 中包含另一個 PE [`37de71b43236c63687b44f238a17cde5f16bea2b2ec8c29b0ea42b62de947d6d`](https://www.virustotal.com/gui/file/37de71b43236c63687b44f238a17cde5f16bea2b2ec8c29b0ea42b62de947d6d/relations)。 5. 第二個 PE 中可以看到惡意程式家族名稱 `Amadey` 字串。 ![](https://i.imgur.com/q6N6Vsh.png) - 第二個 PE 的 process tree ![](https://i.imgur.com/XIzQqTd.png) - Contact URL: `http://62.204.41.79/fb73jc3/index.php` - `pc`: Computer Name - `un`: User Name ![](https://i.imgur.com/n5fiqtZ.png) ![](https://i.imgur.com/Z19cnwh.png) 6. 第二個 PE 會將自己寫到 `C:\Users\<user>\AppData\Local\Temp\2c33368f7d\gntuud.exe` ![](https://i.imgur.com/IdhagjQ.png) - wireshark ![](https://i.imgur.com/cdLGQYl.png) ![](https://i.imgur.com/mX2W38S.png) - C2 = 62.204.41.79 - Persistence - Overwrite the Startup folder of registry `HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\USer Shell Folders\Startup` ![](https://i.imgur.com/YDnNzbY.png) - Run itself every minute ```powershell "C:\Windows\System32\schtasks.exe" /Create /SC MINUTE /MO 1 /TN gntuud.exe /TR "C:\Users\admin\AppData\Local\Temp\2c33368f7d\gntuud.exe" /F ``` - 外部報告:https://www.joesandbox.com/analysis/767840/0/html ```yara= rule amadeyv2{ strings: $filename = {68 ?? 25 40 00} $createjobname = {68 E0 26 40 00 56 FF 15 08 10 40 00} condition: all of them } ``` ## Amadey - Amadey 是一個殭屍網路 (botnet),於 2018 年 10 月左右首次被發現,並在一個俄羅斯的駭客論壇上,被以 500 美元左右的價格賣出 - 它會定期向 C2 server 發送有關系統和安裝防毒軟體的訊息,並接受來自 C2 server 的請求 - 主要功能是從受感染的主機中搜集敏感資料,並進一步執行網路偵查、資料洩漏和載入 payloads - 可以偵測多種類型的防毒軟體,搜集相關資訊 - ATT&CK ID : S1025 - Attack group : TA505 - 主要攻擊平台:Windows - 攻擊對象:非俄羅斯的所有用戶(Amadey 可以知道受害主機的 IP,如果發現該主機在俄羅斯,它就不會進行下一步的動作或安裝額外的惡意程式) https://blogs.blackberry.com/en/2020/01/threat-spotlight-amadey-bot ![](https://i.imgur.com/Nv4CYPz.png) - 曾經變形 - 通訊軟體(Ex:KakaoTalk) - Word 文字檔 (Ex:LockBit)

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

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

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