{"id":13845009,"url":"https://github.com/christophetd/spoofing-office-macro","last_synced_at":"2026-01-25T06:45:11.364Z","repository":{"id":144732604,"uuid":"175059651","full_name":"christophetd/spoofing-office-macro","owner":"christophetd","description":":fish: PoC of a VBA macro spawning a process with a spoofed parent and command line.","archived":false,"fork":false,"pushed_at":"2020-04-28T16:23:43.000Z","size":27,"stargazers_count":375,"open_issues_count":5,"forks_count":83,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-01-30T07:11:19.132Z","etag":null,"topics":["office-macro","parent-process-spoofing","process-injection","windows-internals","windows-security"],"latest_commit_sha":null,"homepage":"","language":"VBA","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/christophetd.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":"2019-03-11T18:23:39.000Z","updated_at":"2025-01-06T17:08:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"1625b4a3-337b-42bc-b844-0551acc6fc0b","html_url":"https://github.com/christophetd/spoofing-office-macro","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/christophetd%2Fspoofing-office-macro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christophetd%2Fspoofing-office-macro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christophetd%2Fspoofing-office-macro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christophetd%2Fspoofing-office-macro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/christophetd","download_url":"https://codeload.github.com/christophetd/spoofing-office-macro/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245422921,"owners_count":20612725,"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":["office-macro","parent-process-spoofing","process-injection","windows-internals","windows-security"],"created_at":"2024-08-04T17:03:07.396Z","updated_at":"2026-01-25T06:45:11.314Z","avatar_url":"https://github.com/christophetd.png","language":"VBA","funding_links":[],"categories":["VBA (1)","VBA"],"sub_categories":[],"readme":"This repository contains an example of a VBA macro spawning a process with a spoofed parent and command line. Companion blog post: [Building an Office macro to spoof parent processes and command line arguments](https://blog.christophetd.fr/building-an-office-macro-to-spoof-process-parent-and-command-line)\n\n## Demo\n\nClick for full size.\n\n![Demo](https://user-images.githubusercontent.com/136675/54154646-49e44780-443a-11e9-998d-ec1f54a83437.gif)\n\n\n## Notes\n\n- The 32-bit initial PoC was written and tested by myself, on Windows 10 with Office Professional Plus 2016, version 1902. \n\n- The 64-bit version is a contribution brought by [@py7hagoras](https://github.com/py7hagoras).\n\n- The size of the original command line stored in [`originalCli`](https://github.com/christophetd/spoofing-office-macro/blob/master/macro.vba#L260) needs to be greater than the size of the real one stored in [`cmdStr`](https://github.com/christophetd/spoofing-office-macro/blob/master/macro.vba#L311)\n\n## Acknowledgments \u0026 inspiration\n\n- [\"Red Teaming in the EDR age\"](https://www.youtube.com/watch?v=l8nkXCOYQC4) by Will Burgess \n- https://blog.xpnsec.com/how-to-argue-like-cobalt-strike/\n- https://twitter.com/subtee\n\n## Disclaimer\n\nYou are solely responsible for the use you make of this PoC. I assume no liability for any misuse or damage caused by this program.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristophetd%2Fspoofing-office-macro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchristophetd%2Fspoofing-office-macro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristophetd%2Fspoofing-office-macro/lists"}