{"id":851,"date":"2026-11-08T11:55:44","date_gmt":"2026-11-08T03:55:44","guid":{"rendered":"https:\/\/blog.ofuyuan.com\/?p=851"},"modified":"2026-11-08T11:58:58","modified_gmt":"2026-11-08T03:58:58","slug":"svrguard-004-mac-mini-hacked","status":"publish","type":"post","link":"https:\/\/blog.ofuyuan.com\/?p=851","title":{"rendered":"[04][\u4e3b\u6a5f\u9632\u79a6-SvrGuard] Mac mini \u4e5f\u6703\u88ab\u99ed\u55ce\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" style=\"width: 100%; max-width: 100%; height: auto; display: block; margin: 1em 0;\" src=\"https:\/\/blog.ofuyuan.com\/wp-content\/uploads\/2026\/11\/hero-1.jpg\" alt=\"Mac mini \u88ab\u99ed\uff1a\u6df1\u591c\u66f8\u684c\u4e0a\u525b\u88ab\u559a\u9192\u7684 Mac mini \u8207\u8def\u7531\u5668\" \/><\/p>\n<p>\u7e7c Ubuntu \u88ab\u99ed\u5f8c\uff0c\u60f3\u8457\u4e0d\u540c\u7684\u5e73\u53f0\u6703\u6709\u540c\u554f\u984c\u55ce\uff1f\u4e00\u6a23\u90fd\u662f Unix \u985e\u7684\u7cfb\u7d71\uff0c\u88ab\u99ed\u7684\u7406\u7531\u61c9\u8a72\u5dee\u4e0d\u591a\u5427\uff01\u679c\u7136\u6c92\u591a\u4e45\u53c8\u4f86\u4e00\u500b\u53d7\u5bb3\u8005\u2026\u2026<\/p>\n<p>\u9019\u6b21\u6211\u4e5f\u5f88\u597d\u5947\u5b83\u662f\u5982\u4f55\u99ed\u9032 Mac mini \u7684\uff0c\u8abf\u6574\u4e86\u54ea\u4e9b\u7a0b\u5e8f\uff0c\u5230\u5e95\u8ddf Ubuntu \u6709\u751a\u9ebc\u4e0d\u540c\u3002\u6574\u500b\u904e\u7a0b\u53ea\u8b80\u4e0d\u6539\uff1a\u7528\u81ea\u5df1\u7684\u91d1\u9470\u767b\u5165\uff0c\u88ab\u690d\u5165\u7684\u6a94\u6848\u4e00\u652f\u90fd\u4e0d\u57f7\u884c\uff0c\u53ea\u7528 <code>cat<\/code>\u3001<code>ls<\/code>\u3001<code>stat<\/code> \u9019\u985e\u552f\u8b80\u7684\u6307\u4ee4\u53bb\u770b\u3002<\/p>\n<p>\u65e2\u7136\u88ab\u99ed\uff0c\u5c0d\u9019\u53f0\u6a5f\u5668\u53ea\u80fd\u4fdd\u6301\u61f7\u7591\u5c0f\u5fc3\u7684\u5fc3\u614b\u4f86\u8655\u7406\u4e86\u3002\u6211\u767c\u73fe\u690d\u5165\u7684\u6a94\u6848\uff0c\u4fee\u6539\u6642\u9593\u5168\u88ab\u6539\u6210 1970 \u5e74 1 \u6708 1 \u65e5\uff0c\u7167\u6642\u9593\u6392\u5e8f\u6839\u672c\u770b\u4e0d\u5230\u5b83\u5011\u3002\u597d\u5728 ctime\uff08\u6a94\u6848\u5c6c\u6027\u6700\u5f8c\u88ab\u8b8a\u66f4\u7684\u6642\u9593\uff09\u6539\u4e0d\u6389\uff0c\u6642\u9593\u8ef8\u5c31\u9760\u5b83\u6392\uff1a\u6700\u65e9\u7684\u75d5\u8de1\u5728 8 \u6708 4 \u65e5\uff0c\u6700\u5f8c\u4e00\u6b21\u690d\u5165\u5728 10 \u6708 9 \u65e5\u3002<\/p>\n<p>\u90a3\u5b83\u5230\u5e95\u505a\u4e86\u4ec0\u9ebc\uff1a<\/p>\n<ul>\n<li><strong>\u4e0d\u7528\u5bc6\u78bc\u5c31\u62ff root<\/strong>\uff1a<code>\/etc\/sudoers.d\/<\/code> \u88ab\u653e\u4e86\u4e00\u884c\u300c\u6240\u6709\u4eba\u90fd\u53ef\u4ee5\u514d\u5bc6\u78bc\u7576 root\u300d\uff0c\u524d\u5f8c\u653e\u4e86 12 \u4efd\u3002<\/li>\n<li><strong>\u5192\u5145 Apple \u7684\u5e38\u99d0\u7a0b\u5f0f<\/strong>\uff1a16 \u500b\u540d\u5b57\u53eb <code>com.apple.*<\/code> \u7684 LaunchDaemon\uff0c\u57f7\u884c\u85cf\u5728 <code>\/var\/tmp<\/code> \u7684\u8173\u672c\uff0c\u5176\u4e2d\u4e00\u90e8\u5206\u6bcf 5 \u5206\u9418\u57f7\u884c\u4e00\u6b21\u3002<\/li>\n<li><strong>\u4e00\u958b shell \u5c31\u57f7\u884c<\/strong>\uff1a<code>\/etc\/zshenv<\/code> \u88ab\u52a0\u4e86\u4e00\u6bb5\uff0c\u60f3\u8b93\u4efb\u4f55\u4eba\u4e00\u6253\u958b\u7d42\u7aef\u6a5f\uff0c\u5c31\u5728\u80cc\u666f\u555f\u52d5\u6316\u7926\u3002<\/li>\n<li><strong>\u5b9a\u671f\u6392\u7a0b\u4e5f\u653e\u4e00\u4efd<\/strong>\uff1a\u6bcf\u65e5\u3001\u6bcf\u9031\u3001\u6bcf\u6708\u7684\u6392\u7a0b\u5404\u4e00\u6279\u3002<\/li>\n<li><strong>root \u7684 SSH \u5f8c\u9580<\/strong>\uff1aroot \u7684 <code>authorized_keys<\/code> \u6bcf\u4e00\u8f2a\u690d\u5165\u5c31\u591a\u4e00\u628a\u3002<\/li>\n<li><strong>\u53cd\u5411 shell<\/strong>\uff1a\u7528 perl \u4e3b\u52d5\u9023\u56de\u5c0d\u65b9\u7684\u96fb\u8166\uff0c\u628a shell \u4ea4\u51fa\u53bb\u3002<\/li>\n<li><strong>\u6316\u7926<\/strong>\uff1a\u6316\u9580\u7f85\u5e63\uff0c\u8d70 443 \u57e0\uff0c\u7a0b\u5f0f\u540d\u7a31\u6539\u6210 <code>com.apple.airportd<\/code>\uff0c\u770b\u8d77\u4f86\u50cf\u7cfb\u7d71\u7684\u7db2\u8def\u7a0b\u5f0f\u3002<\/li>\n<li><strong>\u5169\u6279\u4eba<\/strong>\uff1a\u7b2c\u4e8c\u6279\u7684\u8173\u672c\u628a\u7b2c\u4e00\u6279\u7684\u9322\u5305\u6a19\u6210\u300c\u6575\u4eba\u300d\uff0c\u5148\u6e05\u6389\u5c0d\u65b9\u7684\uff0c\u518d\u653e\u81ea\u5df1\u7684\u3002<\/li>\n<\/ul>\n<p>\u90a3\u5b83\u662f\u600e\u9ebc\u9032\u4f86\u7684\uff1f\u7b54\u6848\u5f88\u53ef\u80fd\u662f\u87a2\u5e55\u5171\u4eab\u7684\u4e00\u500b\u6f0f\u6d1e\uff1aCVE-2026-65400\u3002<\/p>\n<p>Apple \u5728 8 \u6708 6 \u65e5\u7684<a href=\"https:\/\/support.apple.com\/en-us\/148170\" target=\"_blank\" rel=\"noopener\">\u5b89\u5168\u66f4\u65b0<\/a>\u88e1\u5beb\u5f97\u5f88\u6e05\u695a\uff1a\u7db2\u8def\u4e0a\u7684\u653b\u64ca\u8005\uff0c\u53ef\u80fd\u4e0d\u9700\u8981\u6709\u6548\u7684\u5e33\u865f\u5bc6\u78bc\uff0c\u5c31\u80fd\u901a\u904e\u87a2\u5e55\u5171\u4eab\u7684\u8a8d\u8b49\u3002\u4e5f\u5c31\u662f\u8aaa\uff0c\u5c0d\u65b9\u4e0d\u4e00\u5b9a\u8981\u77e5\u9053\u5bc6\u78bc\u3002<a href=\"https:\/\/advisories.ncsc.nl\/2026\/ncsc-2026-0280.html\" target=\"_blank\" rel=\"noopener\">\u8377\u862d\u570b\u5bb6\u7db2\u8def\u5b89\u5168\u4e2d\u5fc3\uff08NCSC\uff09\u96a8\u5f8c\u7684\u516c\u544a<\/a>\u4e5f\u63d0\u5230\uff0c\u9019\u500b\u6f0f\u6d1e\u5df2\u7d93\u88ab\u5be6\u969b\u62ff\u4f86\u653b\u64ca\uff0c\u88ab\u5165\u4fb5\u7684\u90fd\u662f 5900 \u57e0\u5f9e\u7db2\u969b\u7db2\u8def\u9023\u5f97\u5230\u7684 Mac\uff0c\u6bcf\u4e00\u53f0\u90fd\u88ab\u62ff\u5230 root\u3001\u88dd\u4e0a\u9580\u7f85\u5e63\u6316\u7926\u7a0b\u5f0f\uff0c\u548c\u9019\u53f0\u7684\u60c5\u6cc1\u76f8\u540c\u3002<\/p>\n<p>\u9019\u53f0\u4e2d\u62db\u7684\u689d\u4ef6\u525b\u597d\u5168\u90e8\u5177\u5099\uff1a<\/p>\n<ul>\n<li>\u87a2\u5e55\u5171\u4eab\uff085900 \u57e0\uff09\u5f9e\u7db2\u969b\u7db2\u8def\u9023\u5f97\u5230\u3002<\/li>\n<li>\u7cfb\u7d71\u505c\u5728 macOS 26.5.2\uff0c\u4e00\u76f4\u6c92\u66f4\u65b0\u5230\u4fee\u88dc\u7248 26.6.1\u3002<\/li>\n<li>\u6700\u65e9\u7684\u75d5\u8de1\u5728 8 \u6708 4 \u65e5\uff0c\u6bd4 Apple \u91cb\u51fa\u4fee\u88dc\u9084\u65e9\u5169\u5929\uff1b\u5982\u679c\u5165\u53e3\u5c31\u662f\u9019\u500b\u6f0f\u6d1e\uff0c\u4ee3\u8868\u5b83\u5728\u4fee\u88dc\u4e4b\u524d\u5c31\u5df2\u7d93\u88ab\u5229\u7528\u4e86\u3002<\/li>\n<\/ul>\n<p>\u7cfb\u7d71\u65e5\u8a8c\u53ea\u7559\u5230 10 \u6708\u521d\uff0c\u9019\u6bb5\u671f\u9593\u5c0d\u65b9\u4ee5 root \u8eab\u5206\u5f9e\u5169\u500b\u4f4d\u5740\u767b\u5165\u6210\u529f 52 \u6b21\uff0c\u4e00\u6b21\u5931\u6557\u90fd\u6c92\u6709\uff0c\u4e5f\u7b26\u5408\u300c\u4e0d\u9700\u8981\u5bc6\u78bc\u300d\u7684\u6a23\u5b50\u3002<\/p>\n<p>\u66f4\u72e1\u733e\u7684\u662f\u7db2\u8def\u559a\u9192\u3002\u9019\u53f0 Mac \u958b\u8457\u300c\u7db2\u8def\u559a\u9192\u300d\uff0c\u5c0d\u65b9\u9001\u4e00\u500b\u5c01\u5305\u628a\u7761\u8457\u7684 Mac \u53eb\u9192\uff0c\u767b\u5165\u3001\u690d\u5165\uff0c\u4e00\u5169\u5206\u9418\u5f8c Mac \u53c8\u7761\u56de\u53bb\u3002\u628a\u690d\u5165\u6a94\u6848\u7684 ctime \u548c\u7cfb\u7d71\u7684\u958b\u6a5f\u3001\u7761\u7720\u7d00\u9304\u5c0d\u8d77\u4f86\uff0c\u9010\u79d2\u543b\u5408\u3002Mac \u5e7e\u4e4e\u6574\u5929\u90fd\u5728\u7761\uff0c\u53ea\u5728\u534a\u591c\u6216\u665a\u4e0a\u9192\u4f86\u4e00\u5169\u5206\u9418\uff0c\u6240\u4ee5\u5169\u500b\u6708\u90fd\u6c92\u4eba\u767c\u73fe\u3002<\/p>\n<p><img decoding=\"async\" style=\"width: 100%; max-width: 100%; height: auto; display: block; margin: 1em 0;\" src=\"https:\/\/blog.ofuyuan.com\/wp-content\/uploads\/2026\/11\/wake_cycle.png\" alt=\"Mac mini \u88ab\u99ed\u7684\u5faa\u74b0\uff1a\u53eb\u9192\u3001\u767b\u5165\u3001\u690d\u5165\u3001\u7761\u56de\u53bb\" \/><\/p>\n<p>\u4fee\u6389\u7684\u65b9\u5f0f\u662f\uff1a\u5148\u505c\u6389 16 \u500b\u5192\u540d\u7684\u5e38\u99d0\u7a0b\u5f0f\uff0c\u518d\u628a\u6240\u6709\u690d\u5165\u7269\u642c\u9032\u4e00\u500b\u9694\u96e2\u8cc7\u6599\u593e\uff0c\u4e0d\u522a\uff0c\u7559\u8457\u53ef\u4ee5\u67e5\u3002\u5224\u65b7\u7684\u4f9d\u64da\u5f88\u7c21\u55ae\uff1a\u7cfb\u7d71\u4f4d\u7f6e\u88e1\uff0c\u4fee\u6539\u6642\u9593\u65e9\u65bc 1971 \u5e74\u7684\u6a94\u6848\u3002\u4e00\u5171\u642c\u8d70\u4e86 120 \u500b\u6a94\u6848\u3002\u91cd\u958b\u6a5f\u5f8c\u518d\u9a57\u4e00\u6b21\uff0c\u5e38\u99d0\u7a0b\u5f0f\u3001\u6392\u7a0b\u3001<code>\/var\/tmp<\/code> \u90fd\u4e7e\u6de8\u4e86\uff0c\u5c0d\u5916\u9023\u7dda\u53ea\u5269 Apple\u3001CDN \u7b49\u6b63\u5e38\u670d\u52d9\u3002<\/p>\n<p>\u6e05\u5b8c\u4e4b\u5f8c\u9084\u8981\u628a\u9580\u95dc\u4e0a\u3002\u4e2d\u9593\u6709\u500b\u63d2\u66f2\uff1a\u70ba\u4e86\u89c0\u5bdf\uff0c\u628a 5900 \u91cd\u65b0\u958b\u653e\u4e86\u4e00\u5c0f\u6642\uff0c\u4e00\u5343\u591a\u689d\u9023\u7dda\u5e7e\u4e4e\u90fd\u662f\u6383\u63cf\uff0c\u4f46\u5c0d\u65b9\u7b2c\u4e00\u6b21\u5617\u8a66\u5c31\u7528 root \u767b\u9032\u4f86\u4e86\uff0c\u9084\u597d\u53ea\u958b\u5230\u767b\u5165\u756b\u9762\uff0c\u6c92\u6709\u9032\u684c\u9762\u3001\u4e5f\u6c92\u6709\u5beb\u4efb\u4f55\u6a94\u6848\u3002\u9019\u4e5f\u8aaa\u660e\uff0c\u53ea\u8981 5900 \u9084\u958b\u8457\u3001\u7cfb\u7d71\u6c92\u66f4\u65b0\uff0c\u6e05\u5f97\u518d\u4e7e\u6de8\uff0c\u5c0d\u65b9\u96a8\u6642\u80fd\u518d\u9032\u4f86\u3002\u4e4b\u5f8c\u628a\u9580\u95dc\u597d\uff1a<\/p>\n<ul>\n<li>\u628a macOS \u66f4\u65b0\u5230\u5df2\u4fee\u88dc\u7684\u7248\u672c\u3002<\/li>\n<li>\u505c\u7528 root\uff0c\u800c\u4e14\u5be6\u969b\u9a57\u8b49\u904e\u5b83\u771f\u7684\u505c\u4e86\u3002<\/li>\n<li>\u8def\u7531\u5668\u4e0d\u518d\u628a 5900 \u8f49\u9001\u5230\u9019\u53f0 Mac\u3002<\/li>\n<li>\u87a2\u5e55\u5171\u4eab\u53ea\u5141\u8a31\u6307\u5b9a\u7684\u4f7f\u7528\u8005\u5e33\u865f\u3002<\/li>\n<li>SSH \u53ea\u6536\u91d1\u9470\uff0c\u4e0d\u6536\u5bc6\u78bc\u3002<\/li>\n<\/ul>\n<p>\u9019\u53f0 Mac mini \u4e0a\u770b\u5230\u7684\u624b\u6cd5\uff0c\u5f8c\u4f86\u4e5f\u6574\u5408\u9032 SvrGuard \u7684 Mac \u7248\uff1a\u5f9e\u66ab\u5b58\u76ee\u9304\u57f7\u884c\u7a0b\u5f0f\u7684 LaunchDaemon \u8207\u6392\u7a0b\u3001sudoers \u88e1\u7684\u514d\u5bc6\u78bc root\u3001\u88ab\u6539\u6210 1970 \u5e74\u7684\u6a94\u6848\u6642\u9593\u3001\u5728 shell \u555f\u52d5\u6a94\u88e1\u57f7\u884c\u66ab\u5b58\u76ee\u9304\u7684\u7a0b\u5f0f\u3001\u66ab\u5b58\u76ee\u9304\u88e1\u7684\u53cd\u5411 shell \u548c\u6316\u7926\u8173\u672c\u3001root \u88ab\u653e\u4e86\u597d\u5e7e\u4efd\u7684 SSH \u91d1\u9470\uff0c\u4ee5\u53ca\u6c92\u6709\u4efb\u4f55\u5e33\u865f\u4f7f\u7528\u7684\u5bb6\u76ee\u9304\u88e1\u537b\u653e\u8457 SSH \u91d1\u9470\u3002Mac \u7248\u7684 SvrGuard \u6703\u7528 pf \u64cb\u4e0b\u653b\u64ca\u4f86\u6e90\uff0c\u87a2\u5e55\u5171\u4eab\u6216\u9060\u7aef\u7ba1\u7406\u7684\u57e0\u5f9e\u5916\u9762\u9023\u5f97\u5230\u6642\u4e5f\u6703\u901a\u77e5\u3002<\/p>\n<p>\u770b\u4f86 Unix \u7684\u4e16\u754c\uff0c\u88ab\u99ed\u7684\u60c5\u6cc1\u4e0d\u7ba1\u662f Ubuntu\uff0fDebian \u7b49 Linux \u9663\u71df\u6216 Apple Mac \u7684 Unix \u9663\u71df\uff0c\u96a8\u6642\u90fd\u6709\u6a5f\u6703\u767c\u751f\u3002\u73fe\u5be6\u6c92\u6709\u4e00\u500b\u4fdd\u8b77\u9810\u9632\u63aa\u65bd\uff0c\u5c31\u50cf\u662f\u53bb\u6253\u4ed7\u537b\u6c92\u5e36\u4efb\u4f55\u6b66\u5668\u53ca\u8b77\u5177\uff0c\u96a8\u6642\u88ab\u79d2\u4e86\uff0c\u641e\u4e0d\u597d\u90fd\u4e0d\u77e5\u9053\u3002<\/p>\n<hr \/>\n<p>\u672c\u7cfb\u5217\u6587\u7ae0\uff1a<a href=\"https:\/\/blog.ofuyuan.com\/?cat=78\">\u4e3b\u6a5f\u9632\u79a6\u7cfb\u7d71-SvrGuard<\/a>\u3002\u60f3\u4e86\u89e3\u66f4\u591a SvrGuard\uff0c\u6b61\u8fce\u9020\u8a2a <a href=\"https:\/\/svrguard.ofuyuan.com\/zh\/\" target=\"_blank\" rel=\"noopener\">SvrGuard \u5b98\u65b9\u7db2\u7ad9<\/a>\uff0c\u6709\u554f\u984c\u6216\u60f3\u6cd5\u6b61\u8fce\u5230 <a href=\"https:\/\/forum.ofuyuan.com\/\" target=\"_blank\" rel=\"noopener\">SvrGuard \u8a0e\u8ad6\u5340<\/a>\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mac mini \u4e5f\u6703\u88ab\u99ed\uff1a\u6c92\u88dd\u4efb\u4f55\u602a\u8edf\u9ad4\uff0c\u537b\u88ab\u4eba\u7528 root \u5f9e\u87a2\u5e55\u5171\u4eab\u767b\u5165\u5169\u500b\u6708\u3001\u62ff\u53bb\u6316\u7926\u3002\u5b83\u505a\u4e86\u4ec0\u9ebc\u3001\u600e\u9ebc\u9032\u4f86\u3001\u600e\u9ebc\u6e05\u3001\u600e\u9ebc\u628a\u9580\u95dc\u4e0a\u3002 <a href=\"https:\/\/blog.ofuyuan.com\/?p=851\">\u95b1\u8b80\u5168\u6587 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":849,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[78],"tags":[103,104,79,98,97,106,105,87],"class_list":["post-851","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category--svrguard","tag-mac-mini","tag-macos","tag-svrguard","tag-98","tag-97","tag-106","tag-105","tag-87"],"_links":{"self":[{"href":"https:\/\/blog.ofuyuan.com\/index.php?rest_route=\/wp\/v2\/posts\/851","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ofuyuan.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ofuyuan.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ofuyuan.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ofuyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=851"}],"version-history":[{"count":2,"href":"https:\/\/blog.ofuyuan.com\/index.php?rest_route=\/wp\/v2\/posts\/851\/revisions"}],"predecessor-version":[{"id":853,"href":"https:\/\/blog.ofuyuan.com\/index.php?rest_route=\/wp\/v2\/posts\/851\/revisions\/853"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ofuyuan.com\/index.php?rest_route=\/wp\/v2\/media\/849"}],"wp:attachment":[{"href":"https:\/\/blog.ofuyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=851"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ofuyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=851"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ofuyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}