{"id":23421583,"url":"https://github.com/evilbytecode/lifetime-amsi-etwpatch","last_synced_at":"2025-09-07T00:31:41.381Z","repository":{"id":290224280,"uuid":"818659112","full_name":"EvilBytecode/Lifetime-Amsi-EtwPatch","owner":"EvilBytecode","description":"Two in one, patch lifetime powershell console, no more etw and amsi!","archived":false,"fork":false,"pushed_at":"2025-04-27T16:42:24.000Z","size":11,"stargazers_count":88,"open_issues_count":0,"forks_count":18,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-27T17:35:44.838Z","etag":null,"topics":["amsi","amsi-bypass","amsi-evasion","amsi-patch","etw","etw-bypass","etw-evasion","fud","pentesting","red-teaming"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EvilBytecode.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,"zenodo":null}},"created_at":"2024-06-22T13:28:20.000Z","updated_at":"2025-04-27T16:42:27.000Z","dependencies_parsed_at":"2025-04-27T17:45:49.026Z","dependency_job_id":null,"html_url":"https://github.com/EvilBytecode/Lifetime-Amsi-EtwPatch","commit_stats":null,"previous_names":["evilbytecode/lifetime-amsi-etwpatch"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/EvilBytecode/Lifetime-Amsi-EtwPatch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvilBytecode%2FLifetime-Amsi-EtwPatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvilBytecode%2FLifetime-Amsi-EtwPatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvilBytecode%2FLifetime-Amsi-EtwPatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvilBytecode%2FLifetime-Amsi-EtwPatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EvilBytecode","download_url":"https://codeload.github.com/EvilBytecode/Lifetime-Amsi-EtwPatch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvilBytecode%2FLifetime-Amsi-EtwPatch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273982930,"owners_count":25202092,"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-09-06T02:00:13.247Z","response_time":2576,"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":["amsi","amsi-bypass","amsi-evasion","amsi-patch","etw","etw-bypass","etw-evasion","fud","pentesting","red-teaming"],"created_at":"2024-12-23T02:16:07.858Z","updated_at":"2025-09-07T00:31:41.370Z","avatar_url":"https://github.com/EvilBytecode.png","language":"Go","readme":"# Lifetime-Amsi-EtwPatch\n## Telegram:\n- https://t.me/ebytelabs\n\u003ca href=\"https://t.me/pulzetools\"\u003e\u003cimg src=\"https://img.shields.io/badge/Join%20my%20Telegram%20group-2CA5E0?style=for-the-badge\u0026logo=telegram\u0026labelColor=db44ad\u0026color=5e2775\"\u003e\u003c/a\u003e\n\nThis Go program applies a lifetime patch to PowerShell to disable ETW (Event Tracing for Windows) and AMSI (Antimalware Scan Interface) protections.\n\n### INFO\nThe program modifies the PowerShell profile (`Microsoft.PowerShell_profile.ps1`) to apply two patches:\n\n1. **AMSI Patch**: Disables AMSI by modifying the `AmsiScanBuffer` function, ```{ 0x31, 0xC0, 0xC3 }```.\n2. **ETW Patch**: Modifies the `EtwEventWrite` function in `ntdll.dll` to prevent event tracing, ```{ 0xC3 }```.\n3. Sets File attributes to Hidden and System to : `Microsoft.PowerShell_profile.ps1`.\n\n### Effect: Once applied, PowerShell sessions initiated afterward will have AMSI and ETW bypassed.\n\n- Made by codepulze aka evilbytecode.\n\n## Detections:\n![image](https://github.com/EvilBytecode/Lifetime-Amsi-EtwPatch/assets/151552809/57cbd173-922c-4f6a-ada7-e086ed4f4977)\nhttps://www.virustotal.com/gui/file/e1f4539b28df895d02f361143d04f025e36668a9373985ef27b324431f68a0f5\n\n\n## License\nThis project is licensed under the MIT License. See the LICENSE file for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevilbytecode%2Flifetime-amsi-etwpatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevilbytecode%2Flifetime-amsi-etwpatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevilbytecode%2Flifetime-amsi-etwpatch/lists"}