{"id":144,"date":"2022-04-19T10:07:41","date_gmt":"2022-04-19T02:07:41","guid":{"rendered":"http:\/\/www.aqwu.net\/wp\/?p=144"},"modified":"2022-10-18T12:00:13","modified_gmt":"2022-10-18T04:00:13","slug":"2022-%e5%b9%b4%e8%a7%84%e9%81%bf%e8%a1%8c%e4%b8%9a%e9%a2%86%e5%85%88%e7%ab%af%e7%82%b9%e4%bf%9d%e6%8a%a4%e7%9a%84%e8%93%9d%e5%9b%be","status":"publish","type":"post","link":"https:\/\/www.aqwu.net\/wp\/?p=144","title":{"rendered":"2022 \u5e74\u89c4\u907f\u884c\u4e1a\u9886\u5148\u7aef\u70b9\u4fdd\u62a4\u7684\u84dd\u56fe"},"content":{"rendered":"\n<p>\u539f\u6587\u94fe\u63a5<\/p>\n\n\n\n<p>\u539f\u6587\u94fe\u63a5\uff1a<a href=\"https:\/\/vanmieghem.io\/blueprint-for-evading-edr-in-2022\/\">https:\/\/vanmieghem.io\/blueprint-for-evading-edr-in-2022\/<\/a><\/p>\n\n\n\n<p>\u5927\u7ea6\u4e24\u5e74\u524d\uff0c\u6211\u8f9e\u53bb\u4e86\u5168\u804c\u7ea2\u961f\u64cd\u4f5c\u5458\u7684\u5de5\u4f5c\u3002\u7136\u800c\uff0c\u5b83\u4ecd\u7136\u662f\u4e00\u4e2a\u975e\u5e38\u8d34\u8fd1\u6211\u5fc3\u7684\u4e13\u4e1a\u9886\u57df\u3002\u51e0\u5468\u524d\uff0c\u6211\u6b63\u5728\u5bfb\u627e\u4e00\u4e2a\u65b0\u7684\u526f\u9879\u76ee\uff0c\u5e76\u51b3\u5b9a\u6062\u590d\u6211\u7684\u4e00\u4e2a\u65e7\u7684\u7ea2\u961f\u7231\u597d\uff1a\u7ed5\u8fc7\/\u9003\u907f\u7aef\u70b9\u4fdd\u62a4\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n\n\n\n<p>\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u60f3\u5217\u51fa\u4e00\u7cfb\u5217\u53ef\u7528\u4e8e\u7ed5\u8fc7\u884c\u4e1a\u9886\u5148\u7684\u4f01\u4e1a\u7aef\u70b9\u4fdd\u62a4\u89e3\u51b3\u65b9\u6848\u7684\u6280\u672f\u3002\u8fd9\u7eaf\u7cb9\u662f\u4e3a\u4e86\uff08\u9053\u5fb7\uff09\u7ea2\u961f\u961f\u5458\u7b49\u7684\u6559\u80b2\u76ee\u7684\uff0c\u6240\u4ee5\u6211\u51b3\u5b9a\u4e0d\u516c\u5f00\u53d1\u5e03\u6e90\u4ee3\u7801\u3002\u8fd9\u7bc7\u6587\u7ae0\u7684\u76ee\u7684\u662f\u8ba9\u5b89\u5168\u884c\u4e1a\u7684\u5e7f\u5927\u53d7\u4f17\u90fd\u80fd\u63a5\u89e6\u5230\uff0c\u800c\u4e0d\u662f\u6df1\u5165\u7814\u7a76\u6bcf\u79cd\u6280\u672f\u7684\u7ec6\u8282\u3002\u76f8\u53cd\uff0c\u6211\u4f1a\u53c2\u8003\u5176\u4ed6\u6bd4\u6211\u66f4\u6df1\u5165\u7684\u6587\u7ae0\u3002<\/p>\n\n\n\n<p>\u5728\u5bf9\u624b\u6a21\u62df\u4e2d\uff0c\u201c\u521d\u59cb\u8bbf\u95ee\u201d\u9636\u6bb5\u7684\u4e00\u4e2a\u5173\u952e\u6311\u6218\u662f\u7ed5\u8fc7\u4f01\u4e1a\u7aef\u70b9\u4e0a\u7684\u68c0\u6d4b\u548c\u54cd\u5e94\u80fd\u529b (EDR)\u3002\u5546\u4e1a\u547d\u4ee4\u548c\u63a7\u5236\u6846\u67b6\u5411\u7ea2\u961f\u64cd\u4f5c\u5458\u63d0\u4f9b\u4e0d\u53ef\u4fee\u6539\u7684 shellcode \u548c\u4e8c\u8fdb\u5236\u6587\u4ef6\uff0c\u8fd9\u4e9b\u6587\u4ef6\u7531\u7aef\u70b9\u4fdd\u62a4\u884c\u4e1a\u5927\u91cf\u7b7e\u540d\uff0c\u4e3a\u4e86\u6267\u884c\u8be5\u690d\u5165\uff0c\u8be5 shellcode \u7684\u7b7e\u540d\uff08\u9759\u6001\u548c\u884c\u4e3a\uff09\u9700\u8981\u88ab\u6df7\u6dc6\u3002<\/p>\n\n\n\n<p>\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u5c06\u4ecb\u7ecd\u4ee5\u4e0b\u6280\u672f\uff0c\u6700\u7ec8\u76ee\u6807\u662f\u6267\u884c\u6076\u610f shellcode\uff0c\u4e5f\u79f0\u4e3a\uff08shellcode\uff09\u52a0\u8f7d\u7a0b\u5e8f\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Shellcode \u52a0\u5bc6<\/li><li>\u51cf\u5c11\u71b5<\/li><li>\u9003\u79bb\uff08\u672c\u5730\uff09\u53cd\u75c5\u6bd2\u6c99\u7bb1<\/li><li>\u5bfc\u5165\u8868\u6df7\u6dc6<\/li><li>\u7981\u7528 Windows \u4e8b\u4ef6\u8ddf\u8e2a (ETW)<\/li><li>\u89c4\u907f\u5e38\u89c1\u7684\u6076\u610f API \u8c03\u7528\u6a21\u5f0f<\/li><li>\u76f4\u63a5\u7cfb\u7edf\u8c03\u7528\u548c\u89c4\u907f\u201c\u7cfb\u7edf\u8c03\u7528\u6807\u8bb0\u201d<\/li><li>\u62c6\u9664\u6302\u94a9<code>ntdll.dll<\/code><\/li><li>\u6b3a\u9a97\u7ebf\u7a0b\u8c03\u7528\u5806\u6808<\/li><li>\u4fe1\u6807\u7684\u5185\u5b58\u52a0\u5bc6<\/li><li>\u81ea\u5b9a\u4e49\u53cd\u5c04\u52a0\u8f7d\u5668<\/li><li>\u53ef\u6269\u5c55\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684 OpSec \u914d\u7f6e<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"1-shellcode-encryption\">1\u3001Shellcode\u52a0\u5bc6<\/h3>\n\n\n\n<p>\u8ba9\u6211\u4eec\u4ece\u4e00\u4e2a\u57fa\u672c\u4f46\u91cd\u8981\u7684\u8bdd\u9898\u5f00\u59cb\uff0c\u9759\u6001 shellcode \u6df7\u6dc6\u3002\u5728\u6211\u7684\u52a0\u8f7d\u7a0b\u5e8f\u4e2d\uff0c\u6211\u5229\u7528\u4e86 XOR \u6216 RC4 \u52a0\u5bc6\u7b97\u6cd5\uff0c\u56e0\u4e3a\u5b83\u6613\u4e8e\u5b9e\u73b0\u5e76\u4e14\u4e0d\u4f1a\u7559\u4e0b\u5927\u91cf\u52a0\u8f7d\u7a0b\u5e8f\u6267\u884c\u7684\u52a0\u5bc6\u6d3b\u52a8\u7684\u5916\u90e8\u6307\u6807\u3002\u7528\u4e8e\u6df7\u6dc6 shellcode \u9759\u6001\u7b7e\u540d\u7684 AES \u52a0\u5bc6\u4f1a\u5728\u4e8c\u8fdb\u5236\u6587\u4ef6\u7684<a href=\"https:\/\/0xrick.github.io\/win-internals\/pe6\/\">\u5bfc\u5165\u5730\u5740\u8868<\/a>\u4e2d\u7559\u4e0b\u75d5\u8ff9\uff0c\u8fd9\u589e\u52a0\u4e86\u6000\u7591\u3002\u5728\u6b64\u52a0\u8f7d\u7a0b\u5e8f\u7684\u65e9\u671f\u7248\u672c\u4e2d\uff0c\u6211\u5df2\u7ecf\u8ba9 Windows Defender \u4e13\u95e8\u89e6\u53d1\u4e86 AES \u89e3\u5bc6\u51fd\u6570\uff08\u4f8b\u5982<code>CryptDecrypt<\/code>\u3001\u7b49\uff09\u3002<code>CryptHashData<\/code><code>CryptDeriveKey<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/vanmieghem.io\/assets\/images\/2022-04-18-blueprint-for-evading-edr-in-2022\/AES_import.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>dumpbin \/imports \u7684\u8f93\u51fa\uff0c\u8fd9\u662f\u4e8c\u8fdb\u5236\u6587\u4ef6\u4e2d\u4ec5\u4f7f\u7528 AES \u89e3\u5bc6\u51fd\u6570\u7684\u7b80\u5355\u8d60\u54c1\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"2-reducing-entropy\">2. \u51cf\u5c11\u71b5<\/h3>\n\n\n\n<p>\u8bb8\u591a AV\/EDR \u89e3\u51b3\u65b9\u6848\u5728\u8bc4\u4f30\u672a\u77e5\u4e8c\u8fdb\u5236\u65f6\u8003\u8651\u4e8c\u8fdb\u5236\u71b5\u3002\u7531\u4e8e\u6211\u4eec\u6b63\u5728\u52a0\u5bc6 shellcode\uff0c\u6211\u4eec\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u7684\u71b5\u76f8\u5f53\u9ad8\uff0c\u8fd9\u6e05\u695a\u5730\u8868\u660e\u4e8c\u8fdb\u5236\u6587\u4ef6\u4e2d\u7684\u4ee3\u7801\u90e8\u5206\u88ab\u6df7\u6dc6\u4e86\u3002<\/p>\n\n\n\n<p>\u6709\u51e0\u79cd\u65b9\u6cd5\u53ef\u4ee5\u51cf\u5c11\u4e8c\u8fdb\u5236\u7684\u71b5\uff0c\u4e24\u79cd\u7b80\u5355\u7684\u65b9\u6cd5\u662f\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u5c06\u4f4e\u71b5\u8d44\u6e90\u6dfb\u52a0\u5230\u4e8c\u8fdb\u5236\u6587\u4ef6\u4e2d\uff0c\u4f8b\u5982\uff08\u4f4e\u71b5\uff09\u56fe\u50cf\u3002<\/li><li>\u6dfb\u52a0\u5b57\u7b26\u4e32\uff0c\u6bd4\u5982\u82f1\u6587\u5b57\u5178\u6216\u8005\u4e00\u4e9b<code>\"strings C:\\Program Files\\Google\\Chrome\\Application\\100.0.4896.88\\chrome.dll\"<\/code>\u8f93\u51fa\u3002<\/li><\/ol>\n\n\n\n<p>\u4e00\u4e2a\u66f4\u4f18\u96c5\u7684\u89e3\u51b3\u65b9\u6848\u662f\u8bbe\u8ba1\u548c\u5b9e\u73b0\u4e00\u79cd\u7b97\u6cd5\uff0c\u5c06 shellcode \u6df7\u6dc6\uff08\u7f16\u7801\/\u52a0\u5bc6\uff09\u6210\u82f1\u6587\u5355\u8bcd\uff08\u4f4e\u71b5\uff09\u3002\u90a3\u5c06\u7528\u4e00\u5757\u77f3\u5934\u6740\u6b7b\u4e24\u53ea\u9e1f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"3-escaping-the-local-av-sandbox\">3. \u9003\u79bb\uff08\u672c\u5730\uff09AV \u6c99\u7bb1<\/h3>\n\n\n\n<p>\u8bb8\u591a EDR \u89e3\u51b3\u65b9\u6848\u5c06\u5728\u672c\u5730\u6c99\u7bb1\u4e2d\u8fd0\u884c\u4e8c\u8fdb\u5236\u6587\u4ef6\u51e0\u79d2\u949f\u4ee5\u68c0\u67e5\u5176\u884c\u4e3a\u3002\u4e3a\u907f\u514d\u5f71\u54cd\u6700\u7ec8\u7528\u6237\u4f53\u9a8c\uff0c\u4ed6\u4eec\u65e0\u6cd5\u627f\u53d7\u8d85\u8fc7\u51e0\u79d2\u949f\u7684\u68c0\u67e5\u4e8c\u8fdb\u5236\u6587\u4ef6\uff08\u6211\u66fe\u89c1\u8fc7 Avast \u8fc7\u53bb\u6700\u591a\u9700\u8981 30 \u79d2\uff0c\u4f46\u90a3\u662f\u4e2a\u4f8b\u5916\uff09\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5ef6\u8fdf\u6267\u884c\u6211\u4eec\u7684 shellcode \u6765\u6ee5\u7528\u8fd9\u4e2a\u9650\u5236\u3002\u7b80\u5355\u5730\u8ba1\u7b97\u4e00\u4e2a\u5927\u7d20\u6570\u662f\u6211\u4e2a\u4eba\u7684\u6700\u7231\u3002\u60a8\u53ef\u4ee5\u66f4\u8fdb\u4e00\u6b65\uff0c\u786e\u5b9a\u6027\u5730\u8ba1\u7b97\u4e00\u4e2a\u8d28\u6570\uff0c\u5e76\u5c06\u8be5\u6570\u5b57\u7528\u4f5c\u52a0\u5bc6 shellcode \u7684\uff08\u4e00\u90e8\u5206\uff09\u5bc6\u94a5\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"4-import-table-obfuscation\">4.\u5bfc\u5165\u8868\u6df7\u6dc6<\/h3>\n\n\n\n<p>\u60a8\u5e0c\u671b\u907f\u514d\u53ef\u7591\u7684 Windows API (WINAPI) \u51fa\u73b0\u5728\u6211\u4eec\u7684 IAT\uff08<a href=\"https:\/\/0xrick.github.io\/win-internals\/pe6\/\">\u5bfc\u5165\u5730\u5740\u8868<\/a>\uff09\u4e2d\u3002\u6b64\u8868\u5305\u542b\u60a8\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u4ece\u5176\u4ed6\u7cfb\u7edf\u5e93\u5bfc\u5165\u7684\u6240\u6709 Windows API \u7684\u6982\u8ff0\u3002\u53ef\u4ee5\u5728<a href=\"https:\/\/github.com\/Mr-Un1k0d3r\/EDRs\">\u6b64\u5904<\/a>\u627e\u5230\u53ef\u7591 API \u5217\u8868\uff08\u56e0\u6b64\u901a\u5e38\u7531 EDR \u89e3\u51b3\u65b9\u6848\u68c0\u67e5\uff09 \u3002\u901a\u5e38\uff0c\u8fd9\u4e9b\u662f<code>VirtualAlloc<\/code>,&nbsp;<code>VirtualProtect<\/code>,&nbsp;<code>WriteProcessMemory<\/code>,<code>CreateRemoteThread<\/code>\u7b49<code>SetThreadContext<\/code>\u3002\u8fd0\u884c<code>dumpbin \/exports &lt;binary.exe&gt;<\/code>\u5c06\u5217\u51fa\u6240\u6709\u5bfc\u5165\u3002\u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u5c06\u4f7f\u7528\u76f4\u63a5\u7cfb\u7edf\u8c03\u7528\u6765\u7ed5\u8fc7\u53ef\u7591 WINAPI \u8c03\u7528\u7684\u4e24\u4e2a EDR \u6302\u94a9\uff08\u8bf7\u53c2\u9605\u7b2c 7 \u8282\uff09\uff0c\u4f46\u5bf9\u4e8e\u4e0d\u592a\u53ef\u7591\u7684 API \u8c03\u7528\uff0c\u6b64\u65b9\u6cd5\u5de5\u4f5c\u5f97\u5f88\u597d\u3002<\/p>\n\n\n\n<p>\u6211\u4eec\u6dfb\u52a0 WINAPI \u8c03\u7528\u7684\u51fd\u6570\u7b7e\u540d\uff0c\u83b7\u53d6 WINAPI \u7684\u5730\u5740\uff0c<code>ntdll.dll<\/code>\u7136\u540e\u521b\u5efa\u4e00\u4e2a\u6307\u5411\u8be5\u5730\u5740\u7684\u51fd\u6570\u6307\u9488\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>typedef<\/strong> <strong>BOOL<\/strong> (WINAPI <strong>*<\/strong> pVirtualProtect)(LPVOID lpAddress, SIZE_T dwSize, DWORD  flNewProtect, PDWORD lpflOldProtect);\npVirtualProtect fnVirtualProtect;\n\n<strong>unsigned<\/strong> <strong>char<\/strong> sVirtualProtect&#91;] <strong>=<\/strong> { 'V','i','r','t','u','a','l','P','r','o','t','e','c','t', 0x0 };\n<strong>unsigned<\/strong> <strong>char<\/strong> sKernel32&#91;] <strong>=<\/strong> { 'k','e','r','n','e','l','3','2','.','d','l','l', 0x0 };\n\nfnVirtualProtect <strong>=<\/strong> (pVirtualProtect) GetProcAddress(GetModuleHandle((LPCSTR) sKernel32), (LPCSTR)sVirtualProtect);\n<em>\/\/ call VirtualProtect<\/em>\nfnVirtualProtect(address, dwSize, PAGE_READWRITE, <strong>&amp;<\/strong>oldProt);\n<\/code><\/pre>\n\n\n\n<p>\u4f7f\u7528\u5b57\u7b26\u6570\u7ec4\u6df7\u6dc6\u5b57\u7b26\u4e32\u4f1a\u5c06\u5b57\u7b26\u4e32\u5206\u5272\u6210\u66f4\u5c0f\u7684\u90e8\u5206\uff0c\u4f7f\u5b83\u4eec\u66f4\u96be\u4ee5\u4ece\u4e8c\u8fdb\u5236\u6587\u4ef6\u4e2d\u63d0\u53d6\u3002<\/p>\n\n\n\n<p>\u8be5\u8c03\u7528\u4ecd\u5c06\u9488\u5bf9<code>ntdll.dll<\/code>WINAPI\uff0c\u5e76\u4e14\u4e0d\u4f1a\u7ed5\u8fc7 WINAPI \u4e2d\u7684\u4efb\u4f55\u6302\u94a9<code>ntdll.dll<\/code>\uff0c\u4f46\u7eaf\u7cb9\u662f\u4e3a\u4e86\u4ece IAT \u4e2d\u5220\u9664\u53ef\u7591\u51fd\u6570\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"5-disabling-event-tracing-for-windows-etw\">5. \u7981\u7528 Windows \u4e8b\u4ef6\u8ddf\u8e2a (ETW)<\/h3>\n\n\n\n<p>\u8bb8\u591a EDR \u89e3\u51b3\u65b9\u6848\u5e7f\u6cdb\u5229\u7528 Windows \u4e8b\u4ef6\u8ddf\u8e2a (ETW)\uff0c\u7279\u522b\u662f Microsoft Defender for Endpoint\uff08\u4ee5\u524d\u79f0\u4e3a Microsoft ATP\uff09\u3002ETW \u5141\u8bb8\u5bf9\u8fdb\u7a0b\u7684\u529f\u80fd\u548c WINAPI \u8c03\u7528\u8fdb\u884c\u5e7f\u6cdb\u7684\u68c0\u6d4b\u548c\u8ddf\u8e2a\u3002ETW \u5728\u5185\u6838\u4e2d\u6709\u7ec4\u4ef6\uff0c\u4e3b\u8981\u7528\u4e8e\u4e3a\u7cfb\u7edf\u8c03\u7528\u548c\u5176\u4ed6\u5185\u6838\u64cd\u4f5c\u6ce8\u518c\u56de\u8c03\uff0c\u4f46\u4e5f\u5305\u542b\u4e00\u4e2a\u7528\u6237\u6001\u7ec4\u4ef6\uff0c\u5b83\u662f<code>ntdll.dll<\/code>\uff08<a href=\"https:\/\/binarly.io\/posts\/Design_issues_of_modern_EDRs_bypassing_ETW-based_solutions\/index.html\">ETW \u6df1\u5ea6\u6f5c\u6c34\u548c\u653b\u51fb\u5411\u91cf<\/a>\uff09\u7684\u4e00\u90e8\u5206\u3002\u56e0\u4e3a<code>ntdll.dll<\/code>\u662f\u4e00\u4e2a DLL \u52a0\u8f7d\u5230\u6211\u4eec\u7684\u4e8c\u8fdb\u5236\u8fdb\u7a0b\u4e2d\uff0c\u6240\u4ee5\u6211\u4eec\u53ef\u4ee5\u5b8c\u5168\u63a7\u5236\u8fd9\u4e2a DLL \u548c ETW \u529f\u80fd\u3002<a href=\"https:\/\/www.mdsec.co.uk\/2020\/03\/hiding-your-net-etw\/\">\u7528\u6237\u7a7a\u95f4\u4e2d\u7684<\/a>ETW\u6709<a href=\"https:\/\/whiteknightlabs.com\/2021\/12\/11\/bypassing-etw-for-fun-and-profit\/\">\u5f88\u591a<\/a><a href=\"https:\/\/modexp.wordpress.com\/2020\/04\/08\/red-teams-etw\/\">\u4e0d\u540c<\/a>\u7684\u7ed5\u8fc7\u65b9\u5f0f\uff0c\u4f46\u6700\u5e38\u89c1\u7684\u662f\u4fee\u8865\u51fd\u6570<a href=\"https:\/\/www.mdsec.co.uk\/2020\/03\/hiding-your-net-etw\/\"><\/a>&nbsp;<a href=\"https:\/\/modexp.wordpress.com\/2020\/04\/08\/red-teams-etw\/\"><\/a><code>EtwEventWrite<\/code>\u8c03\u7528\u5b83\u6765\u5199\u5165\/\u8bb0\u5f55 ETW \u4e8b\u4ef6\u3002\u6211\u4eec\u5728 \u4e2d\u83b7\u53d6\u5b83\u7684\u5730\u5740<code>ntdll.dll<\/code>\uff0c\u5e76\u5c06\u5b83\u7684\u7b2c\u4e00\u6761\u6307\u4ee4\u66ff\u6362\u4e3a\u8fd4\u56de 0 (&nbsp;<code>SUCCESS<\/code>) \u7684\u6307\u4ee4\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>void<\/strong> <strong>disableETW<\/strong>(<strong>void<\/strong>) {\n\t<em>\/\/ return 0<\/em>\n\t<strong>unsigned<\/strong> <strong>char<\/strong> patch&#91;] <strong>=<\/strong> { 0x48, 0x33, 0xc0, 0xc3};     <em>\/\/ xor rax, rax; ret<\/em>\n\t\n\tULONG oldprotect <strong>=<\/strong> 0;\n\t<strong>size_t<\/strong> size <strong>=<\/strong> <strong>sizeof<\/strong>(patch);\n\t\n\tHANDLE hCurrentProc <strong>=<\/strong> GetCurrentProcess();\n\t\n\t<strong>unsigned<\/strong> <strong>char<\/strong> sEtwEventWrite&#91;] <strong>=<\/strong> { 'E','t','w','E','v','e','n','t','W','r','i','t','e', 0x0 };\n\t\n\t<strong>void<\/strong> <strong>*<\/strong>pEventWrite <strong>=<\/strong> GetProcAddress(GetModuleHandle((LPCSTR) sNtdll), (LPCSTR) sEtwEventWrite);\n\t\n\tNtProtectVirtualMemory(hCurrentProc, <strong>&amp;<\/strong>pEventWrite, (PSIZE_T) <strong>&amp;<\/strong>size, PAGE_READWRITE, <strong>&amp;<\/strong>oldprotect);\n\t\n\tmemcpy(pEventWrite, patch, size <strong>\/<\/strong> <strong>sizeof<\/strong>(patch&#91;0]));\n\t\n\tNtProtectVirtualMemory(hCurrentProc, <strong>&amp;<\/strong>pEventWrite, (PSIZE_T) <strong>&amp;<\/strong>size, oldprotect, <strong>&amp;<\/strong>oldprotect);\n\tFlushInstructionCache(hCurrentProc, pEventWrite, size);\n\t\n}\n<\/code><\/pre>\n\n\n\n<p>\u6211\u53d1\u73b0\u4e0a\u8ff0\u65b9\u6cd5\u4ecd\u7136\u9002\u7528\u4e8e\u4e24\u4e2a\u7ecf\u8fc7\u6d4b\u8bd5\u7684 EDR\uff0c\u4f46\u8fd9\u662f\u4e00\u4e2a\u5608\u6742\u7684 ETW \u8865\u4e01\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"6-evading-common-malicious-api-call-patterns\">6. \u89c4\u907f\u5e38\u89c1\u7684\u6076\u610f API \u8c03\u7528\u6a21\u5f0f<\/h3>\n\n\n\n<p>\u5927\u591a\u6570\u884c\u4e3a\u68c0\u6d4b\u6700\u7ec8\u90fd\u662f\u57fa\u4e8e\u68c0\u6d4b\u6076\u610f\u6a21\u5f0f\u3002\u5176\u4e2d\u4e00\u79cd\u6a21\u5f0f\u662f\u7279\u5b9a WINAPI \u8c03\u7528\u5728\u77ed\u65f6\u95f4\u5185\u7684\u987a\u5e8f\u3002\u7b2c 4 \u8282\u4e2d\u7b80\u8981\u63d0\u5230\u7684\u53ef\u7591 WINAPI \u8c03\u7528\u901a\u5e38\u7528\u4e8e\u6267\u884c shellcode\uff0c\u56e0\u6b64\u53d7\u5230\u4e25\u683c\u76d1\u63a7\u3002\u7136\u800c\uff0c\u8fd9\u4e9b\u8c03\u7528\u4e5f\u7528\u4e8e\u826f\u6027\u6d3b\u52a8\uff08<code>VirtualAlloc<\/code>,&nbsp;<code>WriteProcess<\/code>,<code>CreateThread<\/code>\u6a21\u5f0f\u4e0e\u5185\u5b58\u5206\u914d\u548c\u5199\u5165\u7ea6 250KB \u7684 shellcode \u76f8\u7ed3\u5408\uff09\uff0c\u56e0\u6b64 EDR \u89e3\u51b3\u65b9\u6848\u7684\u6311\u6218\u662f\u533a\u5206\u826f\u6027\u548c\u6076\u610f\u8c03\u7528\u3002Filip Olszak \u5199<a href=\"https:\/\/blog.redbluepurple.io\/offensive-research\/bypassing-injection-detection\">\u4e86\u4e00\u7bc7\u5f88\u68d2\u7684\u535a\u5ba2\u6587\u7ae0<\/a>\uff0c\u5229\u7528\u5ef6\u8fdf\u548c\u8f83\u5c0f\u7684\u5206\u914d\u548c\u5199\u5165\u5185\u5b58\u5757\u6765\u878d\u5165\u826f\u6027 WINAPI \u8c03\u7528\u884c\u4e3a\u3002\u7b80\u800c\u8a00\u4e4b\uff0c\u4ed6\u7684\u65b9\u6cd5\u8c03\u6574\u4e86\u5178\u578b shellcode \u52a0\u8f7d\u5668\u7684\u4ee5\u4e0b\u884c\u4e3a\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u4e0e\u5176\u5206\u914d\u4e00\u5927\u5757\u5185\u5b58\u5e76\u76f4\u63a5\u5c06 ~250KB \u690d\u5165 shellcode \u5199\u5165\u8be5\u5185\u5b58\uff0c\u4e0d\u5982\u5206\u914d\u5c0f\u7684\u8fde\u7eed\u5757\uff0c\u4f8b\u5982 &lt;64KB \u5185\u5b58\u5e76\u5c06\u5b83\u4eec\u6807\u8bb0\u4e3a<code>NO_ACCESS<\/code>.&nbsp;\u7136\u540e\u4ee5\u7c7b\u4f3c\u7684\u5757\u5927\u5c0f\u5c06 shellcode \u5199\u5165\u5206\u914d\u7684\u5185\u5b58\u9875\u9762\u3002<\/li><li>\u5728\u4e0a\u8ff0\u6bcf\u4e2a\u64cd\u4f5c\u4e4b\u95f4\u5f15\u5165\u5ef6\u8fdf\u3002\u8fd9\u5c06\u589e\u52a0\u6267\u884c shellcode \u6240\u9700\u7684\u65f6\u95f4\uff0c\u4f46\u4e5f\u4f1a\u4f7f\u8fde\u7eed\u6267\u884c\u6a21\u5f0f\u53d8\u5f97\u4e0d\u90a3\u4e48\u7a81\u51fa\u3002<\/li><\/ol>\n\n\n\n<p>\u8fd9\u79cd\u6280\u672f\u7684\u4e00\u4e2a\u95ee\u9898\u662f\u786e\u4fdd\u60a8\u627e\u5230\u4e00\u4e2a\u53ef\u4ee5\u5728\u8fde\u7eed\u5185\u5b58\u9875\u9762\u4e2d\u5bb9\u7eb3\u6574\u4e2a shellcode \u7684\u5185\u5b58\u4f4d\u7f6e\u3002Filip \u7684<a href=\"https:\/\/github.com\/xuanxuan0\/DripLoader\">DripLoader<\/a>\u5b9e\u73b0\u4e86\u8fd9\u4e2a\u6982\u5ff5\u3002<\/p>\n\n\n\n<p>\u6211\u6784\u5efa\u7684\u52a0\u8f7d\u5668\u4e0d\u4f1a\u5c06 shellcode \u6ce8\u5165\u53e6\u4e00\u4e2a\u8fdb\u7a0b\uff0c\u800c\u662f\u4f7f\u7528<code>NtCreateThread<\/code>.&nbsp;\u672a\u77e5\u8fdb\u7a0b\uff08\u6211\u4eec\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u5b9e\u9645\u4e0a\u6d41\u884c\u7387\u5f88\u4f4e\uff09\u8fdb\u5165\u5176\u4ed6\u8fdb\u7a0b\uff08\u901a\u5e38\u662f Windows \u539f\u751f\u8fdb\u7a0b\uff09\u662f\u7a81\u51fa\u7684\u53ef\u7591\u6d3b\u52a8\uff08\u63a8\u8350\u9605\u8bfb<a href=\"https:\/\/www.cobaltstrike.com\/blog\/cobalt-strike-4-5-fork-run-youre-history\/\">\u201cFork&amp;Run \u2013 \u4f60\u662f\u5386\u53f2\u201d<\/a>\uff09\u3002\u5f53\u6211\u4eec\u5728\u52a0\u8f7d\u5668\u8fdb\u7a0b\u7a7a\u95f4\u7684\u7ebf\u7a0b\u4e2d\u8fd0\u884c shellcode \u65f6\uff0c\u66f4\u5bb9\u6613\u6df7\u5165\u8fdb\u7a0b\u4e2d\u826f\u6027\u7ebf\u7a0b\u6267\u884c\u548c\u5185\u5b58\u64cd\u4f5c\u7684\u566a\u97f3\u3002\u7136\u800c\uff0c\u4e0d\u5229\u7684\u4e00\u9762\u662f\uff0c\u4efb\u4f55\u5d29\u6e83\u7684\u5f00\u53d1\u540e\u6a21\u5757\u4e5f\u4f1a\u5bfc\u81f4\u52a0\u8f7d\u7a0b\u5e8f\u7684\u8fdb\u7a0b\u5d29\u6e83\uff0c\u4ece\u800c\u5bfc\u81f4\u690d\u5165\u7a0b\u5e8f\u5d29\u6e83\u3002\u6301\u4e45\u6027\u6280\u672f\u4ee5\u53ca\u8fd0\u884c\u7a33\u5b9a\u53ef\u9760\u7684<a href=\"https:\/\/hstechdocs.helpsystems.com\/manuals\/cobaltstrike\/current\/userguide\/content\/topics\/beacon-object-files_main.htm\">BOF<\/a>\u53ef\u4ee5\u5e2e\u52a9\u514b\u670d\u8fd9\u4e00\u7f3a\u70b9\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"7-direct-system-calls-and-evading-mark-of-the-syscall\">7. \u76f4\u63a5\u7cfb\u7edf\u8c03\u7528\u548c\u56de\u907f\u201c\u7cfb\u7edf\u8c03\u7528\u6807\u8bb0\u201d<\/h3>\n\n\n\n<p><code>ntdll.dll<\/code>\u52a0\u8f7d\u7a0b\u5e8f\u5229\u7528\u76f4\u63a5\u7cfb\u7edf\u8c03\u7528\u6765\u7ed5\u8fc7EDR\u653e\u5165\u7684\u4efb\u4f55\u6302\u94a9\u3002\u6211\u60f3\u907f\u514d\u8fc7\u591a\u8be6\u7ec6\u4ecb\u7ecd\u76f4\u63a5\u7cfb\u7edf\u8c03\u7528\u7684\u5de5\u4f5c\u539f\u7406\uff0c\u56e0\u4e3a\u8fd9\u4e0d\u662f\u8fd9\u7bc7\u6587\u7ae0\u7684\u76ee\u7684\uff0c\u5e76\u4e14\u5df2\u7ecf\u5199\u4e86\u5f88\u591a\u5173\u4e8e\u5b83\u7684\u7cbe\u5f69\u6587\u7ae0\uff08\u4f8b\u5982<a href=\"https:\/\/outflank.nl\/blog\/2019\/06\/19\/red-team-tactics-combining-direct-system-calls-and-srdi-to-bypass-av-edr\/\">Outflank<\/a>\uff09\u3002<\/p>\n\n\n\n<p>\u7b80\u800c\u8a00\u4e4b\uff0c\u76f4\u63a5\u7cfb\u7edf\u8c03\u7528\u662f\u76f4\u63a5\u5bf9\u5185\u6838\u7cfb\u7edf\u8c03\u7528\u7b49\u6548\u7684 WINAPI \u8c03\u7528\u3002\u6211\u4eec\u4e0d\u8c03\u7528\u5b83\uff0c\u800c\u662f\u8c03\u7528\u5b83\u5728 Windows \u5185\u6838\u4e2d\u5b9a\u4e49\u7684<code>ntdll.dll<\/code>&nbsp;<code>VirtualAlloc<\/code>\u5185\u6838\u7b49\u6548\u9879\u3002<code>NtAlocateVirtualMemory<\/code>\u8fd9\u5f88\u68d2\uff0c\u56e0\u4e3a\u6211\u4eec\u7ed5\u8fc7\u4e86\u4efb\u4f55\u7528\u4e8e\u76d1\u63a7<code>VirtualAlloc<\/code>\u5bf9<code>ntdll.dll<\/code>.<\/p>\n\n\n\n<p>\u4e3a\u4e86\u76f4\u63a5\u8c03\u7528\u7cfb\u7edf\u8c03\u7528\uff0c\u6211\u4eec\u83b7\u53d6\u8981\u8c03\u7528\u7684\u7cfb\u7edf\u8c03\u7528\u7684\u7cfb\u7edf\u8c03\u7528 ID&nbsp;<code>ntdll.dll<\/code>\uff0c\u4f7f\u7528\u51fd\u6570\u7b7e\u540d\u5c06\u51fd\u6570\u53c2\u6570\u7684\u6b63\u786e\u987a\u5e8f\u548c\u7c7b\u578b\u63a8\u9001\u5230\u5806\u6808\uff0c\u7136\u540e\u8c03\u7528<code>syscall &lt;id&gt;<\/code>\u6307\u4ee4\u3002\u6709\u51e0\u4e2a\u5de5\u5177\u53ef\u4ee5\u4e3a\u6211\u4eec\u5b89\u6392\u8fd9\u4e00\u5207\uff0c<a href=\"https:\/\/github.com\/jthuraisamy\/SysWhispers2\">SysWhispers2<\/a>\u548c<a href=\"https:\/\/github.com\/klezVirus\/SysWhispers3\">SysWhisper3<\/a>\u5c31\u662f\u4e24\u4e2a\u5f88\u597d\u7684\u4f8b\u5b50\u3002\u4ece\u89c4\u907f\u7684\u89d2\u5ea6\u6765\u770b\uff0c\u8c03\u7528\u76f4\u63a5\u7cfb\u7edf\u8c03\u7528\u6709\u4e24\u4e2a\u95ee\u9898\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u60a8\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u6700\u7ec8\u5f97\u5230\u4e86<code>syscall<\/code>\u6613\u4e8e\u9759\u6001\u68c0\u6d4b\u7684\u6307\u4ee4\uff08\u4e5f\u79f0\u4e3a\u201c\u7cfb\u7edf\u8c03\u7528\u7684\u6807\u8bb0\u201d\uff0c\u66f4\u591a\u5185\u5bb9\u8bf7\u53c2\u89c1\u201c&nbsp;<a href=\"https:\/\/klezvirus.github.io\/RedTeaming\/AV_Evasion\/NoSysWhisper\/\">SysWhispers \u5df2\u6b7b\uff0cSysWhispers \u4e07\u5c81\uff01<\/a>&nbsp;\u201d\uff09\u3002<\/li><li>\u4e0e\u901a\u8fc7\u5176<code>ntdll.dll<\/code>\u7b49\u6548\u8c03\u7528\u7684\u7cfb\u7edf\u8c03\u7528\u7684\u826f\u6027\u4f7f\u7528\u4e0d\u540c\uff0c\u7cfb\u7edf\u8c03\u7528\u7684\u8fd4\u56de\u5730\u5740\u4e0d\u6307\u5411<code>ntdll.dll<\/code>.&nbsp;\u76f8\u53cd\uff0c\u5b83\u6307\u5411\u6211\u4eec\u8c03\u7528\u7cfb\u7edf\u8c03\u7528\u7684\u4ee3\u7801\uff0c\u5b83\u9a7b\u7559\u5728<code>ntdll.dll<\/code>.&nbsp;\u8fd9\u662f\u672a\u901a\u8fc7\u8c03\u7528\u7684\u7cfb\u7edf\u8c03\u7528\u7684\u6307\u6807<code>ntdll.dll<\/code>\uff0c\u8fd9\u662f\u53ef\u7591\u7684\u3002<\/li><\/ol>\n\n\n\n<p>\u4e3a\u4e86\u514b\u670d\u8fd9\u4e9b\u95ee\u9898\uff0c\u6211\u4eec\u53ef\u4ee5\u505a\u5230\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u5b9e\u65bd\u730e\u86cb\u673a\u5236\u3002\u7528\uff08\u4e00\u4e9b\u968f\u673a\u7684\u552f\u4e00\u53ef\u8bc6\u522b\u6a21\u5f0f\uff09\u66ff\u6362<code>syscall<\/code>\u6307\u4ee4\uff0c<code>egg<\/code>\u5e76\u5728\u8fd0\u884c\u65f6\u5728\u5185\u5b58\u4e2d\u641c\u7d22\u5b83\u5e76\u7528\u4f7f\u7528\u548cWINAPI \u8c03\u7528\u7684\u6307\u4ee4<code>egg<\/code>\u66ff\u6362\u5b83\u3002\u4e4b\u540e\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u6b63\u5e38\u4f7f\u7528\u76f4\u63a5\u7cfb\u7edf\u8c03\u7528\u4e86\u3002\u8be5\u6280\u672f\u5df2\u7531<a href=\"https:\/\/klezvirus.github.io\/RedTeaming\/AV_Evasion\/NoSysWhisper\/\">klezVirus<\/a>\u5b9e\u65bd\u3002<code>syscall<\/code><code>ReadProcessMemory<\/code><code>WriteProcessMemory<\/code><a href=\"https:\/\/klezvirus.github.io\/RedTeaming\/AV_Evasion\/NoSysWhisper\/\"><\/a><\/li><li>\u6211\u4eec\u4e0d\u662f\u4ece\u6211\u4eec\u81ea\u5df1\u7684\u4ee3\u7801\u4e2d\u8c03\u7528\u6307\u4ee4\uff0c\u800c\u662f\u5728\u6211\u4eec\u51c6\u5907\u597d\u5806\u6808\u4ee5\u8c03\u7528\u7cfb\u7edf\u8c03\u7528\u540e<code>syscall<\/code>\u641c\u7d22<code>syscall<\/code>\u6307\u4ee4\u5e76\u8df3\u8f6c\u5230\u8be5\u5185\u5b58\u5730\u5740\u3002<code>ntdll.dll<\/code>\u8fd9\u5c06\u5bfc\u81f4 RIP \u4e2d\u7684\u8fd4\u56de\u5730\u5740\u6307\u5411<code>ntdll.dll<\/code>\u5185\u5b58\u533a\u57df\u3002<\/li><\/ol>\n\n\n\n<p>\u8fd9\u4e24\u79cd\u6280\u672f\u90fd\u662f<a href=\"https:\/\/github.com\/klezVirus\/SysWhispers3\">SysWhisper3<\/a>\u7684\u4e00\u90e8\u5206\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"8-removing-hooks-in-ntdlldll\">8. \u62c6\u9664\u6302\u94a9<code>ntdll.dll<\/code><\/h3>\n\n\n\n<p>\u53e6\u4e00\u4e2a\u9003\u907f EDR \u6302\u94a9\u7684\u597d\u65b9\u6cd5<code>ntdll.dll<\/code>\u662f<code>ntdll.dll<\/code>\u7528\u6765\u81ea<code>ntdll.dll<\/code>.&nbsp;<code>ntdll.dll<\/code>\u662f\u4efb\u4f55 Windows \u8fdb\u7a0b\u52a0\u8f7d\u7684\u7b2c\u4e00\u4e2a DLL\u3002EDR \u89e3\u51b3\u65b9\u6848\u786e\u4fdd\u5b83\u4eec\u7684 DLL \u5728\u4e0d\u4e45\u4e4b\u540e\u52a0\u8f7d\uff0c\u8fd9<code>ntdll.dll<\/code>\u5728\u6211\u4eec\u81ea\u5df1\u7684\u4ee3\u7801\u6267\u884c\u4e4b\u524d\u5c06\u6240\u6709\u94a9\u5b50\u653e\u7f6e\u5728\u52a0\u8f7d\u4e2d\u3002\u5982\u679c\u6211\u4eec\u7684\u4ee3\u7801\u4e4b\u540e\u5728\u5185\u5b58\u4e2d\u52a0\u8f7d\u4e00\u4e2a\u65b0\u526f\u672c<code>ntdll.dll<\/code>\uff0c\u8fd9\u4e9b EDR \u6302\u94a9\u5c06\u88ab\u8986\u76d6\u3002<a href=\"https:\/\/github.com\/hlldz\/RefleXXion\">RefleXXion\u662f\u4e00\u4e2a C++ \u5e93\uff0c\u5b83\u5b9e\u73b0\u4e86<\/a><a href=\"https:\/\/www.mdsec.co.uk\/2022\/01\/edr-parallel-asis-through-analysis\/\">MDSec<\/a>\u5bf9\u8be5\u6280\u672f\u6240\u505a\u7684\u7814\u7a76\u3002RelfeXXion \u4f7f\u7528\u76f4\u63a5\u7cfb\u7edf\u8c03\u7528<code>NtOpenSection<\/code>\u5e76<code>NtMapViewOfSection<\/code>\u83b7\u5f97\u4e00\u4e2a\u6e05\u7406\u7684<code>ntdll.dll<\/code>\u53e5\u67c4<code>\\KnownDlls\\ntdll.dll<\/code>\uff08\u5177\u6709\u5148\u524d\u52a0\u8f7d\u7684 DLL \u7684\u6ce8\u518c\u8868\u8def\u5f84\uff09\u3002\u7136\u540e\u5b83\u4f1a\u8986\u76d6\u5df2<code>.TEXT<\/code>\u52a0\u8f7d\u7684\u90e8\u5206<code>ntdll.dll<\/code>\uff0c\u8fd9\u4f1a\u6e05\u9664 EDR \u6302\u94a9\u3002<\/p>\n\n\n\n<p>\u6211\u5efa\u8bae\u4f7f\u7528\u8c03\u6574 RefleXXion \u5e93\u6765\u4f7f\u7528\u4e0e\u4e0a\u9762\u7b2c 7 \u8282\u4e2d\u63cf\u8ff0\u7684\u76f8\u540c\u7684\u6280\u5de7\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"9-spoofing-the-thread-call-stack\">9. \u6b3a\u9a97\u7ebf\u7a0b\u8c03\u7528\u6808<\/h3>\n\n\n\n<p>\u63a5\u4e0b\u6765\u7684\u4e24\u8282\u4ecb\u7ecd\u4e86\u4e24\u79cd\u6280\u672f\uff0c\u53ef\u4ee5\u89c4\u907f\u68c0\u6d4b\u200b\u200b\u5185\u5b58\u4e2d\u7684 shellcode\u3002\u7531\u4e8e\u690d\u5165\u7269\u7684\u4fe1\u6807\u884c\u4e3a\uff0c\u5927\u90e8\u5206\u65f6\u95f4\u690d\u5165\u7269\u90fd\u5904\u4e8e\u7761\u7720\u72b6\u6001\uff0c\u7b49\u5f85\u5176\u64cd\u4f5c\u5458\u7684\u4f20\u5165\u4efb\u52a1\u3002\u5728\u6b64\u671f\u95f4\uff0c\u690d\u5165\u7269\u5bb9\u6613\u53d7\u5230\u6765\u81ea EDR \u7684\u5185\u5b58\u626b\u63cf\u6280\u672f\u7684\u653b\u51fb\u3002\u672c\u6587\u4e2d\u63cf\u8ff0\u7684\u4e24\u79cd\u89c4\u907f\u65b9\u6cd5\u4e2d\u7684\u7b2c\u4e00\u79cd\u662f\u6b3a\u9a97\u7ebf\u7a0b\u8c03\u7528\u5806\u6808\u3002<\/p>\n\n\n\n<p>\u5f53\u690d\u5165\u7269\u5904\u4e8e\u4f11\u7720\u72b6\u6001\u65f6\uff0c\u5b83\u7684\u7ebf\u7a0b\u8fd4\u56de\u5730\u5740\u6307\u5411\u6211\u4eec\u9a7b\u7559\u5728\u5185\u5b58\u4e2d\u7684 shellcode\u3002\u901a\u8fc7\u68c0\u67e5\u53ef\u7591\u8fdb\u7a0b\u4e2d\u7ebf\u7a0b\u7684\u8fd4\u56de\u5730\u5740\uff0c\u53ef\u4ee5\u5f88\u5bb9\u6613\u5730\u8bc6\u522b\u51fa\u6211\u4eec\u7684\u690d\u5165 shellcode\u3002\u4e3a\u4e86\u907f\u514d\u8fd9\u79cd\u60c5\u51b5\uff0c\u60f3\u6253\u7834\u8fd4\u56de\u5730\u5740\u548cshellcode\u4e4b\u95f4\u7684\u8fd9\u79cd\u8054\u7cfb\u3002<code>Sleep()<\/code>\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u6302\u94a9\u51fd\u6570\u6765\u505a\u5230\u8fd9\u4e00\u70b9\u3002\u5f53\u8be5\u94a9\u5b50\u88ab\u8c03\u7528\u65f6\uff08\u901a\u8fc7\u690d\u5165\/\u4fe1\u6807shellcode\uff09\uff0c\u6211\u4eec\u7528\u8986\u76d6\u8fd4\u56de\u5730\u5740<code>0x0<\/code>\u5e76\u8c03\u7528\u539f\u59cb<code>Sleep()<\/code>\u51fd\u6570\u3002\u8fd4\u56de\u65f6<code>Sleep()<\/code>\uff0c\u6211\u4eec\u5c06\u539f\u59cb\u8fd4\u56de\u5730\u5740\u653e\u56de\u539f\u5904\uff0c\u4ee5\u4fbf\u7ebf\u7a0b\u8fd4\u56de\u6b63\u786e\u7684\u5730\u5740\u4ee5\u7ee7\u7eed\u6267\u884c\u3002<a href=\"https:\/\/twitter.com\/mariuszbit\">Mariusz Banach<\/a>\u5728\u4ed6\u7684<a href=\"https:\/\/github.com\/mgeeky\/ThreadStackSpoofer\">ThreadStackSpoofer\u4e2d\u5b9e\u73b0\u4e86\u8fd9\u79cd\u6280\u672f<\/a>\u9879\u76ee\u3002\u8fd9\u4e2a repo \u63d0\u4f9b\u4e86\u6709\u5173\u8be5\u6280\u672f\u7684\u66f4\u591a\u8be6\u7ec6\u4fe1\u606f\uff0c\u5e76\u6982\u8ff0\u4e86\u4e00\u4e9b\u6ce8\u610f\u4e8b\u9879\u3002<\/p>\n\n\n\n<p>\u6211\u4eec\u53ef\u4ee5\u5728\u4e0b\u9762\u7684\u4e24\u4e2a\u5c4f\u5e55\u622a\u56fe\u4e2d\u89c2\u5bdf\u5230\u6b3a\u9a97\u7ebf\u7a0b\u8c03\u7528\u5806\u6808\u7684\u7ed3\u679c\uff0c\u5176\u4e2d\u975e\u6b3a\u9a97\u8c03\u7528\u5806\u6808\u6307\u5411\u975e\u652f\u6301\u7684\u5185\u5b58\u4f4d\u7f6e\uff0c\u800c\u6b3a\u9a97\u7684\u7ebf\u7a0b\u8c03\u7528\u5806\u6808\u6307\u5411\u6211\u4eec\u6302\u94a9\u7684 Sleep(&nbsp;<code>MySleep<\/code>) \u51fd\u6570\u5e76\u201c\u5207\u65ad\u201d\u8c03\u7528\u5806\u6808\u7684\u5176\u4f59\u90e8\u5206\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/vanmieghem.io\/assets\/images\/2022-04-18-blueprint-for-evading-edr-in-2022\/thread-not-spoofed.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u9ed8\u8ba4\u4fe1\u6807\u7ebf\u7a0b\u8c03\u7528\u5806\u6808\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/vanmieghem.io\/assets\/images\/2022-04-18-blueprint-for-evading-edr-in-2022\/thread_spoofed.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u6b3a\u9a97\u4fe1\u6807\u7ebf\u7a0b\u8c03\u7528\u5806\u6808\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"10--in-memory-encryption-of-beacon\">10.\u4fe1\u6807\u5185\u5b58\u52a0\u5bc6<\/h3>\n\n\n\n<p>\u5185\u5b58\u68c0\u6d4b\u7684\u53e6\u4e00\u4e2a\u89c4\u907f\u65b9\u6cd5\u662f\u5728\u4f11\u7720\u65f6\u52a0\u5bc6\u690d\u5165\u7a0b\u5e8f\u7684\u53ef\u6267\u884c\u5185\u5b58\u533a\u57df\u3002\u4f7f\u7528\u4e0e\u4e0a\u4e00\u8282\u4e2d\u63cf\u8ff0\u7684\u76f8\u540c\u7684\u7761\u7720\u6302\u94a9\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u68c0\u67e5\u8c03\u7528\u8005\u5730\u5740\uff08\u8c03\u7528\u7684\u4fe1\u6807\u4ee3\u7801<code>Sleep()<\/code>\u4ee5\u53ca\u6211\u4eec\u7684<code>MySleep()<\/code>\u6302\u94a9\uff09\u6765\u83b7\u53d6 shellcode \u5185\u5b58\u6bb5\u3002\u5982\u679c\u8c03\u7528\u8005\u5185\u5b58\u533a\u57df\u7684\u5927\u5c0f<code>MEM_PRIVATE<\/code>\u4e0e<code>EXECUTABLE<\/code>\u6211\u4eec\u7684 shellcode \u5927\u81f4\u76f8\u540c\uff0c\u90a3\u4e48\u5185\u5b58\u6bb5\u5c06\u4f7f\u7528 XOR \u51fd\u6570\u52a0\u5bc6<code>Sleep()<\/code>\u5e76\u88ab\u8c03\u7528\u3002\u7136\u540e<code>Sleep()<\/code>\u8fd4\u56de\uff0c\u5b83\u89e3\u5bc6\u5185\u5b58\u6bb5\u5e76\u8fd4\u56de\u7ed9\u5b83\u3002<\/p>\n\n\n\n<p>\u53e6\u4e00\u79cd\u6280\u672f\u662f\u6ce8\u518c\u4e00\u4e2a\u5411\u91cf\u5f02\u5e38\u5904\u7406\u7a0b\u5e8f (VEH)\uff0c\u5b83\u5904\u7406<code>NO_ACCESS<\/code>\u8fdd\u89c4\u5f02\u5e38\u3001\u89e3\u5bc6\u5185\u5b58\u6bb5\u5e76\u5c06\u6743\u9650\u66f4\u6539\u4e3a<code>RX<\/code>.&nbsp;\u7136\u540e\u5c31\u5728\u4f11\u7720\u4e4b\u524d\uff0c\u5c06\u5185\u5b58\u6bb5\u6807\u8bb0\u4e3a<code>NO_ACCESS<\/code>\uff0c\u8fd9\u6837\u5728<code>Sleep()<\/code>\u8fd4\u56de\u65f6\u4f1a\u629b\u51fa\u5185\u5b58\u8bbf\u95ee\u51b2\u7a81\u5f02\u5e38\u3002\u56e0\u4e3a\u6211\u4eec\u6ce8\u518c\u4e86\u4e00\u4e2a VEH\uff0c\u6240\u4ee5\u5f02\u5e38\u662f\u5728\u8be5\u7ebf\u7a0b\u4e0a\u4e0b\u6587\u4e2d\u5904\u7406\u7684\uff0c\u5e76\u4e14\u53ef\u4ee5\u5728\u5f15\u53d1\u5f02\u5e38\u7684\u5b8c\u5168\u76f8\u540c\u7684\u4f4d\u7f6e\u6062\u590d\u3002VEH \u53ef\u4ee5\u7b80\u5355\u5730\u89e3\u5bc6\u5e76\u5c06\u6743\u9650\u66f4\u6539\u56de RX\uff0c\u5e76\u4e14\u690d\u5165\u7a0b\u5e8f\u53ef\u4ee5\u7ee7\u7eed\u6267\u884c\u3002\u8fd9\u79cd\u6280\u672f\u53ef\u4ee5\u9632\u6b62<code>Sleep()<\/code>\u690d\u5165\u7269\u5728\u7761\u7720\u65f6\u51fa\u73b0\u53ef\u68c0\u6d4b\u7684\u94a9\u5b50\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/twitter.com\/mariuszbit\">Mariusz Banach<\/a>\u4e5f\u5728<a href=\"https:\/\/github.com\/mgeeky\/ShellcodeFluctuation\">ShellcodeFluctuation<\/a>\u4e2d\u5b9e\u73b0\u4e86\u8fd9\u79cd\u6280\u672f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"11-a-custom-reflective-loader\">11.\u81ea\u5b9a\u4e49\u53cd\u5c04\u52a0\u8f7d\u5668<\/h3>\n\n\n\n<p>\u6211\u4eec\u5728\u8fd9\u4e2a\u52a0\u8f7d\u5668\u4e2d\u6267\u884c\u7684\u4fe1\u6807 shellcode \u6700\u7ec8\u662f\u4e00\u4e2a\u9700\u8981\u5728\u5185\u5b58\u4e2d\u6267\u884c\u7684 DLL\u3002\u8bb8\u591a C2 \u6846\u67b6\u5229\u7528 Stephen Fewer \u7684<a href=\"https:\/\/github.com\/stephenfewer\/ReflectiveDLLInjection\">ReflectiveLoader<\/a>\u3002\u5173\u4e8e\u53cd\u5c04 DLL \u52a0\u8f7d\u5668\u7684\u5de5\u4f5c\u539f\u7406\u6709\u5f88\u591a\u4e66\u9762\u89e3\u91ca\uff0cStephen Fewer \u7684\u4ee3\u7801\u4e5f\u6709\u5f88\u597d\u7684\u6587\u6863\u8bb0\u5f55\uff0c\u4f46\u7b80\u800c\u8a00\u4e4b\uff0c\u53cd\u5c04\u52a0\u8f7d\u5668\u6267\u884c\u4ee5\u4e0b\u64cd\u4f5c\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><code>kernel32.dll<\/code>\u5c06\u5730\u5740\u89e3\u6790\u4e3a\u52a0\u8f7d DLL \u6240\u9700\u7684\u5fc5\u8981WINAPI\uff08\u4f8b\u5982<code>VirtualAlloc<\/code>\uff0c<code>LoadLibraryA<\/code>\u7b49\uff09<\/li><li>\u5c06 DLL \u53ca\u5176\u90e8\u5206\u5199\u5165\u5185\u5b58<\/li><li>\u5efa\u7acb DLL \u5bfc\u5165\u8868\uff0c\u4ee5\u4fbf DLL \u53ef\u4ee5\u8c03\u7528<code>ntdll.dll<\/code>\u548c<code>kernel32.dll<\/code>WINAPI<\/li><li>\u52a0\u8f7d\u4efb\u4f55\u5176\u4ed6\u5e93\u5e76\u89e3\u6790\u5b83\u4eec\u5404\u81ea\u7684\u5bfc\u5165\u51fd\u6570\u5730\u5740<\/li><li>\u8c03\u7528 DLL \u5165\u53e3\u70b9<\/li><\/ol>\n\n\n\n<p>Cobalt Strike \u589e\u52a0\u4e86\u5bf9\u5728\u5185\u5b58\u4e2d\u53cd\u5c04\u52a0\u8f7d DLL \u7684\u81ea\u5b9a\u4e49\u65b9\u5f0f\u7684\u652f\u6301\uff0c\u5141\u8bb8\u7ea2\u961f\u64cd\u4f5c\u5458\u81ea\u5b9a\u4e49\u52a0\u8f7d\u4fe1\u6807 DLL \u7684\u65b9\u5f0f\u5e76\u6dfb\u52a0\u89c4\u907f\u6280\u672f\u3002Bobby Cooke \u548c Santiago P\u4f7f\u7528\u6211\u5728\u88c5\u8f7d\u673a\u4e2d\u4f7f\u7528\u7684 Cobalt Strike \u7684 UDRL\u6784\u5efa\u4e86\u4e00\u4e2a\u9690\u5f62\u88c5\u8f7d\u673a (&nbsp;<a href=\"https:\/\/github.com\/boku7\/BokuLoader\">BokuLoader )\u3002<\/a>BokuLoader \u5b9e\u73b0\u4e86\u51e0\u79cd\u89c4\u907f\u6280\u672f\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u9650\u5236\u8c03\u7528<code>GetProcAddress()<\/code>\uff08\u901a\u5e38\u662f EDR \u6302\u94a9\u7684 WINAPI \u8c03\u7528\u6765\u89e3\u6790\u51fd\u6570\u5730\u5740\uff0c\u5c31\u50cf\u6211\u4eec\u5728\u7b2c 4 \u8282\u4e2d\u6240\u505a\u7684\u90a3\u6837\uff09<\/li><li><a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/win32\/amsi\/antimalware-scan-interface-portal\">AMSI<\/a>&nbsp;&amp; ETW \u7ed5\u8fc7<\/li><li>\u4ec5\u4f7f\u7528\u76f4\u63a5\u7cfb\u7edf\u8c03\u7528<\/li><li>\u4ec5\u4f7f\u7528<code>RW<\/code>or&nbsp;<code>RX<\/code>\uff0c\u4e0d\u4f7f\u7528<code>RWX<\/code>(&nbsp;<code>EXECUTE_READWRITE<\/code>) \u6743\u9650<\/li><li>\u4ece\u5185\u5b58\u4e2d\u5220\u9664\u4fe1\u6807 DLL \u6807\u5934<\/li><\/ul>\n\n\n\n<p>\u786e\u4fdd\u53d6\u6d88\u6ce8\u91ca<a href=\"https:\/\/github.com\/boku7\/BokuLoader\/blob\/055861a12871e2e7f3396dcac67e8ee40c46d757\/BokuLoader64.c#L4\">\u8fd9\u4e24\u4e2a\u5b9a\u4e49\u4ee5\u5229\u7528\u901a\u8fc7<\/a><a href=\"https:\/\/blog.sektor7.net\/#!res\/2021\/halosgate.md\">HellsGate \u548c HalosGate<\/a>\u7684\u76f4\u63a5\u7cfb\u7edf\u8c03\u7528\u5e76\u7ed5\u8fc7 ETW \u548c AMSI\uff08\u4e0d\u662f\u771f\u6b63\u5fc5\u8981\u7684\uff0c\u56e0\u4e3a\u6211\u4eec\u5df2\u7ecf\u7981\u7528 ETW \u5e76\u4e14\u6ca1\u6709\u5c06\u52a0\u8f7d\u7a0b\u5e8f\u6ce8\u5165\u53e6\u4e00\u4e2a\u8fdb\u7a0b\uff09\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"12-opsec-configurations-in-your-malleable-profile\">12. Malleable \u914d\u7f6e\u6587\u4ef6\u4e2d\u7684 OpSec \u914d\u7f6e<\/h3>\n\n\n\n<p>\u5728\u60a8\u7684 Malleable C2 \u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u786e\u4fdd\u914d\u7f6e\u4e86\u4ee5\u4e0b\u9009\u9879\uff0c\u8fd9\u4e9b\u9009\u9879\u9650\u5236\u4e86<code>RWX<\/code>\u6807\u8bb0\u5185\u5b58\uff08\u53ef\u7591\u4e14\u6613\u4e8e\u68c0\u6d4b\uff09\u7684\u4f7f\u7528\uff0c\u5e76\u5728\u4fe1\u6807\u542f\u52a8\u540e\u6e05\u7406\u4e86 shellcode\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    set startrwx        \"false\";\n    set userwx          \"false\";\n    set cleanup         \"true\";\n    set stomppe         \"true\";\n    set obfuscate       \"true\";\n    set sleep_mask      \"true\";\n    set smartinject     \"true\";\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"conclusions\">\u7ed3\u8bba<\/h3>\n\n\n\n<p>\u7ed3\u5408\u8fd9\u4e9b\u6280\u672f\uff0c\u60a8\u53ef\u4ee5\u7ed5\u8fc7\uff08\u4ee5\u53ca\u5176\u4ed6\uff09Microsoft Defender for Endpoint \u548c CrowdStrike Falcon\uff0c\u68c0\u6d4b\u6b21\u6570\u4e3a 0\uff082022 \u5e74 4 \u6708\u4e2d\u65ec\u6d4b\u8bd5\uff09\uff0c\u5b83\u4eec\u4e0e SentinelOne \u4e00\u8d77\u5f15\u9886\u7aef\u70b9\u4fdd\u62a4\u884c\u4e1a\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/vanmieghem.io\/assets\/images\/2022-04-18-blueprint-for-evading-edr-in-2022\/crowdstrike-bypass.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>CrowdStrike Falcon \u6709 0 \u4e2a\u8b66\u62a5\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/vanmieghem.io\/assets\/images\/2022-04-18-blueprint-for-evading-edr-in-2022\/windef-bypass.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>Windows Defender\uff08\u4ee5\u53ca Microsoft Defender for Endpoint\uff0c\u672a\u622a\u5c4f\uff09\u5e26\u6709 0 \u4e2a\u8b66\u62a5\u3002<\/p>\n\n\n\n<p>\u5f53\u7136\uff0c\u8fd9\u53ea\u662f\u5b8c\u5168\u7834\u574f\u7aef\u70b9\u7684\u7b2c\u4e00\u6b65\uff0c\u8fd9\u5e76\u4e0d\u610f\u5473\u7740 EDR \u89e3\u51b3\u65b9\u6848\u7684\u201c\u6e38\u620f\u7ed3\u675f\u201d\u3002\u6839\u636e\u7ea2\u961f\u64cd\u4f5c\u5458\u63a5\u4e0b\u6765\u9009\u62e9\u7684\u5f00\u53d1\u540e\u6d3b\u52a8\/\u6a21\u5757\uff0c\u690d\u5165\u7269\u4ecd\u7136\u53ef\u4ee5\u201c\u6e38\u620f\u7ed3\u675f\u201d\u3002\u4e00\u822c\u6765\u8bf4\uff0c\u8981\u4e48\u8fd0\u884c BOF\uff0c\u8981\u4e48\u901a\u8fc7\u690d\u5165\u7269\u7684 SOCKS \u4ee3\u7406\u529f\u80fd\u96a7\u9053\u5316 post-ex \u5de5\u5177\u3002\u8fd8\u8981\u8003\u8651\u5c06 EDR \u94a9\u5b50\u8865\u4e01\u653e\u56de\u6211\u4eec\u7684<code>Sleep()<\/code>\u94a9\u5b50\u4e2d\u4ee5\u907f\u514d\u68c0\u6d4b\u5230\u8131\u94a9\uff0c\u4ee5\u53ca\u5220\u9664 ETW\/AMSI \u8865\u4e01\u3002<\/p>\n\n\n\n<p>\u8fd9\u662f\u4e00\u573a\u732b\u6349\u8001\u9f20\u7684\u6e38\u620f\uff0c\u732b\u65e0\u7591\u4f1a\u8d8a\u6765\u8d8a\u597d\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u76f8\u5173\u6587\u7ae0<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/vanmieghem.io\/towards-generic-.net-obfuscation\/\">\u5b9e\u73b0\u901a\u7528 .NET \u7a0b\u5e8f\u96c6\u6df7\u6dc6 (Pt. 1)<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u539f\u6587\u94fe\u63a5 \u539f\u6587\u94fe\u63a5\uff1ahttps:\/\/vanmieghem.io\/blueprint-for-evading-e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[53,11,10,52,5,17],"tags":[54,49,173,172,50,51],"class_list":["post-144","post","type-post","status-publish","format-standard","hentry","category-cobalt-strike","category-crowdstrike","category-microsoftdefenderatp","category-sentinelone","category-infosec","category-infonews","tag-cobalt-strike","tag-crowdstrike-falcon","tag-fireeye-edr","tag-fireeye-hx","tag-microsoft-defender-for-endpoint","tag-sentinelone"],"views":2153,"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=144"}],"version-history":[{"count":1,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/144\/revisions"}],"predecessor-version":[{"id":145,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/144\/revisions\/145"}],"wp:attachment":[{"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}