{"id":25823293,"url":"https://github.com/youdie323323/enigma","last_synced_at":"2025-04-09T08:08:08.349Z","repository":{"id":278139433,"uuid":"934038637","full_name":"youdie323323/enigma","owner":"youdie323323","description":"The first publicly available better javascript virtual machine obfuscator","archived":false,"fork":false,"pushed_at":"2025-03-09T20:00:16.000Z","size":1061,"stargazers_count":56,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T05:44:34.989Z","etag":null,"topics":["ast","interpreter","javascript","javascript-obfuscator","jsvm","jsvmp","kasada","minify","obfuscation","obfuscator","protection","virtual-machine","vm"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/youdie323323.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-17T07:05:14.000Z","updated_at":"2025-03-15T19:45:48.000Z","dependencies_parsed_at":"2025-02-19T03:01:38.065Z","dependency_job_id":null,"html_url":"https://github.com/youdie323323/enigma","commit_stats":null,"previous_names":["youdie323323/js-enigma-vm","youdie323323/enigma"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youdie323323%2Fenigma","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youdie323323%2Fenigma/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youdie323323%2Fenigma/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youdie323323%2Fenigma/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/youdie323323","download_url":"https://codeload.github.com/youdie323323/enigma/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245598322,"owners_count":20641884,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ast","interpreter","javascript","javascript-obfuscator","jsvm","jsvmp","kasada","minify","obfuscation","obfuscator","protection","virtual-machine","vm"],"created_at":"2025-02-28T11:50:56.565Z","updated_at":"2025-03-26T06:08:26.160Z","avatar_url":"https://github.com/youdie323323.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm](https://img.shields.io/npm/v/enigma)](https://www.npmjs.com/package/enigma)\n[![license](https://img.shields.io/github/license/youdie323323/enigma)](https://github.com/youdie323323/enigma/blob/master/LICENSE)\n\n\u003ch1 align=\"center\"\u003e$$Ёnigma$$\u003c/h1\u003e\n\n🚀 **The first publicly available better javascript virtual machine obfuscator**\n\nThis tool allows you to run JavaScript code on a custom-built JavaScript interpreter, effectively making reverse engineering harder.  \nIn a nutshell, i called this as **javascript version of webassembly**.\n\n## 📌 How It Works\n\nEnigma VM obfuscates your javascript code by compiling it into a custom bytecode format that runs on an embedded javascript virtual machine.\n\n### ❓ Why Enigma?\n\nUnlike traditional obfuscators like [obfuscator.io](https://obfuscator.io/) or [js-confuser](https://js-confuser.com/), Enigma analyzes the AST (Abstract Syntax Tree) and converts everything into bytecode before running it on a VM. To reverse this, one would need to create a disassembler (e.g. [shape security VM decompiler](https://github.com/g2asell2019/shape-security-decompiler-toolkit)), which is no trivial task. \n\nMoreover, deobfuscating the original code from the disassembled output is **extremely** challenging. Most disassemblers display the code in an assembly-like format. This means that if the code is pre-obfuscated and then compiled/executed on the Enigma VM, the difficulty of reverse engineering increases significantly. \n\n🔒 **AST informations that completely removed on compilation phase**\n- Variable names\n- Structural differences in loops\n- Labels\n- And much more...\n\nThat being said, overconfidence is not advisable. Please use it in moderation. There is no such thing as obfuscation that makes reverse engineering impossible. **Do not include personal information or passwords in code** that gets compiled. \n\n## 🔍 Example\n\nCheck out the `examples` folder for sample compiled code!\n\n## 🚀 Quick Start\n\n### Installation\n\n```bash\n$ npm install enigma-vm\n```\n\n### Usage Example\n\n```ts\nimport { Compiler, InterpreterBuilder } from \"enigma-vm\";\n\n(async function () {\n  const compiler = new Compiler();\n\n  const input = `\n    function sayHello(name) {\n        console.log(\"Hello,\", name + \"!\");\n    }\n\n    for (let i = 0; i \u003c 3; i++) {\n        sayHello(\"Me and \" + i);\n    }\n  `;\n\n  compiler.compile(input);\n\n  const bytecode = compiler.constructBytecode();\n  const code = await new InterpreterBuilder().build(bytecode);\n\n  console.log(code);\n})();\n```\n\n## 🎭 Interpreter\n\nThis enigma virtual machine is a recreation of [KASADA's virtual machine](https://accounts.nike.com/149e9513-01fa-4fb0-aad4-566afd725d1b/2d206a39-8ed7-437e-a3be-862e0f06eea3/ips.js).\n\n## 🐞 Found a Bug?\n\nIf you encounter any issues, please [open an issue](https://github.com/youdie323323/enigma/issues/new?template=bug_report.yml)! Don't submit any PRs until issue approved.\n\n## 🙌 Credits\n\nA huge thank you to:\n- [umasi](https://github.com/umasii) for creating the [article](https://www.nullpt.rs/devirtualizing-nike-vm-1) and [repository](https://github.com/umasii/ips-disassembler) about KASADA VM.\n- [MichaelXF](https://github.com/MichaelXF) for inspiration from [js-confuser](https://github.com/MichaelXF/js-confuser).\n- [j4k0xb](https://github.com/j4k0xb) for the issue templates from [webcrack](https://github.com/j4k0xb/webcrack).\n\n## 📜 License\n\nThis project is licensed under the **MIT License**.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoudie323323%2Fenigma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoudie323323%2Fenigma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoudie323323%2Fenigma/lists"}