{"id":5405,"date":"2023-03-20T08:59:00","date_gmt":"2023-03-20T00:59:00","guid":{"rendered":"https:\/\/ixyzero.com\/blog\/?p=5405"},"modified":"2023-03-11T00:18:57","modified_gmt":"2023-03-10T16:18:57","slug":"macos%e7%b3%bb%e7%bb%9f%e4%b8%ad%e8%83%bd%e5%90%a6%e8%bf%bd%e8%b8%aau%e7%9b%98%e6%8b%b7%e8%b4%9d%e6%96%87%e4%bb%b6%e7%9a%84%e8%a1%8c%e4%b8%ba","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/5405.html","title":{"rendered":"macOS\u7cfb\u7edf\u4e2d\u80fd\u5426\u8ffd\u8e2aU\u76d8\u62f7\u8d1d\u6587\u4ef6\u7684\u884c\u4e3a"},"content":{"rendered":"\n<p>=Start=<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u7f18\u7531\uff1a<\/h4>\n\n\n\n<p>\u7a81\u7136\u60f3\u8d77\u6765\u8fd9\u4e2a\u95ee\u9898\uff0c\u867d\u7136\u4ece\u7406\u8bba\u4e0a\u548c\u76f4\u89c9\u4e0a\u90fd\u89c9\u5f97\u5e94\u8be5\u4e0d\u884c\uff0c\u4f46\u8fd8\u662f\u641c\u7d22\u8c03\u7814\u4e00\u4e0b\u518d\u7ed9\u51fa\u7ed3\u8bba\u4f1a\u6bd4\u8f83\u7a33\u59a5\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6b63\u6587\uff1a<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\">\u53c2\u8003\u89e3\u7b54\uff1a<\/h5>\n\n\n\n<p>\u5148\u8bf4\u6d4b\u8bd5\u7ed3\u8bba\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"0\">\n<li><strong>\u5982\u679c\u5728\u4e8b\u60c5\u53d1\u751f\u4e4b\u524d\u5df2\u7ecf\u5728\u7535\u8111\u4e0a\u5b89\u88c5\u4e86DLP\u7c7b\u76d1\u63a7\u8f6f\u4ef6\uff0c\u4e14\u914d\u7f6e\u4e86\u76f8\u5e94\u7b56\u7565\uff08\u6216\u542f\u7528\u4e86\u76f8\u5173\u7684\u5ba1\u8ba1\u529f\u80fd\u9009\u9879\uff0c\u8fd9\u7c7b\u9009\u9879\u56e0\u4e3a\u8d44\u6e90\u5360\u7528\u5f88\u9ad8\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u662f\u4e0d\u4f1a\u5f00\u542f\u7684\uff09\uff0c\u662f\u53ef\u4ee5\u8bb0\u5f55\u76f8\u5e94\u64cd\u4f5c\u4f9b\u4e8b\u540e\u56de\u6eaf\u5206\u6790\u7684\uff1b\u4f46\u5982\u679c\u662f\u4e8b\u540e(Post-hoc)\u88c5\u7684\uff0c\u4e4b\u524d\u53d1\u751f\u7684\u4e8b\u60c5\u4f60\u4e5f\u662f\u56de\u6eaf\u4e0d\u4e86\u7684<\/strong>\uff1b<\/li>\n\n\n\n<li><strong>\u5728\u6d4b\u8bd5\u7684macOS 13.2.1\u7cfb\u7edf\u4e0a\uff0c\u662f\u53ef\u4ee5\u901a\u8fc7\u65e5\u5fd7\u770b\u5230\u7cfb\u7edf\u4e0a\u662f\u5426\u6709\u63d2\u62d4USB\u5b58\u50a8\u7684\u8bb0\u5f55\uff0c\u5e76\u4e14\u80fd\u591f\u770b\u5230\u63d2\u5165U\u76d8\u7684\u540d\u5b57<\/strong>\uff1b<\/li>\n\n\n\n<li>\u8001macOS\u7cfb\u7edf\u4e0b\u662f\u901a\u8fc7\u6587\u4ef6 \/var\/log\/system.log* \u6765\u8fdb\u884c\u5206\u6790\u7684\uff08\u6682\u672a\u5b9e\u9645\u6d4b\u8bd5\uff09\uff0c\u65b0\u7cfb\u7edf\u4e0a\u662f\u901a\u8fc7\u3010\u63a7\u5236\u53f0\u3011\u6216\u8005\u547d\u4ee4\u3010log show\u3011\u6765\u8fdb\u884c\u67e5\u770b\uff1b<\/li>\n\n\n\n<li><strong>macOS\u7cfb\u7edf\u7684\u53d8\u5316\u771f\u7684\u633a\u5feb\uff0c\u800c\u4e14\u6709\u65f6\u5019\u6ca1\u4ec0\u4e48\u8fde\u7eed\u6027\uff0c\u6ca1\u6709Windows\u4fdd\u6301\u7684\u90a3\u4e48\u597d\uff0c\u5f88\u591a\u65f6\u5019\u7f51\u4e0a\u7684\u4e00\u4e9b\uff08\u5c24\u5176\u662f\u5f88trick\u7684\u90a3\u79cd\uff09\u65b9\u6cd5\u5f88\u53ef\u80fd\u5df2\u7ecf\u8fc7\u65f6\uff08\u53ea\u5bf9\u8001\u7248\u672c\u7cfb\u7edf\u751f\u6548\uff09\u6216\u8005\u88ab\u7981\u7528\u6389\u4e86<\/strong>\uff1b<\/li>\n\n\n\n<li><strong>\u5bf9\u4e8e\u6807\u51c6\u7684macOS\u7cfb\u7edf\uff08\u5373\u6ca1\u6709\u989d\u5916\u5b89\u88c5DLP\u7c7b\u8f6f\u4ef6\u6216\u662f\u6ca1\u6709\u542f\u7528\u5b9e\u65f6\u5ba1\u8ba1\u7684\u529f\u80fd\u9009\u9879\uff09\uff0c\u662f\u6ca1\u529e\u6cd5\u8ffd\u8e2a\u6216\u56de\u6eaf\u53d1\u751f\u5728\u7cfb\u7edf\u4e2d\u7684\u6587\u4ef6\u62f7\u8d1d\u3001\u5916\u4f20\u7b49\u884c\u4e3a\u7684\u3002<\/strong><\/li>\n<\/ol>\n\n\n\n<p>==<\/p>\n\n\n\n<p>\u518d\u7ed9\u51fa\u4e00\u4e0b\u5177\u4f53\u67e5\u770b\u63d2\u62d4\u8bb0\u5f55\u7684\u547d\u4ee4\uff0c\u65b9\u4fbf\u6709\u9700\u8981\u7684\u53d6\u7528\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>log show --predicate '(processImagePath contains \"deleted\") &amp;&amp; (eventMessage contains \"CACHE_DELETE_VOLUME : \")' --style syslog --last 1d | head\n\nlog show --predicate '(processImagePath contains \"deleted\") &amp;&amp; (eventMessage contains \"CACHE_DELETE_VOLUME : \")' --style syslog --last 1d | awk -F: '{print $NF}' | sort | uniq -c\n\nlog show --predicate 'eventMessage contains \"mounted\"' --last 35m\n\nlog show --style syslog --last 15m  --info | grep -F '&#91;USB]'\n\nlog show --style syslog --last 35m | tail\n\n\n# \u8001\u7cfb\u7edf\u4e0a\u636e\u8bf4\u53ef\u7528\u7684\u65b9\u6cd5\uff08\u6682\u672a\u5b9e\u9645\u6d4b\u8bd5\uff09\nzgrep -i 'usbmsc' \/var\/log\/system.log*\nzgrep -Ei 'usbmsc|mount' \/var\/log\/system.log*\n\n\n# If your MacOS version is 10.12 and later(Sierra\/...), you can use the advanced terminal log tool.\n\nlog show --predicate 'eventMessage contains \"mounted\"' --last 35m\n\nlog show --style syslog --last 15m  --info | grep -F '&#91;USB]'<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Post hoc (sometimes written as post-hoc) is a Latin phrase, meaning \"after this\" or \"after the event\".\n\nTL;DR: With a standard install of macOS it isn't possible to determine with any certainty whether data has been copied from the Mac onto an USB or network device\n\u6807\u51c6\u7684macOS\u5b89\u88c5\u6a21\u5f0f\u4e0b\uff0c\u662f\u65e0\u6cd5\u611f\u77e5\u6570\u636e\u662f\u5426\u88ab\u901a\u8fc7USB\u6216\u8005\u7f51\u7edc\u4f20\u8f93\u5230\u4e86\u5916\u9762\u7684\u3002\n\n\u56e0\u4e3a\uff1a\n1. \u4f60\u65e0\u6cd5\u77e5\u9053\u54ea\u4e2a\u6587\u4ef6\u662f\u5426\u88ab\u62f7\u8d1d\u4e86\uff1b\n2. \u65e5\u5fd7\u7cfb\u7edf\u9ed8\u8ba4\u5e76\u6ca1\u6709\u8bb0\u5f55\u6b64\u884c\u4e3a\u3002\n\n\u9664\u975e\u4f60\u5728\u4e8b\u60c5\u53d1\u751f\u4e4b\u524d\u5df2\u7ecf\u6253\u5f00\u4e86\u5b9e\u65f6\u5ba1\u8ba1\uff08\u4ea7\u751f\u4e86\u65e5\u5fd7\u8bb0\u5f55\uff09\uff0c\u5426\u5219\u4f60\u65e0\u6cd5\u8fdb\u884c\u56de\u6eaf\u3002\u5bf9\u4e8e\u5176\u5b83\u7684Post_hoc\u573a\u666f\u6765\u8bf4\u90fd\u662f\u4e00\u6837\u7684\u3002<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">\u53c2\u8003\u94fe\u63a5\uff1a<\/h5>\n\n\n\n<p>Is there a system log which displays which external media\/storage devices were connected\/disconnected from my system? If so, please advise me on how to do so.<br><a href=\"https:\/\/discussions.apple.com\/thread\/6734878\">https:\/\/discussions.apple.com\/thread\/6734878<\/a><\/p>\n\n\n\n<p>Can I find out the last time a specific USB was connected to my MBP?<br><a href=\"https:\/\/apple.stackexchange.com\/questions\/366132\/can-i-find-out-the-last-time-a-specific-usb-was-connected-to-my-mbp\">https:\/\/apple.stackexchange.com\/questions\/366132\/can-i-find-out-the-last-time-a-specific-usb-was-connected-to-my-mbp<\/a><\/p>\n\n\n\n<p>Detecting theft of data &#8211; folder \/ files transfered from MacBook to USB<br><a href=\"https:\/\/apple.stackexchange.com\/questions\/381229\/detecting-theft-of-data-folder-files-transfered-from-macbook-to-usb\">https:\/\/apple.stackexchange.com\/questions\/381229\/detecting-theft-of-data-folder-files-transfered-from-macbook-to-usb<\/a><\/p>\n\n\n\n<p>Find out if any files were exported from my MacBook<br><a href=\"https:\/\/apple.stackexchange.com\/questions\/304893\/find-out-if-any-files-were-exported-from-my-macbook\">https:\/\/apple.stackexchange.com\/questions\/304893\/find-out-if-any-files-were-exported-from-my-macbook<\/a><\/p>\n\n\n\n<p>Post hoc &#8211; \u4e8b\u540e<br><a href=\"https:\/\/en.wikipedia.org\/wiki\/Post_hoc\">https:\/\/en.wikipedia.org\/wiki\/Post_hoc<\/a><\/p>\n\n\n\n<p>=END=<\/p>\n","protected":false},"excerpt":{"rendered":"<p>=Start= \u7f18\u7531\uff1a \u7a81\u7136\u60f3\u8d77\u6765\u8fd9\u4e2a\u95ee\u9898\uff0c\u867d\u7136\u4ece\u7406\u8bba\u4e0a\u548c\u76f4\u89c9\u4e0a\u90fd\u89c9\u5f97\u5e94\u8be5\u4e0d\u884c\uff0c\u4f46\u8fd8\u662f\u641c\u7d22\u8c03\u7814\u4e00\u4e0b\u518d\u7ed9\u51fa\u7ed3\u8bba\u4f1a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,560,25],"tags":[1916,1780,1918,963],"class_list":["post-5405","post","type-post","status-publish","format-standard","hentry","category-knowledgebase-2","category-mac","category-security","tag-log-show","tag-macos","tag-post-hoc","tag-963"],"views":2591,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5405","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=5405"}],"version-history":[{"count":1,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5405\/revisions"}],"predecessor-version":[{"id":5406,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5405\/revisions\/5406"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=5405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=5405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=5405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}