{"id":76028,"date":"2024-01-13T02:04:27","date_gmt":"2024-01-12T18:04:27","guid":{"rendered":"\/\/www.viralrail.com\/?p=76028"},"modified":"2024-01-13T02:04:27","modified_gmt":"2024-01-12T18:04:27","slug":"kzlbhcszff","status":"publish","type":"post","link":"\/\/www.viralrail.com\/blog\/76028.html","title":{"rendered":"\u63a7\u5236\u6d41\u4fdd\u62a4CFG\u8bbe\u7f6e\u65b9\u6cd5"},"content":{"rendered":"

  \u63a7\u5236\u6d41\u4fdd\u62a4\uff08Control Flow Guard\uff0cCFG\uff09\u662f\u4e00\u79cd\u91cd\u8981\u7684\u5b89\u5168\u673a\u5236\uff0c\u7528\u4e8e\u9632\u8303\u9488\u5bf9\u63a7\u5236\u6d41\u7684\u653b\u51fb\u3002\u4eca\u5929\u6211\u4eec\u5c06\u4ecb\u7ecd\u5982\u4f55\u8bbe\u7f6e\u63a7\u5236\u6d41\u4fdd\u62a4CFG\uff0c\u4ee5\u63d0\u9ad8\u7a0b\u5e8f\u7684\u5b89\u5168\u6027\u548c\u7a33\u5b9a\u6027\u3002<\/p>\n

CFG\u6982\u8ff0<\/h2>\n

  \u63a7\u5236\u6d41\u4fdd\u62a4\uff08Control Flow Guard\uff0cCFG\uff09\u662fWindows\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u5f15\u5165\u7684\u4e00\u79cd\u5185\u5b58\u4fdd\u62a4\u673a\u5236\uff0c\u7528\u4e8e\u9632\u8303\u9488\u5bf9\u63a7\u5236\u6d41\u7684\u653b\u51fb\uff0c\u5982ROP\u653b\u51fb\u3002\u901a\u8fc7\u9a8c\u8bc1\u7a0b\u5e8f\u6267\u884c\u671f\u95f4\u7684\u63a7\u5236\u6d41\uff0c\u53ef\u4ee5\u6709\u6548\u51cf\u5c11\u6076\u610f\u4ee3\u7801\u7684\u5165\u4fb5\u3002CFG\u53ef\u4ee5\u5728\u7f16\u8bd1\u65f6\u6216\u8fd0\u884c\u65f6\u751f\u6548\uff0c\u5bf9\u4e8e\u8f6f\u4ef6\u5f00\u53d1\u8005\u548c\u7cfb\u7edf\u7ba1\u7406\u5458\u6765\u8bf4\u90fd\u662f\u4e00\u9879\u91cd\u8981\u7684\u5b89\u5168\u63aa\u65bd\u3002<\/p>\n

  \u7f16\u8bd1\u65f6\u8bbe\u7f6e<\/h3>\n

  \u5728Visual Studio\u7b49\u5f00\u53d1\u73af\u5883\u4e0b\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u8bbe\u7f6e\u63a7\u5236\u6d41\u4fdd\u62a4CFG\uff1a <\/p>\n

    \n
  1. \u5728\u9879\u76ee\u5c5e\u6027\u4e2d\uff0c\u9009\u62e9\u201cC\/C++\u201d\u9009\u9879\u5361\u3002<\/li>\n
  2. \u5728\u201c\u751f\u6210\u201d\u5b50\u9009\u9879\u5361\u4e2d\uff0c\u9009\u62e9\u201c\u63a7\u5236\u6d41\u4fdd\u62a4\u201d\u3002<\/li>\n
  3. \u5c06\u201c\u542f\u7528\u63a7\u5236\u6d41\u4fdd\u62a4\u201d\u8bbe\u7f6e\u4e3a\u201c\u662f\uff08\/guard:cf\uff09\u201d\u3002<\/li>\n<\/ol>\n

    \u8fd9\u6837\u53ef\u4ee5\u5728\u7f16\u8bd1\u65f6\u5bf9\u7a0b\u5e8f\u8fdb\u884c\u63a7\u5236\u6d41\u4fdd\u62a4\u3002\u53e6\u5916\uff0c\u53ef\u4ee5\u5bf9\u7279\u5b9a\u51fd\u6570\u8fdb\u884c\u6392\u9664\uff0c\u4ee5\u89e3\u51b3\u4e00\u4e9b\u517c\u5bb9\u6027\u95ee\u9898\u3002<\/p>\n

      \u8fd0\u884c\u65f6\u8bbe\u7f6e<\/h3>\n

      \u5728\u8fd0\u884c\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528Windows Defender Exploit Guard\u6216\u5e94\u7528\u7a0b\u5e8f\u517c\u5bb9\u6027\u9009\u9879\uff08AppCompat\uff09\u8fdb\u884c\u63a7\u5236\u6d41\u4fdd\u62a4CFG\u7684\u8bbe\u7f6e\u3002\u53ef\u4ee5\u5728Windows\u5b89\u5168\u4e2d\u5fc3\u6216\u7ec4\u7b56\u7565\u4e2d\u8fdb\u884c\u76f8\u5e94\u7684\u914d\u7f6e\uff0c\u4ee5\u786e\u4fdd\u7a0b\u5e8f\u5728\u8fd0\u884c\u65f6\u5f97\u5230\u6b63\u786e\u7684\u4fdd\u62a4\u3002<\/p>\n

    CFG\u7684\u91cd\u8981\u6027<\/h2>\n

      \u63a7\u5236\u6d41\u4fdd\u62a4CFG\u5bf9\u4e8e\u4fdd\u62a4\u7a0b\u5e8f\u7684\u5b89\u5168\u6027\u81f3\u5173\u91cd\u8981\u3002\u901a\u8fc7\u9650\u5236\u7a0b\u5e8f\u7684\u63a7\u5236\u6d41\u56fe\uff0c\u5728\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u53ef\u4ee5\u51cf\u5c11\u6076\u610f\u653b\u51fb\u7684\u6210\u529f\u7387\u3002\u5c24\u5176\u662f\u9488\u5bf9Windows\u7cfb\u7edf\u7684\u653b\u51fb\uff0cCFG\u53ef\u4ee5\u6709\u6548\u63d0\u9ad8\u7cfb\u7edf\u7684\u5b89\u5168\u6027\uff0c\u964d\u4f4e\u6f0f\u6d1e\u88ab\u5229\u7528\u7684\u53ef\u80fd\u6027\u3002<\/p>\n

      \u4fdd\u62a4\u7a0b\u5e8f\u7684\u5173\u952e\u529f\u80fd<\/h3>\n

      CFG\u53ef\u4ee5\u4fdd\u62a4\u7a0b\u5e8f\u7684\u5173\u952e\u529f\u80fd\uff0c\u5982\u51fd\u6570\u8c03\u7528\u3001\u8fd4\u56de\u5730\u5740\u7b49\uff0c\u9632\u6b62\u6076\u610f\u4ee3\u7801\u7be1\u6539\u7a0b\u5e8f\u7684\u63a7\u5236\u6d41\uff0c\u4ece\u800c\u4fdd\u62a4\u7a0b\u5e8f\u7684\u6838\u5fc3\u903b\u8f91\u548c\u6570\u636e\u5b89\u5168\u3002<\/p>\n

      \u63d0\u9ad8\u7a0b\u5e8f\u7684\u7a33\u5b9a\u6027<\/h3>\n

      \u9664\u4e86\u5b89\u5168\u6027\uff0c\u63a7\u5236\u6d41\u4fdd\u62a4CFG\u8fd8\u53ef\u4ee5\u63d0\u9ad8\u7a0b\u5e8f\u7684\u7a33\u5b9a\u6027\u3002\u901a\u8fc7\u89c4\u8303\u7a0b\u5e8f\u7684\u63a7\u5236\u6d41\uff0c\u53ef\u4ee5\u51cf\u5c11\u56e0\u4e3a\u610f\u5916\u60c5\u51b5\u5bfc\u81f4\u7a0b\u5e8f\u5d29\u6e83\u7684\u53ef\u80fd\u6027\uff0c\u63d0\u9ad8\u7a0b\u5e8f\u7684\u53ef\u9760\u6027\u548c\u53ef\u7528\u6027\u3002<\/p>\n

    \u603b\u7ed3<\/h2>\n

      \u63a7\u5236\u6d41\u4fdd\u62a4CFG\u4f5c\u4e3a\u4e00\u79cd\u91cd\u8981\u7684\u5b89\u5168\u673a\u5236\uff0c\u5728\u8f6f\u4ef6\u5f00\u53d1\u548c\u7cfb\u7edf\u7ba1\u7406\u4e2d\u626e\u6f14\u7740\u5173\u952e\u7684\u89d2\u8272\u3002<\/strong>\u65e0\u8bba\u662f\u5728\u7f16\u8bd1\u65f6\u8fd8\u662f\u8fd0\u884c\u65f6\uff0c\u6b63\u786e\u8bbe\u7f6e\u548c\u914d\u7f6eCFG\u90fd\u80fd\u6709\u6548\u63d0\u9ad8\u7a0b\u5e8f\u7684\u5b89\u5168\u6027\u548c\u7a33\u5b9a\u6027\u3002\u901a\u8fc7\u8ba4\u771f\u5b66\u4e60\u548c\u5e94\u7528CFG\uff0c\u6211\u4eec\u53ef\u4ee5\u66f4\u597d\u5730\u4fdd\u62a4\u7a0b\u5e8f\u548c\u7cfb\u7edf\uff0c\u9632\u8303\u591a\u79cd\u5b89\u5168\u5a01\u80c1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

    \u63a7\u5236\u6d41\u4fdd\u62a4\uff08ControlFlowGuard\uff0cCFG\uff09\u662f\u4e00\u79cd\u91cd\u8981\u7684\u5b89\u5168\u673a\u5236\uff0c\u7528\u4e8e\u9632\u8303\u9488\u5bf9\u63a7\u5236\u6d41\u7684\u653b\u51fb\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u8bbe\u7f6e\u63a7\u5236\u6d41\u4fdd\u62a4CFG\uff0c\u4ee5\u63d0\u9ad8\u7a0b\u5e8f\u7684\u5b89\u5168\u6027\u548c\u7a33\u5b9a\u6027\u3002<\/p>\n","protected":false},"author":1,"featured_media":64183,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","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":"","footnotes":""},"categories":[36],"tags":[305],"class_list":["post-76028","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-dzjs"],"_links":{"self":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/76028"}],"collection":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/comments?post=76028"}],"version-history":[{"count":0,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/76028\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media\/64183"}],"wp:attachment":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media?parent=76028"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/categories?post=76028"},{"taxonomy":"post_tag","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/tags?post=76028"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}