Skip to content
KitploitKITPLOIT
ツールエクスプロイトブログ
Log in
提出
ツールエクスプロイトブログ
提出

ハッキング、侵入テスト、サイバーセキュリティツールをあなたのセキュリティアーセナルに!

Kitploitはハッキング、サイバーセキュリティ、ペネトレーションテストのツールディレクトリです。最新のプロジェクトアップデートを見つけて、脆弱性の発見、システム分析、テストの自動化、セキュリティの強化を行いましょう。

フィードお問い合わせプライバシー© 2026 Kitploit

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
egodeath — A JavaScript Obfuscator based on Cryptographic Indistinguishability Obfuscation techniques | Kitploit
ツール/GitHubGitHub/nstarke/egodeath
Static AnalysisCode AnalysisReverse EngineeringPapers & ResearchLearning & Education
GitHubnstarke/egodeath

egodeath

A JavaScript Obfuscator based on Cryptographic Indistinguishability Obfuscation techniques

リポジトリを見る
535441日前Kitploit レビュー済み
共有
要求された言語のコンテンツは利用できません。英語版を表示しています。

egodeath

This project does not achieve indistinguishability obfuscation. You should not be using this to product to protect secrets. It exists to deter reverse engineering, not prevent it

Tests

images/screenshot.png A JavaScript obfuscator designed to make code extremely difficult to read and analyze for both humans and LLMs. Written in TypeScript. Implements techniques from peer-reviewed cryptographic obfuscation research.

Requirements

Node.js 24 is the default (see .nvmrc); Node.js 26 also works. The supported range is ^24.15.0 || ^26.0.0. Node.js 22 and earlier are not supported. engine-strict=true in .npmrc makes npm install reject an unsupported version up front rather than failing later with an opaque error.

nvm use   # picks up .nvmrc

Installation

npm install -g egodeath      # CLI
npm install egodeath         # library

Library usage

const { obfuscate, obfuscateMultiple } = require('egodeath');

const out = obfuscate(sourceCode, { targetTokens: 10000 });

From source

npm install
npm run build
node dist/cli.js input.js > output.js

CLI Usage

# Basic usage
npx egodeath input.js > output.js

# With target token budget (default: 2,000,000)
npx egodeath --target-tokens 500000 input.js > output.js

# Minimal obfuscation (small output)
npx egodeath --target-tokens 10000 input.js > output.js

# Maximum bloat (10M tokens)
npx egodeath --target-tokens 10000000 input.js > output.js

# Using environment variable
INPUT_FILE=input.js npx egodeath > output.js

# Help
npx egodeath --help

Options

OptionDefaultDescription
--target-tokens <n>2000000Target output size in tokens. Small inputs are bloated up to this limit. Large inputs produce less bloat to stay within budget.
--help, -hShow help message

npm scripts

npm run build              # Compile TypeScript to dist/
npm run start              # Run the obfuscator (reads input.js)
npm run test               # Run the test suite
npm run typecheck          # Type check application, tests, and tools
npm run obfuscate-package  # Run compatibility tests against npm packages

Programmatic API

const { obfuscate } = require('./dist/obfuscator');

const code = 'function add(a, b) { return a + b; }';
const obfuscated = obfuscate(code);

// With options
const obfuscated = obfuscate(code, { targetTokens: 500000 });

Strict CSP / Manifest V3

Use the explicit opt-in CSP-safe profile when the output must run without string code generation (for example, a Manifest V3 popup or service worker):

const { obfuscate } = require('egodeath');
const ratio = 30;
const output = obfuscate(sourceCode, {
  targetTokens: Math.ceil(sourceCode.length * ratio / 4),
  cspSafe: true,
  stubConsole: false,
});
npx egodeath --csp-safe --no-console-stub --target-tokens 30000 input.js > output.js

cspSafe is also accepted by obfuscateMultiple. It is false by default, so existing callers keep the original profile. Ratio 30 is a budget heuristic: targetTokens * 4 / input.length, not an exact output-size multiplier or security level. Rounding the token count can make the ratio slightly larger than 30.

The profile keeps the same budget and compatible transforms:

  • Identifier and closed-object/class renaming, dummy parameters, and comment removal.
  • Control-flow flattening, dead code, opaque predicates, proxy dispatchers, context padding, comma merging, arithmetic noise, and tripwires.
  • Property, number, regex, template, and chained string-array encoding.
  • Anti-debug traps and timers use literal debugger statements instead of evaluating encoded debugger strings. Debugger traps are consequently easier to recognize; they can still pause execution when developer tools are attached.
  • Timing and function toString integrity probes remain. The eval-native probe is omitted, and the global-variable eval-encoding transform is skipped. Global identifiers therefore remain visible; their lexical lookup behavior is kept.

This mode changes generated helpers, not source semantics. Source-provided eval, Function constructors, or string timers remain incompatible with strict CSP. Do not treat this as a sanitizer or a promise that arbitrary inputs run in an extension. It does not change a manifest, add unsafe-eval, or lower the budget. Use stubConsole: false / --no-console-stub when sharing a runtime with libraries whose logging should remain available. Existing integrity/tripwire behavior and performance tradeoffs still apply.

Validation includes ratio-30 execution with Node VM string code generation disabled, delayed timer callbacks, lexical shadowing, ESM imports/live exports, batch and CLI entry points. A manual Chromium Manifest V3 smoke check of the generated profile also passed without unsafe-eval; applications should test their own final bundle because source callbacks serialized into another execution context must remain self-contained.

Transform Pipeline

The obfuscator applies 20 transforms across 4 phases. Each stage builds on the previous one.

Phase 1: Security & Anti-Analysis Pre-transforms

OrderTransformFileDescription
1Anti-Debug Trapstransforms/antiDebug.tsInjects eval("debugger") statements and 10-20 setInterval loops with prime-number intervals (5s-600s) that repeatedly trigger debugger breakpoints. Each instance uses unique encoded strings.
2Punctured Program Tripwirestransforms/tripwires.tsEmbeds hidden checks comparing parameter hashes against secret values. 5 hash patterns (bitwise fingerprint, modular arithmetic, charCodeAt, numeric hash, typeof+length). Triggers silent state corruption, busy loops, or throws on secret inputs. [Paper 4]
3LPN Noise Injectiontransforms/noiseInjection.tsAdds and cancels random noise through split paths in arithmetic computations. 6 patterns: add/sub, XOR, mul/div, split dual-variable, computed hash-chain, bit-rotate. Intermediate values are meaningless without tracing full cancellation. [Paper 7]

Phase 2: Structural Pre-transforms

OrderTransformFileDescription
4Control Flow Flatteningtransforms/controlFlowFlattening.tsConverts function bodies into while(true) { switch((_s * P) % M) { ... } } state machines with modular arithmetic dispatch — case values are encoded through (stateId * multiplier) % modulus using random prime parameters. [Paper 3]
5Opaque Predicatestransforms/opaquePredicates.tsInjects if conditions that always evaluate to true or false but are mathematically hard to prove (e.g., (x*x+x)%2===0). 15 predicate formulas across modular arithmetic, bitwise, and type-check categories.
6Proxy Functionstransforms/proxyFunctions.tsRoutes all function calls through two dispatchers: _fc(fn, ...args) for simple calls, _mc(obj, prop)(...args) for method calls, preserving method lookup before argument evaluation. Uses Function.prototype.apply captured in a local variable for resilience.
7Context Window Exhaustiontransforms/contextExhaustion.tsWraps expressions in deeply nested ternaries with opaque conditions, void-expression chains, and conditional void padding. Forces LLMs to waste context window tokens on noise.
8Comma Expression Mergingtransforms/commaExpressions.tsCollapses consecutive expression statements into single comma expressions: a(); b(); return c() becomes return a(), b(), c().

Phase 3: Identifier Passes

ツールをダウンロード

人気

すべて見る →

コミュニティで最も使われているツールを見つけましょう。

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 究極のOSINTツールキット:調査グラフ、信頼度スコアリング、エイリアスファミリー、マップ、タイムライン、レポート。49個のモジュール、400以上のサイト、APIキー不要。

    871
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock ワンタップ実行アプリ(CVE-2026-43499)

    548
  • 3

    ARTEX

    baarai/artex

    プランナー/ワーカーエージェント、資産グラフと探索グラフ、MITMトラフィック記録、脆弱性の再テストを備えたLLMマルチエージェント自律ペネトレーションテストプラットフォーム。

    383
  • 4

    redforge

    cybersecurity91/redforge

    ブラウザ側のレッドチームツールキット。偵察、ペイロード生成、認証情報攻撃、暗号、エンコーディング、エンゲージメントレポート向けの102のオフラインツールを備えています。

    361
  • 5

    looking-glass

    anonghosty/looking-glass

    ShadowserverレポートをMongoDBに取り込み、インタラクティブなマップ、分析、調査結果、アドバイザリ、エグゼクティブダッシュボードとして再生するCSIRTプラットフォーム。

    305
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    AIネイティブなサイバーセキュリティのためのアクションシステム。意図がガバナンスされた実行に変わり、証拠が運用記憶となり、すべての操作が次の操作を改善する。

    280

すべてのツールを探索

ツールコレクションを閲覧

すべてのツールを見る →