{"id":19369438,"url":"https://github.com/kara-4search/bypassamsi_csharp","last_synced_at":"2025-04-23T15:31:36.552Z","repository":{"id":136106344,"uuid":"392957590","full_name":"Kara-4search/BypassAMSI_CSharp","owner":"Kara-4search","description":"Bypass AMSI","archived":false,"fork":false,"pushed_at":"2021-08-08T15:48:30.000Z","size":20,"stargazers_count":14,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T17:01:33.645Z","etag":null,"topics":["bypass","bypass-amsi","bypass-windows-defender","csharp","pentest-tool","redteam","redteam-tools"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Kara-4search.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-08-05T08:04:32.000Z","updated_at":"2024-08-16T22:30:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"882ca39f-6b64-4355-a35a-abc75d2a1549","html_url":"https://github.com/Kara-4search/BypassAMSI_CSharp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kara-4search%2FBypassAMSI_CSharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kara-4search%2FBypassAMSI_CSharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kara-4search%2FBypassAMSI_CSharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kara-4search%2FBypassAMSI_CSharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kara-4search","download_url":"https://codeload.github.com/Kara-4search/BypassAMSI_CSharp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250460414,"owners_count":21434248,"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":["bypass","bypass-amsi","bypass-windows-defender","csharp","pentest-tool","redteam","redteam-tools"],"created_at":"2024-11-10T08:11:19.228Z","updated_at":"2025-04-23T15:31:36.546Z","avatar_url":"https://github.com/Kara-4search.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BypassAMSI_CSharp\n\nBlog link: none\n\n\n- Bypassing AMSI via \"patch memory\".\n- Tested on x64/x86.\n- Steps\n\t1. Locate amsi.dll's address.\n\t2. finding the \"DllCanUnloadNow\" base on the address\n\t3. Using egg hunt to find the function we need to patch.\n\t4. Patch it with the byte[] \"patch64/patch86\". \n\n- **You may need modify the code, make sure the code could by the EDR/AVs**\n- I only tested on windows defender,works fine.\n\n## Usage\n1. Launch through a white-list application\n- Without bypassing AMSI\n\t![avatar](https://raw.githubusercontent.com/Kara-4search/tempPic/main/WithoutBypassAMSI.png)\n- With Bypassing AMSI\n\t![avatar](https://raw.githubusercontent.com/Kara-4search/tempPic/main/WithBypassAMSI.png)\n\n## TO-DO list\n- There are indeed other methods to bypass, I may gonna update about that.\n- Obfuscated the code.\n\n\n## Reference link:\n\tNone :)\n\tJust Google it, too many documents about bypassing AMSI :)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkara-4search%2Fbypassamsi_csharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkara-4search%2Fbypassamsi_csharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkara-4search%2Fbypassamsi_csharp/lists"}