剑庭安
首页
黑客安全首页全部安全栏目 黑客技术黑客技术、渗透测试、漏洞利用工具与教程 安全软件安全工具、扫描器、检测与审计软件 病毒分析恶意软件分析、样本、逆向与沙箱 CTF思路CTF 题目、writeup、解题思路与工具 防护思路防御技术、加固、检测响应与蓝队 红蓝攻防红队攻击模拟、蓝队对抗、攻防演练 漏洞知识库漏洞、CVE、PoC、EXP 与安全研究
逆向|反编译
PHP源码PHP 网站源码、程序、系统 APP源码安卓/iOS APP 源码 ASP源码ASP 网站源码与程序 NET源码.NET 网站源码与系统 小程序源码微信/支付宝小程序源码 Dedecms风格模板Dedecms 织梦风格模板 Empirecms风格模板EmpireCMS 帝国风格模板 Discuz商业模板/插件Discuz 商业模板与插件 WordPress主题/插件WordPress 主题与插件 其它源码、模板其它各类源码与模板 游戏源码游戏源码与引擎项目 加密货币源码加密货币、区块链、钱包、USDT/比特币相关源码与工具 手游源码手机游戏源码、服务端、客户端与引擎项目 传奇源码热血传奇、传奇世界、复古传奇等客户端/服务端/引擎源码 页游源码网页游戏、H5 游戏、浏览器游戏源码 端游源码电脑单机游戏、PC 网游客户端/服务端源码
最新万能免驱动支持所有型号打印机下载程序 日历天气老黄历 · 每天同步真实日期与天气
站长工具站长工具 自助开通会员浏览该分类 其他资源qtziy SEO工具SEO工具 站群源码站群源码 泛程序泛程序 蜘蛛模板蜘蛛模板 蜘蛛池蜘蛛池 外链工具外链工具
搜索 自助开通会员🔓 破甲 API
登录 注册
首页 分类列表 防护思路 akira-ransomware-reverse - C…
防护思路
作者:admin 发布:2026-10-06

akira-ransomware-reverse - Comprehensive reverse engineering analysis of Akir

项目说明Akira Ransomware: Complete Technical AnalysisA comprehensi engineering analysis of the Akira ransomware !Analysis Status!Documentation!Diagrams!--…
资源可下载 免费下载 0 条讨论
会员资源
开通会员后即可下载全部资源。
登录后开通会员
会员方案
111浏览量
0讨论
2下载链接
可下载资源状态
内容可验证
更新 2026-10-06
人工审核发布
评论区答疑

项目说明

Akira Ransomware: Complete Technical Analysis

A comprehensi engineering analysis of the Akira ransomware

!Analysis Status
!Documentation
!Diagrams
!

---

Executi

This repository contains a comprehensi analysis of the Akira ransomware , conducted through deep reverse engineering using Ghidra, Frida, and x64dbg. The analysis spans 8,930+ lines of technical documentation with 69 professional diagrams co every aspect of the malware's operation.

Key Findings

Critical Identified:
1. Nonce Reuse - Same ChaCha20 key+nonce used across multiple files per thread, enabling XOR-based plaintext recovery
2. Case-Sensitivity Bypass - Blacklist filtering uses case-sensiti, allowing "WINDOWS" vs "Windows" bypass
3. Weak RNG Implementation - Time-based random number generation with 30-60% recovery success rate in

Attack Characteristics:

  • Encryption Speed: 17 MB/s a, 35 MB/s peak throughput

  • Success Rate: 98.5% (9,850 of 10,000 files encrypted)

  • Attack Duration: ~50 minutes for 50 GB dataset

  • Business Impact: $160K-$710K+ per successful attack
  • Detection Windows:

  • T+0-10s (CRITICAL): 100% file recovery possible

  • T+10-300s (HIGH): 70% file recovery possible

  • T+300-1500s (MEDIUM): 25-70% file recovery possible

  • T+3000s (LOW): Shadow copy deletion pre only
  • ---

    Repository Structure

    ---

    Documentation Index

    Core Technical Analysis (Comprehensi)

    #### Primary Documentation
    1. Binary & Static Analysis (2,000+ lines)
    - Binary characteristics, PE structure, imports/exports
    - Startup sequence and initialization
    - Main function architecture and control flow
    - Command-line interface and configuration
    - Complete function reference (25+ functions)

    2. Cryptography Analysis (3,000+ lines)
    - ChaCha20 stream cipher implementation
    - RSA-2048 public key analysis
    - Session key generation and RNG analysis
    - CRITICAL: Weak time-based RNG (CVSS 9.1)
    - Attack and decryption feasibility
    - Complete cryptographic function reference (22+ functions)

    3. Threading & Execution (3,000+ lines)
    - Dual thread pool architecture (ASIO library)
    - Thread allocation algorithm (30/10/60 split)
    - Synchronization mechanisms (critical sections, condition )
    - Producer-consumer pattern and task queue system
    - Dri and directory tra
    - File filtering system (5 extensions, 11 directories, 13 processes)
    - CRITICAL: Restart Manager process termination
    - Complete threading function reference (40+ functions)

    4. Encryption Strategy & Operational Model (3,000+ lines)
    - Three encryption modes (Full, Part, Spot)
    - 512-byte footer structure (byte-accurate)
    - CRITICAL: NO network communication (fire-and-forget design)
    - registration model (pre-configured credentials)
    - Data exfiltration strategy (separate tools)
    - Anti-analysis assessment (minimal e)
    - Post-encryption actions (shadow copy deletion only)
    - Decryption mechanism analysis
    - Recovery possibilities (30-60% for VMs with weak RNG exploit)
    - Complete attack timeline (T-30 days to T+7 days)
    - Comparison to ransomware families (LockBit, BlackCat, Conti, REvil)
    - Detection and pre strategies (YARA + EDR rules)
    - Incident response guidance

    #### Supplementary Documentation

  • Reports - C, exploitation details

  • Indicators of Compromise - File, network, and beha IOCs

  • YARA Detection Rules - Signature-based detection
  • ---

    Key Technical Details

    Architecture O

    Execution Phases:
    1. Logging Initialization (T+0.000s - T+0.012s) - 12ms
    2. CLI Argument Parsing (T+0.012s - T+0.024s) - 12ms
    3. Argument (T+0.024s - T+0.071s) - 47ms
    4. Subsystem Initialization (T+0.071s - T+0.116s) - 45ms ← RSA key parsing bottleneck
    5. Dri (T+0.116s - T+0.166s) - 50ms
    6. Encryption Campaign (T+0.166s - T+3000s) - 99.9% of total time
    7. Post-Encryption (T+3000s - T+3002s) - Shadow copy deletion + ransom note

    Threading Model:

  • Folder Parser Threads: 2-4 threads (ASIO pool #1)

  • Encryption Worker Threads: 6-12 threads (ASIO pool #2)

  • Synchronization: Single CRITICAL_SECTION mutex + 2 condition

  • Task Queue: 288-byte task_t structures, 2 billion task limit (backpressure)
  • Cryptographic Implementation

    ChaCha20 Custom :

    RSA-2048 Key Encryption:

    File Footer Structure (512 bytes @ 0x1400b7010):

    Performance Metrics

    Throughput Analysis (50 GB dataset):

  • Files processed: 10,000 files

  • Files encrypted: 9,850 (98.5% success rate)

  • Files skipped: 150 (1.5% - locked, system files, errors)

  • A file size: 5.24 MB

  • Total time: 2,834 seconds (47.2 minutes)

  • A throughput: 17 MB/s

  • Peak throughput: 35 MB/s
  • Resource Utilization:

  • CPU: 91% sustained (across all cores)

  • Disk: 100% saturation ← PRIMARY BOTTLENECK

  • Memory: 53-82 MB (depends on task queue depth)

  • Threads: 8-16 active (2-4 parsers + 6-12 workers)
  • Performance Breakdown:

  • ChaCha20 encryption: 70% of CPU time

  • Disk I/O: 25% of total time

  • RSA operations: 3% of CPU time

  • Other (filtering, queue management): 2%
  • ---

    Details

    1. Nonce Reuse (CRITICAL)

    Se: CRITICAL
    CVE: N/A (malware)
    Impact: Plaintext recovery via XOR attack

    Description:
    Each worker thread generates a single ChaCha20 key+nonce pair and reuses it for all files processed by that thread. Since ChaCha20 is a stream cipher, reusing the same key+nonce for multiple plaintexts allows XOR-based recovery.

    Attack :

    Exploitation:

  • Identify files encrypted by same thread (footer RSA ciphertext identical)

  • Known plaintext attack (headers: PDF, DOCX, ZIP, etc.)

  • Recover XOR of plaintexts: C1 ⊕ C2 = P1 ⊕ P2

  • Statistical analysis to recover full plaintexts
  • Remediation for Defenders:

  • Attempt recovery on files with identical RSA-encrypted nonces in footer

  • Focus on files with known headers (Office docs, PDFs, images)
  • 2. Case-Sensitivity Blacklist Bypass (HIGH)

    Se: HIGH
    Impact: System file encryption possible

    Description:
    Directory blacklist uses case-sensiti comparison. Windows filesystem is case-insensitive, but blacklist filtering is case-sensitive.

    Bypass Example:

    Impact:

  • Critical system files may be encrypted

  • System instability/boot failure possible

  • Increased damage beyond data loss
  • Detection:

  • Monitor for encryption of uppercase/lowercase of system directories
  • 3. Weak RNG - Time-Based Seeding (MEDIUM)

    Se: MEDIUM
    Impact: Partial key recovery possible (30-60% success in VMs)

    Description:
    Random number generation uses time-based seeding, making it partially predictable in controlled en (VMs, sandboxes).

    Exploitation:

  • → execute malware → record encryption timestamp

  • Revert snapshot → replay with same timestamp

  • 30-60% success rate for RNG prediction in VMs

  • Lower success (5-10%) on physical hardware with high-resolution timers
  • Remediation:

  • Attempt key recovery if exact execution timestamp known

  • Most in en
  • ---

    Detection & Defense

    YARA Rules

    See yara-rules/ directory for detection signatures.

    Key Indicators:

  • RSA public key DER structure @ 0x1400fa080

  • Magic footer signature "AKIRA!!!" or

  • Custom ChaCha20 S-box table (256 bytes)

  • Specific thread pool initialization patterns

  • Blacklist strings ("Windows", "Program Files", ".exe", ".dll", etc.)
  • EDR Detection Opportunities

    Critical Detection Windows:

    Window 1: Pre-Encryption (T+0-10s) - HIGHEST PRIORITY

  • Process: akira.exe or similar name

  • Behavior: Rapid thread creation (8-16 threads)

  • Registry: No persistence (single-run attack)

  • Network: None (offline operation)

  • Action: Immediate process termination → 100% file recovery
  • Window 2: Early Encryption (T+10-300s) - HIGH PRIORITY

  • Behavior: Sustained 91% CPU usage across all cores

  • Disk: 100% disk saturation (sequential write pattern)

  • Files: Rapid .akira extension renames (35-70 files/sec)

  • Action: Process termination → 70% file recovery
  • Window 3: Mid Encryption (T+300-1500s) - MEDIUM PRIORITY

  • Behavior: Continued high CPU/disk usage

  • Files: 30-75% of files already encrypted

  • Action: Process termination → 25-70% file recovery
  • Window 4: Post-Encryption (T+3000s) - LOW PRIORITY

  • Process: PowerShell spawned (shadow copy deletion)

  • Command: delete shadows /all /quiet

  • Action: Block shadow copy deletion → preser option
  • Beha Indicators

    File System:

  • Mass file renaming to .akira extension

  • 512-byte footer appended to all encrypted files

  • Ransom note: akira_readme.txt (350 copies across filesystem)

  • Directory targeting (skips: Windows, Program Files, AppData, etc.)
  • Process Behavior:

  • No persistence mechanism (registry, startup, services)

  • No network communication (offline operation)

  • Single-run execution model

  • Restart Manager API calls (RmStartSession) for file locking
  • Performance:

  • Sustained 91% CPU usage (all cores)

  • 100% disk saturation

  • 8-16 acti

  • 50-100 MB memory footprint
  • ---

    Indicators of Compromise (IOCs)

    File Indicators

    Memory Indicators

    Beha Indicators

    ---

    Mitigation Strategies

    Pre Measures

    1. Real-Time Beha Detection:
    - Monitor for rapid thread creation (8-16 threads within 10 seconds)
    - Alert on sustained 91% CPU usage + 100% disk saturation
    - Detect mass file renaming patterns (.akira extension)
    - Block PowerShell shadow copy deletion commands

    2. File System Protection:
    - Enable Controlled Folder Access (Windows Defender)
    - Implement honeypot files in monitored directories
    - Enable VSS ( Shadow Copy Service) with frequent snapshots
    - Maintain offline backups (3-2-1 backup strategy)

    3. Network Segmentation:
    - Isolate critical file servers from workstations
    - Implement least-pri access controls
    - Monitor lateral mo attempts

    4. Endpoint Hardening:
    - Disable PowerShell for non-administrati
    - Implement application whitelisting
    - Enable tamper protection for security tools

    Response Procedures

    If Akira Detected (T+0-10s):
    1. Immediately terminate process (100% recovery possible)
    2. Isolate affected system from network
    3. Preser dump for forensic analysis
    4. Restore from last known-good backup

    If Encryption In Progress (T+10-300s):
    1. Terminate process immediately (70% recovery possible)
    2. Identify encrypted files (.akira extension)
    3. Restore encrypted files from backup
    4. Attempt nonce reuse exploitation for identical RSA footer files

    If Encryption Complete (T+3000s+):
    1. Block shadow copy deletion (if not already executed)
    2. Preserve for recovery
    3. Restore from backups (do not pay ransom)
    4. Conduct forensic analysis to determine entry

    ---

    Research Methodology

    Tools & Techniques

    Static Analysis:

  • Ghidra 11.4.2 - Disassembly, decompilation, and reverse engineering

  • YARA - Signature-based malware detection

  • Python 3.x - Automation scripts and analysis utilities
  • Dynamic Analysis:

  • Frida - Runtime instrumentation and API hooking

  • x64dbg - Windows debugger for beha analysis
  • Analysis Techniques:

  • Static binary analysis (disassembly, decompilation)

  • Data structure recovery (crypto_ctx_t, footer_t, task_t)

  • Control flow analysis (7-phase execution model, 21-state FSM)

  • Cryptographic algorithm identification (ChaCha20 , RSA-2048)

  • Performance profiling (17.7 billion function calls analyzed)

  • (69 diagrams: Mermaid, PlantUML, Graphviz, ASCII)
  • Analysis Metrics

    Time In:

  • Phase 1-10: ~40 hours

  • Phase 11: ~12 hours (function documentation)

  • Phase 13: ~8 hours ()

  • Total: ~60 hours
  • Documentation Output:

  • Total lines: ~8,930 lines

  • Functions documented: 19 critical functions

  • Diagrams created: 69 professional diagrams

  • Structures documented: 15+ key data structures
  • ---

    Contributing

    This is a completed research project. However, contributions are welcome for:

  • Additional YARA rules

  • EDR detection signatures

  • Decryption tool de (nonce reuse exploitation)

  • Automated analysis scripts
  • Please open an issue or pull request with your contributions.

    ---

    Disclaimer

    IMPORTANT: This analysis is provided for educational, research, and defensi purposes only. The information contained in this repository is intended to help security professionals:

  • Understand Akira ransomware TTPs (Tactics, Techniques, Procedures)

  • Develop detection and pre mechanisms

  • Impro response capabilities

  • Conduct threat hunting and forensic analysis
  • DO NOT:

  • Use this information to develop, enhance, or deploy malware

  • Attempt to exploit in production systems without authorization

  • Distribute ransomware or malicious code

  • Engage in any illegal acti
  • The authors and contributors are not responsible for any misuse of this information.

    ---

    License

    This research and documentation are released under the MIT License for educational and defensi purposes.

    See LICENSE file for details.

    ---

    Authors & Acknowledgments

    Research Organization: MottaSec
    Analysis Date: 2025-11-08
    Tools: Ghidra, Python, Custom analysis scripts

    Acknowledgments:

  • Ghidra de team (NSA)

  • Security research community
  • ---

    Contact & References

    For questions or collaboration:

  • Open an issue in this repository

  • GitHub:

  • LinkedIn:

  • X (Twitter): <
  • Related Research:

  • [Link to executive PDF report]
  • ---

    Last Updated: 2025-11-08
    Repository Status: Complete Analysis
    : 1.0

    ---

    Quick Na

    Comprehensi Documents

    | Document | Lines | Co | Key Findings |
    |----------|-------|----------|-------------|
    | Binary & Static Analysis | 2,000+ | Phases 1-2 | PE structure, startup sequence, main architecture, CLI |
    | Cryptography Analysis | 3,000+ | Phase 3 | ChaCha20, RSA-2048, Weak RNG (CVSS 9.1), attack |
    | Threading & Execution | 3,000+ | Phases 4-5 | ASIO pools, 30/10/60 split, file filtering, Restart Manager |
    | Encryption Strategy | 3,000+ | Phases 6-10 | 3 modes, 512B footer, NO network, recovery (30-60% VMs) |

    Supplementary Resources

    | Resource | Type | Purpose |
    |----------|------|---------|
    | | Report | C, exploitation details |
    | IOCs | Intelligence | File, network, beha indicators |
    | YARA Rules | Detection | Signature-based detection rules |
    | Analysis Scripts | Tools | Python utilities for analysis |

    ---

    🔒 Akira Ransomware Analysis - Complete Technical Documentation

    项目信息

    开发语言:Python

    Star 数:7

    技术要点

    该项目属于防护思路方向的开源资源,代码结构清晰,适合安全研究人员学习参考。项目围绕Comprehensive reverse engineering analysis of Akira ransomware: cryptography, threading architecture, vulnerabilities (CVSS 9.1), IOCs, and detection strategies展开,提供了可运行的实现,对理解相关安全机制、工具原理与攻防技术具有较高的研究价值。

    从技术实现角度看,此类项目的核心在于对底层原理的深入理解与工程化落地。开发者在研究过程中可以结合官方文档与社区讨论,梳理项目的初始化流程、核心模块职责与数据流转,逐步掌握其中的技术细节与设计思路。

    使用与学习建议

    1. 下载源码压缩包,解压到本地环境。

    2. 根据项目类型准备对应的运行环境与依赖。

    3. 按照 README 中的步骤完成配置与部署。

    4. 在隔离的测试环境中运行验证,避免影响生产系统。

    免责声明

    本资源来源于开源社区,仅供安全研究、技术学习与合法授权范围内的攻防演练使用,请勿用于任何非法或侵害他人权益的用途。使用本项目产生的一切后果由使用者自行承担。

    资源标题akira-ransomware-reverse - Comprehensive reverse engineering analysis of Akir
    所属分类防护思路
    发布作者admin
    发布时间2026-10-06 00:13:47
    下载权限 免费下载
    附件数量2 个下载链接
    浏览次数111
    讨论数量0
    主题状态正常讨论中

    本资源免费,登录后即可在本页「下载链接」区域获取全部附件。

    请在评论区留言说明具体链接,或联系作者补档。楼主更新后本页会同步最新的下载地址。

    请先阅读正文中的授权说明;未注明的默认仅限站内学习交流,禁止直接搬运到其他站点二次售卖。
    还没有讨论,快来抢沙发~
    登录 后才能参与讨论
    下载链接
    会员才能下载
    登录后开通会员
    同分类推荐
    暂无同类资源
    免费登录即可下载
    查看会员
    放大预览

    © 2026 剑庭安 - 网站开发定制 SEO 优化蜘蛛池代做 在线看手相算命. 保留所有权利。

    Powered by 酷像SEOv3.0

    网站地图 Sitemap.xml
    首页 全部分类 黑客安全 逆向|反编译 精品源码 站长工具自助开通会员其他资源SEO工具站群源码泛程序蜘蛛模板蜘蛛池外链工具创意乐园 搜索 会员服务 登录 注册