Skip to main content

Rust(oxc) + Python(never_v8) deobfuscator for a specific JS obfuscation scheme

Project description

oxc_debolb

A JavaScript deobfuscator targeting specific obfuscation schemes (sbsd, akm), built on top of oxc (Rust) and exposed to Python via PyO3 + maturin.

The Rust core handles parsing, AST traversal, semantic analysis and codegen; the Python layer drives the deobfuscation pipeline and provides a CLI.

Installation

pip install oxc_debolb

Pre-built wheels are published for:

  • Linux — x86_64 / aarch64, both manylinux (glibc) and musllinux (Alpine)
  • Windows — x64
  • macOS — x86_64 (Intel) / aarch64 (Apple Silicon)

All wheels are built with stable ABI (abi3-py39), so a single wheel per platform covers CPython 3.9 – 3.14.

Quick start

Library:

from oxc_debolb import sbsd_deobfuscate, akm_deobfuscate, format_timing_log

source = open("code.js", "r", encoding="utf-8").read()

# sbsd scheme
cleaned, log = sbsd_deobfuscate(source, verbose=False)

# or akm scheme
cleaned, log = akm_deobfuscate(source, verbose=False)

print(cleaned)
print(format_timing_log(log))

CLI:

# default: code.js -> sbsd_ok.js, scheme=sbsd
python -m oxc_debolb.cli

# specify input / output / scheme
python -m oxc_debolb.cli input.js output.js -s akm

# options
#   -s, --scheme {sbsd,akm}   obfuscation scheme (default: sbsd)
#   -q, --quiet               suppress per-step timing
#   -v, --verbose             verbose progress

Building from source

Requires Rust (stable) and Python ≥ 3.9.

pip install maturin
maturin develop --release

To produce a wheel:

maturin build --release

License

Licensed under the Apache License, Version 2.0. See LICENSE for details.

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

oxc_debolb-0.1.0.tar.gz (2.1 MB view details)

Uploaded Source

Built Distributions

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

oxc_debolb-0.1.0-cp39-abi3-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.9+Windows x86-64

oxc_debolb-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ x86-64

oxc_debolb-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl (1.5 MB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ ARM64

oxc_debolb-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ x86-64

oxc_debolb-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.4 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARM64

oxc_debolb-0.1.0-cp39-abi3-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

oxc_debolb-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

File details

Details for the file oxc_debolb-0.1.0.tar.gz.

File metadata

  • Download URL: oxc_debolb-0.1.0.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.13.3

File hashes

Hashes for oxc_debolb-0.1.0.tar.gz
Algorithm Hash digest
SHA256 04c758c8421573cc46951880ef2f13d45b4e14de07e4fea2f2673b2f4028f7c8
MD5 c88525e28d4d70fb7cc5c5fda68707a7
BLAKE2b-256 86ce40a1abe05164d69e56fe738161df1189b9a7c1526cee5895a1215de8d97c

See more details on using hashes here.

File details

Details for the file oxc_debolb-0.1.0-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for oxc_debolb-0.1.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 2e8270d85b33595f9208ef5bc83f44a0847d26a3f2baec2b40e8fa1d2cbb637d
MD5 639d8e33dd1f25ffe259c823bbb7b2b2
BLAKE2b-256 c150dc84333b362a5015c70607069adac25dae5906406d1e0bb164fc8145b62f

See more details on using hashes here.

File details

Details for the file oxc_debolb-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for oxc_debolb-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 69c7d282f835fb7d711c2bf630f016fe865b315a9fc809565b7db0c157ef8418
MD5 3427a8a5aeffdebec3746a70ead542f6
BLAKE2b-256 614528c8ce7f0e7e95012b24eaab1ba446f4cab0bfe13d8fa0d3311420bfe81b

See more details on using hashes here.

File details

Details for the file oxc_debolb-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for oxc_debolb-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 914d85aa84df221f554e88b6db8f6b791e084a6be6f3a92b3459e33daa5bd75c
MD5 f1bb6c6d230ba7303fe4acf4bbde7611
BLAKE2b-256 4829b07fd1510c0dffef61d57e48f3f0dfae4be954449bcf433282748c407676

See more details on using hashes here.

File details

Details for the file oxc_debolb-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for oxc_debolb-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a2623a560d34e738bed8b9a3d9c1ab43d6bd9f293b4d119dcaea0770eefd8c96
MD5 3bf0e1bdd9764e79dc287528a659306c
BLAKE2b-256 b73d8edca3383e387c72bb5fe07abd2b6f65e1c44cf1edd822e079a9649a7746

See more details on using hashes here.

File details

Details for the file oxc_debolb-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for oxc_debolb-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 849433ca13a67285a888090f86cebc6e1020b4b88dee898d754129e0ca185807
MD5 75f0898f30cbbeeb2d9b95723a849bc8
BLAKE2b-256 be66c41e8c7562a78d410ec458632c8359e356c17a765a67be9e887d0ac03f25

See more details on using hashes here.

File details

Details for the file oxc_debolb-0.1.0-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for oxc_debolb-0.1.0-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4c130aefef9a7cfebefbff0e6e42067811a0765015b5c3c8201135fdd9473fbe
MD5 bd784ede43012b1e1d41b265969f7abc
BLAKE2b-256 1e260b78c2e9c38c5c5043df19da996dc1695e55a9e2086512067d23b567e92e

See more details on using hashes here.

File details

Details for the file oxc_debolb-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for oxc_debolb-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1191c990cc58bfdc2c3922dd7a4a730a4590254debe793dd1a8fd56b3618fff6
MD5 d4267e40101bc5b195f5d576f92e6b72
BLAKE2b-256 359047e5b02b2702781277f3dbb249ee58ab2786db86b6b6d4cee749c82b1648

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