{"id":33116,"date":"2021-07-13T14:05:38","date_gmt":"2021-07-13T18:05:38","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=33116"},"modified":"2021-07-13T14:05:38","modified_gmt":"2021-07-13T18:05:38","slug":"gatekeeper-launchagents-bypass","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2021\/07\/13\/gatekeeper-launchagents-bypass\/","title":{"rendered":"Gatekeeper LaunchAgents Bypass"},"content":{"rendered":"<p><a href=\"https:\/\/theevilbit.github.io\/posts\/gatekeeper_bypass_or_not_bypass\/\">Csaba Fitzl<\/a>:<\/p>\n<blockquote cite=\"https:\/\/theevilbit.github.io\/posts\/gatekeeper_bypass_or_not_bypass\/\">\n<p>On macOS Mojave Gatekeeper only verifies executables, which are run with the <code>open<\/code> command or the user double clicks. It won&rsquo;t verify files, that are executed through other means like, directly executing a binary <code>.\/myapp<\/code> regardless of the quarantine attribute. If you can place a plist file inside LaunchAgents\/LaunchDaemons, the command inside will also be executed. Prior to Catalina there is a way to trick users to drag &amp; drop files in the LaunchAgents folder.<\/p>\n<p>On macOS Catalina lot has changed, the most notable one regarding gatekeeper is that it will verify files when executed via classic &lsquo;exec&rsquo; methods.<\/p>\n<\/blockquote>\n\n<p>I don&rsquo;t think that the suggested drag install trick works because it&rsquo;s impossible to make a single symlink for every user&rsquo;s home folder, each of which has a different username.<\/p>","protected":false},"excerpt":{"rendered":"<p>Csaba Fitzl: On macOS Mojave Gatekeeper only verifies executables, which are run with the open command or the user double clicks. It won&rsquo;t verify files, that are executed through other means like, directly executing a binary .\/myapp regardless of the quarantine attribute. If you can place a plist file inside LaunchAgents\/LaunchDaemons, the command inside will [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2021-07-13T18:05:41Z","apple_news_api_id":"9aa58ce4-9c11-444c-9dbd-45b3917bc57a","apple_news_api_modified_at":"2021-07-13T18:05:42Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/AmqWM5JwRREydvUWzkXvFeg","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[2095,465,500,30,1609,1666,1891,48],"class_list":["post-33116","post","type-post","status-publish","format-standard","hentry","category-technology","tag-exploit","tag-gatekeeper","tag-launchd","tag-mac","tag-macos-10-14","tag-macos-10-15","tag-macos-11-0","tag-security"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/33116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=33116"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/33116\/revisions"}],"predecessor-version":[{"id":33117,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/33116\/revisions\/33117"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=33116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=33116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=33116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}