{"id":13842915,"url":"https://github.com/a0rtega/metame","last_synced_at":"2025-04-13T07:48:17.227Z","repository":{"id":57441068,"uuid":"65135938","full_name":"a0rtega/metame","owner":"a0rtega","description":"metame is a metamorphic code engine for arbitrary executables","archived":false,"fork":false,"pushed_at":"2019-10-06T18:24:14.000Z","size":205,"stargazers_count":580,"open_issues_count":4,"forks_count":88,"subscribers_count":28,"default_branch":"master","last_synced_at":"2025-04-13T07:48:14.531Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/a0rtega.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}},"created_at":"2016-08-07T13:56:57.000Z","updated_at":"2025-04-10T03:03:21.000Z","dependencies_parsed_at":"2022-09-02T08:20:45.761Z","dependency_job_id":null,"html_url":"https://github.com/a0rtega/metame","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a0rtega%2Fmetame","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a0rtega%2Fmetame/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a0rtega%2Fmetame/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a0rtega%2Fmetame/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a0rtega","download_url":"https://codeload.github.com/a0rtega/metame/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248681494,"owners_count":21144700,"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":[],"created_at":"2024-08-04T17:01:50.843Z","updated_at":"2025-04-13T07:48:17.197Z","avatar_url":"https://github.com/a0rtega.png","language":"Python","funding_links":[],"categories":["Python","Python (1887)","Malware Analysis"],"sub_categories":["Virus/Anti-Virus"],"readme":"# metame\n\nmetame is a simple metamorphic code engine for arbitrary executables.\n\nFrom Wikipedia:\n\n\u003e Metamorphic code is code that when run outputs a logically equivalent\n\u003e version of its own code under some interpretation.\n\u003e This is used by computer viruses to avoid the pattern recognition of\n\u003e anti-virus software.\n\nmetame implementation works this way:\n\n1. Open a given binary and analyze the code\n2. Randomly replace instructions with equivalences in logic and size\n3. Copy and patch the original binary to generate a mutated variant\n\nIt currently supports the following architectures:\n\n- x86 32 bits\n- x86 64 bits\n\nAlso, it supports a variety of file formats, as [radare2][1] is used for\nfile parsing and code analysis.\n\nExample of code before and after mutation:\n\n![alt text](https://raw.githubusercontent.com/a0rtega/metame/master/screens/screen1.png \"Spot the differences\")\n\nHint: Two instructions have been replaced in this snippet.\n\nHere another example on how it can mutate a NOP sled into equivalent code:\n\n![alt text](https://raw.githubusercontent.com/a0rtega/metame/master/screens/screen2.png \"Spot the differences\")\n\n## Installation\n\n```\npip install metame\n```\n\nThis should also install the requirements.\n\nYou will also need [radare2][1]. Refer to the official website for\ninstallation instructions.\n\n`simplejson` is also a \"nice to have\" for a small performance\nboost:\n\n```\npip install simplejson\n```\n\n## Usage\n\n```\nmetame -i original.exe -o mutation.exe -d\n```\n\nUse `metame -h` for help.\n\n## License\n\nThis project is released under the terms of the MIT license.\n\n[1]: http://radare.org/\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa0rtega%2Fmetame","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa0rtega%2Fmetame","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa0rtega%2Fmetame/lists"}