{"id":17149877,"url":"https://github.com/rickmark/loki_remove","last_synced_at":"2025-10-17T19:32:12.227Z","repository":{"id":113226232,"uuid":"109931499","full_name":"rickmark/loki_remove","owner":"rickmark","description":null,"archived":false,"fork":false,"pushed_at":"2017-11-08T05:32:26.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-29T17:11:31.670Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/rickmark.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":"2017-11-08T05:25:37.000Z","updated_at":"2021-04-13T22:36:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"c7a9c88c-142d-4029-9ec4-d0659b7d8249","html_url":"https://github.com/rickmark/loki_remove","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/rickmark%2Floki_remove","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickmark%2Floki_remove/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickmark%2Floki_remove/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickmark%2Floki_remove/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rickmark","download_url":"https://codeload.github.com/rickmark/loki_remove/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245266998,"owners_count":20587454,"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-10-14T21:34:20.861Z","updated_at":"2025-10-17T19:32:12.162Z","avatar_url":"https://github.com/rickmark.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Introduction\n\nWith the current state of Apple EFI and SMC version mismatch and Loki malware, an external bootable utility\nis required to flash a MacBook to a known good state.\n\n## Methodology\n\n* Create EFI bootable media with two partitions\n    * ESP including utilities\n    * FAT32 volume to write logging and data out to\n* Download last known EFI and SMC from Apple *.pkg files and extract with `lsbom` etc\n* A routine that flashes using the following series of steps\n    * Reset SMC to base by calling `smcutil.efi -reset 1`\n    * Flash SMC using `smcutil.efi`\n    * Reset SMC to update by calling `smcutil.efi -reset 2`\n    * Flash SMC using `smcutil.efi`\n    * Reset SMC to application mode by calling `smcutil.efi -reset 3`\n    * Flash EFI using `efiutil.efi` to the latest version for a given model\n\n## Progress\n\nThe current versions of these files can be extracted from the scripts of a current version of macOS installer\n\nThe orchestration portion must be written (`main.c`)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frickmark%2Floki_remove","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frickmark%2Floki_remove","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frickmark%2Floki_remove/lists"}