{"id":20669872,"url":"https://github.com/protryon/svm","last_synced_at":"2025-10-07T14:51:55.485Z","repository":{"id":88922620,"uuid":"142357970","full_name":"Protryon/svm","owner":"Protryon","description":"Scope VM: Javascript Virtual Machine","archived":false,"fork":false,"pushed_at":"2018-07-25T21:58:40.000Z","size":192,"stargazers_count":33,"open_issues_count":3,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T20:04:14.802Z","etag":null,"topics":["javascript","obfuscation","virtual-machine"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/Protryon.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}},"created_at":"2018-07-25T21:57:24.000Z","updated_at":"2025-02-21T20:36:01.000Z","dependencies_parsed_at":"2023-06-13T04:15:27.405Z","dependency_job_id":null,"html_url":"https://github.com/Protryon/svm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Protryon/svm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Protryon%2Fsvm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Protryon%2Fsvm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Protryon%2Fsvm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Protryon%2Fsvm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Protryon","download_url":"https://codeload.github.com/Protryon/svm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Protryon%2Fsvm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278794400,"owners_count":26046968,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["javascript","obfuscation","virtual-machine"],"created_at":"2024-11-16T20:16:40.071Z","updated_at":"2025-10-07T14:51:55.463Z","avatar_url":"https://github.com/Protryon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svm\nA register-pointer JavaScript virtual machine written in JavaScript.\n\n## Usage\n\n### Building\nCreate `index.js` in the `src` directory, then run `./build.sh` with the repository directory as your current working directory.\n\n### Running\nRun `./run.sh` with the repository directory as your current working directory.\n\n## Functionality\n* Compile almost any JavaScript source to obfuscated virtual machine code\n* Dynamic instruction set, randomized output bytecode\n* ES5 compatible output for ES6+ input\n\n## Planned Features\n\n### Functionality\n* Modules, imports, exports\n* Templates (w/o Babel)\n* Internal async functions\n* Spread elements (w/o Babel)\n* Do expressions\n* With statements\n* Decorators\n* Directives\n* Function generators\n* Catch external exceptions internally\n* Bundling of client sources pre-compilation\n* Conditional sets\n* Run minifier more\n\n### Obfuscation\n* Instruction repackaging, shuffling, modification/generation\n* VM internals repackaging\n* Metamorphic bytecode -- copy in code, alternate decryptions, etc\n* Bytecode scheduler/internal async functions\n* Hide instructions via mov and call register\n* Replace `jz/jnz` with `add r0 X r0` with `X = r0 + !!condition * off`\n* Replace `sub` with `add r0 X r2` with `X = div r1 -1`\n* Replace `eq_typed` with `eq` + `typeof`\n* Internal negation of Numbers\n* Compiler-client register mapped shuffling\n* Code signing and internal verification\n* Tamper detection - block by block - chained\n* Code flow graph flattening\n* Use register pointing capability\n* Internal offset assertions\n\n### Performance\n* Compile-time hotspotting\n* Global value numbering\n* Dead code elimination\n* Register reduction\n* Instructions as arguments\n* Track register state across time rather than live scanning only in optfuscator\n* Inbuilt profiling\n\n### Compatibility\n* Remove typed arrays dependency\n\n## Architecture\n\n### Compiler\nThe compiler converts JavaScript code into svm assembler. There is no optimization, and this is only intended to convert the semantics of JavaScript to svm assembler.\n\n### Optfuscator\nThe optfuscator, or optimizing obfuscator, optimizes and obfuscates svm assembler (but not svm bytecode).\n\n### Assembler\nThe assembler compiles svm assembler into svm bytecode, and encrypts it. It is planned to output a minimal, obfuscated, and web-compatible client.\n\n### Client\nThe client runs the svm bytecode.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprotryon%2Fsvm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprotryon%2Fsvm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprotryon%2Fsvm/lists"}