Skip to main content

Advanced Binary Analysis Tool

Project description

NusantaraScan

"An open-source binary analysis tool for modern security workflows."

Python License Platform


Tentang Proyek

NusantaraScan adalah tool open-source untuk analisis binary, mencakup malware analysis, deteksi RAT (Remote Access Trojan), dan reverse engineering.

Dirancang agar:

  • Powerful untuk analis profesional
  • Tetap simpel untuk pemula

Fitur v0.2.0

  • Static Analysis (PE, ELF, Mach-O)
  • RAT Detection (DarkComet, NanoCore, NjRAT, Gh0st, dll)
  • String Extraction (URL, IP, API calls)
  • Entropy Analysis
  • Section Analysis
  • YARA Integration
  • Disassembly (x86/x64/ARM/ARM64)
  • Multi-format Export (JSON, HTML)
  • Packer Detection (UPX, ASPack, MPRESS)
  • Entropy Visualization
  • Multi-File Scanning
  • VirusTotal Integration

Instalasi

git clone https://github.com/Lutfifakee-Project/NusantaraScan.git
cd NusantaraScan
pip install -r requirements.txt
python main.py --help

Install dari PyPI

pip install nusantarascan

Deteksi RAT (Remote Access Trojan)

python main.py file_curiga.exe --yara nusantarascan/signatures/yara_rules/rat_rules
python main.py file_curiga.exe --deep --yara nusantarascan/signatures/yara_rules/rat_rules

Contoh Penggunaan

# Analisis dasar
python main.py notepad.exe

# Deteksi packer
python main.py malware.exe --packer

# Visualisasi entropy graph
python main.py malware.exe --graph

# Full disassembly
python main.py malware.exe --full-disasm

# Scan semua file dalam folder
python main.py ./malware_samples/ --recursive

# Cek ke VirusTotal (perlu API key)
python main.py malware.exe --vt --vt-api-key YOUR_API_KEY

# Kombinasi semua fitur
python main.py malware.exe --deep --packer --graph --vt

# Export ke HTML/JSON
python main.py file.exe --output report.html --format html

๐Ÿ“Š Contoh Output

    _   _                       _                  ____
   | \ | |_   _ ___  __ _ _ __ | |_ __ _ _ __ __ _/ ___|  ___ __ _ _ __
   |  \| | | | / __|/ _` | '_ \| __/ _` | '__/ _` \___ \ / __/ _` | '_ \
   | |\  | |_| \__ \ (_| | | | | || (_| | | | (_| |___) | (_| (_| | | | |
   |_| \_|\__,_|___/\__,_|_| |_|\__\__,_|_|  \__,_|____/ \___\__,_|_| |_| 0.2.0
                https://github.com/Lutfifakee-Project/

[+] Target   : malware_simulator.exe
[+] Size     : 8,456,064 bytes (8.06 MB)
[+] MD5      : 1a2b3c4d5e6f7g8h9i0j
[+] Entropy  : 6.8521

[*] Section Analysis:
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”“
โ”ƒ Name   โ”ƒ Virtual Address โ”ƒ Virtual Size โ”ƒ Raw Size โ”ƒ Entropy โ”ƒ
โ”กโ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ฉ
โ”‚ .text  โ”‚ 0x1000          โ”‚ 0x2448f      โ”‚ 0x24600  โ”‚ 6.2747  โ”‚
โ”‚ .rdata โ”‚ 0x26000         โ”‚ 0x9288       โ”‚ 0x9400   โ”‚ 5.9296  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

[+] Imported Functions:
    KERNEL32.dll
      โ””โ”€ CreateRemoteThread     โ† Indikasi RAT!
      โ””โ”€ VirtualAllocEx
      โ””โ”€ WriteProcessMemory
      โ””โ”€ RegSetValueExW

[+] String Analysis:
    [!] String mencurigakan ditemukan:
      โ€ข DarkComet                โ† Indikasi RAT DarkComet!
      โ€ข CreateRemoteThread
      โ€ข VirtualAllocEx

[!] YARA Scan:
    [!] 2 YARA rule(s) matched:
      โ€ข DarkComet_RAT            โ† RAT Terdeteksi!
      โ€ข Suspicious_RAT_APIs

[+] Scan completed!v

๐Ÿ“ฆ Requirements

  • Python 3.8 atau lebih baru

Install dependencies:

pip install -r requirements.txt

Dependencies:

  • pefile โ€” Analisis file PE Windows
  • pyelftools โ€” Analisis file ELF Linux
  • capstone โ€” Disassembly engine
  • yara-python โ€” YARA integration
  • rich โ€” CLI output formatting
  • requests โ€” VirusTotal API

๐Ÿ“ Struktur Proyek

NusantaraScan/
โ”œโ”€โ”€ main.py                  # Entry point utama
โ”œโ”€โ”€ requirements.txt        # Dependencies
โ”œโ”€โ”€ setup.py                # Installer
โ”œโ”€โ”€ README.md               # Dokumentasi
โ””โ”€โ”€ nusantarascan/
    โ”œโ”€โ”€ cli.py              # CLI handler
    โ”œโ”€โ”€ analyzers/          # Binary analyzers (PE, ELF, Mach-O)
    โ”œโ”€โ”€ visualizers/        # Entropy graph visualization
    โ”œโ”€โ”€ integrations/       # VirusTotal API
    โ”œโ”€โ”€ scanners/           # Multi-file scanner
    โ”œโ”€โ”€ utils/              # Utilities (hash, entropy)
    โ”œโ”€โ”€ signatures/         # YARA scanner & rules
    โ”‚   โ””โ”€โ”€ yara_rules/
    โ”‚       โ””โ”€โ”€ rat_rules/  # YARA rules untuk deteksi RAT
    โ””โ”€โ”€ formatters/         # JSON/HTML export

Menggunakan Koleksi Rules Komunitas (Yara-Rules)

Untuk meningkatkan kemampuan deteksi secara signifikan, Anda dapat mengintegrasikan koleksi rules dari repositori Yara-Rules/rules. Repositori ini berisi ribuan signature YARA untuk mendeteksi berbagai ancaman, termasuk malware, exploit kit, dokumen berbahaya, dan teknik anti-debug.

Langkah-langkah Mengintegrasikan:

Clone repositori ke dalam direktori signatures tool ini: git clone https://github.com/Yara-Rules/rules.git nusantarascan/signatures/yara_rules/community

Struktur Direktori: Setelah berhasil, Anda akan memiliki struktur seperti ini: nusantarascan/signatures/yara_rules/ โ”œโ”€โ”€ rat_rules/ # Rules khusus RAT Anda โ””โ”€โ”€ community/ # Rules dari Yara-Rules โ”œโ”€โ”€ malware/ # Rules untuk deteksi malware umum โ”œโ”€โ”€ packers/ # Rules untuk deteksi packer (UPX, dll) โ”œโ”€โ”€ maldocs/ # Rules untuk dokumen berbahaya โ””โ”€โ”€ ...

Gunakan Rules Komunitas: Anda bisa langsung memindai file dengan semua rules komunitas atau kategori spesifik.

Memindai dengan semua rules dari repositori komunitas

python main.py file_curiga.exe --yara nusantarascan/signatures/yara_rules/community

Memindai dengan rules dari kategori 'malware' saja

python main.py file_curiga.exe --yara nusantarascan/signatures/yara_rules/community/malware

Memindai dengan rules RAT Anda sendiri ditambah rules malware komunitas

python main.py file_curiga.exe --yara nusantarascan/signatures/yara_rules/rat_rules --yara nusantarascan/signatures/yara_rules/community/malware

Lisensi

Proyek ini menggunakan lisensi GNU General Public License v3.0


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nusantarascan-0.2.0.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nusantarascan-0.2.0-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

Details for the file nusantarascan-0.2.0.tar.gz.

File metadata

  • Download URL: nusantarascan-0.2.0.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for nusantarascan-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8781dc34349fae9d67e40bf3f79af9ef2ff261a99a135450ca0b174cf6a584df
MD5 91a259239f5f436033f0fad686cd59f9
BLAKE2b-256 1fe00180bdb5d3e371d377cf302c995aba5e86cbd87536fb2fb344da94dc4f27

See more details on using hashes here.

File details

Details for the file nusantarascan-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: nusantarascan-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 23.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for nusantarascan-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9e7174a804685a0b0467754f449e1f0bf35c9020b462015e7730c63ed0514d8c
MD5 72c91fda3edf1fc434c19fa8a68230b6
BLAKE2b-256 a26703226136f2610cfe52b4a0fbb61a8fefe08c2e58b64b19a9da472eced791

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page