{"id":128502,"date":"2023-06-12T17:25:09","date_gmt":"2023-06-13T00:25:09","guid":{"rendered":"https:\/\/unit42.paloaltonetworks.com\/?p=128502"},"modified":"2024-07-30T18:12:48","modified_gmt":"2024-07-31T01:12:48","slug":"win32k-analysis-part-1","status":"publish","type":"post","link":"https:\/\/unit42.paloaltonetworks.com\/ja\/win32k-analysis-part-1\/","title":{"rendered":"\u30a4\u30f3\u30b5\u30a4\u30c9Win32k\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8: Win32k\u306e\u5b9f\u88c5\u306e\u80cc\u666f\u3068\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u306e\u65b9\u6cd5\u8ad6"},"content":{"rendered":"<h2><a id=\"post-128502-_4lt92rr5muov\"><\/a>\u6982\u8981<\/h2>\n<p>2022\u5e741\u6708\u4e0b\u65ec\u3001SNS\u4e0a\u3067\u300cMicrosoft Windows\u306e\u65b0\u305f\u306a\u7279\u6a29\u6607\u683c\u306e\u8106\u5f31\u6027<a href=\"https:\/\/cve.mitre.org\/cgi-bin\/cvename.cgi?name=CVE-2022-21882\" target=\"_blank\" rel=\"noopener\">(CVE-2022-21882<\/a>)\u304c\u91ce\u751f(in the wild)\u3067\u60aa\u7528\u3055\u308c\u3066\u3044\u308b\u300d\u3068\u3044\u3046\u5831\u544a\u304c\u8907\u6570\u3042\u304c\u3063\u3066\u304d\u307e\u3057\u305f\u3002\u3053\u308c\u3089\u306e\u5831\u544a\u3092\u53d7\u3051\u3001CVE-2022-21882\u306e\u89e3\u6790\u3092\u884c\u3063\u305f\u3068\u3053\u308d\u3001\u3053\u308c\u306fWin32k.sys\u306e\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570<span style=\"font-family: 'courier new', courier, monospace;\">xxxClientAllocWindowClassExtraBytes<\/span>\u306e\u8106\u5f31\u6027\u3067\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>2021\u5e74\u306b\u306f\u3053\u308c\u3068\u975e\u5e38\u306b\u3088\u304f\u4f3c\u305f\u8106\u5f31\u6027<a href=\"https:\/\/cve.mitre.org\/cgi-bin\/cvename.cgi?name=CVE-2021-1732\" target=\"_blank\" rel=\"noopener\">(CVE-2021-1732<\/a>)\u304cMicrosoft\u306b\u5831\u544a\u3055\u308c\u3001\u540c\u793e\u306b\u3088\u308a\u4fee\u6b63\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u79c1\u305f\u3061\u306f\u3001\u3053\u308c\u30892\u3064\u306e\u8106\u5f31\u6027\u3092\u8a73\u3057\u304f\u8abf\u3079\u3001\u305d\u308c\u305e\u308c\u306e\u8106\u5f31\u6027\u306b\u95a2\u308f\u308b\u30b3\u30fc\u30c9\u306e\u628a\u63e1\u306b\u3064\u3068\u3081\u307e\u3057\u305f\u3002\u6700\u521d\u306e\u5206\u6790\u3067\u79c1\u305f\u3061\u306f\u300cCVE-2021-1732\u306b\u5bfe\u3059\u308b\u4fee\u6b63\u30d7\u30ed\u30b0\u30e9\u30e0\u304cCVE-2022-21882\u306e\u9632\u6b62\u306b\u306f\u4e0d\u5341\u5206\u3067\u3042\u3063\u305f\u7406\u7531\u300d\u3092\u660e\u3089\u304b\u306b\u3057\u305f\u3044\u3068\u8003\u3048\u307e\u3057\u305f\u3002<\/p>\n<p>\u672c\u7a3f\u306f\u9023\u8f09\u306e\u7b2c1\u90e8\u3067\u3059\u3002\u672c\u9023\u8f09\u3067\u306f\u3053\u308c\u30892\u3064\u306e\u8106\u5f31\u6027\u3068\u305d\u308c\u306b\u95a2\u9023\u3059\u308b\u6982\u5ff5\u5b9f\u8a3c(PoC)\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u3092\u4f8b\u306b\u3068\u308a\u3001Win32k\u306e\u5185\u90e8\u3068\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u5168\u822c\u306b\u3064\u3044\u3066\u89e3\u8aac\u3059\u308b\u4e88\u5b9a\u3067\u3059\u3002<\/p>\n<p>\u7b2c1\u90e8\u3067\u306f\u3001\u304b\u306a\u308a\u306e\u91cf\u306e\u80cc\u666f\u60c5\u5831\u3092\u53d6\u308a\u4e0a\u3052\u307e\u3059\u3002\u3053\u308c\u306b\u306f\u4f55\u5e74\u3082\u304b\u3051\u3066\u512a\u79c0\u306a\u30ea\u30b5\u30fc\u30c1\u30e3\u30fc\u306e\u7686\u3055\u3093\u304c\u884c\u3063\u3066\u304d\u305f\u80cc\u666f\u7814\u7a76\u3082\u542b\u307e\u308c\u307e\u3059\u3002\u3053\u3046\u3057\u305f\u80cc\u666f\u60c5\u5831\u3092\u53d6\u308a\u4e0a\u3052\u308b\u3053\u3068\u3067\u3001\u8aad\u8005\u306e\u7686\u3055\u3093\u306b\u3001Win32k\u306e\u6700\u65b0\u306e\u5b9f\u88c5\u3084\u305d\u308c\u306b\u95a2\u9023\u3059\u308b\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u624b\u6cd5\u3092\u30ad\u30e3\u30c3\u30c1 \u30a2\u30c3\u30d7\u3057\u3066\u3044\u305f\u3060\u3051\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002\u3055\u3089\u306b\u7406\u89e3\u3092\u6df1\u3081\u305f\u3044\u304b\u305f\u306f\u3001\u672c\u7a3f\u672b\u5c3e\u306e\u30ea\u30f3\u30af\u5148\u53c2\u8003\u6587\u732e\u306e\u901a\u8aad\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002<\/p>\n<p>\u672c\u9023\u8f09\u3067\u53d6\u308a\u4e0a\u3052\u308b\u8106\u5f31\u6027\u306f\u3001\u3044\u305a\u308c\u3082Cortex XDR\u306eAnti-LPE\u4fdd\u8b77\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u3088\u308a\u691c\u51fa\u30fb\u30d6\u30ed\u30c3\u30af\u3055\u308c\u307e\u3059\u3002\u3044\u305a\u308c\u306e\u8106\u5f31\u6027\u3082\u3001NT AUTHORITY\\SYSTEM\u306e\u7279\u6a29\u30c8\u30fc\u30af\u30f3\u3092\u73fe\u5728\u306e(\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u306e)\u30d7\u30ed\u30bb\u30b9\u306e\u305d\u308c\u306b\u30b3\u30d4\u30fc\u3059\u308b\u3053\u3068\u3067\u7279\u6a29\u6607\u683c\u3092\u56f3\u308b\u3001\u30c7\u30fc\u30bf\u30aa\u30f3\u30ea\u30fc\u578b\u306e(\u30b7\u30b9\u30c6\u30e0\u4e0a\u306e\u30c7\u30fc\u30bf\u5909\u66f4\u306b\u30b3\u30fc\u30c9\u5b9f\u884c\u3092\u5fc5\u8981\u3068\u3057\u306a\u3044\u7a2e\u985e\u306e)\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u3067\u3059\u3002Cortex XDR\u306eAnti-LPE\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u3001\u3053\u306e\u7279\u5b9a\u306e\u7a2e\u985e\u306e\u7279\u6a29\u6607\u683c\u6280\u8853\u3092\u76e3\u8996\u3057\u307e\u3059\u3002<\/p>\n<table style=\"width: 100%;\">\n<thead>\n<tr>\n<td style=\"width: 35%;\"><b>\u95a2\u9023\u3059\u308bUnit 42\u306e\u30c8\u30d4\u30c3\u30af<\/b><\/td>\n<td style=\"width: 100%;\"><a href=\"https:\/\/unit42.paloaltonetworks.jp\/tag\/microsoft-windows-ja\/\" target=\"_blank\" rel=\"noopener\"><b>Microsoft Windows<\/b><\/a>, <strong><a href=\"https:\/\/unit42.paloaltonetworks.jp\/tag\/CVE-2021-1732-ja\/\" target=\"_blank\" rel=\"noopener\">CVE-2021-1732<\/a>, <a href=\"https:\/\/unit42.paloaltonetworks.jp\/tag\/CVE-2022-21882-ja\/\" target=\"_blank\" rel=\"noopener\">CVE-2022-21882<\/a><\/strong><\/td>\n<\/tr>\n<\/thead>\n<\/table>\n<h2><a id=\"post-128502-_6qw3jkyhfts8\"><\/a>CVE-2022-1732\u3068CVE-2022-21882\u306e\u6982\u8981<\/h2>\n<p>Win32 API\u306b\u3088\u308bWindows\u958b\u767a\u3084Windows\u306e\u5185\u90e8\u69cb\u9020\u306b\u3064\u3044\u3066\u306f\u985e\u66f8\u304c\u591a\u6570\u3042\u308a\u307e\u3059\u304c\u3001\u30b0\u30e9\u30d5\u30a3\u30ab\u30eb \u30e6\u30fc\u30b6\u30fc \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9(GUI)\u3092\u4f7f\u3063\u305f\u958b\u767a\u3084\u305d\u3046\u3057\u305f\u958b\u767a\u306e\u57fa\u790e\u3068\u306a\u308b\u5185\u90e8\u69cb\u9020\u3092\u30ab\u30d0\u30fc\u3057\u3066\u3044\u308b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u95a2\u9023\u30ea\u30bd\u30fc\u30b9\u306f\u79c1\u305f\u3061\u306e\u7d4c\u9a13\u4e0a\u306f\u3042\u307e\u308a\u306a\u3044\u3088\u3046\u306b\u601d\u308f\u308c\u307e\u3059\u3002\u3053\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306f<span style=\"font-family: 'courier new', courier, monospace;\">Win32k.sys<\/span>\u3001<span style=\"font-family: 'courier new', courier, monospace;\">Win32kbase.sys<\/span>\u3001<span style=\"font-family: 'courier new', courier, monospace;\">Win32kfull.sys<\/span>\u5185\u306b\u5b9f\u88c5\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u79c1\u305f\u3061\u306fWindows\u306eGUI\u306e\u5185\u90e8\u69cb\u9020\u3068\u305d\u308c\u306b\u95a2\u9023\u3059\u308bAPI\u306b\u6163\u308c\u89aa\u3057\u3080\u305f\u3081\u3001\u5c11\u3057\u8abf\u67fb\u3092\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002\u3053\u305310\u5e74\u307b\u3069\u306e\u9593\u306b\u66f8\u304b\u308c\u305fWin32k\u306e\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u306b\u95a2\u3059\u308b\u30db\u30ef\u30a4\u30c8\u30da\u30fc\u30d1\u30fc\u3084Win32 <a href=\"https:\/\/learn.microsoft.com\/ja-jp\/windows\/win32\/winmsg\/windowing\" target=\"_blank\" rel=\"noopener\">API<\/a>\u306b\u95a2\u3059\u308bMicrosoft Developer Network (MSDN)\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u3044\u304f\u3064\u304b\u8aad\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u672c\u7a3f\u3067\u53d6\u308a\u4e0a\u3052\u308b\u57fa\u76e4\u30b3\u30fc\u30c9\u306b\u3064\u3044\u3066\u3001\u8aad\u8005\u306e\u7686\u3055\u3093\u304c\u3042\u3089\u304b\u3058\u3081\u5c02\u9580\u77e5\u8b58\u3092\u6301\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u524d\u63d0\u306b\u306f\u3057\u305f\u304f\u306a\u3044\u306e\u3067\u3001\u3053\u306e\u7b2c1\u90e8\u3067\u95a2\u9023API\u3084\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3001\u30c7\u30fc\u30bf\u69cb\u9020\u306b\u95a2\u3059\u308b\u80cc\u666f\u3092\u8aac\u660e\u3059\u308b\u3053\u3068\u3067\u3001\u4eca\u56de\u5206\u6790\u3059\u308b2\u3064\u306e\u8106\u5f31\u6027\u3084\u3001\u307b\u304b\u306e<span style=\"font-family: 'courier new', courier, monospace;\">Win32k.sys<\/span>\u306e\u8106\u5f31\u6027\u30fb\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u306b\u5bfe\u3059\u308b\u7406\u89e3\u3092\u6df1\u3081\u3066\u3044\u305f\u3060\u3051\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3089\u8106\u5f31\u6027\u306e\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u3084\u4fee\u6b63\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u8fc2\u56de\u65b9\u6cd5\u306f\u305d\u3053\u307e\u3067\u96e3\u3057\u304f\u306a\u3044\u306e\u3067\u3001\u6700\u8fd1\u306e2\u4e8b\u4f8b\u3092\u9078\u3093\u3067\u3001Win32k\u306e\u5185\u90e8\u69cb\u9020\u3092\u3072\u3068\u3068\u304a\u308a\u898b\u3066\u3044\u304f\u3053\u3068\u3067\u3001read\/write\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u306e\u53d6\u5f97\u306b\u3088\u304f\u4f7f\u308f\u308c\u308b\u65b9\u6cd5\u3092\u7406\u89e3\u3057\u3066\u3044\u305f\u3060\u304f\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002\u3044\u3044\u6a5f\u4f1a\u306a\u306e\u3067\u3001<span style=\"font-family: 'courier new', courier, monospace;\">Win32k.sys<\/span>\u30b3\u30fc\u30c9\u30d9\u30fc\u30b9\u5185\u3067Win32k\u306e\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u5bfe\u8c61\u306b\u3055\u308c\u3084\u3059\u3044\u3082\u306e(\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u306e\u30b3\u30fc\u30eb\u30d0\u30c3\u30af)\u306b\u3064\u3044\u3066\u3082\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2><a id=\"post-128502-_d1nha5oq9zwf\"><\/a>Win32k\u306e\u6b74\u53f2\u3068\u80cc\u666f<\/h2>\n<p>Microsoft\u306f\u3001Windows NT 4.0\u3088\u308a\u524d\u306f\u3001Win32 API\u306eGUI\u6a5f\u80fd\u3092<em>Client-Server Runtime SubSystem <\/em>(<span style=\"font-family: 'courier new', courier, monospace;\">CSRSS.exe<\/span>)\u3068\u547c\u3070\u308c\u308b\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30d7\u30ed\u30bb\u30b9\u5185\u306b\u5b9f\u88c5\u3057\u3066\u3044\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30ab\u30fc\u30cd\u30eb\u30e2\u30fc\u30c9\u9593\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8 \u30b9\u30a4\u30c3\u30c1\u306f\u8a08\u7b97\u91cf\u304c\u5927\u304d\u304f\u3001\u30e1\u30e2\u30ea\u30fc \u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u304c\u5927\u304d\u304f\u306a\u308a\u304c\u3061\u3067\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u3053\u306e\u554f\u984c\u3092\u89e3\u6d88\u3057\u3066Windows\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0 \u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u9ad8\u901f\u5316\u3092\u56f3\u308b\u305f\u3081\u306b\u3001Microsoft\u306fWindows\u30b5\u30d6\u30b7\u30b9\u30c6\u30e0(Window Manager\u3001GDI\u3001\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30c9\u30e9\u30a4\u30d0\u30fc)\u3092\u30ab\u30fc\u30cd\u30eb\u306b\u79fb\u3059\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002\u3053\u306e\u79fb\u52d5\u304c\u59cb\u307e\u3063\u305f\u306e\u304c\u30011996\u5e74\u306eWindows NT 4.0\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u5909\u66f4\u306f\u3001\u73fe\u5728\u306f\u30ab\u30fc\u30cd\u30eb\u30e2\u30fc\u30c9\u306eWindows\u30b5\u30d6\u30b7\u30b9\u30c6\u30e0\u3068\u3057\u3066\u77e5\u3089\u308c\u3066\u3044\u308b<span style=\"font-family: 'courier new', courier, monospace;\">Win32k.sys<\/span>\u3068\u3044\u3046\u30ab\u30fc\u30cd\u30eb\u30e2\u30fc\u30c9 \u30c9\u30e9\u30a4\u30d0\u30fc\u3092\u901a\u3058\u3066\u5b9f\u88c5\u3055\u308c\u307e\u3057\u305f\u3002Windows\u30b5\u30d6\u30b7\u30b9\u30c6\u30e0\u306e\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u3001\u4eca\u3082CSRSS\u5185\u306b\u5b58\u5728\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30ab\u30fc\u30cd\u30eb\u3078\u306e\u79fb\u52d5\u306b\u3088\u308a\u3001\u6c42\u3081\u3089\u308c\u308b\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u306f\u5927\u5e45\u306b\u524a\u6e1b\u3055\u308c\u307e\u3057\u305f\u304c\u3001Microsoft\u306f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30a2\u30c9\u30ec\u30b9\u7a7a\u9593\u306e\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u90e8\u5206\u306b\u7ba1\u7406\u7528\u306e\u30c7\u30fc\u30bf\u69cb\u9020\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b\u306a\u3069\u3001\u3044\u304f\u3064\u304b\u53e4\u3044\u6280\u6cd5\u306b\u983c\u3089\u3056\u308b\u3092\u5f97\u307e\u305b\u3093\u3067\u3057\u307e\u3057\u305f\u3002\u5b9f\u969b\u3001\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8 \u30b9\u30a4\u30c3\u30c1\u3092\u3055\u3089\u306b\u56de\u907f\u3059\u308b\u305f\u3081\u3001\u7ba1\u7406\u7528\u69cb\u9020\u4f53\u306e\u4e00\u90e8\u306f\u6b74\u53f2\u7684\u306b\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u90e8\u5206\u306b\u306e\u307f\u4fdd\u5b58\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u30ab\u30fc\u30cd\u30eb \u30a2\u30c9\u30ec\u30b9\u306e\u6f0f\u3048\u3044\u3092\u9632\u3050\u305f\u3081\u3001Microsoft\u306f\u3053\u308c\u3089\u69cb\u9020\u4f53\u306e\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u3068\u30ab\u30fc\u30cd\u30eb\u30e2\u30fc\u30c9\u306e\u30b3\u30d4\u30fc\u3092\u4f7f\u3044\u3001\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u306e\u69cb\u9020\u4f53\u5185\u306b\u30ab\u30fc\u30cd\u30eb \u30a2\u30c9\u30ec\u30b9\u304c\u683c\u7d0d\u3055\u308c\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u88c5\u3057\u306f\u3058\u3081\u307e\u3057\u305f\u3002<\/p>\n<p>\u3055\u3089\u306b\u3001Win32k\u306b\u306f\u3001\u3053\u308c\u3089\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u69cb\u9020\u4f53\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u63d0\u4f9b\u3057\u305f\u308a\u3001\u30a6\u30a3\u30f3\u30c9\u30a6 \u30d5\u30c3\u30af\u306a\u3069\u306e\u65e2\u5b58\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u6a5f\u80fd\u306e\u30b5\u30dd\u30fc\u30c8\u304c\u6c42\u3081\u3089\u308c\u305f\u3053\u3068\u304b\u3089\u3001\u305d\u308c\u3089\u306e\u30bf\u30b9\u30af\u3092\u5b9f\u73fe\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u304c\u5b9f\u88c5\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"https:\/\/cs.uno.edu\/~dbilar\/BH-US-2011\/materials\/Mandt\/BH_US_11_Mandt_win32k_WP.pdf\" target=\"_blank\" rel=\"noopener\">Tarjei Mandt\u6c0f\u306f\u305d\u306e\u8a73\u7d30\u306a\u30db\u30ef\u30a4\u30c8\u30da\u30fc\u30d1\u30fc<\/a>\u306e\u306a\u304b\u3067\u3001\u300c\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u304c\u3042\u308b\u304a\u304b\u3052\u3067\u3001Win32k\u304c\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u306b\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3059\u308c\u3070\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5b9a\u7fa9\u306e\u30d5\u30c3\u30af\u3092\u547c\u3073\u51fa\u3057\u305f\u308a\u3001\u30a4\u30d9\u30f3\u30c8\u901a\u77e5\u3092\u63d0\u4f9b\u3057\u305f\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u3068\u306e\u9593\u3067\u306e\u30c7\u30fc\u30bf\u306e\u30b3\u30d4\u30fc\u306a\u3069\u306e\u30bf\u30b9\u30af\u3092\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u300d\u3068\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u3002Mandt\u6c0f\u306f2011\u5e74\u306eBlack Hat USA\u3067\u3053\u306e\u30ea\u30b5\u30fc\u30c1\u3092\u767a\u8868\u3057\u3001\u305d\u306e\u3055\u3044\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u306e\u5b9f\u88c5\u3084\u30c7\u30fc\u30bf\u6574\u5408\u6027\u306e\u78ba\u4fdd\u304cMicrosoft\u306b\u3082\u305f\u3089\u3057\u305f\u8ab2\u984c\u306b\u3064\u3044\u3066\u3082\u63d0\u793a\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>Mandt\u6c0f\u306f\u3001\u591a\u304f\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u5b9f\u884c\u524d\u306b\u9069\u5207\u306b\u30ed\u30c3\u30af\u3055\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u3001\u305d\u308c\u304c\u539f\u56e0\u3067\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u4e2d\u306e\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30b3\u30fc\u30c9\u304c\u3053\u308c\u3089\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u7834\u58ca\u3057\u3046\u308b\u3053\u3068\u3001\u305d\u3053\u304b\u3089UAF (Use-After-Free: \u30e1\u30e2\u30ea\u30fc\u89e3\u653e\u5f8c\u306e\u4f7f\u7528)\u306e\u8106\u5f31\u6027\u306b\u3064\u306a\u304c\u308b\u3053\u3068\u3092\u5b9f\u8a3c\u3057\u307e\u3057\u305f\u3002Microsoft\u306f2011\u5e74\u306b\u540c\u6c0f\u306e\u6307\u6458\u3057\u305f\u554f\u984c\u306e\u591a\u304f\u306b\u5bfe\u51e6\u3057\u307e\u3057\u305f\u304c\u3001\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u306f\u4eca\u65e5\u3067\u3082\u60aa\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Mandt\u6c0f\u306e\u30ea\u30b5\u30fc\u30c1\u306b\u89e6\u767a\u3055\u308c\u30012019\u5e74\u306b<a href=\"https:\/\/www.ragestorm.net\/blogs\/?p=502\" target=\"_blank\" rel=\"noopener\">Gil Dabah\u6c0f\u304c\u540c\u6c0f\u306e\u30ea\u30b5\u30fc\u30c1\u3092\u4e0b\u5730\u306b\u3057\u305f\u8ad6\u6587<\/a>\u3092\u66f8\u304d\u307e\u3057\u305f\u3002Dabah\u6c0f\u306f\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u4e2d\u3001\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30b3\u30fc\u30c9\u304c\u9069\u5207\u306b\u30ed\u30c3\u30af\u3055\u308c\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u7834\u58ca\u3057\u305f\u5834\u5408\u306b\u3082\u3001\u305d\u306e\u7834\u58ca\u3055\u308c\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u9069\u5207\u306b\u30ed\u30c3\u30af\u3055\u308c\u3066\u3044\u306a\u3044\u307b\u304b\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u4e8c\u6b21\u7684\u306a\u5f71\u97ff\u3092\u4e0e\u3048\u3046\u308b\u3053\u3068\u3092\u767a\u898b\u3057\u307e\u3057\u305f\u3002\u3053\u306e\u52d5\u4f5c\u306f\u4e8c\u6b21\u7684\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u7834\u58ca\u3068\u3055\u3089\u306a\u308bUAF\u8106\u5f31\u6027\u306b\u3064\u306a\u304c\u308a\u307e\u3059\u3002<\/p>\n<h2><a id=\"post-128502-_ru5voii5b2c7\"><\/a>Windows GUI API\u306e\u57fa\u672c\u7684\u80cc\u666f<\/h2>\n<p>Win32k\u306e\u5185\u90e8\u69cb\u9020\u306e\u8aac\u660e\u306b\u3046\u3064\u308b\u524d\u306b\u3001Win32 API\u3092\u4f7f\u3063\u3066\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u4f5c\u6210\u3068\u7834\u68c4\u3092\u884c\u3046\u30b7\u30f3\u30d7\u30eb\u306aC\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u3064\u3044\u3066\u7c21\u5358\u306b\u8aac\u660e\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u305d\u3046\u3059\u308c\u3070\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30a6\u30a3\u30f3\u30c9\u30a6\u304c\u30d7\u30ed\u30b0\u30e9\u30e0\u7684\u306b\u3069\u306e\u3088\u3046\u306b\u4f5c\u6210\u30fb\u64cd\u4f5c\u3055\u308c\u3066\u3044\u308b\u306e\u304b\u304c\u308f\u304b\u3063\u3066\u304f\u308b\u3067\u3057\u3087\u3046\u3057\u3001\u30a6\u30a3\u30f3\u30c9\u30a6\u3084\u305d\u306e\u30e1\u30cb\u30e5\u30fc\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u308b\u57fa\u790e\u3068\u306a\u308b\u69cb\u9020\u3092\u8abf\u3079\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u3001\u56f31\uff5e3\u306e\u30b5\u30f3\u30d7\u30eb \u30b3\u30fc\u30c9\u3092\u53c2\u7167\u3057\u306a\u304c\u3089\u3001\u30a6\u30a3\u30f3\u30c9\u30a6\u4f5c\u6210\u306e\u57fa\u672c\u3084\u3001\u30a6\u30a3\u30f3\u30c9\u30a6\u3084\u30e1\u30cb\u30e5\u30fc\u306e\u5b9a\u7fa9\u306e\u57fa\u790e\u3068\u306a\u308b\u69cb\u9020\u3092\u8aac\u660e\u3057\u307e\u3059\u3002\u30b5\u30f3\u30d7\u30eb \u30b3\u30fc\u30c9\u306b\u306f\u3001\u306a\u308b\u3079\u304f\u308f\u304b\u308a\u3084\u3059\u3044\u3088\u3046\u3001\u30b3\u30e1\u30f3\u30c8\u3092\u4ed8\u3051\u3066\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u56f31\u306b\u793a\u3057\u305f\u3088\u3046\u306b\u3001\u3053\u306e\u30b5\u30f3\u30d7\u30eb \u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u6700\u521d\u306b\u30a6\u30a3\u30f3\u30c9\u30a6 \u30af\u30e9\u30b9\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u307e\u3059\u3002\u30d7\u30ed\u30bb\u30b9\u306f\u3001\u30a6\u30a3\u30f3\u30c9\u30a6 \u30af\u30e9\u30b9\u3092\u767b\u9332\u3057\u305f\u5f8c\u3067\u3001<span style=\"font-family: 'courier new', courier, monospace;\">WNDCLASSEX<\/span>\u69cb\u9020\u4f53\u5185\u306b\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u578b\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305a\u30a6\u30a3\u30f3\u30c9\u30a6 \u30af\u30e9\u30b9\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092<span style=\"font-family: 'courier new', courier, monospace;\">WNDCLASSEX wcx = { }<\/span>\u3068\u3057\u3066\u5ba3\u8a00\u3057\u3001\u6b21\u306b\u30a6\u30a3\u30f3\u30c9\u30a6 \u30af\u30e9\u30b9\u306e\u69cb\u9020\u4f53\u306b\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_128458\" aria-describedby=\"caption-attachment-128458\" style=\"width: 710px\" class=\"wp-caption aligncenter\"><img  class=\"wp-image-128458 lozad\"  data-src=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2023\/06\/word-image-128455-1.png\" alt=\"\u753b\u50cf1\u306f\u3001\u30a6\u30a3\u30f3\u30c9\u30a6 \u30af\u30e9\u30b9\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u308b\u30b3\u30fc\u30c9\u884c\u3067\u3059\u3002\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u5ba3\u8a00\u306e\u5f8c\u3001\u69cb\u9020\u4f53\u3078\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u306e\u6307\u5b9a\u304c\u7d9a\u3044\u3066\u3044\u307e\u3059\u3002\" width=\"710\" height=\"591\" \/><figcaption id=\"caption-attachment-128458\" class=\"wp-caption-text\">\u56f31. \u30a6\u30a3\u30f3\u30c9\u30a6 \u30af\u30e9\u30b9\u306e\u5b9a\u7fa9<\/figcaption><\/figure>\n<p>\u30a6\u30a3\u30f3\u30c9\u30a6 \u30af\u30e9\u30b9\u306e\u69cb\u6210\u8981\u7d20\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li><span style=\"font-family: 'courier new', courier, monospace;\"><strong>cbSize<\/strong><\/span>: \u3053\u306e\u69cb\u9020\u4f53\u306e\u30b5\u30a4\u30ba(\u5358\u4f4d\u306f\u30d0\u30a4\u30c8)\u3002\u3053\u306e\u30e1\u30f3\u30d0\u30fc\u306f<span style=\"font-family: 'courier new', courier, monospace;\">sizeof(WNDCLASSEX)<\/span>\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li><span style=\"font-family: 'courier new', courier, monospace;\"><strong>style<\/strong><\/span>: \u30a6\u30a3\u30f3\u30c9\u30a6 \u30af\u30e9\u30b9\u306e\u30b9\u30bf\u30a4\u30eb\u3002\u3053\u306e\u30e1\u30f3\u30d0\u30fc\u306b\u306f<a href=\"https:\/\/learn.microsoft.com\/ja-jp\/windows\/win32\/winmsg\/about-window-classes\" target=\"_blank\" rel=\"noopener\">\u30af\u30e9\u30b9 \u30b9\u30bf\u30a4\u30eb<\/a>\u3092\u4efb\u610f\u306b\u7d44\u307f\u5408\u308f\u305b\u3066\u3088\u3044\u3002<\/li>\n<li><span style=\"font-family: 'courier new', courier, monospace;\"><strong>lpfnWndProc<\/strong><\/span>: \u305d\u306e\u30af\u30e9\u30b9\u5185\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u9001\u3089\u308c\u308b\u3059\u3079\u3066\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u51e6\u7406\u3057\u3001\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u52d5\u4f5c\u3092\u5b9a\u7fa9\u3059\u308b\u95a2\u6570\u3078\u306e\u30dd\u30a4\u30f3\u30bf\u30fc\u3002\u901a\u5e38\u3001\u5c11\u306a\u304f\u3068\u3082\u4e00\u90e8\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u3064\u3044\u3066\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30a6\u30a3\u30f3\u30c9\u30a6 \u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u304c\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u30ab\u30b9\u30bf\u30e0 \u30a6\u30a3\u30f3\u30c9\u30a6 \u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u3092\u4f7f\u3063\u3066\u72ec\u81ea\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u4f53\u9a13\u304c\u63d0\u4f9b\u3055\u308c\u308b\u3053\u3068\u3082\u591a\u3044\u3002\u8a73\u3057\u304f\u306f<a href=\"https:\/\/learn.microsoft.com\/ja-jp\/windows\/win32\/api\/winuser\/nc-winuser-wndproc\" target=\"_blank\" rel=\"noopener\">WindowProc<\/a>\u3092\u53c2\u7167\u306e\u3053\u3068\u3002<\/li>\n<li><span style=\"font-family: 'courier new', courier, monospace;\"><strong>cbClsExtra<\/strong><\/span>: \u30a6\u30a3\u30f3\u30c9\u30a6 \u30af\u30e9\u30b9\u306e\u69cb\u9020\u4f53\u306e\u5f8c\u308d\u306b\u7d9a\u3051\u3066\u5272\u308a\u5f53\u3066\u308b\u8ffd\u52a0\u30d0\u30a4\u30c8\u6570\u3002\u3053\u306e\u30b7\u30b9\u30c6\u30e0\u306f\u3053\u306e\u8ffd\u52a0\u30d0\u30a4\u30c8\u6570\u30920\u3067\u521d\u671f\u5316\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n<li><span style=\"font-family: 'courier new', courier, monospace;\"><strong>cbWndExtra<\/strong><\/span>: \u30a6\u30a3\u30f3\u30c9\u30a6 \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u5f8c\u308d\u306b\u7d9a\u3051\u3066\u5272\u308a\u5f53\u3066\u308b\u8ffd\u52a0\u30d0\u30a4\u30c8\u6570\u3002\u3053\u306e\u30b7\u30b9\u30c6\u30e0\u306f\u3053\u306e\u8ffd\u52a0\u30d0\u30a4\u30c8\u6570\u30920\u3067\u521d\u671f\u5316\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e<span style=\"font-family: 'courier new', courier, monospace;\">cbWndExtra<\/span>\u3068\u3055\u304d\u306e<span style=\"font-family: 'courier new', courier, monospace;\">cbClsExtra<\/span>\u3092\u6df7\u540c\u3057\u306a\u3044\u3088\u3046\u306b\u6ce8\u610f\u3002\u3055\u304d\u307b\u3069\u306e<span style=\"font-family: 'courier new', courier, monospace;\">cbClsExtra<\/span>\u306f\u3053\u306e\u30a6\u30a3\u30f3\u30c9\u30a6 \u30af\u30e9\u30b9\u306e\u5168\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u5171\u901a\u306e\u8ffd\u52a0\u30d0\u30a4\u30c8\u6570\u3002cbWndExtra\u306f0\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u591a\u3044\u304c\u30010\u3067\u306f\u306a\u3044\u5834\u5408\u3001\u305d\u306e\u8ffd\u52a0\u30e1\u30e2\u30ea\u30fc\u306f\u901a\u5e38\u3001\u5168\u30a6\u30a3\u30f3\u30c9\u30a6\u5171\u901a\u3067\u306f\u306a\u3044\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u306e\u306b\u4f7f\u3046\u3002\u3053\u308c\u304cPoC\u3067\u4f7f\u308f\u308c\u308b\u3088\u3046\u3059\u306f\u5f8c\u8ff0\u3057\u307e\u3059\u3002<\/li>\n<li><span style=\"font-family: 'courier new', courier, monospace;\"><strong>hInstance<\/strong><\/span>: \u305d\u306e\u30af\u30e9\u30b9\u306e\u30a6\u30a3\u30f3\u30c9\u30a6 \u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u3092\u6301\u3064\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3078\u306e\u30cf\u30f3\u30c9\u30eb\u3002\u305d\u306e\u30af\u30e9\u30b9\u3092\u767b\u9332\u3057\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u307e\u305f\u306f.DLL\u3092\u8b58\u5225\u3057\u307e\u3059\u3002\u3053\u3053\u3067\u306f<span style=\"font-family: 'courier new', courier, monospace;\">WinMain<\/span>\u3078\u306e<span style=\"font-family: 'courier new', courier, monospace;\">hinstance<\/span>\u5f15\u6570\u304c\u5272\u308a\u5f53\u3066\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/li>\n<li><span style=\"font-family: 'courier new', courier, monospace;\"><strong>hIcon<\/strong><\/span>: \u30af\u30e9\u30b9\u3078\u306e\u30cf\u30f3\u30c9\u30eb\u3002<span style=\"font-family: 'courier new', courier, monospace;\">LoadIcon(NULL, IDI_APPLICATION)<\/span>\u306f\u30c7\u30d5\u30a9\u30eb\u30c8 \u30a2\u30a4\u30b3\u30f3\u3092\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/li>\n<li><span style=\"font-family: 'courier new', courier, monospace;\"><strong>hCursor<\/strong><\/span>: \u30af\u30e9\u30b9 \u30ab\u30fc\u30bd\u30eb\u3078\u306e\u30cf\u30f3\u30c9\u30eb\u3002<span style=\"font-family: 'courier new', courier, monospace;\">LoadCursor(NULL, IDC_ARROW)<\/span>\u306f\u30c7\u30d5\u30a9\u30eb\u30c8 \u30ab\u30fc\u30bd\u30eb\u3092\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/li>\n<li><span style=\"font-family: 'courier new', courier, monospace;\"><strong>hbrBackground<\/strong><\/span>: \u30af\u30e9\u30b9\u306e\u80cc\u666f\u30d6\u30e9\u30b7\u3078\u306e\u30cf\u30f3\u30c9\u30eb\u3002<span style=\"font-family: 'courier new', courier, monospace;\">GetStockObject (WHITE_BRUSH)<\/span>\u306f\u767d\u3044\u30d6\u30e9\u30b7\u3078\u306e\u30cf\u30f3\u30c9\u30eb\u3092\u8fd4\u3059\u3002<span style=\"font-family: 'courier new', courier, monospace;\">GetStockObject<\/span>\u306f\u6c4e\u7528\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8fd4\u3059\u306e\u3067\u623b\u308a\u5024\u306b\u306f\u578b\u30ad\u30e3\u30b9\u30c8\u304c\u5fc5\u8981\u3002<\/li>\n<li><span style=\"font-family: 'courier new', courier, monospace;\"><strong>lpszMenuName<\/strong><\/span>: \u30af\u30e9\u30b9 \u30e1\u30cb\u30e5\u30fc\u306e\u30ea\u30bd\u30fc\u30b9\u540d\u3092\u6307\u5b9a\u3059\u308b\u3001null\u6587\u5b57\u3067\u7d42\u7aef\u3055\u308c\u305f\u6587\u5b57\u5217\u3078\u306e\u30dd\u30a4\u30f3\u30bf\u30fc\u3092\u6307\u5b9a\u3059\u308b(\u3053\u306e\u540d\u524d\u304c\u30ea\u30bd\u30fc\u30b9 \u30d5\u30a1\u30a4\u30eb\u306b\u8868\u793a\u3055\u308c\u308b)\u3002\u30e1\u30cb\u30e5\u30fc \u30d0\u30fc\u304c\u3044\u3089\u306a\u3051\u308c\u3070\u3001\u3053\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u306f<span style=\"font-family: 'courier new', courier, monospace;\">NULL<\/span>\u3067\u3082\u3088\u3044\u3002<\/li>\n<li><span style=\"font-family: 'courier new', courier, monospace;\"><strong>lpszClassName<\/strong><\/span>: \u3053\u306e\u30a6\u30a3\u30f3\u30c9\u30a6 \u30af\u30e9\u30b9\u306e\u69cb\u9020\u4f53\u3092\u8b58\u5225\u3059\u308b\u30af\u30e9\u30b9\u540d\u3002<\/li>\n<li><span style=\"font-family: 'courier new', courier, monospace;\"><strong>hIconSm<\/strong><\/span>: \u5c0f\u3055\u3044\u30af\u30e9\u30b9 \u30a2\u30a4\u30b3\u30f3\u3078\u306e\u30cf\u30f3\u30c9\u30eb\u3002<\/li>\n<\/ul>\n<p>\u3053\u308c\u3067\u30a6\u30a3\u30f3\u30c9\u30a6 \u30af\u30e9\u30b9\u306e\u5c5e\u6027\u306e\u5b9a\u7fa9\u306f\u7d42\u3048\u305f\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u56f32\u306b\u793a\u3057\u305f<span style=\"font-family: 'courier new', courier, monospace;\">RegisterClassEx()<\/span>\u3092\u4f7f\u3063\u3066\u3053\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u767b\u9332\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u5931\u6557\u3057\u305f\u5834\u5408\u3001<span style=\"font-family: 'courier new', courier, monospace;\">RegisterClassEX()<\/span>\u306f0\u3092\u8fd4\u3057\u307e\u3059\u3002\u6210\u529f\u3057\u305f\u5834\u5408\u3001\u767b\u9332\u3055\u308c\u308b\u30af\u30e9\u30b9\u3092\u4e00\u610f\u306b\u8b58\u5225\u3059\u308b\u30af\u30e9\u30b9 \u30a2\u30c8\u30e0(atom)\u3092\u8fd4\u3057\u307e\u3059\u3002\u30a6\u30a3\u30f3\u30c9\u30a6 \u30af\u30e9\u30b9\u3092\u767b\u9332\u3059\u308b\u3053\u3068\u3067\u3001\u305d\u306e\u30af\u30e9\u30b9\u3068\u305d\u306e\u30af\u30e9\u30b9\u306b\u95a2\u9023\u3059\u308b\u69cb\u9020\u4f53\u30e1\u30f3\u30d0\u30fc\u3092Windows\u306b\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_128460\" aria-describedby=\"caption-attachment-128460\" style=\"width: 756px\" class=\"wp-caption aligncenter\"><img  class=\"wp-image-128460 lozad\"  data-src=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2023\/06\/word-image-128455-2.png\" alt=\"\u753b\u50cf2\u306f\u30a6\u30a3\u30f3\u30c9\u30a6 \u30af\u30e9\u30b9\u306e\u767b\u9332\u3092\u884c\u3063\u3066\u3044\u308b\u30b3\u30fc\u30c9\u884c\u3067\u3059\u3002\" width=\"756\" height=\"376\" \/><figcaption id=\"caption-attachment-128460\" class=\"wp-caption-text\">\u56f32. \u30a6\u30a3\u30f3\u30c9\u30a6 \u30af\u30e9\u30b9\u306e\u767b\u9332<\/figcaption><\/figure>\n<h2><a id=\"post-128502-_occ1yrs64t9q\"><\/a>\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u4f5c\u6210<\/h2>\n<p>\u30a6\u30a3\u30f3\u30c9\u30a6\u304c\u767b\u9332\u3055\u308c\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u56f33\u306b\u793a\u3057\u305f<span style=\"font-family: 'courier new', courier, monospace;\">CreateWindowExA()<\/span>\u3092\u547c\u3073\u51fa\u3057\u3066\u3001\u305d\u306e\u30a6\u30a3\u30f3\u30c9\u30a6 \u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_128462\" aria-describedby=\"caption-attachment-128462\" style=\"width: 900px\" class=\"wp-caption aligncenter\"><img  class=\"wp-image-128462 lozad\"  data-src=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2023\/06\/word-image-128455-3.png\" alt=\"\u753b\u50cf3\u306f\u30e1\u30a4\u30f3 \u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u4f5c\u6210\u3059\u308b\u4f55\u884c\u3082\u306e\u30b3\u30fc\u30c9\u3067\u3059\u3002\" width=\"900\" height=\"1010\" \/><figcaption id=\"caption-attachment-128462\" class=\"wp-caption-text\">\u56f33. \u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u4f5c\u6210\u3059\u308b\u30b3\u30fc\u30c9<\/figcaption><\/figure>\n<p><span style=\"font-family: 'courier new', courier, monospace;\">CreateWindowExA()<\/span>\u3078\u306e\u5f15\u6570\u306f\u56f34\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<figure id=\"attachment_128464\" aria-describedby=\"caption-attachment-128464\" style=\"width: 682px\" class=\"wp-caption aligncenter\"><img  class=\"wp-image-128464 lozad\"  data-src=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2023\/06\/word-image-128455-4.png\" alt=\"\u753b\u50cf4\u306f\u3001CreateWindowExA()\u306e\u95a2\u6570\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u3092\u69cb\u6210\u3059\u308b\u5f15\u6570\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002\" width=\"682\" height=\"508\" \/><figcaption id=\"caption-attachment-128464\" class=\"wp-caption-text\">\u56f34. <span style=\"font-family: 'courier new', courier, monospace;\">CreateWindowExA()<\/span>\u306e\u95a2\u6570\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7<\/figcaption><\/figure>\n<p>\u5404\u9805\u76ee\u3092\u4ee5\u4e0b\u306b\u7c21\u5358\u306b\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li><span style=\"font-family: 'courier new', courier, monospace;\"><strong>dwExStyle<\/strong><\/span>: \u4f5c\u6210\u3059\u308b\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u62e1\u5f35\u30a6\u30a3\u30f3\u30c9\u30a6 \u30b9\u30bf\u30a4\u30eb\u3002\u3053\u3053\u3067\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u5b9a\u6570\u3067\u3042\u308b<span style=\"font-family: 'courier new', courier, monospace;\">WS_EX_LEFT<\/span>\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3053\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u6c4e\u7528\u306e\u5de6\u5bc4\u305b\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4ed8\u4e0e\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n<li><span style=\"font-family: 'courier new', courier, monospace;\"><strong>lpClassName<\/strong><\/span>: \u30af\u30e9\u30b9\u540d\u3002<span style=\"font-family: 'courier new', courier, monospace;\">RegisterClassEX<\/span>\u306e\u547c\u3073\u51fa\u3057\u5185\u3067\u5ba3\u8a00\u3055\u308c\u305f<span style=\"font-family: 'courier new', courier, monospace;\">wcx.lpszClassName<\/span>\u304b\u3089\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n<li><span style=\"font-family: 'courier new', courier, monospace;\"><strong>lpWindowName<\/strong><\/span>: \u30a6\u30a3\u30f3\u30c9\u30a6\u540d\u3002<\/li>\n<li><span style=\"font-family: 'courier new', courier, monospace;\"><strong>dwStyle<\/strong><\/span>: \u4f5c\u6210\u3059\u308b\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u30b9\u30bf\u30a4\u30eb\u3002\u3053\u3053\u3067\u306f\u30c8\u30c3\u30d7\u30ec\u30d9\u30eb\u306e(\u89aa\u306e)\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u4f5c\u6210\u3059\u308b<span style=\"font-family: 'courier new', courier, monospace;\">WS_OVERLAPPEDWINDOW<\/span>\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002<\/li>\n<li><span style=\"font-family: 'courier new', courier, monospace;\"><strong>X<\/strong><\/span>: \u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u6c34\u5e73\u65b9\u5411\u306e\u521d\u671f\u4f4d\u7f6e\u3002\u30aa\u30fc\u30d0\u30fc\u30e9\u30c3\u30d7 \u30a6\u30a3\u30f3\u30c9\u30a6\u307e\u305f\u306f\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7 \u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u5834\u5408\u3001<span style=\"font-family: 'courier new', courier, monospace;\">x<\/span>\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u306f\u30a6\u30a3\u30f3\u30c9\u30a6\u5de6\u4e0a\u9685\u306e\u521d\u671fX\u5ea7\u6a19(\u30b9\u30af\u30ea\u30fc\u30f3\u5ea7\u6a19)\u306b\u306a\u308b\u3002\u5b50\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u5834\u5408\u3001<span style=\"font-family: 'courier new', courier, monospace;\">x<\/span>\u306f\u89aa\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u9818\u57df\u306e\u5de6\u4e0a\u9685\u3092\u57fa\u6e96\u3068\u3057\u305f\u30a6\u30a3\u30f3\u30c9\u30a6\u5de6\u4e0a\u9685\u306ex\u5ea7\u6a19\u306b\u306a\u308b\u3002<span style=\"font-family: 'courier new', courier, monospace;\">x<\/span>\u304c<span style=\"font-family: 'courier new', courier, monospace;\">CW_USEDEFAULT<\/span>\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u30b7\u30b9\u30c6\u30e0\u304c\u30a6\u30a3\u30f3\u30c9\u30a6\u5de6\u4e0a\u9685\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u4f4d\u7f6e\u3092\u9078\u3073\u3001<em>y<\/em>\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u306f\u7121\u8996\u3055\u308c\u307e\u3059\u3002<\/li>\n<li><span style=\"font-family: 'courier new', courier, monospace;\"><strong>Y<\/strong><\/span>: \u4e0a\u8a18\u306eX\u3068\u540c\u3058\u3060\u304c\u65b9\u5411\u306f\u5782\u76f4\u65b9\u5411\u3002<\/li>\n<li><span style=\"font-family: 'courier new', courier, monospace;\"><strong>nWidth<\/strong><\/span>: \u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u5e45\u3002<\/li>\n<li><span style=\"font-family: 'courier new', courier, monospace;\"><strong>nHeight<\/strong><\/span>: \u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u9ad8\u3055\u3002<\/li>\n<li><span style=\"font-family: 'courier new', courier, monospace;\"><strong>hWndParent<\/strong><\/span>: \u4f5c\u6210\u3055\u308c\u308b\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u89aa\u30a6\u30a3\u30f3\u30c9\u30a6\u306a\u3044\u3057\u30aa\u30fc\u30ca\u30fc \u30a6\u30a3\u30f3\u30c9\u30a6\u3078\u306e\u30cf\u30f3\u30c9\u30eb\u3002<\/li>\n<li><span style=\"font-family: 'courier new', courier, monospace;\"><strong>hMenu<\/strong><\/span>: \u30a6\u30a3\u30f3\u30c9\u30a6 \u30b9\u30bf\u30a4\u30eb\u306b\u5fdc\u3058\u3066\u30e1\u30cb\u30e5\u30fc\u3078\u306e\u30cf\u30f3\u30c9\u30eb\u304b\u5b50\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u8b58\u5225\u5b50\u3092\u6307\u5b9a\u3002\u30aa\u30fc\u30d0\u30fc\u30e9\u30c3\u30d7 \u30a6\u30a3\u30f3\u30c9\u30a6\u307e\u305f\u306f\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7 \u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u5834\u5408\u3001<span style=\"font-family: 'courier new', courier, monospace;\">hMenu<\/span>\u306f\u305d\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u4f7f\u308f\u308c\u308b\u30e1\u30cb\u30e5\u30fc\u3092\u8b58\u5225\u3057\u307e\u3059\u3002\u30af\u30e9\u30b9 \u30e1\u30cb\u30e5\u30fc\u3092\u4f7f\u3046\u5834\u5408\u306f\u3053\u308c\u306b<span style=\"font-family: 'courier new', courier, monospace;\">NULL<\/span>\u3092\u6307\u5b9a\u3057\u3066\u3082\u3088\u3044\u3002<\/li>\n<li><span style=\"font-family: 'courier new', courier, monospace;\"><strong>hInstance<\/strong><\/span>: \u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u95a2\u9023\u4ed8\u3051\u3089\u308c\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3078\u306e\u30cf\u30f3\u30c9\u30eb\u3002<\/li>\n<li><span style=\"font-family: 'courier new', courier, monospace;\"><strong>lpParam<\/strong><\/span>: \u305d\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u30a6\u30a3\u30f3\u30c9\u30a6 \u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306b\u6e21\u3055\u308c\u308b\u8ffd\u52a0\u60c5\u5831\u3002\u8ffd\u52a0\u60c5\u5831\u3092\u6e21\u3055\u306a\u3044\u5834\u5408\u306f<span style=\"font-family: 'courier new', courier, monospace;\">NULL<\/span>\u3092\u6e21\u3059\u3002<\/li>\n<\/ul>\n<p><span style=\"font-family: 'courier new', courier, monospace;\">CreateWindowEx()<\/span>\u3092\u547c\u3073\u51fa\u3057\u3066\u30a6\u30a3\u30f3\u30c9\u30a6\u304c\u4f5c\u6210\u3055\u308c\u308b\u3068\u3001\u305d\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u306f\u5185\u90e8\u7684\u306b\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u30e1\u30e2\u30ea\u30fc\u304c\u5272\u308a\u5f53\u3066\u3089\u308c\u3066\u69cb\u9020\u4f53\u306b\u306f\u5024\u304c\u5165\u308a\u307e\u3059\u304c\u307e\u3060\u8868\u793a\u306f\u3055\u308c\u307e\u305b\u3093\u3002\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u8868\u793a\u3059\u308b\u306b\u306f<span style=\"font-family: 'courier new', courier, monospace;\">ShowWindow()<\/span>\u95a2\u6570\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002<\/p>\n<p><span style=\"font-family: 'courier new', courier, monospace;\">ShowWindow()<\/span>\u306f<span style=\"font-family: 'courier new', courier, monospace;\">CreateWindowExW()<\/span>\u306e\u547c\u3073\u51fa\u3057\u3067\u5f97\u3089\u308c\u305f\u30cf\u30f3\u30c9\u30eb\u3068\u3001<span style=\"font-family: 'courier new', courier, monospace;\">WinMain()<\/span>\u304b\u3089\u5f97\u3089\u308c\u305f\u72b6\u614b\u5909\u6570\u306e<span style=\"font-family: 'courier new', courier, monospace;\">nCmdShow<\/span>\u3092\u53d7\u3051\u53d6\u308a\u307e\u3059\u3002\u3053\u306e\u72b6\u614b\u5909\u6570<span style=\"font-family: 'courier new', courier, monospace;\"> <a href=\"https:\/\/learn.microsoft.com\/ja-jp\/windows\/win32\/api\/winuser\/nf-winuser-showwindow\">nCmdShow<\/a><\/span>\u306f\u3001\u901a\u5e38\u306e\u72b6\u614b\u3001\u6700\u5927\u5316\u3055\u308c\u305f\u72b6\u614b\u3001\u6700\u5c0f\u5316\u3055\u308c\u305f\u72b6\u614b\u306e\u3088\u3046\u306b\u3001\u30a6\u30a3\u30f3\u30c9\u30a6\u304c\u753b\u9762\u4e0a\u306b\u3069\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u308b\u304b\u3092\u6c7a\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><span style=\"font-family: 'courier new', courier, monospace;\">ShowWindow()<\/span>\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u8868\u793a\u65b9\u6cd5\u306e\u307f\u3092\u5236\u5fa1\u3057\u307e\u3059\u3002\u3053\u306e\u5236\u5fa1\u5bfe\u8c61\u306b\u306f\u3001\u30bf\u30a4\u30c8\u30eb \u30d0\u30fc\u3001\u30e1\u30cb\u30e5\u30fc \u30d0\u30fc\u3001\u30a6\u30a3\u30f3\u30c9\u30a6 \u30e1\u30cb\u30e5\u30fc\u3001\u6700\u5c0f\u5316\u30dc\u30bf\u30f3\u306a\u3069\u306e\u8981\u7d20\u304c\u542b\u307e\u308c\u307e\u3059\u3002\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u9818\u57df\u3068\u306f\u3001\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u6587\u5b57\u3092\u5165\u529b\u3059\u308b\u5834\u6240\u306a\u3069\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u30c7\u30fc\u30bf\u3092\u8868\u793a\u3059\u308b\u9818\u57df\u306e\u3053\u3068\u3067\u3059\u3002\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u9818\u57df\u306f<span style=\"font-family: 'courier new', courier, monospace;\">UpdateWindow()<\/span>\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u3067\u63cf\u753b\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><span style=\"font-family: 'courier new', courier, monospace;\">CreateWindowExW()<\/span>\u95a2\u6570\u3078\u306e<span style=\"font-family: 'courier new', courier, monospace;\">dwStyle<\/span>\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u306b<span style=\"font-family: 'courier new', courier, monospace;\">WS_VISIBLE<\/span>\u30a6\u30a3\u30f3\u30c9\u30a6 \u30b9\u30bf\u30a4\u30eb\u3092\u6307\u5b9a\u3057\u305f\u5834\u5408\u306f<span style=\"font-family: 'courier new', courier, monospace;\">ShowWindow()<\/span>\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u305d\u306e\u5834\u5408\u3001\u6697\u9ed9\u7684\u306bWindows\u304c\u547c\u3073\u51fa\u3057\u3092\u4ee3\u884c\u3057\u3066\u304f\u308c\u307e\u3059\u3002\u540c\u69d8\u306b\u3001<span style=\"font-family: 'courier new', courier, monospace;\">WS_VISIBLE<\/span>\u30b9\u30bf\u30a4\u30eb\u3092\u6307\u5b9a\u305b\u305a\u3001<span style=\"font-family: 'courier new', courier, monospace;\">ShowWindow()<\/span>\u95a2\u6570\u3082\u547c\u3073\u51fa\u3055\u306a\u304b\u3063\u305f\u5834\u5408\u3001\u30a6\u30a3\u30f3\u30c9\u30a6\u306f\u8868\u793a\u3055\u308c\u306a\u3044\u307e\u307e\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2><a id=\"post-128502-_duvvkz236yo7\"><\/a>\u30a6\u30a3\u30f3\u30c9\u30a6 \u30e1\u30c3\u30bb\u30fc\u30b8\u3068\u30a6\u30a3\u30f3\u30c9\u30a6 \u30d7\u30ed\u30b7\u30fc\u30b8\u30e3<\/h2>\n<p><span style=\"font-family: 'courier new', courier, monospace;\">UpdateWindow()<\/span>\u3092\u547c\u3073\u51fa\u3059\u3068\u30a6\u30a3\u30f3\u30c9\u30a6\u304c\u5b8c\u5168\u306b\u8868\u793a\u3055\u308c\u3066\u4f7f\u7528\u53ef\u80fd\u306a\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\u3002Windows\u7528\u306e\u3082\u3063\u3068\u30b7\u30f3\u30d7\u30eb\u306a\u30b3\u30f3\u30bd\u30fc\u30eb \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u66f8\u304f\u5834\u5408\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u306e\u30e6\u30fc\u30b6\u30fc\u5165\u529b\u306b\u5fdc\u3058\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u660e\u793a\u7684\u306b\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u3082\u3064\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5834\u5408\u3001\u901a\u5e38\u306f\u30e6\u30fc\u30b6\u30fc\u304c\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u3084\u308a\u3068\u308a\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u30c6\u30ad\u30b9\u30c8\u3092\u5165\u529b\u3057\u305f\u308a\u3001\u30dc\u30bf\u30f3\u3084\u30e1\u30cb\u30e5\u30fc\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u308a\u3001\u30de\u30a6\u30b9\u3092\u52d5\u304b\u3057\u305f\u308a\u3057\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u306b\u306f\u3001\u305d\u308c\u305e\u308c\u7279\u5225\u306a\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u3001Microsoft\u306f\u30e6\u30fc\u30b6\u30fc\u5165\u529b(\u30ad\u30fc\u30dc\u30fc\u30c9\u3001\u30de\u30a6\u30b9\u3001\u30bf\u30c3\u30c1\u306a\u3069)\u304b\u3089\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u5404\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u3055\u307e\u3056\u307e\u306a\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u30ea\u30ec\u30fc\u3059\u308b\u30a4\u30d9\u30f3\u30c8\u99c6\u52d5\u578b\u30b7\u30b9\u30c6\u30e0\u3092\u5b9f\u88c5\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u3089\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u3001\u300c\u30a6\u30a3\u30f3\u30c9\u30a6 \u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u300d\u3068\u547c\u3070\u308c\u308b\u5404\u30a6\u30a3\u30f3\u30c9\u30a6\u5185\u306e\u95a2\u6570\u306b\u3088\u3063\u3066\u51e6\u7406\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>Windows\u306f\u30b9\u30ec\u30c3\u30c9\u3054\u3068\u306b1\u3064\u30e1\u30c3\u30bb\u30fc\u30b8 \u30ad\u30e5\u30fc\u3092\u4fdd\u6301\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30e1\u30c3\u30bb\u30fc\u30b8 \u30ad\u30e5\u30fc\u306f\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u72b6\u614b\u306b\u5f71\u97ff\u3059\u308b\u3088\u3046\u306a\u30e6\u30fc\u30b6\u30fc\u5165\u529b\u30a4\u30d9\u30f3\u30c8\u304c\u3042\u308c\u3070\u305d\u308c\u3092\u4e2d\u7d99\u3057\u307e\u3059\u3002\u305d\u3057\u3066Windows\u304c\u3053\u308c\u3089\u306e\u30a4\u30d9\u30f3\u30c8\u3092\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u5909\u63db\u3057\u3001\u30e1\u30c3\u30bb\u30fc\u30b8 \u30ad\u30e5\u30fc\u306b\u914d\u7f6e\u3057\u307e\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u4ee5\u4e0b\u306e\u56f35\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3053\u308c\u3089\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u51e6\u7406\u3057\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_128466\" aria-describedby=\"caption-attachment-128466\" style=\"width: 700px\" class=\"wp-caption aligncenter\"><img  class=\"wp-image-128466 lozad\"  data-src=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2023\/06\/word-image-128455-5.png\" alt=\"\u753b\u50cf5\u306f\u3001while\u304b\u3089\u59cb\u307e\u308b\u30a6\u30a3\u30f3\u30c9\u30a6 \u30e1\u30c3\u30bb\u30fc\u30b8 \u30ad\u30e5\u30fc\u306e\u30eb\u30fc\u30d7\u3067\u3059\u3002 \" width=\"700\" height=\"212\" \/><figcaption id=\"caption-attachment-128466\" class=\"wp-caption-text\">\u56f35. \u30a6\u30a3\u30f3\u30c9\u30a6 \u30e1\u30c3\u30bb\u30fc\u30b8 \u30ad\u30e5\u30fc\u306e\u30eb\u30fc\u30d7<\/figcaption><\/figure>\n<p><span style=\"font-family: 'courier new', courier, monospace;\">GetMessage()<\/span>\u95a2\u6570\u306f\u3001\u30e1\u30c3\u30bb\u30fc\u30b8 \u30ad\u30e5\u30fc\u304b\u3089\u6b21\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc&amp;msg\u306f<a href=\"https:\/\/learn.microsoft.com\/ja-jp\/windows\/win32\/api\/winuser\/ns-winuser-msg\"><span style=\"font-family: 'courier new', courier, monospace;\">MSG\u69cb\u9020\u4f53<\/span><\/a>\u3078\u306e\u30dd\u30a4\u30f3\u30bf\u30fc\u3067\u3059\u3002\u3053\u306eMSG\u69cb\u9020\u4f53\u5185\u306b\u306f\u3001\u5272\u308a\u5f53\u3066\u3089\u308c\u305f\u30a6\u30a3\u30f3\u30c9\u30a6 \u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u304c\u305d\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9069\u5207\u306b\u51e6\u7406\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u3068\u3059\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u60c5\u5831\u304c\u4fdd\u6301\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><span style=\"font-family: 'courier new', courier, monospace;\">MSG<\/span>\u69cb\u9020\u4f53\u306e\u30e1\u30f3\u30d0\u30fc\u306b\u306f\u3001<span style=\"font-family: 'courier new', courier, monospace;\">hwnd<\/span>\u3084<span style=\"font-family: 'courier new', courier, monospace;\">message<\/span>\u306a\u3069\u304c\u3042\u308a\u307e\u3059\u3002<span style=\"font-family: 'courier new', courier, monospace;\">hwnd<\/span>\u306b\u306f\u30a6\u30a3\u30f3\u30c9\u30a6 \u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u304c\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d7\u4fe1\u3059\u308b\u30a6\u30a3\u30f3\u30c9\u30a6\u3078\u306e\u30cf\u30f3\u30c9\u30eb\u304c\u5165\u3063\u3066\u3044\u3066\u3001<span style=\"font-family: 'courier new', courier, monospace;\">message<\/span>\u306b\u306f\u3001\u30a6\u30a3\u30f3\u30c9\u30a6 \u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u3078\u306e\u8981\u6c42\u5185\u5bb9\u3092\u6c7a\u5b9a\u3059\u308b\u30e1\u30c3\u30bb\u30fc\u30b8ID\u304c\u5165\u3063\u3066\u3044\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3053\u306emessage\u306b<span style=\"font-family: 'courier new', courier, monospace;\">WM_PAINT<\/span>\u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u305d\u308c\u306f\u300c\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u9818\u57df\u304c\u5909\u66f4\u3055\u308c\u305f\u306e\u3067\u518d\u63cf\u753b\u304c\u5fc5\u8981\u300d\u3068\u30a6\u30a3\u30f3\u30c9\u30a6 \u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306b\u4f1d\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><span style=\"font-family: 'courier new', courier, monospace;\">TranslateMessage()<\/span>\u95a2\u6570\u306f\u4eee\u60f3\u30ad\u30fc \u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u6587\u5b57\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u5909\u63db\u3059\u308b\u3082\u306e\u3067\u3059\u304c\u3001\u4eca\u56de\u306e\u89e3\u8aac\u3067\u306f\u91cd\u8981\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<span style=\"font-family: 'courier new', courier, monospace;\">DispatchMessage()<\/span>\u95a2\u6570\u306fMSG\u69cb\u9020\u4f53\u306e\u30a6\u30a3\u30f3\u30c9\u30a6 \u30cf\u30f3\u30c9\u30eb\u3067\u8b58\u5225\u3057\u305f\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u308a\u3001\u305d\u306e\u30a6\u30a3\u30f3\u30c9\u30a6 \u30af\u30e9\u30b9\u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u30a6\u30a3\u30f3\u30c9\u30a6 \u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306b\u51e6\u7406\u3055\u305b\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u6642\u70b9\u307e\u3067\u306b\u3001\u3053\u306e\u30b5\u30f3\u30d7\u30eb \u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u306e\u52d5\u4f5c\u3092\u884c\u3046\u3053\u3068\u3067\u3001\u30a6\u30a3\u30f3\u30c9\u30a6 \u30af\u30e9\u30b9\u306e\u5b9a\u7fa9\u3068\u3044\u3046\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u3092\u5b8c\u4e86\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u767b\u9332\u3059\u308b<\/li>\n<li>\u30a6\u30a3\u30f3\u30c9\u30a6 \u30af\u30e9\u30b9\u3067\u5b9a\u7fa9\u3055\u308c\u305f\u30a6\u30a3\u30f3\u30c9\u30a6 \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3059\u308b<\/li>\n<li>\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u753b\u9762\u306b\u8868\u793a\u3059\u308b<\/li>\n<li>\u30e1\u30c3\u30bb\u30fc\u30b8 \u30eb\u30fc\u30d7\u306b\u5165\u308b<\/li>\n<\/ul>\n<p>\u4f55\u3092\u8868\u793a\u3059\u308b\u304b\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u5165\u529b\u306b\u3069\u3046\u53cd\u5fdc\u3059\u308b\u304b\u3092\u6c7a\u3081\u308b\u306e\u306f\u30a6\u30a3\u30f3\u30c9\u30a6 \u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u3067\u3059\u3002Windows\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u51e6\u7406\u3057\u306a\u3044\u30a6\u30a3\u30f3\u30c9\u30a6 \u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u306e\u30c7\u30d5\u30a9\u30eb\u30c8 \u30a6\u30a3\u30f3\u30c9\u30a6 \u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u3092\u7528\u610f\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30c7\u30d5\u30a9\u30eb\u30c8 \u30a6\u30a3\u30f3\u30c9\u30a6 \u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306f\u3042\u3089\u3086\u308b\u30a6\u30a3\u30f3\u30c9\u30a6\u304c\u9069\u5207\u306b\u6a5f\u80fd\u3059\u308b\u3088\u3046\u306b\u6700\u5c0f\u9650\u306e\u6a5f\u80fd\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u3059\u3079\u3066\u306e\u6a5f\u80fd\u304c\u305d\u306e\u306a\u304b\u306b\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304b\u3089\u3082\u63a8\u6e2c\u3055\u308c\u308b\u3088\u3046\u306b\u3001\u30a6\u30a3\u30f3\u30c9\u30a6 \u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306f\u304b\u306a\u308a\u8907\u96d1\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u672c\u7a3f\u3067\u306fMicrosoft\u306e\u30c7\u30d5\u30a9\u30eb\u30c8 \u30a6\u30a3\u30f3\u30c9\u30a6 \u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u3067\u3042\u308b<span style=\"font-family: 'courier new', courier, monospace;\">DefWindowProc()<\/span>\u306b\u306e\u307f\u6ce8\u76ee\u3057\u307e\u3059\u3002<\/p>\n<h2><a id=\"post-128502-_bngsaeolgul\"><\/a>\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u69cb\u9020\u4f53<\/h2>\n<p>\u524d\u8ff0\u306e\u3088\u3046\u306b\u3001Windows\u306f\u30e1\u30cb\u30e5\u30fc\u3084\u30a6\u30a3\u30f3\u30c9\u30a6\u306a\u3069\u306eGUI\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092<span style=\"font-family: 'courier new', courier, monospace;\">Win32k.sys<\/span>\u3092\u4ecb\u3057\u3066\u30ab\u30fc\u30cd\u30eb\u5185\u3067\u7ba1\u7406\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u30a6\u30a3\u30f3\u30c9\u30a6 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u4f5c\u6210\u3055\u308c\u308b\u3068\u3001\u305d\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306f<span style=\"font-family: 'courier new', courier, monospace;\">tagWND<\/span>\u3068\u3044\u3046\u540d\u524d\u306e\u30c7\u30fc\u30bf\u69cb\u9020\u3067\u8ffd\u8de1\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u6b8b\u5ff5\u306a\u304c\u3089Microsoft\u306fWin32k\u306e\u30c7\u30d0\u30c3\u30b0 \u30b7\u30f3\u30dc\u30eb\u306e\u591a\u304f\u3092\u524a\u9664\u3057\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u3001\u3053\u308c\u3089\u69cb\u9020\u4f53\u306e\u5185\u5bb9\u306f\u78ba\u8a8d\u3057\u3065\u3089\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u30ea\u30d0\u30fc\u30b9 \u30a8\u30f3\u30b8\u30cb\u30a2\u30ea\u30f3\u30b0\u306b\u3082\u3068\u3065\u3044\u3066\u3001Windows 10 \u30d0\u30fc\u30b8\u30e7\u30f3 21H1\u3067\u306f\u3053\u306e\u69cb\u9020\u4f53\u304b\u3069\u306e\u3088\u3046\u306b\u898b\u3048\u308b\u304b\u3092\u56f36\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_128468\" aria-describedby=\"caption-attachment-128468\" style=\"width: 900px\" class=\"wp-caption aligncenter\"><img  class=\"wp-image-128468 lozad\"  data-src=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2023\/06\/word-image-128455-6.png\" alt=\"\u753b\u50cf6\u306f\u4f55\u884c\u306b\u3082\u308f\u305f\u308b\u30b3\u30fc\u30c9\u3067\u3059\u3002\u3053\u306e\u753b\u50cf\u306f\u89aa\u306etagWND\u69cb\u9020\u4f53\u3092\u8868\u3057\u3066\u3044\u307e\u3059\u3002 \" width=\"900\" height=\"690\" \/><figcaption id=\"caption-attachment-128468\" class=\"wp-caption-text\">\u56f36. \u89aa\u306e<span style=\"font-family: 'courier new', courier, monospace;\">tagWND<\/span>\u69cb\u9020\u4f53<\/figcaption><\/figure>\n<p>\u3053\u308c\u306f\u7db2\u7f85\u7684\u306a\u30e1\u30f3\u30d0\u30fc\u306e\u30ea\u30b9\u30c8\u3067\u306f\u306a\u304f\u3001\u672c\u7a3f\u3067\u306e\u8aac\u660e\u4e0a\u91cd\u8981\u306a\u3082\u306e\u3060\u3051\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u69cb\u9020\u4f53\u306e\u5272\u308a\u5f53\u3066\u304c\u767a\u751f\u3059\u308b<span style=\"font-family: 'courier new', courier, monospace;\">xxxCreateWindowEx<\/span>\u306e\u547c\u3073\u51fa\u3057\u4e2d\u306b<span style=\"font-family: 'courier new', courier, monospace;\">HMAllocObject<\/span>\u3092\u78ba\u8a8d\u3059\u308b\u3068\u3001\u3053\u306e\u69cb\u9020\u4f53\u306e\u30b5\u30a4\u30ba\u306f<span style=\"font-family: 'courier new', courier, monospace;\">0x150<\/span> (336)\u30d0\u30a4\u30c8\u3067\u3042\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><span style=\"font-family: 'courier new', courier, monospace;\">HMAllocObject<\/span>\u3092\u547c\u3073\u51fa\u3059\u76f4\u524d\u306e<span style=\"font-family: 'courier new', courier, monospace;\">WinDbg<\/span>\u306e\u51fa\u529b\u3092\u56f37\u306b\u793a\u3057\u307e\u3059\u3002\u5272\u308a\u5f53\u3066\u30b5\u30a4\u30ba\u3092\u8868\u3059\u7b2c4\u5f15\u6570\u304c<span style=\"font-family: 'courier new', courier, monospace;\">r9<\/span>\u30ec\u30b8\u30b9\u30bf\u306b\u683c\u7d0d\u3055\u308c\u3001\u3053\u308c\u304c<span style=\"font-family: 'courier new', courier, monospace;\">0x150<\/span>\u306b\u76f8\u5f53\u3059\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_128470\" aria-describedby=\"caption-attachment-128470\" style=\"width: 900px\" class=\"wp-caption aligncenter\"><img  class=\"wp-image-128470 lozad\"  data-src=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2023\/06\/word-image-128455-7.png\" alt=\"\u753b\u50cf7\u306fWinDbg\u306e\u51fa\u529b\u3067\u3001HMAllocObject\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3078\u306e\u5165\u529b\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u7b2c4\u5f15\u6570\u306f\u5272\u308a\u5f53\u3066\u30b5\u30a4\u30ba\u3092\u8868\u3057\u3001r9\u30ec\u30b8\u30b9\u30bf\u306b\u683c\u7d0d\u3055\u308c\u3066\u3044\u307e\u3059\u3002\" width=\"900\" height=\"139\" \/><figcaption id=\"caption-attachment-128470\" class=\"wp-caption-text\">\u56f37 <span style=\"font-family: 'courier new', courier, monospace;\">HMAllocObject<\/span>\u3078\u306e\u5165\u529b\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u8868\u793a\u3057\u3066\u3044\u308b<span style=\"font-family: 'courier new', courier, monospace;\">WinDbg<\/span>\u306e\u51fa\u529b<\/figcaption><\/figure>\n<p>\u56f36\u306b\u793a\u3059<span style=\"font-family: 'courier new', courier, monospace;\">tagWND<\/span>\u69cb\u9020\u4f53\u306f\u3001\u4ee5\u524d\u306fTEB (Thread Environment Block: \u30b9\u30ec\u30c3\u30c9\u74b0\u5883\u30d6\u30ed\u30c3\u30af)\u306e<span style=\"font-family: 'courier new', courier, monospace;\">Win32ClientInfo<\/span>\u30e1\u30f3\u30d0\u30fc\u5185\u3067\u53c2\u7167\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002\u305d\u306e\u5f8c\u30ab\u30fc\u30cd\u30eb\u30e2\u30fc\u30c9\u306e\u30a2\u30c9\u30ec\u30b9\u304c\u6f0f\u51fa\u3057\u306b\u304f\u3044\u3088\u3046\u3001\u3053\u308c\u306f\u524a\u9664\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u30ab\u30fc\u30cd\u30eb<span style=\"font-family: 'courier new', courier, monospace;\">tagWND<\/span>\u69cb\u9020\u4f53\u306e\u6700\u521d\u306e\u30e1\u30f3\u30d0\u30fc\u306f\u30a6\u30a3\u30f3\u30c9\u30a6 \u30cf\u30f3\u30c9\u30eb\u3067\u3059\u3002\u305d\u308c\u305e\u308c\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u306f\u30ab\u30fc\u30cd\u30eb\u5185\u306b\u81ea\u8eab\u3068\u306e\u7d10\u3065\u3051\u3092\u3059\u308b<span style=\"font-family: 'courier new', courier, monospace;\">tagWND<\/span>\u3068\u3044\u3046\u69cb\u9020\u4f53\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>CVE-2022-21882\u306e\u89e3\u6790\u3067\u306f\u3053\u306e\u69cb\u9020\u4f53\u304c\u91cd\u8981\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u4eca\u306f\u30aa\u30d5\u30bb\u30c3\u30c8<span style=\"font-family: 'courier new', courier, monospace;\">0x28<\/span>\u306b\u6ce8\u76ee\u3057\u307e\u3059\u3002Microsoft\u304c\u30b7\u30f3\u30dc\u30eb\u3092\u63d0\u4f9b\u3057\u306a\u304f\u306a\u3063\u305f\u306e\u3067\u3001\u7b46\u8005\u306f\u3053\u306e\u30aa\u30d5\u30bb\u30c3\u30c8\u306b<span style=\"font-family: 'courier new', courier, monospace;\">*pWND<\/span>\u3068\u3044\u3046\u30e9\u30d9\u30eb\u3092\u3064\u3051\u307e\u3057\u305f\u3002\u307e\u305f\u540c\u793e\u306f\u3001\u3053\u306e\u69cb\u9020\u4f53\u540d\u3082\u3082\u3046\u63d0\u4f9b\u3057\u3066\u3044\u307e\u305b\u3093\u3002\u305f\u3060\u3057\u3001\u3053\u308c\u306f\u304b\u3064\u3066state\u3084WW\u3068\u547c\u3070\u308c\u3066\u3044\u307e\u3057\u305f\u3002Microsoft\u306b\u3088\u308c\u3070\u3053\u308c\u3089\u306e\u540d\u524d\u306f\u5ec3\u6b62\u4e88\u5b9a\u3067\u5185\u90e8\u7684\u306b\u306f\u3082\u3046\u4f7f\u308f\u308c\u3066\u3044\u306a\u3044\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u30dd\u30a4\u30f3\u30bf\u30fc\u306e\u91cd\u8981\u306a\u70b9\u306f\u3001\u3053\u308c\u304c\u30ab\u30fc\u30cd\u30eb \u30a2\u30c9\u30ec\u30b9\u3092\u542b\u307e\u306a\u3044\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u7248\u306e<span style=\"font-family: 'courier new', courier, monospace;\">tagWND<\/span>\u69cb\u9020\u4f53\u3067\u3001\u305d\u306e\u89aa\u3067\u3042\u308b<span style=\"font-family: 'courier new', courier, monospace;\">tagWND<\/span>\u69cb\u9020\u4f53\u3068\u306f\u7570\u306a\u308b\u69cb\u9020\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u3067\u3059\u3002\u3053\u306e\u5b50\u306e\u69cb\u9020\u4f53\u306f\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u5185\u3060\u3051\u3067\u306a\u304f\u30ab\u30fc\u30cd\u30eb\u5185\u306b\u3082\u5b58\u5728\u3057\u307e\u3059\u3002Windows\u306f\u3053\u306e\u3088\u3046\u306b\u30c7\u30fc\u30bf\u3092\u7ba1\u7406\u3059\u308b\u3053\u3068\u3067\u30ab\u30fc\u30cd\u30eb \u30a2\u30c9\u30ec\u30b9\u306e\u6f0f\u3048\u3044\u3092\u907f\u3051\u3088\u3046\u3068\u3057\u3066\u3044\u307e\u3059\u3002\u3068\u3044\u3046\u306e\u3082\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u306e\u30c7\u30b9\u30af\u30c8\u30c3\u30d7 \u30d2\u30fc\u30d7\u5185\u306b\u3042\u308b<span style=\"font-family: 'courier new', courier, monospace;\">tagWND<\/span>\u69cb\u9020\u4f53\u306e\u30b3\u30d4\u30fc\u3092\u4f7f\u3063\u3066\u52d5\u4f5c\u3057\u3066\u3044\u3066\u3001\u30ab\u30fc\u30cd\u30eb\u30e2\u30fc\u30c9\u306e\u30a2\u30c9\u30ec\u30b9\u306f\u898b\u3089\u308c\u306a\u3044\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u3067\u306f\u5f15\u304d\u7d9a\u304d\u3053\u306e\u5b50\u306e\u69cb\u9020\u4f53\u3092<span style=\"font-family: 'courier new', courier, monospace;\">tagWND<\/span>\u69cb\u9020\u4f53\u3068\u547c\u3076\u3053\u3068\u306b\u3057\u307e\u3059\u3002\u3053\u306e\u5b50\u306e\u69cb\u9020\u4f53\u306f\u3001\u524d\u8ff0\u306e\u89aa\u306e<span style=\"font-family: 'courier new', courier, monospace;\">tagWND<\/span>\u69cb\u9020\u4f53\u3068\u306f\u7570\u306a\u308b(\u4e0b\u8a18\u56f38\u306e\u3088\u3046\u306a)\u69cb\u9020\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u4ed6\u306e\u30ea\u30b5\u30fc\u30c1 \u30d6\u30ed\u30b0\u3084\u8ad6\u6587\u3067\u3082<span style=\"font-family: 'courier new', courier, monospace;\">tagWND<\/span>\u547c\u3070\u308c\u308b\u3053\u3068\u304c\u591a\u3044\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u5b50\u3067\u3042\u308b<span style=\"font-family: 'courier new', courier, monospace;\">tagWND<\/span>\u69cb\u9020\u4f53\u306f\u56f38\u306b\u793a\u3059\u3068\u304a\u308a\u3067\u3001\u30ea\u30d0\u30fc\u30b9 \u30a8\u30f3\u30b8\u30cb\u30a2\u30ea\u30f3\u30b0\u306b\u3088\u3063\u3066\u305d\u306e\u30e1\u30f3\u30d0\u30fc\u3068\u305d\u306e\u30aa\u30d5\u30bb\u30c3\u30c8\u306f\u78ba\u8a8d\u6e08\u307f\u3067\u3059\u3002\u30ae\u30e3\u30c3\u30d7\u306f\u5206\u6790\u3057\u3066\u3044\u307e\u305b\u3093\u304c\u305d\u308c\u306f\u4eca\u56de\u306e\u8b70\u8ad6\u3067\u306f\u91cd\u8981\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u300c\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u4f5c\u6210\u300d\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u8aac\u660e\u3057\u305f<span style=\"font-family: 'courier new', courier, monospace;\">WNDCLASSEX<\/span>\u69cb\u9020\u4f53\u306e\u30e1\u30f3\u30d0\u30fc\u306e\u591a\u304f\u304c\u3053\u306e<span style=\"font-family: 'courier new', courier, monospace;\">tagWND<\/span>\u69cb\u9020\u4f53\u3067\u3082\u898b\u3046\u3051\u3089\u308c\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u4f5c\u6210\u6642\u306b<span style=\"font-family: 'courier new', courier, monospace;\">WNDCLASSEX<\/span>\u69cb\u9020\u4f53\u3092\u4ecb\u3057\u3066\u5272\u308a\u5f53\u3066\u3089\u308c\u305f\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u3001\u30ab\u30fc\u30cd\u30eb\u306b\u6e21\u3055\u308c\u305f\u5f8c\u3001<span style=\"font-family: 'courier new', courier, monospace;\">tagWND<\/span>\u69cb\u9020\u4f53\u5185\u306b\u683c\u7d0d\u3055\u308c\u308b\u3068\u3044\u3046\u3053\u3068\u306f\u660e\u3089\u304b\u3067\u3059\u3002\u305d\u3057\u3066\u3001\u305d\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u3055\u3089\u306b\u3001\u30ab\u30fc\u30cd\u30eb\u3068\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u306e\u4e21\u30c7\u30b9\u30af\u30c8\u30c3\u30d7 \u30d2\u30fc\u30d7\u5185\u306b\u3042\u308b\u30e6\u30fc\u30b6\u30fc \u30b3\u30d4\u30fc\u306b\u4f1d\u642c\u3055\u308c\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_128472\" aria-describedby=\"caption-attachment-128472\" style=\"width: 870px\" class=\"wp-caption aligncenter\"><img  class=\"wp-image-128472 lozad\"  data-src=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2023\/06\/word-image-128455-8.png\" alt=\"\u753b\u50cf8\u306b\u306f\u4f55\u884c\u3082\u306e\u30b3\u30fc\u30c9\u304c\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u5b50\u306etagWND\u69cb\u9020\u4f53\u3092\u8868\u3057\u3066\u3044\u307e\u3059\u3002BYTE\u306e\u30ae\u30e3\u30c3\u30d7\u306f\u4eca\u56de\u306f\u95a2\u9023\u6027\u304c\u306a\u3044\u306e\u3067\u5206\u6790\u3057\u3066\u3044\u307e\u305b\u3093\u3002 \" width=\"870\" height=\"566\" \/><figcaption id=\"caption-attachment-128472\" class=\"wp-caption-text\">\u56f38. <span style=\"font-family: 'courier new', courier, monospace;\">tagWND<\/span>\u69cb\u9020\u4f53\u306e\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30bb\u30fc\u30d5 \u30b3\u30d4\u30fc<\/figcaption><\/figure>\n<p>\u56f39\u3068\u56f310\u306f\u305d\u308c\u305e\u308c\u3001\u89aa\u306e<span style=\"font-family: 'courier new', courier, monospace;\">tagWND<\/span>\u69cb\u9020\u4f53\u3068\u30ab\u30fc\u30cd\u30eb\u7248\u306e\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30bb\u30fc\u30d5 \u30b3\u30d4\u30fc\u3067\u3042\u308b\u5b50\u306e<span style=\"font-family: 'courier new', courier, monospace;\">tagWND<\/span>\u69cb\u9020\u4f53\u3067\u3059\u3002<\/p>\n<figure id=\"attachment_128474\" aria-describedby=\"caption-attachment-128474\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><img  class=\"wp-image-128474 lozad\"  data-src=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2023\/06\/ff-ff8e82-ffff8e82-ff-ff8e82-ffff8e82-ff-ff8e8.png\" alt=\"\u753b\u50cf9\u306f\u89aa\u306etagWND\u69cb\u9020\u4f53\u306eWinDbg\u30e1\u30e2\u30ea\u30fc \u30c0\u30f3\u30d7\u3067\u3059\u3002ff.ff8e82 ffff8e82 ff.ff8e82 ffff8e82 ff.ff8e82 ffff8e82 ff.ff8e82 ffff8e82 ffff8e82 ffff8e82 ffff8e82 kd&gt; dq exffff8e82ee8437ee Lye eee\u00f8\u00f8eee\u2022 eee5033e eeeo\u00f8ee\u00f8s 00038390 oeeeeeee\u2022 eeee\u00f8ee\u00f8 e\u00f8e\u00f8\u00f8eee\u2022 e\u00f8eeo\u00f8ee eee\u00f8e\u00f8\u00f8e\u2022 eee\u00f8\u00f8ee\u00f8 eeee\u00f8eee\u2022 ee\u00f8eeeee oeeeee\u00f8e\u2022 eeeeeee\u00f8 e\u00f8eo\u00f8eee\u2022 eo\u00f8eeeee oeeee\u00f8\u00f8e\u2022 eeee\u00f8eee eeeoeeees oooee\u00f8ee eee\u00f8e15b\u2022 a4b69d8\u00f8 e\u00f88437e\u00f8 008437f\u00f8 00843800 00843810 00843820 00843830 00843840 00843850 00843860 00843870 00843880 eee\u00f8e\u00f8\u00f8e\u2022 eeee\u00f8ees ffffd40fS f34ea4b\u00f8 e\u00f8e\u00f8\u00f8ee\u00f8 eeeo\u00f8ee\u00f8s e2cceme 008437ee 0083354e 82 ffff8e82 ffff8e82 ffff8e82 01038390 ee844e70 ee83\u00f893e ee81887\u00f8 \" width=\"600\" height=\"272\" \/><figcaption id=\"caption-attachment-128474\" class=\"wp-caption-text\">\u56f39. \u89aa\u306e<span style=\"font-family: 'courier new', courier, monospace;\">tagWND<\/span>\u69cb\u9020\u4f53\u3092<span style=\"font-family: 'courier new', courier, monospace;\">WinDbg<\/span>\u3067\u30e1\u30e2\u30ea\u30fc \u30c0\u30f3\u30d7\u3057\u305f\u3068\u3053\u308d<\/figcaption><\/figure>\n<p>\u4e0a\u306e\u56f3\u306f\u89aa\u306e<span style=\"font-family: 'courier new', courier, monospace;\">tagWND<\/span>\u69cb\u9020\u4f53\u3067\u3059\u304c\u3001\u305d\u306e\u30cf\u30f3\u30c9\u30eb(\u30aa\u30d5\u30bb\u30c3\u30c80x00)\u306f\u3001\u4e0b\u306e\u56f3\u306e\u30e6\u30fc\u30b6\u30fc \u30bb\u30fc\u30d5 \u30b3\u30d4\u30fc\u7248\u306e<span style=\"font-family: 'courier new', courier, monospace;\">tagWND<\/span>\u306e\u30cf\u30f3\u30c9\u30eb\u3068\u540c\u3058\u3067\u3042\u308b\u3053\u3068\u304c\u898b\u3066\u3068\u308c\u307e\u3059\u3002\u307e\u305f\u89aa\u306e\u69cb\u9020\u4f53\u306f\u30ab\u30fc\u30cd\u30eb \u30a2\u30c9\u30ec\u30b9\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u304c\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30bb\u30fc\u30d5 \u30b3\u30d4\u30fc\u306e\u5b50\u3067\u3042\u308b\u69cb\u9020\u4f53\u306b\u306f\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u306e\u30a2\u30c9\u30ec\u30b9\u3057\u304b\u306a\u3044\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002\u6700\u5f8c\u306b\u3001\u89aa\u306e\u69cb\u9020\u4f53\u306e<span style=\"font-family: 'courier new', courier, monospace;\">tagWND+0x28<\/span>\u306f\u3001\u5b50\u306e<span style=\"font-family: 'courier new', courier, monospace;\">tagWND<\/span>\u69cb\u9020\u4f53\u306e\u30b3\u30d4\u30fc\u306e\u30a2\u30c9\u30ec\u30b9\u3078\u306e\u30dd\u30a4\u30f3\u30bf\u30fc\u3067\u3042\u308b\u3053\u3068\u306b\u6ce8\u76ee\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<figure id=\"attachment_128476\" aria-describedby=\"caption-attachment-128476\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><img  class=\"wp-image-128476 lozad\"  data-src=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2023\/06\/ffff8e82-ffff8e82-ffff8e82-ffff8e82-ffff8e82.png\" alt=\"\u753b\u50cf10\u306f\u89aa\u3067\u3042\u308btagWND\u69cb\u9020\u4f53\u306eWinDbg\u30e1\u30e2\u30ea\u30fc \u30c0\u30f3\u30d7\u3067\u3059\u3002ffff8e82 ffff8e82 ffff8e82 ffff8e82 ffff8e82 ffff8e82 ffff8e82 ffff8e82 ffff8e82 ffff8e82 ffff8e82 dq poi(exffff8e82ee8437eo + ox28) e\u00f8eeeeee\u2022 0005033e eeeee\u00f8\u00f8\u00f8\u2022 eee3839\u00f8 g\u00f8e\u00f8me\u00f8\u2022 40020019 eccee\u00f8\u00f8e\u2022 ege\u00f8me\u00f8 e\u00f8\u00f8e7ff7&amp; ed32eeee eee\u00f8e\u00f8\u00f8e\u2022 eee\u00f8\u00f8ee\u00f8 eqee\u00f8eec oe\u00f8e10de eee\u00f8eeee\u2022 \u00f8eeeeee\u00f8 e\u00e9eo\u00f8eee\u2022 ooeeeeee eee\u00f8e\u00f8\u00f8\u00f8\u2022 eee384e\u00f8 eeee\u00f8ee\u00f8\u2022 ee\u00f82ad3e eee\u00f8eeee\u2022 \u00f8eeeeee\u00f8 o\u00f8eo\u00f8e27&amp; oo\u00f8eoe88 eee\u00f8eel\u20ac eee\u00f8\u00f8ee8 eeeeeel\u20ac ee\u00f8eee8e eee\u00f87ffT ed321ed\u00f8 oeeee\u00f8\u00f8e\u2022 eeee\u00f8ee\u00f8 eeeo\u00f8ee\u00f8\u2022 ee\u00f838fee eeeeeee\u00f8\u2022 ee\u00f8eeeee eee\u00f8e15b\u2022 a4b69d8\u00d8 eeoeeeoe- oeeeoeoo eeeeoeee- eooeooee 01e3839\u00f8 01083a\u00f8 01e383b\u00f8 010383c\u00f8 010383d\u00f8 010383e\u00f8 01e383f\u00f8 01038400 01e3841\u00f8 01e3842\u00f8 01038430 \" width=\"600\" height=\"270\" \/><figcaption id=\"caption-attachment-128476\" class=\"wp-caption-text\">\u56f310. \u5b50\u306e<span style=\"font-family: 'courier new', courier, monospace;\">tagWND<\/span>\u69cb\u9020\u4f53\u3092<span style=\"font-family: 'courier new', courier, monospace;\">WinDbg<\/span>\u3067\u30e1\u30e2\u30ea\u30fc \u30c0\u30f3\u30d7\u3057\u305f\u3068\u3053\u308d<\/figcaption><\/figure>\n<p>\u6b74\u53f2\u7684\u306b\u3001\u30a6\u30a3\u30f3\u30c9\u30a6 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30ab\u30fc\u30cd\u30eb\u30e2\u30fc\u30c9 \u30a2\u30c9\u30ec\u30b9\u3092\u6f0f\u3048\u3044\u3055\u305b\u308b\u65b9\u6cd5\u306f\u3044\u304f\u3064\u304b\u78ba\u8a8d\u3055\u308c\u3066\u3044\u307e\u3059\u3002Win32k\u5185\u3067\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u306e\u30b3\u30fc\u30c9(\u305f\u3068\u3048\u3070\u30a6\u30a3\u30f3\u30c9\u30a6\u3084\u30e1\u30cb\u30e5\u30fc\u306a\u3069)\u304c\u8a2d\u5b9a\u3057\u305f\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u683c\u7d0d\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u3059\u3079\u3066\u4e00\u822c\u306b\u306f\u30e6\u30fc\u30b6\u30fc \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u547c\u3070\u308c\u307e\u3059\u3002<\/p>\n<p>\u3059\u3079\u3066\u306e\u30e6\u30fc\u30b6\u30fc \u30aa\u30d6\u30b8\u30a7\u30af\u30c8(<span style=\"font-family: 'courier new', courier, monospace;\">tagWND<\/span>\u69cb\u9020\u4f53\u306e\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30b3\u30d4\u30fc\u3082\u305d\u306e1\u3064)\u306f\u3001\u4e00\u822c\u306b<span style=\"font-family: 'courier new', courier, monospace;\">UserHandleTable<\/span>\u3068\u547c\u3070\u308c\u308b\u30bb\u30c3\u30b7\u30e7\u30f3\u3054\u3068\u306e\u30cf\u30f3\u30c9\u30eb \u30c6\u30fc\u30d6\u30eb\u5185\u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3055\u308c\u307e\u3059\u3002(\u305f\u3060\u3057\u3001<span style=\"font-family: 'courier new', courier, monospace;\">tagWND<\/span>\u69cb\u9020\u4f53\u306f\u3064\u306d\u306b\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u306e\u30bb\u30fc\u30d5 \u30b3\u30d4\u30fc\u3060\u3063\u305f\u308f\u3051\u3067\u306f\u306a\u304f\u3001\u30ab\u30fc\u30cd\u30eb \u30a2\u30c9\u30ec\u30b9\u3092\u542b\u3093\u3067\u3044\u305f\u3053\u3068\u3082\u3042\u308a\u307e\u3059)\u3002<\/p>\n<p>\u4ee5\u524d\u306f\u3001<span style=\"font-family: 'courier new', courier, monospace;\">User32.dll<\/span>\u5185\u306e<span style=\"font-family: 'courier new', courier, monospace;\">gSharedInfo<\/span>\u3068\u547c\u3070\u308c\u308b\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u53ef\u80fd\u306a\u69cb\u9020\u4f53\u3092\u4ecb\u3057\u3001<span style=\"font-family: 'courier new', courier, monospace;\">UserHandleTable<\/span>\u3092\u7d4c\u7531\u3057\u3066<span style=\"font-family: 'courier new', courier, monospace;\">tagWND<\/span>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4f4d\u7f6e\u3092\u7279\u5b9a\u3067\u304d\u307e\u3057\u305f\u3002\u305f\u3060\u3057\u3053\u306e\u65b9\u6cd5\u306fWindows 10 \u30d0\u30fc\u30b8\u30e7\u30f3 1703\u304b\u3089\u306f\u4f7f\u3048\u306a\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u3002Microsoft\u306f\u30ab\u30fc\u30cd\u30eb \u30a2\u30c9\u30ec\u30b9\u6f0f\u3048\u3044\u3092\u306a\u304f\u3059\u305f\u3081\u306e\u53d6\u308a\u7d44\u307f\u3092\u7d9a\u3051\u3066\u304a\u308a\u3001\u30c7\u30b9\u30af\u30c8\u30c3\u30d7 \u30d2\u30fc\u30d7\u5185\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30ab\u30fc\u30cd\u30eb \u30a2\u30c9\u30ec\u30b9\u306f<span style=\"font-family: 'courier new', courier, monospace;\">UserHandleTable<\/span>\u304b\u3089\u524a\u9664\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Window Manager\u306f<span style=\"font-family: 'courier new', courier, monospace;\">User32.dll<\/span>\u5185\u306b\u5b58\u5728\u3059\u308b\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3055\u308c\u306a\u3044\u95a2\u6570<span style=\"font-family: 'courier new', courier, monospace;\">HMValidateHandle<\/span>\u306b\u3088\u308a\u30cf\u30f3\u30c9\u30eb\u306e\u691c\u8a3c\u3092\u884c\u3044\u307e\u3059\u3002Windows 10 \u30d0\u30fc\u30b8\u30e7\u30f3 1803\u3088\u308a\u524d\u306f\u3001Window Manager\u304c\u691c\u8a3c\u5bfe\u8c61\u306e\u30cf\u30f3\u30c9\u30eb\u3092\u3082\u3064\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3078\u306e\u30ab\u30fc\u30cd\u30eb\u30e2\u30fc\u30c9 \u30dd\u30a4\u30f3\u30bf\u30fc\u3092\u8fd4\u3057\u3066\u3044\u305f\u305f\u3081\u3001\u30a2\u30c9\u30ec\u30b9\u306e\u6f0f\u3048\u3044\u306b\u306f\u3053\u308c\u304c\u3088\u304f\u4f7f\u308f\u308c\u3066\u3044\u307e\u3057\u305f\u3002\u3053\u306e\u30ab\u30fc\u30cd\u30eb\u306e\u30a2\u30c9\u30ec\u30b9\u6f0f\u3048\u3044\u306f\u4fee\u6b63\u3055\u308c\u307e\u3057\u305f\u304c\u3001\u3053\u306e\u65b9\u6cd5\u306f\u5f8c\u8ff0\u3059\u308b2\u3064\u306e\u8106\u5f31\u6027\u3092\u30ec\u30d3\u30e5\u30fc\u3059\u308b\u3055\u3044\u306b\u3082\u91cd\u8981\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u306e\u4f5c\u6210\u8005\u304c<span style=\"font-family: 'courier new', courier, monospace;\">tagWND<\/span>\u69cb\u9020\u4f53\u306e\u4f4d\u7f6e\u306b\u8208\u5473\u3092\u6301\u3064\u7406\u7531\u306f\u3001\u6b74\u53f2\u7684\u306b\u3001<span style=\"font-family: 'courier new', courier, monospace;\">tagWND.cbExtra<\/span>\u3092\u5927\u304d\u306a\u5024\u306b\u5909\u66f4\u3057\u3066<span style=\"font-family: 'courier new', courier, monospace;\">SetWindowLong<\/span>\u95a2\u6570\u3092\u4f7f\u3048\u3070\u3001\u96a3\u63a5\u3059\u308b<span style=\"font-family: 'courier new', courier, monospace;\">tagWND<\/span>\u69cb\u9020\u4f53\u306b\u4efb\u610f\u306e\u66f8\u304d\u8fbc\u307f\u3092\u884c\u3048\u308b\u304b\u3089\u3067\u3059\u3002\u305f\u3060\u3057Windows 10 \u30d0\u30fc\u30b8\u30e7\u30f31703\u304b\u3089\u306f\u3001<span style=\"font-family: 'courier new', courier, monospace;\">SetWindowLong<\/span>\u95a2\u6570\u304c\u66f8\u304d\u8fbc\u3080\u30d0\u30a4\u30c8\u304c\u30ab\u30fc\u30cd\u30eb\u306b\u306f\u66f8\u304d\u8fbc\u307e\u308c\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002\u305f\u3060\u3057\u305d\u308c\u306f\u3042\u308b\u7279\u5b9a\u6761\u4ef6\u4e0b\u3067\u306e\u8a71\u3067\u3001\u305d\u308c\u306b\u3064\u3044\u3066\u306f\u5f8c\u3067\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u3092\u89e3\u6790\u3059\u308b\u3055\u3044\u306b\u8aac\u660e\u3057\u307e\u3059\u3002\u3053\u306e\u4fee\u6b63\u306b\u3088\u308a\u4efb\u610f\u306e\u66f8\u304d\u8fbc\u307f\u3092\u884c\u3046\u6280\u8853\u306f\u4e8b\u5b9f\u4e0a\u5c01\u3058\u3089\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u30e6\u30fc\u30b6\u30fc \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u3001\u30ab\u30fc\u30cd\u30eb\u5185\u306e3\u7a2e\u985e\u306e\u30e1\u30e2\u30ea\u30fc(\u30c7\u30b9\u30af\u30c8\u30c3\u30d7 \u30d2\u30fc\u30d7\u3001\u5171\u6709\u30d2\u30fc\u30d7\u3001\u30bb\u30c3\u30b7\u30e7\u30f3 \u30d7\u30fc\u30eb)\u306e\u3044\u305a\u308c\u304b\u306b\u683c\u7d0d\u3055\u308c\u307e\u3059\u3002\u672c\u7a3f\u306e\u76ee\u7684\u306b\u7167\u3089\u3057\u3066\u79c1\u305f\u3061\u306e\u8208\u5473\u304c\u3042\u308b\u306e\u306f\u30c7\u30b9\u30af\u30c8\u30c3\u30d7 \u30d2\u30fc\u30d7\u3067\u3059\u3002\u306a\u305c\u306a\u3089\u3053\u3053\u306b\u3053\u308c\u304b\u3089\u6271\u3046\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u5404\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u306f\u81ea\u8eab\u306e\u30c7\u30b9\u30af\u30c8\u30c3\u30d7 \u30d2\u30fc\u30d7\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002Windows\u306f\u30ab\u30fc\u30cd\u30eb\u306b\u5b58\u5728\u3059\u308b\u30c7\u30b9\u30af\u30c8\u30c3\u30d7 \u30d2\u30fc\u30d7\u306b\u7ba1\u7406\u7528\u69cb\u9020\u4f53\u3092\u4fdd\u5b58\u3059\u308b\u306e\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089\u3053\u308c\u3089\u306e\u69cb\u9020\u4f53\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u65b9\u6cd5\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u6b74\u53f2\u7684\u306bWindows\u306f\u3001\u5f53\u8a72\u306e\u30c7\u30b9\u30af\u30c8\u30c3\u30d7 \u30d2\u30fc\u30d7\u3092\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u306b\u30de\u30c3\u30d7\u3057\u305f\u30b3\u30d4\u30fc\u3092\u4f5c\u308a\u3001\u305d\u3053\u306b\u95a2\u9023\u3059\u308b\u69cb\u9020\u4f53\u3078\u306e\u30ab\u30fc\u30cd\u30eb\u30e2\u30fc\u30c9 \u30dd\u30a4\u30f3\u30bf\u30fc\u3092\u6301\u305f\u305b\u3066\u3044\u307e\u3057\u305f\u3002\u73fe\u5728\u3067\u306f\u3001\u3053\u308c\u3089\u306e\u30dd\u30a4\u30f3\u30bf\u30fc\u306f\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30dd\u30a4\u30f3\u30bf\u30fc\u306b\u7f6e\u304d\u63db\u3048\u3089\u308c\u3066\u3044\u307e\u3059\u3002\u3064\u307e\u308a\u3001Windows\u306f\u30ab\u30fc\u30cd\u30eb\u30e2\u30fc\u30c9 \u30dd\u30a4\u30f3\u30bf\u30fc \u30a2\u30c9\u30ec\u30b9\u306e\u6f0f\u3048\u3044\u3092\u9632\u3050\u305f\u3081\u3001\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u5185\u306b\u30c7\u30b9\u30af\u30c8\u30c3\u30d7 \u30d2\u30fc\u30d7\u306e\u72ec\u7acb\u3057\u305f\u30b3\u30d4\u30fc\u3092\u4f5c\u6210\u3057\u59cb\u3081\u305f\u3001\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u901a\u5e38\u3001\u30ab\u30fc\u30cd\u30eb\u306e\u8106\u5f31\u6027\u3092\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u3059\u308b\u306b\u306f\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u304b\u3089\u306e\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u3092\u53ef\u80fd\u306b\u3059\u308b\u591a\u5c11\u306e\u6e96\u5099\u304c\u5fc5\u8981\u3067\u3059\u3002\u305d\u306e1\u3064\u304c\u3001\u30ab\u30fc\u30cd\u30eb\u5185\u3067\u95a2\u5fc3\u306e\u3042\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u3069\u3053\u306b\u4f4d\u7f6e\u3057\u3066\u3044\u308b\u304b\u3092\u5224\u65ad\u3059\u308b\u3053\u3068\u306b\u3088\u308aKASLR (Kernel Address Space Layout Randomization: \u30ab\u30fc\u30cd\u30eb\u4eee\u60f3\u30a2\u30c9\u30ec\u30b9\u7a7a\u9593\u5185\u3067\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u30e9\u30f3\u30c0\u30e0\u5316)\u3092\u56de\u907f\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u30c7\u30b9\u30af\u30c8\u30c3\u30d7 \u30d2\u30fc\u30d7\u304c\u3069\u3053\u306b\u4f4d\u7f6e\u3057\u3066\u3044\u308b\u304b\u3092\u77e5\u308a\u3001\u305d\u306e\u30c7\u30b9\u30af\u30c8\u30c3\u30d7 \u30d2\u30fc\u30d7\u306e\u3069\u3053\u306b\u95a2\u5fc3\u306e\u5bfe\u8c61\u3067\u3042\u308b\u7279\u5b9a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u4f4d\u7f6e\u3057\u3066\u3044\u308b\u304b\u3092\u898b\u3064\u3051\u3089\u308c\u308c\u3070\u3057\u3081\u305f\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u3001Windows 10 \u30d0\u30fc\u30b8\u30e7\u30f31607\u4ee5\u964d\u3001Microsoft\u306f\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u306e\u4f5c\u6210\u8005\u304c\u30ab\u30fc\u30cd\u30eb\u5185\u306e\u30c7\u30b9\u30af\u30c8\u30c3\u30d7 \u30d2\u30fc\u30d7\u306e\u5834\u6240\u3068\u305d\u306e\u95a2\u9023\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u5834\u6240\u3092\u7279\u5b9a\u3059\u308b\u306e\u3092\u9632\u3054\u3046\u3068\u7de9\u548c\u7b56\u3092\u8ffd\u52a0\u3057\u59cb\u3081\u307e\u3057\u305f\u3002\u3053\u3046\u3057\u305f\u7de9\u548c\u7b56\u306b\u306f\u3001\u305f\u3068\u3048\u3070\u524d\u8ff0\u306e<span style=\"font-family: 'courier new', courier, monospace;\">UserHandleTable<\/span>\u304b\u3089\u306e\u30ab\u30fc\u30cd\u30eb \u30a2\u30c9\u30ec\u30b9\u306e\u524a\u9664\u3084\u3001\u5404\u30d7\u30ed\u30bb\u30b9\u306e\u30b9\u30ec\u30c3\u30c9\u74b0\u5883\u30d6\u30ed\u30c3\u30af<a href=\"https:\/\/www.offensive-security.com\/vulndev\/development-of-a-new-windows-10-kaslr-bypass-in-one-windbg-command\/\" target=\"_blank\" rel=\"noopener\">(TEB<\/a>)\u306b\u5b58\u5728\u3059\u308b<span style=\"font-family: 'courier new', courier, monospace;\">Win32ClientInfo<\/span>\u69cb\u9020\u4f53\u5185\u306e\u30c7\u30b9\u30af\u30c8\u30c3\u30d7 \u30d2\u30fc\u30d7\u3078\u306e\u30ab\u30fc\u30cd\u30eb \u30dd\u30a4\u30f3\u30bf\u30fc\u53c2\u7167\u306e\u524a\u9664\u304c\u542b\u307e\u308c\u307e\u3059\u3002\u307e\u305f\u3001<span style=\"font-family: 'courier new', courier, monospace;\">HMValidateHandle<\/span>\u306f\u3001\u81ea\u8eab\u306b\u6e21\u3055\u308c\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8 \u30cf\u30f3\u30c9\u30eb\u306e\u30dd\u30a4\u30f3\u30bf\u30fc\u3092(\u30ab\u30fc\u30cd\u30eb\u30e2\u30fc\u30c9\u3067\u306f\u306a\u304f)\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u3067\u8fd4\u3059\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>Microsoft\u306b\u3088\u308bWin32k\u30ab\u30fc\u30cd\u30eb\u306e\u7de9\u548c\u306e\u6b74\u53f2\u306b\u3064\u3044\u3066\u306f<a href=\"https:\/\/www.blackhat.com\/docs\/us-17\/wednesday\/us-17-Schenk-Taking-Windows-10-Kernel-Exploitation-To-The-Next-Level%E2%80%93Leveraging-Write-What-Where-Vulnerabilities-In-Creators-Update.pdf\" target=\"_blank\" rel=\"noopener\">Morten Schenk\u6c0f\u304c2017\u5e74\u306eBlack Hat USA\u3067\u884c\u3063\u305f\u767a\u8868<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u306a\u304a\u3053\u3053\u3067\u306f\u4f4e\u6574\u5408\u6027\u30d7\u30ed\u30bb\u30b9 (low-integrity processes) \u3067\u52d5\u4f5c\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u60f3\u5b9a\u3057\u3066\u3044\u308b\u70b9\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u6574\u5408\u6027\u30ec\u30d9\u30eb(IL)\u304c\u300c\u4e2d\u300d\u4ee5\u4e0a\u306e\u30d7\u30ed\u30bb\u30b9\u3067\u3042\u308c\u3070<span style=\"font-family: 'courier new', courier, monospace;\"><a href=\"https:\/\/www.offensive-security.com\/vulndev\/development-of-a-new-windows-10-kaslr-bypass-in-one-windbg-command\/#:~:text=the%20well%2Dknown-,EnumDeviceDrivers,-and%20NtQuerySystemInformation%20APIs\" target=\"_blank\" rel=\"noopener\">EnumDeviceDrivers<\/a><\/span>\u3084 <span style=\"font-family: 'courier new', courier, monospace;\"><a href=\"https:\/\/www.offensive-security.com\/vulndev\/development-of-a-new-windows-10-kaslr-bypass-in-one-windbg-command\/#:~:text=NtQuerySystemInformation\" target=\"_blank\" rel=\"noopener\">NtQuerySystemInformation<\/a><\/span>\u306a\u3069\u306eAPI\u95a2\u6570\u3092\u4f7f\u3046\u306e\u306f\u975e\u5e38\u306b\u5bb9\u6613\u306a\u306e\u3067\u3001\u305d\u308c\u3089\u3092\u4f7f\u3063\u3066\u95a2\u5fc3\u306e\u5bfe\u8c61\u3068\u306a\u308b\u30ab\u30fc\u30cd\u30eb \u30dd\u30a4\u30f3\u30bf\u30fc\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2><a id=\"post-128502-_mn6uzitnlpua\"><\/a>\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30b3\u30fc\u30eb\u30d0\u30c3\u30af<\/h2>\n<p>PoC\u306e\u80cc\u666f\u306b\u3064\u3044\u3066\u8ad6\u3058\u308b\u7b2c1\u90e8\u3067\u6700\u5f8c\u306b\u7d39\u4ecb\u3059\u308b\u306e\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u306e<a href=\"https:\/\/cs.uno.edu\/~dbilar\/BH-US-2011\/materials\/Mandt\/BH_US_11_Mandt_win32k_WP.pdf\" target=\"_blank\" rel=\"noopener\">\u30b3\u30fc\u30eb\u30d0\u30c3\u30af<\/a>\u3067\u3059\u3002<\/p>\n<p>Windows\u30b5\u30d6\u30b7\u30b9\u30c6\u30e0\u306f\u4e3b\u306bWindows\u30ab\u30fc\u30cd\u30eb\u306b\u5b58\u5728\u3057\u3066\u3044\u307e\u3059\u304c\u3001Windows\u81ea\u4f53\u306f\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u3067\u52d5\u4f5c\u3057\u3066\u3044\u308b\u305f\u3081\u3001Win32k\u306f\u30ab\u30fc\u30cd\u30eb\u304b\u3089\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u3078\u306e\u547c\u3073\u51fa\u3057(call)\u3092\u983b\u7e41\u306b\u884c\u308f\u306d\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5b9a\u7fa9\u306e\u30d5\u30c3\u30af\u3001\u30a4\u30d9\u30f3\u30c8\u901a\u77e5\u3001\u30ab\u30fc\u30cd\u30eb\u3068\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u3068\u306e\u9593\u306e\u30c7\u30fc\u30bf\u306e\u30b3\u30d4\u30fc\u306a\u3069\u306e\u9805\u76ee\u3092\u5b9f\u88c5\u3059\u308b\u305f\u3081\u306e\u30e1\u30ab\u30cb\u30ba\u30e0\u3092\u63d0\u4f9b\u3059\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>Win32k\u306f<span style=\"font-family: 'courier new', courier, monospace;\">KeUserModeCallback<\/span>\u3092\u547c\u3073\u51fa\u3057\u3066\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3092\u884c\u3044\u307e\u3059\u304c\u3001\u305d\u306e\u3055\u3044\u306b\u306f\u547c\u3073\u51fa\u3057\u305f\u3044\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u95a2\u6570\u306b\u5bfe\u5fdc\u3059\u308b<span style=\"font-family: 'courier new', courier, monospace;\">ApiNumber<\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u3053\u306e<span style=\"font-family: 'courier new', courier, monospace;\">ApiNumber<\/span>\u306f<span style=\"font-family: 'courier new', courier, monospace;\">User32.dll<\/span> (<span style=\"font-family: 'courier new', courier, monospace;\">USER32!apfnDispatch<\/span>)\u5185\u306b\u3042\u308b\u95a2\u6570\u30c6\u30fc\u30d6\u30eb\u3078\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3067\u3059\u3002\u3053\u306e\u30c6\u30fc\u30d6\u30eb\u306e\u30a2\u30c9\u30ec\u30b9\u306f\u3001\u5404\u30d7\u30ed\u30bb\u30b9\u5185\u3067<span style=\"font-family: 'courier new', courier, monospace;\">User32.dll<\/span>\u3092\u521d\u671f\u5316\u3059\u308b\u3055\u3044\u306bPEB(\u30d7\u30ed\u30bb\u30b9\u74b0\u5883\u30d6\u30ed\u30c3\u30af <span style=\"font-family: 'courier new', courier, monospace;\">PEB.KernelCallbackTable<\/span>)\u306b\u30b3\u30d4\u30fc\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/unit42.paloaltonetworks.jp\/win32k-analysis-part-2\/\" target=\"_blank\" rel=\"noopener\">\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u306e\u5206\u6790<\/a>\u3067\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u304c<span style=\"font-family: 'courier new', courier, monospace;\">KernelCallback<\/span>\u30c6\u30fc\u30d6\u30eb\u306b\u3088\u3063\u3066\u3069\u306e\u3088\u3046\u306b\u30d5\u30c3\u30af\u3055\u308c\u308b\u306e\u304b\u3092\u793a\u3057\u307e\u3059\u3002\u307e\u305f\u3053\u306e\u30c6\u30fc\u30d6\u30eb\u304c<span style=\"font-family: 'courier new', courier, monospace;\">WinDbg<\/span>\u00a0<span style=\"font-weight: 400;\">(<a href=\"https:\/\/unit42.paloaltonetworks.jp\/win32k-analysis-part-2\/3\/#Figure21\" target=\"_blank\" rel=\"noopener\">\u56f321<\/a>\u3001<a href=\"https:\/\/unit42.paloaltonetworks.jp\/win32k-analysis-part-2\/3\/#Figure22\" target=\"_blank\" rel=\"noopener\">\u56f322<\/a>)\u3067\u306f\u3069\u306e\u3088\u3046\u306b\u898b\u3048\u308b\u306e\u304b\u306b\u3064\u3044\u3066\u3082\u793a\u3057\u307e\u3059\u3002<\/span><span style=\"font-family: 'courier new', courier, monospace;\">KeUserModeCallback<\/span>\u306e\u95a2\u6570\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u3068\u305d\u308c\u306b\u95a2\u9023\u3059\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u4e0b\u56f311\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_128478\" aria-describedby=\"caption-attachment-128478\" style=\"width: 400px\" class=\"wp-caption aligncenter\"><img  class=\"wp-image-128478 lozad\"  data-src=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2023\/06\/word-image-128455-11.png\" alt=\"\u753b\u50cf11\u306f\u3001KeUserModeCallback\u95a2\u6570\u3068\u305d\u306e\u95a2\u9023\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u3067\u3059\u3002 \" width=\"400\" height=\"176\" \/><figcaption id=\"caption-attachment-128478\" class=\"wp-caption-text\">\u56f311 <span style=\"font-family: 'courier new', courier, monospace;\">KeUserModeCallback<\/span>\u306e\u95a2\u6570\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7<\/figcaption><\/figure>\n<p>\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u306e\u5165\u529b\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u306f<span style=\"font-family: 'courier new', courier, monospace;\">InputBuffer<\/span>\u3092\u4ecb\u3057\u3066\u6e21\u3055\u308c\u3001\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u306e\u51fa\u529b\u306f<span style=\"font-family: 'courier new', courier, monospace;\">OutputBuffer<\/span>\u5185\u306b\u8fd4\u3055\u308c\u307e\u3059\u3002\u30b7\u30b9\u30c6\u30e0 \u30b3\u30fc\u30eb\u3092\u547c\u3073\u51fa\u3059\u3055\u3044\u306f\u3001<span style=\"font-family: 'courier new', courier, monospace;\">ntdll!KiSystemService<\/span>\u307e\u305f\u306f<span style=\"font-family: 'courier new', courier, monospace;\">ntdll!KiFastCallEntry<\/span>\u304c\u30ab\u30fc\u30cd\u30eb \u30b9\u30ec\u30c3\u30c9 \u30b9\u30bf\u30c3\u30af\u306b\u30c8\u30e9\u30c3\u30d7 \u30d5\u30ec\u30fc\u30e0<span style=\"font-family: 'courier new', courier, monospace;\">(TRAP_FRAME<\/span>)\u3092\u683c\u7d0d\u3057\u3001\u73fe\u5728\u306e\u30b9\u30ec\u30c3\u30c9 \u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u4fdd\u5b58\u3059\u308b\u3053\u3068\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u306b\u623b\u308b\u3068\u304d\u306b\u30ec\u30b8\u30b9\u30bf\u30fc\u3092\u5fa9\u5143\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3067\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u3078\u306e\u79fb\u884c\u3092\u884c\u3046\u305f\u3081\u306b\u3001<span style=\"font-family: 'courier new', courier, monospace;\">KeUserModeCallback<\/span>\u306f\u307e\u305a\u30b9\u30ec\u30c3\u30c9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u4fdd\u6301\u3057\u3066\u3044\u308b\u30c8\u30e9\u30c3\u30d7 \u30d5\u30ec\u30fc\u30e0\u306e\u60c5\u5831\u3092\u4f7f\u3044\u3001<span style=\"font-family: 'courier new', courier, monospace;\">InputBuffer<\/span>\u3092\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30b9\u30bf\u30c3\u30af\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002\u6b21\u306b\u3001<span style=\"font-family: 'courier new', courier, monospace;\">EIP<\/span>\u3092<span style=\"font-family: 'courier new', courier, monospace;\">ntdll!KiUserCallbackDispatcher<\/span>\u306b\u8a2d\u5b9a\u3057\u3001\u65b0\u3057\u3044\u30c8\u30e9\u30c3\u30d7 \u30d5\u30ec\u30fc\u30e0\u3092\u4f5c\u6210\u3057\u3066\u305d\u306e\u30b9\u30ec\u30c3\u30c9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e<span style=\"font-family: 'courier new', courier, monospace;\">TrapFrame<\/span>\u30dd\u30a4\u30f3\u30bf\u30fc\u3092\u7f6e\u304d\u63db\u3048\u307e\u3059\u3002\u6700\u5f8c\u306b\u3001<span style=\"font-family: 'courier new', courier, monospace;\">ntdll!KiServiceExit<\/span>\u3092\u547c\u3073\u51fa\u3057\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u306e\u30c7\u30a3\u30b9\u30d1\u30c3\u30c1\u30e3\u30fc\u306b\u5b9f\u884c\u3092\u623b\u3057\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_128480\" aria-describedby=\"caption-attachment-128480\" style=\"width: 400px\" class=\"wp-caption aligncenter\"><img  class=\"wp-image-128480 lozad\"  data-src=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2023\/06\/word-image-128455-12.png\" alt=\"\u753b\u50cf12\u306f\u3001KiUserCallbackDispatcher\u306e\u95a2\u6570\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u3067\u3059\u3002 \" width=\"400\" height=\"140\" \/><figcaption id=\"caption-attachment-128480\" class=\"wp-caption-text\">\u56f312. <span style=\"font-family: 'courier new', courier, monospace;\">KiUserCallbackDispatcher<\/span>\u306e\u95a2\u6570\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7<\/figcaption><\/figure>\n<p>\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u304c\u5b8c\u4e86\u3059\u308b\u3068\u3001<span style=\"font-family: 'courier new', courier, monospace;\">NtCallbackReturn<\/span>\u304c\u547c\u3073\u51fa\u3055\u308c\u3066\u30ab\u30fc\u30cd\u30eb\u3067\u306e\u5b9f\u884c\u304c\u518d\u958b\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u95a2\u6570\u306f\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u306e\u7d50\u679c\u3092\u5143\u306e\u30ab\u30fc\u30cd\u30eb \u30b9\u30bf\u30c3\u30af\u306b\u30b3\u30d4\u30fc\u3057\u3001<span style=\"font-family: 'courier new', courier, monospace;\">KERNEL_STACK_CONTROL<\/span>\u69cb\u9020\u4f53\u5185\u306b\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u30ab\u30fc\u30cd\u30eb \u30b9\u30bf\u30c3\u30af\u3068\u3001\u4fdd\u5b58\u6e08\u307f\u306e\u30c8\u30e9\u30c3\u30d7 \u30d5\u30ec\u30fc\u30e0<span style=\"font-family: 'courier new', courier, monospace;\">(PreviousTrapFrame<\/span>)\u3092\u5fa9\u5143\u3057\u307e\u3059\u3002\u4ee5\u524d\u4e2d\u65ad\u3057\u305f\u5834\u6240(<span style=\"font-family: 'courier new', courier, monospace;\">ntdll!KiCallUserMode<\/span>\u5185)\u306b\u30b8\u30e3\u30f3\u30d7\u3059\u308b\u524d\u306b\u3001\u30ab\u30fc\u30cd\u30eb \u30b3\u30fc\u30eb\u30d0\u30c3\u30af \u30b9\u30bf\u30c3\u30af\u306f\u524a\u9664\u3055\u308c\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_128482\" aria-describedby=\"caption-attachment-128482\" style=\"width: 400px\" class=\"wp-caption aligncenter\"><img  class=\"wp-image-128482 lozad\"  data-src=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2023\/06\/word-image-128455-13.png\" alt=\"\u753b\u50cf13\u306f\u3001NtCallbackReturn\u306e\u95a2\u6570\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u3067\u3059\u3002 \" width=\"400\" height=\"137\" \/><figcaption id=\"caption-attachment-128482\" class=\"wp-caption-text\">\u56f313. <span style=\"font-family: 'courier new', courier, monospace;\">NtCallbackReturn<\/span>\u306e\u95a2\u6570\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7<\/figcaption><\/figure>\n<p>Window Manager\u306f\u3001Win32k\u306e\u7ba1\u7406\u69cb\u9020\u4f53\u4e0a\u3067\u306e\u64cd\u4f5c\u306b\u3001\u6392\u4ed6\u30ed\u30c3\u30af\u3067\u306f\u306a\u304f\u30a8\u30b0\u30bc\u30af\u30c6\u30a3\u30d6 \u30ea\u30bd\u30fc\u30b9(<span style=\"font-family: 'courier new', courier, monospace;\">ERESOURCE<\/span>)\u306e\u540c\u671f\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<span style=\"font-family: 'courier new', courier, monospace;\">ERESOURCE<\/span>\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u3092\u4f7f\u3046\u3068\u4efb\u610f\u306e\u6570\u306e\u30b9\u30ec\u30c3\u30c9\u304c\u5171\u6709\u30ea\u30bd\u30fc\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u305f\u3060\u3057\u305d\u306e\u5834\u5408\u3001\u5404\u30b9\u30ec\u30c3\u30c9\u306f\u5bfe\u8c61\u30ea\u30bd\u30fc\u30b9\u306e\u8aad\u307f\u53d6\u308a\u3060\u3051\u3092\u884c\u3044\u307e\u3059\u3002<span style=\"font-family: 'courier new', courier, monospace;\">ERESOURCE<\/span>\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u306f\u300c<a href=\"https:\/\/amzn.asia\/d\/hLpVzK7\" target=\"_blank\" rel=\"noopener\">single writer, multiple readers (\u66f8\u304d\u8fbc\u307f\u306f1\u540d \u8aad\u307f\u53d6\u308a\u306f\u8907\u6570\u540d)<\/a>\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u300d\u3068\u3082\u547c\u3070\u308c\u307e\u3059\u3002<span style=\"font-family: 'courier new', courier, monospace;\">ERESOURCE<\/span>\u304c\u521d\u671f\u5316\u3055\u308c\u308b\u3068\u3001\u30b9\u30ec\u30c3\u30c9\u306f<span style=\"font-family: 'courier new', courier, monospace;\">ExAcquireResourceExclusiveLite<\/span>\u3092\u4f7f\u3063\u3066\u6392\u4ed6\u30ed\u30c3\u30af(\u66f8\u304d\u8fbc\u307f\u7528)\u3092\u53d6\u5f97\u3057\u305f\u308a\u3001<span style=\"font-family: 'courier new', courier, monospace;\">ExAcquireResourceSharedLite<\/span>\u3092\u547c\u3073\u51fa\u3057\u3066\u5171\u6709\u30ed\u30c3\u30af(\u8aad\u307f\u8fbc\u307f\u7528)\u3092\u53d6\u5f97\u3057\u305f\u308a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u305d\u306e\u5f8c\u30b9\u30ec\u30c3\u30c9\u306f<span style=\"font-family: 'courier new', courier, monospace;\">ExReleaseResourceLite<\/span>\u3092\u547c\u3073\u51fa\u3057\u3066\u30ea\u30bd\u30fc\u30b9\u3092\u89e3\u653e\u3057\u307e\u3059\u3002\u3053\u3053\u3067\u8aac\u660e\u3059\u308b\u53d6\u5f97API\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u901a\u5e38\u306e\u30ab\u30fc\u30cd\u30ebAPC\u3092<a href=\"https:\/\/learn.microsoft.com\/ja-jp\/windows-hardware\/drivers\/kernel\/disabling-apcs\" target=\"_blank\" rel=\"noopener\">\u7121\u52b9\u5316<\/a>\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u308c\u306b\u306f\u30ed\u30c3\u30af\u53d6\u5f97\u306e\u547c\u3073\u51fa\u3057\u524d\u306b<span style=\"font-family: 'courier new', courier, monospace;\"><a href=\"https:\/\/learn.microsoft.com\/ja-jp\/windows-hardware\/drivers\/ddi\/ntddk\/nf-ntddk-keentercriticalregion\" target=\"_blank\" rel=\"noopener\">KeEnterCriticalRegion<\/a><\/span>\u3092\u547c\u3073\u51fa\u3057\u3001\u30ed\u30c3\u30af\u89e3\u653e\u306e\u547c\u3073\u51fa\u3057\u5f8c\u3067 <span style=\"font-family: 'courier new', courier, monospace;\"><a href=\"https:\/\/learn.microsoft.com\/ja-jp\/windows-hardware\/drivers\/ddi\/ntddk\/nf-ntddk-keleavecriticalregion\" target=\"_blank\" rel=\"noopener\">KeLeaveCriticalRegion<\/a><\/span>\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002<\/p>\n<p>Win32k\u304c\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u306e\u547c\u3073\u51fa\u3057\u6642\u306b\u30ea\u30bd\u30fc\u30b9\u3092\u89e3\u653e\u3057\u306a\u304b\u3063\u305f\u308a\u3001\u305d\u306e\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u306b\u3088\u3063\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304cGUI\u30b5\u30d6\u30b7\u30b9\u30c6\u30e0\u3092\u30d5\u30ea\u30fc\u30ba\u3055\u305b\u305f\u5834\u5408\u3001GUI\u30b5\u30d6\u30b7\u30b9\u30c6\u30e0\u304c\u30d5\u30ea\u30fc\u30ba\u3057\u3066\u3044\u308b\u9593\u306fWin32k\u306f\u307b\u304b\u306e\u30bf\u30b9\u30af\u3092\u5b9f\u884c\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001Win32k\u306f\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3092\u547c\u3073\u51fa\u3059\u3055\u3044\u306f\u5fc5\u305a\u30ea\u30bd\u30fc\u30b9\u3092\u89e3\u653e\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u56f314\u306e\u30b3\u30fc\u30c9\u306f\u305d\u308c\u304c\u3069\u306e\u3088\u3046\u306b\u884c\u308f\u308c\u308b\u306e\u304b\u3092\u793a\u3057\u305f\u3082\u306e\u3067\u3059\u3002<\/p>\n<figure id=\"attachment_128484\" aria-describedby=\"caption-attachment-128484\" style=\"width: 800px\" class=\"wp-caption aligncenter\"><img  class=\"wp-image-128484 lozad\"  data-src=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2023\/06\/word-image-128455-14.png\" alt=\"\u753b\u50cf14\u306f\u7591\u4f3c\u30b3\u30fc\u30c9\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u3067\u3059\u3002KeUserModeCallback\u306e\u547c\u3073\u51fa\u3057\u524d\u306b\u3001Windows\u304c\u30af\u30ea\u30c6\u30a3\u30ab\u30eb \u30ea\u30fc\u30b8\u30e7\u30f3\u306b\u51fa\u5165\u308a\u3059\u308b\u3088\u3046\u3059\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002\" width=\"800\" height=\"305\" \/><figcaption id=\"caption-attachment-128484\" class=\"wp-caption-text\">\u56f314 <span style=\"font-family: 'courier new', courier, monospace;\">KeUserModeCallback<\/span>\u306e\u547c\u3073\u51fa\u3057\u524d\u306bWindows\u304c\u30af\u30ea\u30c6\u30a3\u30ab\u30eb \u30ea\u30fc\u30b8\u30e7\u30f3\u306b\u51fa\u5165\u308a\u3059\u308b\u3088\u3046\u3059\u3092\u793a\u3057\u305f\u7591\u4f3c\u30b3\u30fc\u30c9<\/figcaption><\/figure>\n<p>\u3053\u306e\u3084\u308a\u304b\u305f\u306f\u30b8\u30ec\u30f3\u30de\u3092\u751f\u307f\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30b3\u30fc\u30c9\u306f\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8 \u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5909\u66f4\u3084\u914d\u5217\u306e\u518d\u5272\u308a\u5f53\u3066\u306a\u3069\u3092\u81ea\u7531\u306b\u884c\u3048\u308b\u306e\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u304b\u3089\u623b\u3063\u305f\u3068\u304d\u3001Win32k\u306f\u53c2\u7167\u3055\u308c\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u307e\u3060\u4fe1\u983c\u3067\u304d\u306a\u3044\u72b6\u614b\u306b\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u3053\u306e\u3088\u3046\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5bfe\u3057\u3066\u9069\u5207\u306a\u691c\u8a3c\u3084\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30ed\u30c3\u30af\u3092\u884c\u308f\u305a\u306b\u64cd\u4f5c\u3059\u308c\u3070\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u8106\u5f31\u6027\u304c\u767a\u751f\u3057\u304b\u306d\u307e\u305b\u3093\u3057\u3001\u5b9f\u969b\u306b\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u3001Tarjei Mandt\u6c0f\u304c2011\u5e74\u306b\u767a\u8868\u3057\u305f\u8ad6\u6587<a href=\"https:\/\/cs.uno.edu\/~dbilar\/BH-US-2011\/materials\/Mandt\/BH_US_11_Mandt_win32k_WP.pdf\" target=\"_blank\" rel=\"noopener\">\u300cKernel Attacks Through User-Mode Callbacks (\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3092\u901a\u3058\u305f\u30ab\u30fc\u30cd\u30eb\u653b\u6483)<\/a>\u300d\u306f\u3053\u306e\u7a2e\u306e\u8106\u5f31\u6027\u3092\u8907\u6570\u4f8b\u78ba\u8a8d\u3057\u3066\u304a\u308a\u3001<span style=\"font-weight: 400;\">\u9577\u5e74\u306b\u308f\u305f\u3063\u3066Win32k\u306e\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u306b\u95a2\u3059\u308b\u30ea\u30b5\u30fc\u30c1\u306e\u57fa\u790e\u306b\u306a\u3063\u3066<\/span>\u304d\u307e\u3057\u305f\u3002\u305d\u306e\u5f8c\u3001Microsoft\u306fWindows\u306e\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u3092\u898b\u76f4\u3057\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u691c\u8a3c\u3084\u30ed\u30c3\u30af\u304c\u9069\u5207\u306b\u884c\u308f\u308c\u308b\u3088\u3046\u306b\u3057\u305f\u305f\u3081\u3001\u3053\u306e\u30af\u30e9\u30b9\u306e\u30d0\u30b0\u306e\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u306f\u683c\u6bb5\u306b\u96e3\u3057\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>Microsoft\u306f\u300c\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3078\u306e\u76f4\u63a5\u547c\u3073\u51fa\u3057\u306b\u3088\u308a\u3001\u5909\u66f4\u3055\u308c\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u64cd\u4f5c\u3059\u308b\u3053\u3068\u306b\u3088\u308bWin32k\u306e\u30d0\u30b0\u300d\u3092\u52b9\u679c\u7684\u306b\u6392\u9664\u3057\u305f\u3082\u306e\u306e\u3001\u300c\u9593\u63a5\u7684\u306b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u5909\u66f4\u3057\u3066(\u305f\u3068\u3048\u3070\u5b50\u30a6\u30a3\u30f3\u30c9\u30a6\u3078\u306e\u64cd\u4f5c\u3092\u5b9f\u884c\u4e2d\u306b\u89aa\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u7834\u58ca\u3057\u3066)\u30ab\u30fc\u30cd\u30eb\u30e2\u30fc\u30c9\u304b\u3089\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u3078\u306e\u72b6\u614b\u3092\u4f5c\u308a\u51fa\u3059\u3053\u3068\u306b\u3088\u308a\u3001\u540c\u69d8\u306e\u30d0\u30b0\u3092\u4f7f\u3046\u300d\u65b9\u6cd5\u304c\u3042\u308b\u3053\u3068\u3092\u3001<a href=\"https:\/\/github.com\/gdabah\/win32k-bugs\/blob\/master\/SmashTheRef\/Win32k%20Smash%20the%20Ref%20-%20full%20version.pdf\" target=\"_blank\" rel=\"noopener\">Gil Dabah\u6c0f\u304c2019\u5e74\u306b\u5b9f\u8a3c\u3057\u307e\u3057\u305f<\/a>\u3002\u7279\u5b9a\u3055\u308c\u305f\u8106\u5f31\u6027\u306f\u3055\u3089\u306b\u8907\u96d1\u306a\u306e\u3067\u3001\u305d\u306e\u7279\u5b9a\u306f\u96e3\u3057\u304f\u3001\u6570\u3082\u306f\u308b\u304b\u306b\u5c11\u306a\u3044\u3068\u601d\u308f\u308c\u307e\u3059\u3002<\/p>\n<p>Microsoft\u306f\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3092\u8ffd\u8de1\u3059\u3079\u304d\u91cd\u8981\u306a\u5bfe\u8c61\u3067\u3042\u308b\u3068\u307f\u306a\u3057\u305f\u3053\u3068\u304b\u3089\u7279\u5225\u306a\u63a5\u982d\u8f9e\u304c\u4ed8\u3051\u3089\u308c\u307e\u3057\u305f\u3002\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u306e\u95a2\u6570\u540d\u306e\u524d\u306b\u306f\u3001<span style=\"font-family: 'courier new', courier, monospace;\">xxx<\/span>\u307e\u305f\u306f<span style=\"font-family: 'courier new', courier, monospace;\">zzz<\/span>\u304c\u4ed8\u3051\u3089\u308c\u3066\u3044\u307e\u3059\u3002\u5148\u982d\u306b<span style=\"font-family: 'courier new', courier, monospace;\">xxx<\/span>\u304c\u3064\u3051\u3089\u308c\u305f\u95a2\u6570\u306f\u3001\u524d\u8ff0\u306e\u3088\u3046\u306b\u3001\u30af\u30ea\u30c6\u30a3\u30ab\u30eb \u30ea\u30fc\u30b8\u30e7\u30f3\u3092\u96e2\u308c\u3001\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9 \u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3092\u547c\u3073\u51fa\u3059\u3082\u306e\u3067\u3059\u3002\u5148\u982d\u306b<span style=\"font-family: 'courier new', courier, monospace;\">zzz<\/span>\u304c\u3064\u3051\u3089\u308c\u305f\u95a2\u6570\u306f\u3001\u975e\u540c\u671f\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u307e\u305f\u306f\u9045\u5ef6\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3092\u547c\u3073\u51fa\u3059\u3082\u306e\u3067\u3059\u3002\u672c\u7a3f\u3067\u306f<span style=\"font-family: 'courier new', courier, monospace;\">xxx<\/span>\u304c\u5148\u982d\u306b\u3064\u3044\u305f\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u306b\u306e\u307f\u6ce8\u76ee\u3057\u307e\u3059\u3002<\/p>\n<h2><a id=\"post-128502-_wfaojelc12xp\"><\/a>\u7d50\u8ad6<\/h2>\n<p>\u672c\u9023\u8f09\u306e\u7b2c1\u90e8\u3067\u306f\u3001Win32 API\u3092\u4f7f\u3063\u3066\u30a6\u30a3\u30f3\u30c9\u30a6\u3084\u30e1\u30cb\u30e5\u30fc\u306a\u3069\u306eGUI\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3057\u305f\u3002\u307e\u305f\u3001\u3053\u308c\u3089\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u7ba1\u7406\u306b\u4f7f\u308f\u308c\u308b\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u3068\u30ab\u30fc\u30cd\u30eb\u30e2\u30fc\u30c9\u306e\u30c7\u30fc\u30bf\u69cb\u9020\u3092\u53d6\u308a\u4e0a\u3052\u3001\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u3068\u30ab\u30fc\u30cd\u30eb\u30e2\u30fc\u30c9\u306e\u884c\u304d\u6765\u3092\u6700\u9069\u5316\u3057\u3001\u5b89\u5168\u306b\u3059\u308b\u305f\u3081\u306b\u3001\u305d\u308c\u3089\u304c\u9577\u5e74\u3092\u304b\u3051\u3066\u3069\u3046\u5909\u5316\u3057\u3066\u304d\u305f\u306e\u304b\u3082\u8aac\u660e\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"https:\/\/unit42.paloaltonetworks.jp\/win32k-analysis-part-2\" target=\"_blank\" rel=\"noopener\">\u7b2c2\u90e8<\/a>\u3067\u306fCVE-2022-21882\u306ePoC\u3092\u901a\u3057\u3067\u898b\u3066\u3044\u304d\u3001\u3053\u306e\u30b3\u30fc\u30c9\u304c\u4f55\u3092\u884c\u3063\u3066\u3044\u308b\u304b\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002\u6700\u7d42\u90e8\u3067\u306f\u3053\u306e\u8106\u5f31\u6027\u3068\u3001\u3053\u306e\u8106\u5f31\u6027\u304c\u3069\u306e\u3088\u3046\u306b\u7279\u6a29\u6607\u683c\u306b\u5229\u7528\u3055\u308c\u308b\u306e\u304b\u3001CVE-2021-1732\u306e\u4fee\u6b63\u30d7\u30ed\u30b0\u30e9\u30e0\u304cCVE-2022021882\u306e\u9632\u6b62\u306b\u4e0d\u5341\u5206\u3060\u3063\u305f\u7406\u7531\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>\u672c\u9023\u8f09\u3067\u53d6\u308a\u4e0a\u3052\u308b\u8106\u5f31\u6027\u306f\u3001\u3044\u305a\u308c\u3082<a href=\"https:\/\/www.paloaltonetworks.jp\/cortex\/cortex-xdr\" target=\"_blank\" rel=\"noopener\">Cortex XDR<\/a>\u306eAnti-LPE\u4fdd\u8b77\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u3088\u308a\u691c\u51fa\u30fb\u30d6\u30ed\u30c3\u30af\u3055\u308c\u307e\u3059\u3002Cortex XDR\u306eAnti-LPE\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u3001NT AUTHORITY\\SYSTEM\u306e\u7279\u6a29\u30c8\u30fc\u30af\u30f3\u3092\u73fe\u5728\u306e\u30d7\u30ed\u30bb\u30b9\u306e\u305d\u308c\u306b\u30b3\u30d4\u30fc\u3057\u3066\u7279\u6a29\u3092\u6607\u683c\u3055\u305b\u308b\u3088\u3046\u306a\u3001\u30c7\u30fc\u30bf \u30aa\u30f3\u30ea\u30fc\u578b\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u306a\u3069\u306e\u6280\u8853\u3092\u76e3\u8996\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2><a id=\"addres\"><\/a>\u8ffd\u52a0\u30ea\u30bd\u30fc\u30b9<\/h2>\n<ul>\n<li><a href=\"https:\/\/cs.uno.edu\/~dbilar\/BH-US-2011\/materials\/Mandt\/BH_US_11_Mandt_win32k_WP.pdf\" target=\"_blank\" rel=\"noopener\">Kernel Attacks Through User-Mode Callbacks<\/a> \u2014 Tarjei Mandt, Norman Threat Research<\/li>\n<li><a href=\"https:\/\/www.blackhat.com\/docs\/us-17\/wednesday\/us-17-Schenk-Taking-Windows-10-Kernel-Exploitation-To-The-Next-Level%E2%80%93Leveraging-Write-What-Where-Vulnerabilities-In-Creators-Update.pdf\" target=\"_blank\" rel=\"noopener\">Taking Windows 10 Kernel Exploitation to the Next Level \u2013 Leveraging Write-What-Where Vulnerabilities in Creators Update<\/a> \u2014 Morten Schenk, Black Hat USA 2017<\/li>\n<li><a href=\"https:\/\/www.ragestorm.net\/blogs\/?p=502\" target=\"_blank\" rel=\"noopener\">Win32k Smash the Ref: New Bug Class and Exploitation Techniques<\/a> \u2014 Gil Dabah<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 2022\u5e741\u6708\u4e0b\u65ec\u3001SNS\u4e0a\u3067\u300cMicrosoft Windows\u306e\u65b0\u305f\u306a\u7279\u6a29\u6607\u683c\u306e\u8106\u5f31\u6027(CVE-2022-21882)\u304c\u91ce\u751f(in the wild)\u3067\u60aa\u7528\u3055\u308c\u3066\u3044\u308b\u300d\u3068\u3044\u3046\u5831\u544a\u304c\u8907\u6570\u3042\u304c\u3063\u3066\u304d\u307e\u3057\u305f\u3002\u3053\u308c\u3089\u306e<\/p>\n","protected":false},"author":323,"featured_media":134288,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[4428,4470],"tags":[5129,5131,5051],"product_categories":[4448],"coauthors":[2575],"class_list":["post-128502","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-threat-research-ja","category-vulnerabilities-ja","tag-cve-2021-1732-ja","tag-cve-2022-21882-ja","tag-microsoft-windows-ja","product_categories-cortex-xdr-ja"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.0 (Yoast SEO v27.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>\u30a4\u30f3\u30b5\u30a4\u30c9Win32k\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8: Win32k\u306e\u5b9f\u88c5\u306e\u80cc\u666f\u3068\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u306e\u65b9\u6cd5\u8ad6<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u9023\u8f09\u30b7\u30ea\u30fc\u30ba\u306e\u7b2c1\u90e8\u3067\u306f\u3001Microsoft Windows\u306eGUI\u3092\u5206\u6790\u3057\u3001GUI\u5b9f\u73fe\u306e\u30e1\u30ab\u30cb\u30ba\u30e0\u3068\u3001GUI\u3092\u4f7f\u3046\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u306e\u6b74\u53f2\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/unit42.paloaltonetworks.com\/ja\/win32k-analysis-part-1\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u30a4\u30f3\u30b5\u30a4\u30c9Win32k\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8: Win32k\u306e\u5b9f\u88c5\u306e\u80cc\u666f\u3068\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u306e\u65b9\u6cd5\u8ad6\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u9023\u8f09\u30b7\u30ea\u30fc\u30ba\u306e\u7b2c1\u90e8\u3067\u306f\u3001Microsoft Windows\u306eGUI\u3092\u5206\u6790\u3057\u3001GUI\u5b9f\u73fe\u306e\u30e1\u30ab\u30cb\u30ba\u30e0\u3068\u3001GUI\u3092\u4f7f\u3046\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u306e\u6b74\u53f2\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/unit42.paloaltonetworks.com\/ja\/win32k-analysis-part-1\/\" \/>\n<meta property=\"og:site_name\" content=\"Unit 42\" \/>\n<meta property=\"article:published_time\" content=\"2023-06-13T00:25:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-31T01:12:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2024\/06\/02_DNS_Overview_1920x900.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"900\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Shawn Westfall\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u30a4\u30f3\u30b5\u30a4\u30c9Win32k\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8: Win32k\u306e\u5b9f\u88c5\u306e\u80cc\u666f\u3068\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u306e\u65b9\u6cd5\u8ad6","description":"\u3053\u306e\u9023\u8f09\u30b7\u30ea\u30fc\u30ba\u306e\u7b2c1\u90e8\u3067\u306f\u3001Microsoft Windows\u306eGUI\u3092\u5206\u6790\u3057\u3001GUI\u5b9f\u73fe\u306e\u30e1\u30ab\u30cb\u30ba\u30e0\u3068\u3001GUI\u3092\u4f7f\u3046\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u306e\u6b74\u53f2\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/unit42.paloaltonetworks.com\/ja\/win32k-analysis-part-1\/","og_locale":"ja_JP","og_type":"article","og_title":"\u30a4\u30f3\u30b5\u30a4\u30c9Win32k\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8: Win32k\u306e\u5b9f\u88c5\u306e\u80cc\u666f\u3068\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u306e\u65b9\u6cd5\u8ad6","og_description":"\u3053\u306e\u9023\u8f09\u30b7\u30ea\u30fc\u30ba\u306e\u7b2c1\u90e8\u3067\u306f\u3001Microsoft Windows\u306eGUI\u3092\u5206\u6790\u3057\u3001GUI\u5b9f\u73fe\u306e\u30e1\u30ab\u30cb\u30ba\u30e0\u3068\u3001GUI\u3092\u4f7f\u3046\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u306e\u6b74\u53f2\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002","og_url":"https:\/\/unit42.paloaltonetworks.com\/ja\/win32k-analysis-part-1\/","og_site_name":"Unit 42","article_published_time":"2023-06-13T00:25:09+00:00","article_modified_time":"2024-07-31T01:12:48+00:00","og_image":[{"width":1920,"height":900,"url":"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2024\/06\/02_DNS_Overview_1920x900.jpg","type":"image\/jpeg"}],"author":"Shawn Westfall","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/unit42.paloaltonetworks.com\/ja\/win32k-analysis-part-1\/#article","isPartOf":{"@id":"https:\/\/unit42.paloaltonetworks.com\/ja\/win32k-analysis-part-1\/"},"author":{"name":"Ayako Kimijima","@id":"https:\/\/unit42.paloaltonetworks.com\/#\/schema\/person\/5502567dd627cdd5a306432cd651a90e"},"headline":"\u30a4\u30f3\u30b5\u30a4\u30c9Win32k\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8: Win32k\u306e\u5b9f\u88c5\u306e\u80cc\u666f\u3068\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u306e\u65b9\u6cd5\u8ad6","datePublished":"2023-06-13T00:25:09+00:00","dateModified":"2024-07-31T01:12:48+00:00","mainEntityOfPage":{"@id":"https:\/\/unit42.paloaltonetworks.com\/ja\/win32k-analysis-part-1\/"},"wordCount":649,"commentCount":0,"image":{"@id":"https:\/\/unit42.paloaltonetworks.com\/ja\/win32k-analysis-part-1\/#primaryimage"},"thumbnailUrl":"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2024\/06\/02_DNS_Overview_1920x900.jpg","keywords":["CVE-2021-1732","CVE-2022-21882","Microsoft Windows"],"articleSection":["\u8105\u5a01\u30ea\u30b5\u30fc\u30c1","\u8106\u5f31\u6027"],"inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/unit42.paloaltonetworks.com\/ja\/win32k-analysis-part-1\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/unit42.paloaltonetworks.com\/ja\/win32k-analysis-part-1\/","url":"https:\/\/unit42.paloaltonetworks.com\/ja\/win32k-analysis-part-1\/","name":"\u30a4\u30f3\u30b5\u30a4\u30c9Win32k\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8: Win32k\u306e\u5b9f\u88c5\u306e\u80cc\u666f\u3068\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u306e\u65b9\u6cd5\u8ad6","isPartOf":{"@id":"https:\/\/unit42.paloaltonetworks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/unit42.paloaltonetworks.com\/ja\/win32k-analysis-part-1\/#primaryimage"},"image":{"@id":"https:\/\/unit42.paloaltonetworks.com\/ja\/win32k-analysis-part-1\/#primaryimage"},"thumbnailUrl":"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2024\/06\/02_DNS_Overview_1920x900.jpg","datePublished":"2023-06-13T00:25:09+00:00","dateModified":"2024-07-31T01:12:48+00:00","author":{"@id":"https:\/\/unit42.paloaltonetworks.com\/#\/schema\/person\/5502567dd627cdd5a306432cd651a90e"},"description":"\u3053\u306e\u9023\u8f09\u30b7\u30ea\u30fc\u30ba\u306e\u7b2c1\u90e8\u3067\u306f\u3001Microsoft Windows\u306eGUI\u3092\u5206\u6790\u3057\u3001GUI\u5b9f\u73fe\u306e\u30e1\u30ab\u30cb\u30ba\u30e0\u3068\u3001GUI\u3092\u4f7f\u3046\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u306e\u6b74\u53f2\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/unit42.paloaltonetworks.com\/ja\/win32k-analysis-part-1\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/unit42.paloaltonetworks.com\/ja\/win32k-analysis-part-1\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/unit42.paloaltonetworks.com\/ja\/win32k-analysis-part-1\/#primaryimage","url":"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2024\/06\/02_DNS_Overview_1920x900.jpg","contentUrl":"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2024\/06\/02_DNS_Overview_1920x900.jpg","width":1920,"height":900,"caption":"Conceptual illustration of a digital data center with glowing blue networks and holographic clouds above server racks, representing cloud computing infrastructure and data storage."},{"@type":"BreadcrumbList","@id":"https:\/\/unit42.paloaltonetworks.com\/ja\/win32k-analysis-part-1\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/unit42.paloaltonetworks.com\/ja\/"},{"@type":"ListItem","position":2,"name":"\u30a4\u30f3\u30b5\u30a4\u30c9Win32k\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8: Win32k\u306e\u5b9f\u88c5\u306e\u80cc\u666f\u3068\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u306e\u65b9\u6cd5\u8ad6"}]},{"@type":"WebSite","@id":"https:\/\/unit42.paloaltonetworks.com\/#website","url":"https:\/\/unit42.paloaltonetworks.com\/","name":"Unit 42","description":"Palo Alto Networks","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/unit42.paloaltonetworks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/unit42.paloaltonetworks.com\/#\/schema\/person\/5502567dd627cdd5a306432cd651a90e","name":"Ayako Kimijima","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/unit42.paloaltonetworks.com\/#\/schema\/person\/image\/4ffb3c2d260a0150fb91b3715442f8b3","url":"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2018\/11\/unit-news-meta.svg","contentUrl":"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2018\/11\/unit-news-meta.svg","caption":"Ayako Kimijima"},"url":"https:\/\/unit42.paloaltonetworks.com\/ja\/author\/akimijima\/"}]}},"_links":{"self":[{"href":"https:\/\/unit42.paloaltonetworks.com\/ja\/wp-json\/wp\/v2\/posts\/128502","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unit42.paloaltonetworks.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unit42.paloaltonetworks.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unit42.paloaltonetworks.com\/ja\/wp-json\/wp\/v2\/users\/323"}],"replies":[{"embeddable":true,"href":"https:\/\/unit42.paloaltonetworks.com\/ja\/wp-json\/wp\/v2\/comments?post=128502"}],"version-history":[{"count":9,"href":"https:\/\/unit42.paloaltonetworks.com\/ja\/wp-json\/wp\/v2\/posts\/128502\/revisions"}],"predecessor-version":[{"id":135976,"href":"https:\/\/unit42.paloaltonetworks.com\/ja\/wp-json\/wp\/v2\/posts\/128502\/revisions\/135976"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unit42.paloaltonetworks.com\/ja\/wp-json\/wp\/v2\/media\/134288"}],"wp:attachment":[{"href":"https:\/\/unit42.paloaltonetworks.com\/ja\/wp-json\/wp\/v2\/media?parent=128502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unit42.paloaltonetworks.com\/ja\/wp-json\/wp\/v2\/categories?post=128502"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unit42.paloaltonetworks.com\/ja\/wp-json\/wp\/v2\/tags?post=128502"},{"taxonomy":"product_categories","embeddable":true,"href":"https:\/\/unit42.paloaltonetworks.com\/ja\/wp-json\/wp\/v2\/product_categories?post=128502"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/unit42.paloaltonetworks.com\/ja\/wp-json\/wp\/v2\/coauthors?post=128502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}