{"id":888,"date":"2026-11-17T11:50:39","date_gmt":"2026-11-17T03:50:39","guid":{"rendered":"https:\/\/blog.ofuyuan.com\/?p=888"},"modified":"2026-11-17T12:19:37","modified_gmt":"2026-11-17T04:19:37","slug":"svrguard-006-%e5%be%8c%e9%96%80%e6%aa%a2%e6%9f%a5","status":"publish","type":"post","link":"https:\/\/blog.ofuyuan.com\/?p=888","title":{"rendered":"[06][\u4e3b\u6a5f\u9632\u79a6-SvrGuard] \u600e\u9ebc\u7528 SvrGuard \u505a\u5f8c\u9580\u6aa2\u67e5"},"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-3.jpg\" alt=\"\u5f8c\u9580\u6aa2\u67e5\uff1a\u62ff\u8457\u624b\u96fb\u7b52\u9010\u4e00\u6aa2\u67e5\u6a5f\u6ac3\u7dda\u8def\u7684\u7ba1\u7406\u54e1\uff08AI \u751f\u6210\u793a\u610f\u5716\uff09\" \/><\/p>\n<p><a href=\"https:\/\/svrguard.ofuyuan.com\/zh\/\" target=\"_blank\" rel=\"noopener\">SvrGuard<\/a> \u5167\u5efa\u4e86\u5f8c\u9580\u6383\u63cf\u7a0b\u5f0f\uff0c\u53ef\u4ee5\u76f4\u63a5\u5728 CLI \u4e0b\uff0c\u8dd1\u4ee5\u4e0b\u7684\u7a0b\u5f0f\u6307\u4ee4\u505a\u5f8c\u9580\u6aa2\u67e5\u3002<\/p>\n<h2>\u5f8c\u9580\u6aa2\u67e5\u7684\u6307\u4ee4<\/h2>\n<p>\u9084\u6c92\u88dd SvrGuard \u7684\u8a71\uff0c\u5148\u5b89\u88dd\uff08Linux \u8207 Mac \u90fd\u662f\u9019\u4e00\u884c\uff0cMac \u9650 Apple Silicon\uff09\uff1a<\/p>\n<pre style=\"overflow-x: auto; background: #f5f5f5; padding: 12px; border-radius: 6px; font-size: 14px; line-height: 1.5;\"><code>curl -fsSL https:\/\/svrguard.ofuyuan.com\/install.sh | sudo sh<\/code><\/pre>\n<p>\u7528 root \u8dd1\u5f8c\u9580\u6aa2\u67e5\uff08Linux\uff09\uff1a<\/p>\n<pre style=\"overflow-x: auto; background: #f5f5f5; padding: 12px; border-radius: 6px; font-size: 14px; line-height: 1.5;\"><code>sudo svrguard hostcheck -config \/etc\/svrguard\/svrguard.ini -out hostcheck.md<\/code><\/pre>\n<p>Mac \u4e0a\u57f7\u884c\u6a94\u88dd\u5728 <code>\/usr\/local\/sbin<\/code>\uff0c\u4e0d\u5728\u9810\u8a2d\u7684\u641c\u5c0b\u8def\u5f91\u88e1\uff0c\u8981\u5beb\u5b8c\u6574\u8def\u5f91\uff1a<\/p>\n<pre style=\"overflow-x: auto; background: #f5f5f5; padding: 12px; border-radius: 6px; font-size: 14px; line-height: 1.5;\"><code>sudo \/usr\/local\/sbin\/svrguard hostcheck -config \/etc\/svrguard\/svrguard.ini -out hostcheck.md<\/code><\/pre>\n<p>Synology NAS\uff08DSM\uff09\u8981\u5148\u5728\u300c\u63a7\u5236\u53f0 \u2192 \u7d42\u7aef\u6a5f\u548c SNMP\u300d\u958b\u555f SSH\uff0c\u767b\u5165\u5f8c\uff1a<\/p>\n<pre style=\"overflow-x: auto; background: #f5f5f5; padding: 12px; border-radius: 6px; font-size: 14px; line-height: 1.5;\"><code>sudo \/var\/packages\/SvrGuard\/target\/bin\/svrguard hostcheck -config \/var\/packages\/SvrGuard\/var\/svrguard.ini -out hostcheck.md<\/code><\/pre>\n<p>\u8a2d\u5b9a\u6a94\u4f4d\u7f6e\u82e5\u4e0d\u540c\uff0c\u7528 <code>ps -ef | grep \"svrguard run\"<\/code> \u770b <code>-config<\/code> \u5f8c\u9762\u90a3\u500b\u8def\u5f91\u3002<\/p>\n<ul>\n<li><code>-out<\/code>\uff1a\u5831\u544a\u5b58\u54ea\u88e1\uff0c\u4e0d\u52a0\u5c31\u5b58\u5728\u76ee\u524d\u76ee\u9304\uff0c\u6a94\u540d\u5e36\u6642\u9593\u3002<\/li>\n<li>\u5831\u544a\u9810\u8a2d\u662f\u82f1\u6587\uff1b\u52a0 <code>-lang zh-TW<\/code> \u6539\u6210\u4e2d\u6587\u3002<\/li>\n<\/ul>\n<h2>\u7d50\u679c\u8aaa\u660e<\/h2>\n<p>\u8dd1\u5b8c\u756b\u9762\u4e0a\u6703\u5370\u51fa\u5831\u544a\u4f4d\u7f6e\u548c\u4e00\u884c\u6458\u8981\uff1a<\/p>\n<pre style=\"overflow-x: auto; background: #f5f5f5; padding: 12px; border-radius: 6px; font-size: 14px; line-height: 1.5;\"><code>Report written to hostcheck.md\r\nhostcheck: 0 finding(s), 0 check(s) could not read<\/code><\/pre>\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\/hostcheck_run.png\" alt=\"\u5f8c\u9580\u6aa2\u67e5\uff1a\u5728\u6e2c\u8a66\u4e3b\u6a5f\u4e0a\u57f7\u884c svrguard hostcheck \u7684\u7d42\u7aef\u6a5f\u756b\u9762\" \/><\/p>\n<p>\u5831\u544a\u662f\u4e00\u4efd Markdown\uff0c\u4e0b\u9762\u662f\u4e00\u53f0\u6e2c\u8a66\u4e3b\u6a5f\u8dd1\u51fa\u4f86\u7684\u7d50\u679c\uff1a<\/p>\n<pre style=\"overflow-x: auto; background: #f5f5f5; padding: 12px; border-radius: 6px; font-size: 14px; line-height: 1.5;\"><code># SvrGuard host check report (possible backdoors)\r\n\r\n- Host: ********\r\n- Version: svrguard 1.0.85 (r10865)\r\n- Run as: root\r\n\r\n## Result\r\n\r\n| Item | What it looks at | Result |\r\n|---|---|---|\r\n| `ld_preload` | whether \/etc\/ld.so.preload has content (where user-space rootkits hook in) | none found |\r\n| `proc_exe` | whether any running process executes from a temp or hidden path, or from a deleted file (\/proc\/*\/exe) | none found |\r\n| `cron` | whether any cron job runs @reboot or from a temp directory | none found |\r\n| `systemd` | whether any systemd unit starts a program from a temp or home directory | none found |\r\n| `sudoers` | whether sudoers grants passwordless ALL to an account that exists | none found |\r\n| `timestomp` | whether any file in an auto-start location has a modification time before 1971 | none found |\r\n| `shell_init` | whether a shell start-up file executes something from a temp path | none found |\r\n| `pkg_integrity` | whether system programs and libraries still match what their package recorded (Debian\/Ubuntu packages) | none found (compared 2380 files; 414 changed since install and were hashed) |\r\n| `temp_content` | whether small files under \/tmp, \/var\/tmp and \/dev\/shm (two levels) look like a reverse shell or a miner | none found |\r\n| `outbound` | established outbound connections to a mining-pool port (3333, 4444, 5555, 7777, 14433, 14444, 45700) or to an address this host blocks | none found |\r\n\r\n## Findings\r\n\r\nNone found.<\/code><\/pre>\n<p>\u6bcf\u4e00\u9805\u7684\u7d50\u679c\u53ea\u6709\u4e09\u7a2e\uff1a<\/p>\n<ul>\n<li><strong>N found<\/strong>\uff1a\u4e0b\u9762\u300cFindings\u300d\u6703\u5217\u51fa\u662f\u54ea\u500b\u6a94\u3001\u54ea\u500b\u884c\u7a0b\u3001\u54ea\u4e00\u884c\u8a2d\u5b9a\u3002<\/li>\n<li><strong>none found<\/strong>\uff1a\u6c92\u627e\u5230\u5df2\u77e5\u7684\u624b\u6cd5\u3002\u4e0d\u7b49\u65bc\u4e7e\u6de8\uff0c\u53ea\u4ee3\u8868\u9019\u5e7e\u500b\u5730\u65b9\u6c92\u6709\u7559\u4e0b\u75d5\u8de1\u3002<\/li>\n<li><strong>could not read<\/strong>\uff1a\u6b0a\u9650\u4e0d\u5920\u3001\u6a94\u6848\u4e0d\u5b58\u5728\u3001\u6216\u9019\u500b\u5e73\u53f0\u4e0d\u9069\u7528\u3002\u8b80\u4e0d\u5230\u4e0d\u7b49\u65bc\u6c92\u6709\uff0c\u6240\u4ee5\u4e0d\u6703\u7b97\u6210 none found\u3002<\/li>\n<\/ul>\n<p>\u88dd\u4e86 SvrGuard \u4e4b\u5f8c\uff0c\u80cc\u666f\u670d\u52d9\u4e5f\u6703\u5b9a\u671f\u505a\u540c\u6a23\u7684\u6aa2\u67e5\uff0c\u627e\u5230\u5c31\u5bc4\u4fe1\u901a\u77e5\u3002<code>hostcheck<\/code> \u9069\u5408\u525b\u88dd\u597d\u6642\u5148\u6383\u4e00\u6b21\uff0c\u6216\u61f7\u7591\u51fa\u4e8b\u6642\u7576\u5834\u78ba\u8a8d\u3002<\/p>\n<h2>\u6ce8\u610f\u4e8b\u9805<\/h2>\n<ul>\n<li>\u6e2c\u8a66\u904e\u7684\u7cfb\u7d71\uff1aUbuntu 14.04\u300116.04\u300118.04\u300120.04\u300122.04\u300124.04\u300126.04\uff0cDebian 12\uff0cmacOS 27\uff08Apple Silicon\uff09\uff0cSynology DSM 6.2.4\uff08armv7\uff09\u3001DSM 7.3\u3002<\/li>\n<li>\u8981\u7528 root \u8dd1\u3002\u4e0d\u7528 root \u4e5f\u80fd\u8dd1\uff0c\u4f46\u5f88\u591a\u6a94\u6848\u548c\u884c\u7a0b\u6703\u8b80\u4e0d\u5230\uff0c\u5831\u544a\u958b\u982d\u6703\u8a3b\u660e\u3002<\/li>\n<li>\u53ea\u8b80\u4e0d\u6539\uff1a\u4e0d\u522a\u6a94\u3001\u4e0d\u505c\u7a0b\u5f0f\u3002\u5831\u544a\u6a94\u6b0a\u9650\u662f <code>600<\/code>\uff0c\u53ea\u6709 root \u770b\u5f97\u5230\u3002<\/li>\n<li>\u53ea\u8b80 <code>\/proc<\/code> \u548c\u6a94\u6848\uff0c\u6838\u5fc3\u88ab\u6539\u904e\u7684 rootkit \u770b\u4e0d\u5230\u3002<\/li>\n<li>none found \u4e0d\u7b49\u65bc\u4e7e\u6de8\uff0ccould not read \u4e0d\u7b49\u65bc\u6c92\u6709\u3002<\/li>\n<li><code>pkg_integrity<\/code> \u53ea\u6bd4\u5c0d Debian\uff0fUbuntu\uff08dpkg\uff09\u7684\u5957\u4ef6\uff0c\u5176\u4ed6\u767c\u884c\u7248\u548c DSM 7.3 \u9019\u4e00\u9805\u6703\u662f could not read\u3002<\/li>\n<\/ul>\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>\u5f8c\u9580\u6aa2\u67e5\u4e0d\u7528\u4e00\u9805\u4e00\u9805\u624b\u52d5\u67e5\u3002SvrGuard \u7684 hostcheck \u4e00\u884c\u6307\u4ee4\u6aa2\u67e5\u5f8c\u9580\u5e38\u8eb2\u7684\u5730\u65b9\uff0c\u7d50\u679c\u5beb\u6210\u4e00\u4efd\u5831\u544a\uff1a\u767c\u73fe\u4ec0\u9ebc\u3001\u6c92\u627e\u5230\u4ec0\u9ebc\u3001\u54ea\u4e9b\u8b80\u4e0d\u5230\u3002 <a href=\"https:\/\/blog.ofuyuan.com\/?p=888\">\u95b1\u8b80\u5168\u6587 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":887,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[78],"tags":[112,100,79,113,111,97,87],"class_list":["post-888","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category--svrguard","tag-hostcheck","tag-rootkit","tag-svrguard","tag-113","tag-111","tag-97","tag-87"],"_links":{"self":[{"href":"https:\/\/blog.ofuyuan.com\/index.php?rest_route=\/wp\/v2\/posts\/888","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=888"}],"version-history":[{"count":5,"href":"https:\/\/blog.ofuyuan.com\/index.php?rest_route=\/wp\/v2\/posts\/888\/revisions"}],"predecessor-version":[{"id":911,"href":"https:\/\/blog.ofuyuan.com\/index.php?rest_route=\/wp\/v2\/posts\/888\/revisions\/911"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ofuyuan.com\/index.php?rest_route=\/wp\/v2\/media\/887"}],"wp:attachment":[{"href":"https:\/\/blog.ofuyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=888"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ofuyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=888"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ofuyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=888"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}