{"id":50503,"date":"2017-06-03T10:51:26","date_gmt":"2017-06-03T02:51:26","guid":{"rendered":"https:\/\/blog.trendmicro.com.tw\/?p=50503"},"modified":"2017-06-26T10:57:41","modified_gmt":"2017-06-26T02:57:41","slug":"ms-17-010%ef%bc%9aeternalblue%e5%b0%8dsrv%e9%a9%85%e5%8b%95%e7%a8%8b%e5%bc%8f%e7%9a%84large-non-paged-pool%e6%ba%a2%e4%bd%8d","status":"publish","type":"post","link":"https:\/\/blog.trendmicro.com.tw\/?p=50503","title":{"rendered":"MS-17-010\uff1aEternalBlue\u5c0dSRV\u9a45\u52d5\u7a0b\u5f0f\u7684Large Non-Paged Pool\u6ea2\u4f4d"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full\" src=\"https:\/\/blog.trendmicro.com\/trendlabs-security-intelligence\/files\/2016\/04\/Vulnerability04-200x200.jpg\" width=\"200\" height=\"200\" \/><\/p>\n<p>EternalBlue\u7684\u6f0f\u6d1e\u653b\u64ca\u78bc\u5728\u4e94\u6708\u6210\u70ba\u53d7\u4eba\u6ce8\u76ee\u7684\u7126\u9ede\uff0c\u56e0\u70ba\u5b83\u548c\u904e\u53bb\u6578\u5468\u51fa\u73fe\u7684\u5927\u898f\u6a21\u60e1\u610f\u8edf\u9ad4\u653b\u64ca\u5927\u6709\u95dc\u806f \u2013 \u77e5\u540d\u7684\u00a0<a href=\"https:\/\/blog.trendmicro.com.tw\/?cat=3220\">WannaCry(\u60f3\u54ed)<\/a>\u00a0\u52d2\u7d22\u8815\u87f2\u3001<a href=\"https:\/\/blog.trendmicro.com.tw\/?p=49830\">\u7121\u6a94\u6848\u52d2\u7d22\u75c5\u6bd2UIWIX<\/a>\u3001<a href=\"https:\/\/blog.trendmicro.com.tw\/?p=49977\">SMB\u8815\u87f2 EternalRocks<\/a>\u4ee5\u53ca\u96fb\u5b50\u8ca8\u5e63\u63a1\u7926\u60e1\u610f\u8edf\u9ad4Adylkuzz\u3002<\/p>\n<p>EternalBlue\uff08\u5fae\u8edf\u91cb\u51fa<a href=\"https:\/\/technet.microsoft.com\/en-us\/library\/security\/ms17-010.aspx\">MS17-010<\/a>\u4fee\u88dc\uff09\u662f\u95dc\u65bcWindows SMB 1.0\uff08SMBv1\uff09\u4f3a\u670d\u5668\u5982\u4f55\u8655\u7406\u7279\u5b9a\u8acb\u6c42\u76f8\u95dc\u7684\u5b89\u5168\u6f0f\u6d1e\u3002\u4e00\u65e6\u653b\u64ca\u6210\u529f\uff0c\u5c31\u53ef\u4ee5\u8b93\u653b\u64ca\u8005\u5728\u76ee\u6a19\u7cfb\u7d71\u4e0a\u57f7\u884c\u4efb\u610f\u7a0b\u5f0f\u78bc\u3002EternalBlue\u53ca<a href=\"https:\/\/www.trendmicro.com\/vinfo\/us\/security\/news\/vulnerabilities-and-exploits\/shadow-brokers-leaks-hacking-tools-what-it-means-for-enterprises\">\u5176\u4ed6\u88ab\u99ed\u5ba2\u96c6\u5718Shadow Broker\u6240\u6d41\u51fa\u6f0f\u6d1e\u653b\u64ca\u78bc<\/a>\u7684\u56b4\u91cd\u6027\u548c\u8907\u96dc\u6027\u88ab\u8a8d\u5b9a\u70ba\u4e2d\u5230\u9ad8\u7684\u7a0b\u5ea6\u3002<\/p>\n<p>\u8da8\u52e2\u79d1\u6280\u9032\u4e00\u6b65\u7684\u7814\u7a76EternalBlue\u5167\u90e8\u904b\u4f5c\u4f86\u66f4\u52a0\u5730\u4e86\u89e3\u6b64\u6f0f\u6d1e\u653b\u64ca\u5982\u4f55\u904b\u4f5c\uff0c\u4e26\u63d0\u4f9b\u95dc\u65bc\u6b64\u6f0f\u6d1e\u653b\u64ca\u8086\u8650\u4e16\u754c\u5404\u5730\u4e0d\u540c\u7522\u696d\u7d44\u7e54\u7684\u6280\u8853\u898b\u89e3\u3002<\/p>\n<p>\u300a\u5ef6\u4f38\u95b1\u8b80\u300b<a href=\"https:\/\/blog.trendmicro.com.tw\/?p=49977\">\u8207 WannaCry \u8f03\u52c1?!\u300cEternalRocks\u300d\u4e00\u53e3\u6c23\u7528\u540c\u500b\u99ed\u5ba2\u96c6\u5718\u5916\u6d41\u7684\u4e03\u500b\u6f0f\u6d1e\u5c55\u958b\u653b\u64ca<\/a><\/p>\n<p>&nbsp;<\/p>\n<p><strong><em>\u6f0f\u6d1e\u5206\u6790<\/em><\/strong><\/p>\n<p>Windows SMBv1\u7684\u6838\u5fc3\u51fd\u5f0f<em>srv!SrvOs2FeaListToNt<\/em>\u5728\u8655\u7406\u6a94\u6848\u5ef6\u4f38\u5c6c\u6027\uff08FEA\uff09\u6642\uff0cLarge Non-Paged\u6838\u5fc3\u96c6\u5340\u8a18\u61b6\u9ad4\uff08kernel pool memory\uff09\u5b58\u5728\u7de9\u885d\u5340\u6ea2\u4f4d\u7684\u6f0f\u6d1e\u3002<em>srv!SrvOs2FeaListToNt<\/em>\u5728\u5c07FEA\u5217\u8868\u8f49\u63db\u6210NTFEA\uff08Windows NT FEA\uff09\u5217\u8868\u524d\u6703\u547c\u53eb<em>srv!SrvOs2FeaListSizeToNt<\/em>\u4f86\u8a08\u7b97\u6240\u63a5\u6536FEA\u5217\u8868\u7684\u5927\u5c0f\u3002\u6309\u9806\u5e8f\u9032\u884c\u4e0b\u9762\u64cd\u4f5c\uff1a<\/p>\n<ol>\n<li><em>srv!SrvOs2FeaListSizeToNt<\/em>\u6703\u8a08\u7b97FEA\u5217\u8868\u5927\u5c0f\u548c\u66f4\u65b0\u6240\u63a5\u6536FEA\u5217\u8868\u5927\u5c0f<\/li>\n<li>\u56e0\u70ba\u932f\u8aa4\u7684WORD\u985e\u578b\u8f49\u63db\u9020\u6210FEA\u5927\u5c0f\u6bd4\u539f\u503c\u5927<\/li>\n<li>\u7576FEA\u5217\u8868\u91cd\u8907\u5730\u88ab\u8f49\u63db\u70baNTFEA\u5217\u8868\u6642\uff0c\u975e\u5206\u9801\u96c6\u5340\uff08non-page pool\uff09\u6703\u51fa\u73fe\u6ea2\u4f4d\uff0c\u56e0\u70ba\u539f\u672c\u7684\u7e3d\u5217\u8868\u5927\u5c0f\u88ab\u8aa4\u7b97<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p><strong><em>\u6ea2\u4f4d\u5206\u6790<\/em><\/strong><\/p>\n<p>\u6211\u5011\u7684\u6ea2\u4f4d\u5206\u6790\u662f\u6839\u64da<em>srv.sys 6.1.7601.17514_x86<\/em>\u3002\u6709\u6f0f\u6d1e\u7684\u7a0b\u5f0f\u78bc\u53ef\u4ee5\u7528<em>srv!SrvSmbOpen2<\/em>\u89f8\u767c\u3002\u8ffd\u8e2a\u5982\u4e0b\uff1a<\/p>\n<p><strong>00 94527bb4 82171149 srv!SrvSmbOpen2<\/strong><\/p>\n<p><strong>\u279c SrvOs2FeaListSizeToNt() <\/strong><!--more--><\/p>\n<p>01 94527bc8 821721b8 srv!ExecuteTransaction+0x101<\/p>\n<p>02 94527c00 8213b496 srv!SrvSmbTransactionSecondary+0x2c5<\/p>\n<p>03 94527c28 8214a922 srv!SrvProcessSmb+0x187<\/p>\n<p>04 94527c50 82c5df5e srv!WorkerThread+0x15c<\/p>\n<p>05 94527c90 82b05219 nt!PspSystemThreadStartup+0x9e<\/p>\n<p>06 00000000 00000000 nt!KiThreadStartup+0x19<\/p>\n<p>\u70ba\u4e86\u5206\u6790\u6ea2\u4f4d\uff0c\u6211\u5011\u8a2d\u7f6e\u4e86\u4e2d\u65b7\u9ede\uff1a<\/p>\n<p>bp srv!SrvSmbOpen2+0x79 \u201c.printf \\\u201dfeasize: %p indatasize: %p fealist addr: %p\\\\n\\\u201d,edx,ecx,eax;g;\u201d<\/p>\n<p>\u7a0b\u5f0f\u4e2d\u65b7\u5f8c\u6703\u5f97\u5230\u4ee5\u4e0b\u6578\u503c\uff08\u5341\u516d\u9032\u5236\uff0c\u5341\u9032\u5236\uff09\uff1a<\/p>\n<ul>\n<li>feasize\uff1a00010000\uff0865536\uff09<\/li>\n<li>indatasize\uff1a000103d0\uff0866512\uff09<\/li>\n<li>fealist addr\uff1a89e980d8<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>\u5f9e\u9019\u88e1\u53ef\u4ee5\u770b\u5230IN-DATA\u5927\u5c0f\u70ba66512\uff0c\u548cNT Trans Request\u7684Total Data Count\u76f8\u540c\uff0c\u6bd4FEA\u5217\u8868\u5927\u5c0f65536\u4f86\u5f97\u5927\u3002<\/p>\n<p>https:\/\/blog.trendmicro.com\/trendlabs-security-intelligence\/files\/2017\/06\/figure1_eternalblue.jpg<\/p>\n<p>&nbsp;<\/p>\n<p><em>\u57161<\/em><em>\uff1a\u986f\u793aIN-DATA<\/em><em>\u5927\u5c0f\uff08\u7528\u85cd\u8272\u6a19\u51fa\uff09\u548cFEA<\/em><em>\u5217\u8868\u5927\u5c0f\uff08\u7528\u7d05\u8272\u6a19\u51fa\uff09\u7684\u4ee3\u78bc\u622a\u5716<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>\u9019\u88e1\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0cIN-DATA\u6703\u88ab\u8f49\u63db\u6210\u5982\u4e0b\u7684FEA\u5217\u8868\u7d50\u69cb\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full\" src=\"https:\/\/blog.trendmicro.com\/trendlabs-security-intelligence\/files\/2017\/06\/figure2_eternalblue.jpg\" width=\"871\" height=\"367\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><em>\u57162<\/em><em>\uff1aFEA<\/em><em>\u5217\u8868\u7d50\u69cb<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>\u8f49\u63dbIN-DATA\u4e4b\u5f8c\uff0c\u6211\u5011\u6703\u5f97\u5230FEA\u5927\u5c0f00010000\uff0865536\uff09\uff0c\u5b58\u653e\u5728FEALIST\u279ccblist\u3002SMB\u9a45\u52d5\u7a0b\u5f0f\u4e0b\u4e00\u6b65\u6703\u5206\u914d\u4e00\u500b\u7de9\u885d\u5340\uff08buffer\uff09\u4f86\u5c07FEA\u5217\u8868\u8f49\u63db\u6210NT FEA\u5217\u8868\u3002\u9019\u4ee3\u8868\u5b83\u8981\u8a08\u7b97NTFEA\u5217\u8868\u7684\u5927\u5c0f\uff0c\u900f\u904e\u547c\u53eb<em>srv!SrvOs2FeaListSizeToNt<\/em>\u51fd\u5f0f\u5b8c\u6210\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u70ba\u4e86\u67e5\u770b\u6b64\u51fd\u5f0f\u7684\u8fd4\u56de\u503c\uff0c\u6211\u5011\u8a2d\u7f6e\u4ee5\u4e0b\u4e2d\u65b7\u9ede\uff1a<\/p>\n<p>bp srv!SrvOs2FeaListToNt+0x10 \u201c.printf \\\u201dfeasize before: %p\\\\n\\\u201d,poi(edi);r $t0 = @edi;g;\u201d<\/p>\n<p>bp srv!SrvOs2FeaListToNt+0x15 \u201c.printf \\\u201dNTFEA size: %p feasize after: %p\\\\n\\\u201d,eax,poi(@$t0);g;\u201d<\/p>\n<p>&nbsp;<\/p>\n<p>\u4e2d\u65b7\u5f8c\u5f97\u5230\uff1a<\/p>\n<ul>\n<li>\u4e4b\u524d\u7684feasize\uff1a00010000<\/li>\n<li>\u4e4b\u5f8c\u7684feasize\uff1a0001ff5d<\/li>\n<li>NTFEA\u5927\u5c0f\uff1a00010fe8<\/li>\n<\/ul>\n<p>\u6211\u5011\u767c\u73feFEALIST\u279c\u00a0 cblist\u5f9e0x10000\u66f4\u65b0\u52300x1ff5d\u3002\u4f46\u662f\u54ea\u90e8\u5206\u7684\u7a0b\u5f0f\u78bc\u9020\u6210\u8a08\u7b97\u932f\u8aa4\uff1f\u4e0b\u9762\u7a0b\u5f0f\u78bc\u6703\u986f\u793a\u932f\u8aa4\u5982\u4f55\u767c\u751f\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full\" src=\"https:\/\/blog.trendmicro.com\/trendlabs-security-intelligence\/files\/2017\/06\/figure3_eternalblue.jpg\" width=\"1664\" height=\"1251\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><em>\u57163<\/em><em>\uff1a\u986f\u793a\u8a08\u7b97FEALIST <\/em><em>\u279c\u00a0 cblist<\/em><em>\u932f\u8aa4\u7684\u7a0b\u5f0f\u78bc\u622a\u5716<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>\u6839\u64da\u4e0a\u9762\u7684\u622a\u5716\uff0c40\u884c\u8d77\u986f\u793a\u51fa\u4e86\u8a08\u7b97\u932f\u8aa4\u3002\u56e0\u70ba\u539f\u672c\u7684FEA\u5217\u8868\u5927\u5c0f\u88ab\u66f4\u65b0\uff0c\u91cd\u8907\u8907\u88fd\u6578\u503c\u5230NTFEA\u5217\u8868\u6703\u8d85\u904e\u5728v6\u8fd4\u56de\u7684NTFEA\u5927\u5c0f\uff0800010fe8\uff09\u3002\u8acb\u6ce8\u610f\uff0c\u5982\u679c\u51fd\u5f0f\u572828\u621621\u884c\u8fd4\u56de\uff0cFEA\u5217\u8868\u4e0d\u6703\u88ab\u66f4\u65b0\u3002\u53e6\u4e00\u500b\u5728EternalBlue\u4ee5\u5916\u6703\u5c0e\u81f4v1\u66f4\u65b0\u7684\u60c5\u6cc1\u662fFEA\u5217\u8868\u672b\u7aef\u8cc7\u6599\u4e0d\u8db3\u4ee5\u5132\u5b58\u53e6\u4e00\u500bFEA\u7d50\u69cb\u3002<\/p>\n<p>\u6211\u5011\u4e5f\u5206\u6790\u4e86\u7576LARGE NON-PAGE Kernel Pool\u51fa\u73fe\u7de9\u885d\u5340\u6ea2\u4f4d\u6642\uff0c\u6838\u5fc3\u8a18\u61b6\u9ad4\u6703\u767c\u751f\u4ec0\u9ebc\u4e8b\u3002\u7576<em>SrvOs2FeaListSizeToNt<\/em>\u8fd4\u56de\u6578\u503c\uff0c\u9700\u8981\u7528\u4f86\u5132\u5b58NTFEA\u5217\u8868\u7684\u5927\u5c0f\u662f00010fe8\u3002\u9019\u9700\u8981SRV.sys\u5206\u914d\u4e00\u500bLarge Kernel POOL\u3002\u4f7f\u7528\u4e0b\u9762\u7684\u4e2d\u65b7\u9ede\u4f86\u5e6b\u52a9\u8ffd\u8e64\u7576FEA\u5217\u8868\u8f49\u63db\u6210NTFEA\u5217\u8868\u6642\u7a76\u7adf\u767c\u751f\u4e86\u4ec0\u9ebc\u4e8b\uff1a<\/p>\n<p>bp srv!SrvOs2FeaListToNt+0x99 \u201c.printf \\\u201dNEXT: FEA: %p NTFEA: %p\\\\n\\\u201d,esi,eax;g;\u201d<\/p>\n<p>bp srv!SrvOs2FeaToNt+04d \u201c.printf \\\u201dMOV2: dst: %p src: %p size: %p\\\\n\\\u201d,ebx,eax,poi(esp+8);g;\u201d<\/p>\n<p>&nbsp;<\/p>\n<p>bp srv!SrvOs2FeaListToNt+0xd5<\/p>\n<p>&nbsp;<\/p>\n<p>\u6982\u7565\u5730\u8aaa\uff0c\u4e00\u65e6<em>SrvOs2FeaListSizeToNt<\/em>\u88ab\u547c\u53eb\u800c\u96c6\u5340\uff08Pool\uff09\u4e5f\u5df2\u7d93\u5206\u914d\uff0c\u6703\u4f7f\u7528\u51fd\u5f0f<em>SrvOs2FeaToNt<\/em>\u4f86\u5c07FEA\u5217\u8868\u5167\u6240\u6709\u7684\u5143\u7d20\u52a0\u4ee5\u8f49\u63db\u3002\u5728<em>SrvOs2FeaToNt<\/em>\u5167\u6709\u5169\u500b<em>_memmove<\/em>\u64cd\u4f5c\uff0c\u6240\u6709\u7684\u7de9\u885d\u5340\u8907\u88fd\u64cd\u4f5c\u90fd\u6703\u5728\u9019\u767c\u751f\u3002\u900f\u904e\u4ee5\u4e0a\u7684\u4e2d\u65b7\u9ede\uff0c\u53ef\u4ee5\u8ffd\u8e2aFEA\u5217\u8868\u8f49\u63db\u6642\u767c\u751f\u4ec0\u9ebc\u4e8b\u3002\u8ffd\u8e2a\u9700\u8981\u82b1\u4e0a\u76f8\u7576\u7684\u6642\u9593\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full\" src=\"https:\/\/blog.trendmicro.com\/trendlabs-security-intelligence\/files\/2017\/05\/CVE-2017-0144-eternalblue-4.png\" width=\"1359\" height=\"1117\" \/><\/p>\n<p><em>\u57164<\/em><em>\uff1a\u986f\u793a\u8907\u88fd\u64cd\u4f5c\u7684\u7a0b\u5f0f\u78bc\u622a\u5716<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>\u7576\u505c\u5728\u4e2d\u65b7\u9ede<em>srv!SrvOs2FeaListToNt+0xd5<\/em>\u6642\uff0c\u6211\u5011\u53ef\u4ee5\u53d6\u5f97\u5206\u6790\u7de9\u885d\u5340\u6ea2\u4f4d\u6240\u9700\u7684\u6240\u6709\u8cc7\u6599\u3002605\u8907\u88fd\u64cd\u4f5c\u62f7\u8c9d\u4e860\u5b57\u5143\uff0c\u9019\u662f\u56e0\u70ba\u5728\u6709\u6548\u8f09\u8377\u958b\u982d\uff0cFEA\u5217\u8868\u6703\u67090\u4f4d\u5143\u7684\u503c\uff0c\u5c0d\u61c9\u5230605 FEA\u7d50\u69cb\u3002\u4e0b\u4e00\u500bFEA\u5927\u5c0f\u6703\u662fF383\uff08\u8907\u88fd606\uff09\uff0c\u6700\u5f8c\u8907\u88fd\u6703\u572885915ff0\u7d50\u675f\u3002<\/p>\n<p>\u5728\u8907\u88fd\u64cd\u4f5c606\u5f8c\uff0c\u6211\u5011\u6703\u770b\u5230\u7de9\u885d\u5340\uff1a85905008 + 10FE8 = 85915FF0\u3002\u7136\u800c\uff0c\u6703\u51fa\u73fe\u53e6\u4e00\u6b21\u7684FEA\u8fed\u4ee3\uff0c\u5728\u6b64\u4f8b\u4e2d\u7684\u5927\u5c0f\u70baA8\u3002\u9019\u6703\u8986\u84cb\u4e0b\u4e00\u500b\u8a18\u61b6\u9ad4\u5340\u3002\u6ce8\u610f\u5728\u8986\u84cb\u8cc7\u6599\u5f8c\u6703\u51fa\u73fe\u5728\u4e0d\u540c\u7684\u96c6\u5340\uff08pool\uff09\uff0c\u5728\u6b64\u4f8b\u4e2d\u70baSRVNET.sys pool\u3002<\/p>\n<p>\u8907\u88fd\u64cd\u4f5c607\u5f8c\u662f\u5df2\u640d\u58de\u7684FEA\uff0c\u4f3a\u670d\u5668\u8fd4\u56de<em>STATUS_INVALID_PARAMETER<\/em>\uff080xC000000D\uff09\u3002NT Transaction\u6700\u5f8c\u7684FEA\u767c\u9001\u5230\u4f3a\u670d\u5668\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full\" src=\"https:\/\/blog.trendmicro.com\/trendlabs-security-intelligence\/files\/2017\/05\/CVE-2017-0144-eternalblue-5.png\" width=\"1107\" height=\"502\" \/><\/p>\n<p><em>\u57165<\/em><em>\uff1a\u986f\u793a\u640d\u58de\u7684FEA<\/em><em>\u548c\u4f3a\u670d\u5668\u8fd4\u56de\u503c\u7684\u7a0b\u5f0f\u78bc\u622a\u5716<\/em><\/p>\n<p>&nbsp;<\/p>\n<p><strong><em>EternalBlue<\/em><\/strong><strong><em>\u7684\u6f0f\u6d1e\u653b\u64ca\u80fd\u529b<\/em><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>\u6ea2\u4f4d\u767c\u751f\u5728NON-PAGED Pool\u8a18\u61b6\u9ad4\uff0c\u660e\u78ba\u5730\u8aaa\u662fLarge NON-PAGED Pool\u3002Large non-page pool\u6c92\u6709POOL\u6a19\u982d\u3002\u56e0\u70ba\u5982\u6b64\uff0c\u5728Large Pool\u7de9\u885d\u5340\u5f8c\u53ef\u4ee5\u5206\u914d\u53e6\u4e00\u500b\u96c6\u5340\u7de9\u885d\u5340\uff08POOL buffer\uff09 \u2013 \u9019\u662f\u5e36\u6709\u7279\u5b9aDRIVER\u8cc7\u6599\u7684\u9a45\u52d5\u7a0b\u5f0f\u6240\u64c1\u6709\u3002<\/p>\n<p>\u56e0\u6b64\uff0c\u653b\u64ca\u9700\u8981\u5728\u7de9\u885d\u5340\u6ea2\u4f4d\u5f8c\u64cd\u7e31\u50b3\u4f86\u7684\u96c6\u5340\u7de9\u885d\u5340\uff08POOL buffer\uff09\u3002EternalBlue\u7684\u4f5c\u6cd5\u662f\u63a7\u5236SRVNET\u9a45\u52d5\u7a0b\u5f0f\u7de9\u885d\u5340\u7d50\u69cb\u3002\u70ba\u4e86\u505a\u5230\u9019\u4e00\u9ede\uff0c\u5169\u500b\u7de9\u885d\u5340\u9700\u8981\u5728\u8a18\u61b6\u9ad4\u5167\u5c0d\u9f4a\u3002\u8981\u5efa\u7acb\u975e\u5206\u9801\u96c6\u5340\uff08NON-PAGED POOL\uff09\u5c0d\u9f4a\uff0c\u9700\u8981\u5674\u5c04(spray)\u6838\u5fc3\u96c6\u5340\uff08kernel pool\uff09\uff0c\u4f5c\u6cd5\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li>\u5efa\u7acb\u591a\u500bSRVNET\u7de9\u885d\u5340<\/li>\n<li>\u91cb\u653e\u4e00\u4e9b\u7de9\u885d\u5340\u4f86\u5efa\u7acb\u4e00\u4e9b\u7a7a\u6d1e\uff08hole\uff09\u8b93SRV\u7de9\u885d\u5340\u88ab\u8907\u88fd<\/li>\n<li>\u767c\u9001SRV\u7de9\u885d\u5340\u8b93SRVNET\u7de9\u885d\u5340\u6ea2\u4f4d\u3002<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p><strong><em>\u6f0f\u6d1e\u653b\u64ca\u6a5f\u5236<\/em><\/strong><\/p>\n<p>\u6709\u7de9\u885d\u5340\u6ea2\u4f4d\u6f0f\u6d1e\u7684\u7a0b\u5f0f\u78bc\u5728KERNEL NON-PAGED\u8a18\u61b6\u9ad4\u904b\u4f5c\u3002\u5b83\u4e5f\u53ef\u4ee5\u5728LARGE NON-PAGED POOL\u904b\u4f5c\u3002\u9019\u4e9b\u96c6\u5340\uff08Pool\uff09\u5728\u5206\u9801\uff08page\uff09\u958b\u982d\u6c92\u6709\u5d4c\u5165\u4efb\u4f55POOL\u6a19\u982d\uff0c\u6240\u4ee5\u9700\u8981\u7279\u6b8a\u4f5c\u6cd5\u53bb\u653b\u64ca\u3002\u9019\u4f5c\u6cd5\u9700\u8981\u9006\u8f49\u4e00\u4e9b\u7d50\u69cb\u4f86\u5206\u914d\u5230\u6ea2\u4f4d\u5340\uff0c\u5982\u4e0b\u5716\u6240\u793a\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full\" src=\"https:\/\/blog.trendmicro.com\/trendlabs-security-intelligence\/files\/2017\/05\/CVE-2017-0144-eternalblue-6.png\" width=\"995\" height=\"943\" \/><\/p>\n<p><em>\u57166<\/em><em>\uff1aEternalBlue<\/em><em>\u7684\u6f0f\u6d1e\u653b\u64ca\u6a5f\u5236<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>\u5efa\u7acb\u591a\u500bSRVNET\u7de9\u885d\u5340\u8ddf\u8a18\u61b6\u9ad4\u5167\u6240\u767c\u751f\u7684\u4e8b\u60c5\u8fd1\u4f3c\uff0c\u53ea\u662f\u7528\u4f86\u8868\u73fe\u9019\u500b\u60f3\u6cd5\u3002\u8acb\u6ce8\u610f\uff0c\u6211\u5011\u6709\u610f\u5730\u7701\u7565\u90e8\u5206\u7d30\u7bc0\u4ee5\u9632\u6b62\u6211\u5011\u7684\u5206\u6790\u88ab\u6feb\u7528\u3002<\/p>\n<p><em><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full\" src=\"https:\/\/blog.trendmicro.com\/trendlabs-security-intelligence\/files\/2017\/05\/CVE-2017-0144-eternalblue-7.png\" width=\"1667\" height=\"1138\" \/>\u57167<\/em><em>\uff1aEternalBlue<\/em><em>\u7684\u6f0f\u6d1e\u653b\u64ca\u93c8<\/em><\/p>\n<p>&nbsp;<\/p>\n<p><strong><em>EternalBlue<\/em><\/strong><strong><em>\u7684\u6f0f\u6d1e\u653b\u64ca\u93c8<\/em><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>EternalBlue\u7d93\u904e\u4e00\u9023\u4e32\u7684\u7a0b\u5e8f\u4f86\u6210\u529f\u5730\u653b\u64ca\u6709\u6f0f\u6d1e\u7684\u7cfb\u7d71\u6216\u7db2\u8def\uff0c\u5982\u4e0a\u5716\u6240\u793a\u3002<\/p>\n<p>EternalBlue\u9996\u5148\u767c\u9001\u4e00\u500bSRV\u7de9\u885d\u5340\uff08\u9664\u4e86\u6700\u5f8c\u4e00\u500b\u5c01\u5305\uff09\u3002\u9019\u662f\u56e0\u70ba\u7576\u4ea4\u6613\uff08transaction\uff09\u7684\u6700\u5f8c\u4e00\u7b46\u8cc7\u6599\u5230\u9054\u4f3a\u670d\u5668\u6642\uff0cLarge NON-PAGED POOL\u7de9\u885d\u5340\u6703\u88ab\u5efa\u7acb\u3002SMB\u4f3a\u670d\u5668\u6703\u5c07\u8cc7\u6599\u7a4d\u7d2f\u5728\u8f38\u5165\u7de9\u885d\u5340\uff0c\u76f4\u5230\u6240\u6709\u4ea4\u6613\u8cc7\u6599\u90fd\u88ab\u8b80\u53d6\u3002\u7e3d\u4ea4\u6613\u8cc7\u6599\u6703\u88ab\u6307\u5b9a\u5728\u521d\u59cbTRANS\u5c01\u5305\u3002\u4e00\u65e6\u6240\u6709\u4ea4\u6613\u8cc7\u6599\u62b5\u9054\uff0cSMB\u4f3a\u670d\u5668\u6703\u8655\u7406\u8cc7\u6599\u3002\u5728\u6b64\u4f8b\u4e2d\uff0c\u8cc7\u6599\u88ab\u5206\u6d3e\u5230SrvOpen2\u51fd\u5f0f\u4f86\u8b80\u7d93\u7531\u7db2\u8def\u6587\u4ef6\u5171\u4eab\u7cfb\u7d71\uff08CIFS\uff09\u7684\u8cc7\u6599\u3002<\/p>\n<p>\u5728\u6b64\u6642\uff0cEternalBlue\u78ba\u4fdd\u6240\u6709\u767c\u9001\u8cc7\u6599\u88ab\u4f3a\u670d\u5668\u63a5\u6536\u4e26\u9001\u51faSMB ECHO\u5c01\u5305\u3002\u56e0\u70ba\u653b\u64ca\u53ef\u4ee5\u900f\u904e\u8f03\u6162\u7684\u7db2\u8def\u9032\u884c\uff0c\u9019echo\u6307\u4ee4\u76f8\u7576\u91cd\u8981\u3002<\/p>\n<p>\u5728\u6211\u5011\u7684\u5206\u6790\u4e2d\uff0c\u5373\u4f7f\u6211\u5011\u9001\u51fa\u521d\u59cb\u8cc7\u6599\uff0c\u6709\u6f0f\u6d1e\u7684\u7de9\u885d\u5340\u9084\u6c92\u6709\u5728\u8a18\u61b6\u9ad4\u5167\u5efa\u7acb\u3002\u8981\u7528\u4e0b\u5217\u6b65\u9a5f\u4f86\u8a66\u8457\u5728SRVNET\u7de9\u885d\u5340\u524d\u5206\u914d\u4e00\u500bSRV\u6709\u6f0f\u6d1e\u7684\u7de9\u885d\u5340\uff1a<\/p>\n<ol>\n<li>FreeHole_A\uff1aEternalBlue\u958b\u59cb\u767c\u9001SMBv1\u5c01\u5305\u4f86\u5efa\u7acb\u4e00\u500bkernel hole A<\/li>\n<li>SMBv2_1n\uff1a\u767c\u9001\u4e00\u7d44SMBv2\u5c01\u5305<\/li>\n<li>FreeHole_B\uff1a\u767c\u9001\u53e6\u4e00\u500b\u7a7a\u7684hole buffer\uff1b\u9019\u9700\u8981\u5728\u524d\u4e00\u500bhole\u91cb\u653e\u524d\u767c\u9001\uff0c\u4ee5\u78ba\u4fdd\u53e6\u5916\u4e00\u500b\u6703\u5efa\u7acb<\/li>\n<li>FreeHole_A_CLOSE\uff1a\u95dc\u9589\u9023\u7dda\u8b93\u7de9\u885d\u5340\u91cb\u653e\uff0c\u4e4b\u5f8c\u95dc\u9589A\u4ee5\u5efa\u7acb\u7a7a\u7684hole<\/li>\n<li>SMBv2_2n\uff1a\u767c\u9001\u4e00\u7d44SMBv2\u5c01\u5305<\/li>\n<li>FreeHole_B_CLOSE\uff1a\u95dc\u9589\u9023\u7dda\u8b93\u7de9\u885d\u5340\u91cb\u653e<\/li>\n<li>FINAL_Vulnerable_Buffer\uff1a\u767c\u9001\u6709\u6f0f\u6d1e\u7de9\u885d\u5340\u7684\u6700\u5f8c\u4e00\u500b\u5c01\u5305<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>\u4e00\u500b\u6709\u6f0f\u6d1e\u7684\u7de9\u885d\u5340\u6703\u88ab\u5efa\u7acb\u5728\u8a18\u61b6\u9ad4\u5167\uff0c\u5c31\u5728SRVNET\u7de9\u885d\u5340\u524d\uff0c\u90e8\u5206SRVNET\u6703\u88ab\u8986\u84cb\u3002FEA\u5217\u8868\u8f49\u63db\u6210NTFEA\u5217\u8868\u6703\u8fd4\u56de\u932f\u8aa4\uff0c\u56e0\u70baFEA\u7d50\u69cb\u5728\u67d0\u4e00\u9ede\u5f8c\u6703\u7121\u6548\uff0c\u5728\u6b64\u6642\u4f3a\u670d\u5668\u6703\u8fd4\u56deSTATUS_INVALID_PARAMETER\uff080xC000000D\uff09\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong><em>\u4fee\u88dc\u7cfb\u7d71<\/em><\/strong><\/p>\n<p>EternalBlue\u6210\u4e86\u8a31\u591a\u60e1\u610f\u8edf\u9ad4\u7684\u5165\u5834\u5377\uff0c\u56b4\u91cd\u5730\u5f71\u97ff\u4e86\u5168\u7403\u7684\u4f01\u696d\u548c\u4e00\u822c\u7528\u6236\uff0c\u4e5f\u8b93\u4eba\u5011\u518d\u6b21\u8a8d\u8b58\u5230\u5b89\u88dd\u6700\u65b0\u4fee\u88dc\u7a0b\u5f0f\u548c\u4fdd\u6301\u7cfb\u7d71\u8207\u7db2\u8def\u66f4\u65b0\u7684\u91cd\u8981\u6027\u3002EternalBlue\u5df2\u7d93\u8b93<a href=\"https:\/\/technet.microsoft.com\/en-us\/library\/security\/ms17-010.aspx\">Windows\u7cfb\u7d71\u767c\u5e03\u4e86\u4fee\u88dc\u7a0b\u5f0f<\/a>\uff0c\u5305\u62ec\u4e86<a href=\"https:\/\/blogs.technet.microsoft.com\/msrc\/2017\/05\/12\/customer-guidance-for-wannacrypt-attacks\/\">\u505c\u6b62\u652f\u63f4\u7684\u4f5c\u696d\u7cfb\u7d71<\/a>\u3002<\/p>\n<p>\u9664\u4e86\u8981\u9032\u884c\u7cfb\u7d71\u548c\u7db2\u8def\u7684\u5b9a\u671f\u66f4\u65b0\uff0c\u4e5f\u5efa\u8b70IT\/\u7cfb\u7d71\u7ba1\u7406\u54e1\u8981\u63a1\u7528\u6700\u4f73\u5be6\u4f5c\uff0c\u4f8b\u5982\u555f\u7528\u5165\u4fb5\u5075\u6e2c\u548c\u9810\u9632\u7cfb\u7d71\uff0c\u505c\u7528\u904e\u671f\u6216\u4e0d\u5fc5\u8981\u7684\u5354\u5b9a\u548c\u7aef\u53e3\uff08\u5982445\uff09\uff0c\u4e3b\u52d5\u76e3\u8996\u7db2\u8def\u6d41\u91cf\uff0c\u9632\u8b77\u7aef\u9ede\u548c\u90e8\u7f72\u5b89\u5168\u6a5f\u5236\uff08\u5982\u8cc7\u6599\u5206\u985e\u53ca\u7db2\u8def\u5206\u5340\uff09\u4ee5\u6e1b\u5c11\u66b4\u9732\u9762\u6240\u5e36\u4f86\u7684\u7834\u58de\u3002\u63a1\u7528<a href=\"https:\/\/www.trendmicro.com\/vinfo\/us\/security\/news\/virtualization-and-cloud\/virtual-patching-in-mixed-environments-how-it-protects-you\">\u865b\u64ec\u4fee\u88dc<\/a>\u4e5f\u6709\u52a9\u65bc\u5c0d\u6297\u672a\u77e5\u6f0f\u6d1e\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong><em>\u8da8\u52e2\u79d1\u6280\u89e3\u6c7a\u65b9\u6848<\/em><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>\u8da8\u52e2\u79d1\u6280\u7684<a href=\"https:\/\/www.trendmicro.com\/us\/enterprise\/cloud-solutions\/deep-security\/index.html\">Deep Security<\/a>\u548c<a href=\"https:\/\/www.trendmicro.com\/us\/enterprise\/product-security\/vulnerability-protection\/\">Vulnerability Protection<\/a>\u63d0\u4f9b<a href=\"https:\/\/www.trendmicro.com\/us\/enterprise\/product-security\/vulnerability-protection\/\">\u865b\u64ec\u4fee\u88dc<\/a>\u6280\u8853\u4f86\u4fdd\u8b77\u7aef\u9ede\u5c0d\u6297\u7121\u6a94\u6848\u75c5\u6bd2\u548c\u6f0f\u6d1e\u653b\u64ca\u7b49\u5a01\u8105\u3002<a href=\"https:\/\/www.trendmicro.com\/us\/enterprise\/product-security\/officescan\/\">OffieScan<\/a>\u7684Vulnerability Protection\u9632\u8b77\u7aef\u9ede\u5c01\u9396\u5df2\u77e5\u548c\u672a\u77e5\u7684\u6f0f\u6d1e\u653b\u64ca\uff0c\u751a\u81f3\u5728\u4fee\u88dc\u7a0b\u5f0f\u91cb\u51fa\u4e4b\u524d\u63d0\u4f9b\u4fdd\u8b77\u3002<\/p>\n<p>\u8da8\u52e2\u79d1\u6280\u7684<a href=\"https:\/\/www.trendmicro.com\/us\/enterprise\/security-risk-management\/deep-discovery\/\">Deep Discovery<\/a>\u80fd\u5920\u5075\u6e2c\u3001\u6df1\u5165\u5206\u6790\u53ca\u4e3b\u52d5\u56de\u61c9\u6f0f\u6d1e\u653b\u64ca\u53ca\u5176\u4ed6\u985e\u4f3c\u5a01\u8105\u3002\u900f\u904e\u7279\u88fd\u5f15\u64ce\u3001\u5ba2\u88fd\u5316<a href=\"https:\/\/blog.trendmicro.com\/trendlabs-security-intelligence\/deploying-a-smart-sandbox-for-unknown-threats-and-zero-day-attacks\/\">\u6c99\u7bb1<\/a>\u53ca\u6a6b\u8de8\u6574\u500b\u653b\u64ca\u751f\u547d\u9031\u671f\u7684\u7121\u7e2b\u95dc\u806f\u6280\u8853\uff0c\u8b93\u5b83\u5373\u4f7f\u6c92\u6709\u66f4\u65b0\u5f15\u64ce\u6216\u75c5\u6bd2\u78bc\u4e5f\u80fd\u5920\u5075\u6e2c\u5a01\u8105\u3002<\/p>\n<p>\u53ef\u4ee5\u5728\u4ee5\u4e0b\u6280\u8853\u652f\u63f4\u7db2\u9801\u627e\u5230\u8da8\u52e2\u79d1\u6280\u5c0dEternalBlue\u53ca\u5229\u7528\u5176\u6f0f\u6d1e\u653b\u64ca\u78bc\u7684\u60e1\u610f\u8edf\u9ad4\u6240\u63d0\u4f9b\u89e3\u6c7a\u65b9\u6848\u7684\u66f4\u6df1\u5165\u8cc7\u8a0a\uff1a<\/p>\n<ul>\n<li><a href=\"https:\/\/success.trendmicro.com\/solution\/1117192\">https:\/\/success.trendmicro.com\/solution\/1117192<\/a><\/li>\n<li><a href=\"https:\/\/success.trendmicro.com\/solution\/1117391\">https:\/\/success.trendmicro.com\/solution\/1117391<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>\uff20\u539f\u6587\u51fa\u8655\uff1a<a href=\"https:\/\/blog.trendmicro.com\/trendlabs-security-intelligence\/ms17-010-eternalblue\/\">MS-17-010: EternalBlue\u2019s Large Non-Paged Pool Overflow in SRV Driver<\/a> \u4f5c\u8005\uff1aWilliam Gamazo Sanchez\uff08\u6f0f\u6d1e\u7814\u7a76\u54e1\uff09<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>EternalBlue\u7684\u6f0f\u6d1e\u653b\u64ca\u78bc\u5728\u4e94\u6708\u6210\u70ba\u53d7\u4eba\u6ce8\u76ee\u7684\u7126\u9ede\uff0c\u56e0\u70ba\u5b83\u548c\u904e\u53bb\u6578\u5468\u51fa\u73fe\u7684\u5927\u898f\u6a21\u60e1\u610f\u8edf\u9ad4\u653b\u64ca\u5927\u6709\u95dc\u806f  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_wpscppro_dont_share_socialmedia":false,"_wpscppro_custom_social_share_image":0,"_facebook_share_type":"","_twitter_share_type":"","_linkedin_share_type":"","_pinterest_share_type":"","_linkedin_share_type_page":"","_instagram_share_type":"","_medium_share_type":"","_threads_share_type":"","_google_business_share_type":"","_selected_social_profile":[],"_wpsp_enable_custom_social_template":false,"_wpsp_social_scheduling":{"enabled":false,"datetime":null,"platforms":[],"status":"template_only","dateOption":"today","timeOption":"now","customDays":"","customHours":"","customDate":"","customTime":"","schedulingType":"absolute"},"_wpsp_active_default_template":true},"categories":[2266,156],"tags":[3231,2292],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog.trendmicro.com.tw\/index.php?rest_route=\/wp\/v2\/posts\/50503"}],"collection":[{"href":"https:\/\/blog.trendmicro.com.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.trendmicro.com.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.trendmicro.com.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.trendmicro.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=50503"}],"version-history":[{"count":0,"href":"https:\/\/blog.trendmicro.com.tw\/index.php?rest_route=\/wp\/v2\/posts\/50503\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.trendmicro.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=50503"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.trendmicro.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=50503"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.trendmicro.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=50503"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}