<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fh="http://purl.org/syndication/history/1.0"><channel><title>ExpTech | 部落格</title><description>ExpTech Studio 探索科技</description><link>https://exptech.dev/</link><language>zh-TW</language><fh:complete/><atom:link rel="self" href="https://exptech.dev/blog/rss.xml"/><item><title>強震即時警報的轉發串流從 Lua 搬到 Go</title><link>https://exptech.dev/blog/sharing-2026-11-17/</link><guid isPermaLink="true">https://exptech.dev/blog/sharing-2026-11-17/</guid><description>11/17 凌晨，我們把中央氣象署強震即時警報的轉發串流，從負載平衡入口 OpenResty 裡的 Lua 搬進用 Go 寫的 SSE 伺服器。Lua 版會漏送心跳，TREM-Lite 因此常斷線；搬完之後，它在這條串流上的連線平均從 23 分鐘拉長到 32 分鐘。切換時，我們也弄壞了自己的兩組監控。</description><pubDate>Tue, 17 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;DPIP 與 TREM-Lite 上的強震即時警報（CWA EEW）由中央氣象署發布，我們的伺服器負責轉發給 App。這條轉發用的串流（下面簡稱速報串流）到 11/16 為止，都是負載平衡入口上 OpenResty 裡的一段 Lua；即時震度（RTS）的串流則在我們用 Go 寫的 SSE 伺服器 sse-server-go 上執行。TREM-Lite 連速報串流比連 RTS 容易斷。11/16 04:00 到 09:20（臺灣時間，下同），TREM-Lite 在速報串流上的連線平均只維持 23 分鐘，在 RTS 上是 36 分鐘。&lt;/p&gt;
&lt;p&gt;11/17 凌晨 02:30 到 03:01，我們把速報串流搬進 sse-server-go，兩台負載平衡入口上負責這條串流的 Lua 全部拿掉。&lt;/p&gt;

&lt;div&gt;&lt;h2 id=&quot;原本的速報串流&quot;&gt;原本的速報串流&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;lb-tpe1 與 lb-khh1 這兩台負載平衡入口（LB）上執行的是 OpenResty，速報串流整個做在 OpenResty 裡。一個 worker 向訊息叢集訂閱上游的警報，收到訊息後，透過跨 worker 的事件元件 lua-resty-events 叫醒其他 worker。每一條連線各自等在一個 semaphore 上，有新內容就送出，沒有內容時每 60 秒送一次心跳。同一份資料也供應一個輪詢用的 GET，帶 ETag，內容沒變就回 304 Not Modified。&lt;/p&gt;
&lt;p&gt;這段 &lt;span&gt;&lt;svg viewBox=&quot;0 0 24 24&quot; width=&quot;1em&quot; height=&quot;1em&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M.38 10.377l-.272-.037c-.048.344-.082.695-.101 1.041l.275.016c.018-.34.051-.682.098-1.02zM4.136 3.289l-.184-.205c-.258.232-.509.48-.746.734l.202.188c.231-.248.476-.49.728-.717zM5.769 2.059l-.146-.235c-.296.186-.586.385-.863.594l.166.219c.27-.203.554-.399.843-.578zM1.824 18.369c.185.297.384.586.593.863l.22-.164c-.205-.271-.399-.555-.58-.844l-.233.145zM1.127 16.402l-.255.104c.129.318.274.635.431.943l.005.01.245-.125-.005-.01c-.153-.301-.295-.611-.421-.922zM.298 9.309l.269.063c.076-.332.168-.664.272-.986l-.261-.087c-.108.332-.202.672-.28 1.01zM.274 12.42l-.275.01c.012.348.04.699.083 1.043l.273-.033c-.042-.336-.069-.68-.081-1.02zM.256 14.506c.073.34.162.682.264 1.014l.263-.08c-.1-.326-.187-.658-.258-.99l-.269.056zM11.573.275L11.563 0c-.348.012-.699.039-1.044.082l.034.273c.338-.041.68-.068 1.02-.08zM23.221 8.566c.1.326.186.66.256.992l.27-.059c-.072-.34-.16-.682-.262-1.014l-.264.081zM17.621 1.389c-.309-.164-.627-.314-.947-.449l-.107.252c.314.133.625.281.926.439l.128-.242zM15.693.572c-.332-.105-.67-.199-1.01-.277l-.063.268c.332.076.664.168.988.273l.085-.264zM6.674 1.545c.298-.15.606-.291.916-.418L7.486.873c-.317.127-.632.272-.937.428l-.015.008.125.244.015-.008zM23.727 11.588l.275-.01a11.797 11.797 0 0 0-.082-1.045l-.273.033c.041.338.068.682.08 1.022zM13.654.105c-.346-.047-.696-.08-1.043-.098l-.014.273c.339.018.683.051 1.019.098l.038-.273zM9.544.527l-.058-.27c-.34.072-.681.16-1.014.264l.081.262c.325-.099.659-.185.991-.256zM1.921 5.469l.231.15c.185-.285.384-.566.592-.834l-.217-.17c-.213.276-.417.563-.606.854zM.943 7.318l.253.107c.132-.313.28-.625.439-.924l-.243-.128c-.163.307-.314.625-.449.945zM18.223 21.943l.145.234c.295-.186.586-.385.863-.594l-.164-.219c-.272.204-.557.4-.844.579zM21.248 19.219l.217.17c.215-.273.418-.561.607-.854l-.23-.148c-.186.285-.385.564-.594.832zM19.855 20.715l.184.203c.258-.23.51-.479.746-.732l-.201-.188c-.23.248-.477.488-.729.717zM22.359 17.504l.244.129c.162-.307.314-.625.449-.945l-.254-.107a11.27 11.27 0 0 1-.439.923zM23.617 13.629l.273.039c.049-.346.082-.695.102-1.043l-.275-.014c-.018.338-.051.682-.1 1.018zM23.156 15.621l.264.086c.107-.332.201-.67.279-1.01l-.268-.063c-.077.333-.169.665-.275.987zM22.453 6.672c.154.303.297.617.424.932l.256-.104c-.131-.322-.277-.643-.436-.953l-.244.125zM8.296 23.418c.331.107.67.201 1.009.279l.062-.268c-.331-.076-.663-.168-.986-.273l-.085.262zM10.335 23.889c.345.049.696.082 1.043.102l.014-.275c-.339-.018-.682-.051-1.019-.098l-.038.271zM17.326 22.449c-.303.154-.613.297-.926.424l.104.256c.318-.131.639-.275.947-.434l.004-.002-.123-.246-.006.002zM4.613 21.467c.274.213.562.418.854.605l.149-.23c-.285-.184-.565-.385-.833-.592l-.17.217zM12.417 23.725l.009.275c.348-.014.699-.041 1.045-.084l-.035-.271c-.336.041-.68.068-1.019.08zM6.37 22.604c.307.162.625.314.946.449l.107-.254c-.313-.133-.624-.279-.924-.439l-.129.244zM3.083 20.041c.233.258.48.51.734.746l.188-.201c-.249-.23-.49-.477-.717-.729l-.205.184zM14.445 23.475l.059.27c.34-.074.68-.162 1.014-.266l-.082-.262c-.325.099-.659.185-.991.258zM21.18.129A2.689 2.689 0 1 0 21.18 5.507 2.689 2.689 0 1 0 21.18.129zM15.324 15.447c0 .471.314.66.852.66.67 0 1.297-.396 1.297-1.016v-.645c-.23.107-.379.141-1.107.24-.735.109-1.042.306-1.042.761zM12 2.818c-5.07 0-9.18 4.109-9.18 9.18 0 5.068 4.11 9.18 9.18 9.18 5.07 0 9.18-4.111 9.18-9.18 0-5.07-4.11-9.18-9.18-9.18zm-2.487 13.77H5.771v-6.023h.769v5.346h2.974v.677zm4.13 0h-.619v-.67c-.405.57-.811.793-1.446.793-.843 0-1.38-.463-1.38-1.182v-3.271h.686v3c0 .52.347.85.893.85.719 0 1.181-.578 1.181-1.461v-2.389h.686v4.33zm-.53-8.393c0-1.484 1.205-2.689 2.689-2.689s2.688 1.205 2.688 2.689-1.203 2.688-2.688 2.688-2.689-1.203-2.689-2.688zm5.567 7.856v.52c-.223.059-.33.074-.471.074-.34 0-.637-.238-.711-.57-.381.406-.918.637-1.471.637-.877 0-1.422-.463-1.422-1.248 0-.527.256-.916.76-1.123.266-.107.414-.141 1.389-.264.545-.066.719-.191.719-.48v-.182c0-.412-.348-.645-.967-.645-.645 0-.957.24-1.016.77h-.693c.041-1 .686-1.404 1.734-1.404 1.066 0 1.627.412 1.627 1.182v2.412c0 .215.133.338.373.338.041-.002.074-.002.149-.017z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Lua&lt;/span&gt; 每台 LB 有 529 行：串流中樞 185 行、訊息叢集的用戶端 318 行、壓縮 26 行，另外兩份 server 設定裡也有 Lua 區塊。為了裝上 lua-resty-events 的核心模組，我們從原始碼重新編譯 nginx，OpenResty 的 Dockerfile 因此有 112 行。&lt;/p&gt;
&lt;p&gt;輪詢 GET 的流量不小。11/16 04:00 到 09:20，lb-tpe1 上平均每秒有 79.7 個請求，其中 76.4% 回 304。&lt;/p&gt;
&lt;p&gt;其他串流早就不在 Lua 裡。2025 年 9 月起，我們陸續把服務改用 Go 重寫（見&lt;a href=&quot;https://exptech.dev/blog/sharing-2025-12-15/#%E7%AC%AC-3-%E5%8D%B7&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;從 JavaScript 到 Golang&lt;/a&gt;），RTS、震度速報與地震報告的串流都在 sse-server-go 上，LB 上還留在 Lua 裡的只剩速報串流。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;lua-版的問題&quot;&gt;Lua 版的問題&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;斷線的差距只出現在 TREM-Lite。DPIP 在兩條串流上的連線平均都不到 3 分鐘，速報串流 173 秒、RTS 169 秒，看不出差別。&lt;/p&gt;
&lt;p&gt;原因在心跳。Lua 版每條連線等 60 秒，醒來後再檢查距離上次送出是否已滿 60 秒，滿了才送心跳。有一部分連線算出來差一點點不到 60 秒，這一輪就沒送，要到第 120 秒才送出第一次心跳。TREM-Lite 太久沒收到任何位元組，就會當作斷線並重連，目前的版本是 90 秒；DPIP 的門檻是 132 秒，不受影響。11/16 04:00 到 09:20，TREM-Lite 有 255 條速報串流連線剛好在第 120 秒結束，這些連線除了開頭的資料，一次心跳都沒有送出。&lt;/p&gt;
&lt;figure lang=&quot;zh-TW&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;div data-xt-zoomable=&quot;&quot; aria-label=&quot;Lua 版的心跳：第 60 秒沒送，第 120 秒才送&quot; aria-describedby=&quot;xt-diagram-desc-sxuyiv&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;svg viewBox=&quot;0 0 640 166&quot; role=&quot;img&quot; aria-label=&quot;Lua 版的心跳：第 60 秒沒送，第 120 秒才送&quot;&gt;&lt;line x1=&quot;66&quot; x2=&quot;66&quot; y1=&quot;30&quot; y2=&quot;110&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;178.8&quot; x2=&quot;178.8&quot; y1=&quot;30&quot; y2=&quot;110&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;291.6&quot; x2=&quot;291.6&quot; y1=&quot;30&quot; y2=&quot;110&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;404.4&quot; x2=&quot;404.4&quot; y1=&quot;30&quot; y2=&quot;110&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;517.2&quot; x2=&quot;517.2&quot; y1=&quot;30&quot; y2=&quot;110&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;630&quot; x2=&quot;630&quot; y1=&quot;30&quot; y2=&quot;110&quot;&gt;&lt;/line&gt;&lt;g&gt;&lt;text x=&quot;0&quot; y=&quot;81.75&quot;&gt;部分連線&lt;/text&gt;&lt;/g&gt;&lt;line x1=&quot;66&quot; x2=&quot;630&quot; y1=&quot;70&quot; y2=&quot;70&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;562.32&quot; x2=&quot;562.32&quot; y1=&quot;6&quot; y2=&quot;110&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;404.4&quot; x2=&quot;404.4&quot; y1=&quot;6&quot; y2=&quot;110&quot;&gt;&lt;/line&gt;&lt;g&gt;&lt;rect x=&quot;67&quot; y=&quot;62&quot; width=&quot;223.6&quot; height=&quot;16&quot; rx=&quot;3&quot;&gt;&lt;/rect&gt;&lt;/g&gt;&lt;g&gt;&lt;rect x=&quot;292.6&quot; y=&quot;62&quot; width=&quot;223.6&quot; height=&quot;16&quot; rx=&quot;3&quot;&gt;&lt;/rect&gt;&lt;/g&gt;&lt;g&gt;&lt;rect x=&quot;289.6&quot; y=&quot;60&quot; width=&quot;4&quot; height=&quot;20&quot; rx=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M287.6 66l8 8m0 -8l-8 8&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;rect x=&quot;515.7&quot; y=&quot;60&quot; width=&quot;3&quot; height=&quot;20&quot; rx=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;78&quot; y=&quot;74&quot;&gt;等 60 秒&lt;/text&gt;&lt;text x=&quot;302.6&quot; y=&quot;74&quot;&gt;再等 60 秒&lt;/text&gt;&lt;line x1=&quot;517.2&quot; x2=&quot;517.2&quot; y1=&quot;60&quot; y2=&quot;55&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;291.6&quot; x2=&quot;291.6&quot; y1=&quot;60&quot; y2=&quot;55&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;66&quot; x2=&quot;66&quot; y1=&quot;79&quot; y2=&quot;86&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;66&quot; cy=&quot;70&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;circle cx=&quot;66&quot; cy=&quot;70&quot; r=&quot;4.5&quot;&gt;&lt;/circle&gt;&lt;text x=&quot;458.7&quot; y=&quot;51&quot;&gt;第一次心跳&lt;/text&gt;&lt;g transform=&quot;translate(108.77 40.5) scale(0.54167)&quot;&gt;&lt;path d=&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 9v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;125.77&quot; y=&quot;51&quot;&gt;差一點不到 60 秒，這一輪沒送&lt;/text&gt;&lt;text x=&quot;62&quot; y=&quot;98&quot;&gt;連上，送出開頭的資料&lt;/text&gt;&lt;text x=&quot;448.17&quot; y=&quot;17&quot;&gt;DPIP 的門檻 132 秒&lt;/text&gt;&lt;g transform=&quot;translate(247.79 6.5) scale(0.54167)&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;264.79&quot; y=&quot;17&quot;&gt;TREM-Lite 的門檻 90 秒&lt;/text&gt;&lt;line x1=&quot;66&quot; x2=&quot;630&quot; y1=&quot;110&quot; y2=&quot;110&quot;&gt;&lt;/line&gt;&lt;text x=&quot;54&quot; y=&quot;126&quot; text-anchor=&quot;end&quot;&gt;秒&lt;/text&gt;&lt;line x1=&quot;66&quot; x2=&quot;66&quot; y1=&quot;110&quot; y2=&quot;114&quot;&gt;&lt;/line&gt;&lt;text x=&quot;62.29&quot; y=&quot;126&quot;&gt;0&lt;/text&gt;&lt;line x1=&quot;178.8&quot; x2=&quot;178.8&quot; y1=&quot;110&quot; y2=&quot;114&quot;&gt;&lt;/line&gt;&lt;text x=&quot;171.38&quot; y=&quot;126&quot;&gt;30&lt;/text&gt;&lt;line x1=&quot;291.6&quot; x2=&quot;291.6&quot; y1=&quot;110&quot; y2=&quot;114&quot;&gt;&lt;/line&gt;&lt;text x=&quot;284.18&quot; y=&quot;126&quot;&gt;60&lt;/text&gt;&lt;line x1=&quot;404.4&quot; x2=&quot;404.4&quot; y1=&quot;110&quot; y2=&quot;114&quot;&gt;&lt;/line&gt;&lt;text x=&quot;396.98&quot; y=&quot;126&quot;&gt;90&lt;/text&gt;&lt;line x1=&quot;517.2&quot; x2=&quot;517.2&quot; y1=&quot;110&quot; y2=&quot;114&quot;&gt;&lt;/line&gt;&lt;text x=&quot;506.08&quot; y=&quot;126&quot;&gt;120&lt;/text&gt;&lt;line x1=&quot;630&quot; x2=&quot;630&quot; y1=&quot;110&quot; y2=&quot;114&quot;&gt;&lt;/line&gt;&lt;text x=&quot;617.75&quot; y=&quot;126&quot;&gt;150&lt;/text&gt;&lt;g transform=&quot;translate(0 145) scale(0.58333)&quot;&gt;&lt;path d=&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 9v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;18&quot; y=&quot;156&quot;&gt;異常&lt;/text&gt;&lt;rect x=&quot;66.5&quot; y=&quot;145&quot; width=&quot;3&quot; height=&quot;14&quot; rx=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;79&quot; y=&quot;156&quot;&gt;心跳&lt;/text&gt;&lt;g&gt;&lt;rect x=&quot;127&quot; y=&quot;145&quot; width=&quot;4&quot; height=&quot;14&quot; rx=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M125 148l8 8m0 -8l-8 8&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;140&quot; y=&quot;156&quot;&gt;沒送出的心跳&lt;/text&gt;&lt;/svg&gt;&lt;/div&gt;&lt;p aria-hidden=&quot;true&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;點圖可放大&lt;/p&gt;&lt;p id=&quot;xt-diagram-desc-sxuyiv&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;Lua 版一條連線的前 150 秒。第 0 秒連上並送出開頭的資料，等 60 秒後檢查，算出來差一點不到 60 秒，第 60 秒的心跳沒有送；再等 60 秒，第 120 秒才送出第一次心跳。這 120 秒裡沒有任何位元組，超過 TREM-Lite 90 秒的門檻，沒有超過 DPIP 132 秒的門檻。&lt;/p&gt;&lt;figcaption data-astro-cid-fia5stjh=&quot;&quot;&gt;Lua 版的心跳：第 60 秒沒送，第 120 秒才送&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Lua 版還有兩個行為跟我們要的不一樣。警報過了有效時間，Lua 版要等上游送來下一則訊息才會清掉，上游一直沒有新訊息時，過期的警報就可能留在快照裡。同一毫秒內來了兩次更新，Lua 版會丟掉第二次。&lt;/p&gt;
&lt;p&gt;11/16 晚上準備切換時，我們又找到一個問題。訊息叢集的用戶端在 timer 裡用迴圈重連，沒有檢查 worker 是不是正在結束。每次重新載入設定，舊 worker 的連線被關掉，迴圈就再連回去，舊 worker 因此一直不退出。lb-tpe1 上累積了 24 個這樣的舊 worker，最久的已經留了 23 天，合計約 1.8 GB 記憶體，每一個都還保留著一份重複的訂閱。另一個寫法相同的 Lua 模組也有這個問題。當晚我們修好迴圈，清掉了這些舊 worker。&lt;/p&gt;
&lt;p&gt;RTS 在 sse-server-go 上一直很穩，所以我們把速報串流也搬過去。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;在-go-裡合成一份快照&quot;&gt;在 Go 裡合成一份快照&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;新的速報模組放在 sse-server-go 裡。它從三個上游來源接收警報，合成一份快照，內容是目前仍然有效的警報清單：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;同一個地震事件只保留報數（serial）最大的那一則。&lt;/li&gt;
&lt;li&gt;發震時間過了 240 秒的警報從快照移除。每秒檢查一次有沒有過期，不等上游的下一則訊息。&lt;/li&gt;
&lt;li&gt;內容沒有變就不重新送出。&lt;/li&gt;
&lt;li&gt;快照的版本號嚴格遞增，同一毫秒內的兩次更新都會送出。&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;每份快照只壓縮一次，所有連線共用同一份結果。新連線一連上就先收到目前的快照；消化不及的用戶端只保留最新的一份，不會累積一串舊的。&lt;/p&gt;
&lt;p&gt;舊版 App 不需要更新。舊的速報串流與輪詢 GET 都還在，改由 sse-server-go 從同一份快照產生，沿用原本的格式，輸出逐位元組相同。這兩個介面已經列為棄用，沒有訂停止的日期。&lt;/p&gt;
&lt;p&gt;這個模組約 736 行 &lt;span&gt;&lt;svg viewBox=&quot;0 0 24 24&quot; width=&quot;1em&quot; height=&quot;1em&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M1.811 10.231c-.047 0-.058-.023-.035-.059l.246-.315c.023-.035.081-.058.128-.058h4.172c.046 0 .058.035.035.07l-.199.303c-.023.036-.082.07-.117.07zM.047 11.306c-.047 0-.059-.023-.035-.058l.245-.316c.023-.035.082-.058.129-.058h5.328c.047 0 .07.035.058.07l-.093.28c-.012.047-.058.07-.105.07zm2.828 1.075c-.047 0-.059-.035-.035-.07l.163-.292c.023-.035.07-.07.117-.07h2.337c.047 0 .07.035.07.082l-.023.28c0 .047-.047.082-.082.082zm12.129-2.36c-.736.187-1.239.327-1.963.514-.176.046-.187.058-.34-.117-.174-.199-.303-.327-.548-.444-.737-.362-1.45-.257-2.115.175-.795.514-1.204 1.274-1.192 2.22.011.935.654 1.706 1.577 1.835.795.105 1.46-.175 1.987-.77.105-.13.198-.27.315-.434H10.47c-.245 0-.304-.152-.222-.35.152-.362.432-.97.596-1.274a.315.315 0 01.292-.187h4.253c-.023.316-.023.631-.07.947a4.983 4.983 0 01-.958 2.29c-.841 1.11-1.94 1.8-3.33 1.986-1.145.152-2.209-.07-3.143-.77-.865-.655-1.356-1.52-1.484-2.595-.152-1.274.222-2.419.993-3.424.83-1.086 1.928-1.776 3.272-2.02 1.098-.2 2.15-.07 3.096.571.62.41 1.063.97 1.356 1.648.07.105.023.164-.117.2m3.868 6.461c-1.064-.024-2.034-.328-2.852-1.029a3.665 3.665 0 01-1.262-2.255c-.21-1.32.152-2.489.947-3.529.853-1.122 1.881-1.706 3.272-1.95 1.192-.21 2.314-.095 3.33.595.923.63 1.496 1.484 1.648 2.605.198 1.578-.257 2.863-1.344 3.962-.771.783-1.718 1.273-2.805 1.495-.315.06-.63.07-.934.106zm2.78-4.72c-.011-.153-.011-.27-.034-.387-.21-1.157-1.274-1.81-2.384-1.554-1.087.245-1.788.935-2.045 2.033-.21.912.234 1.835 1.075 2.21.643.28 1.285.244 1.905-.07.923-.48 1.425-1.228 1.484-2.233z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Go&lt;/span&gt;，另外寫了 880 行測試，測試都開啟 race detector 執行。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;拿掉-lua-之後的-openresty&quot;&gt;拿掉 Lua 之後的 OpenResty&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;搬進 Go 之後，速報串流的每一條連線也要經過 OpenResty 轉給 sse-server-go。這一段原本走 TCP，每一條轉到後端的 SSE 連線都佔用 OpenResty 一個來源埠，連到同一個目的地最多約 55,000 個；在連線追蹤表（conntrack）裡，每條 SSE 連線也佔兩筆，用戶端到 LB 一筆，LB 到後端一筆。lb-tpe1 過去 7 天 SSE 與 WebSocket 的同時連線數最高 22,583 條，我們以 10 萬條為目標準備容量。&lt;/p&gt;
&lt;p&gt;這次 OpenResty 改用 unix socket 連 sse-server-go，TCP 留著當備援。SSE 連線不再佔用來源埠，在 conntrack 裡每條只佔一筆。03:01 換好之後，lb-tpe1 上 OpenResty 連到後端的 TCP 連線從 496 條降到 0 條。&lt;/p&gt;
&lt;p&gt;Lua 拿掉之後，自己編譯 nginx 的理由也沒了，OpenResty 改用官方映像檔，只多裝 sqlite。&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;項目&lt;/th&gt;
&lt;th&gt;之前&lt;/th&gt;
&lt;th&gt;之後&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;OpenResty 的 Dockerfile&lt;/td&gt;
&lt;td&gt;112 行&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;12 行&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenResty 映像檔，lb-khh1&lt;/td&gt;
&lt;td&gt;311 MB&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;236 MB&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenResty 映像檔，lb-tpe1&lt;/td&gt;
&lt;td&gt;213 MB&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;162 MB&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;每條 SSE 連線的 conntrack 項目&lt;/td&gt;
&lt;td&gt;2 筆&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;1 筆&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div&gt;&lt;h2 id=&quot;切換經過&quot;&gt;切換經過&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;兩台 LB 一次換一台，先換 lb-khh1。&lt;/p&gt;
&lt;figure lang=&quot;zh-TW&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;div data-xt-zoomable=&quot;&quot; aria-label=&quot;11/17 凌晨的切換經過&quot; aria-describedby=&quot;xt-diagram-desc-w224er&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;svg viewBox=&quot;0 0 640 341&quot; role=&quot;img&quot; aria-label=&quot;11/17 凌晨的切換經過&quot;&gt;&lt;rect x=&quot;0&quot; y=&quot;84&quot; width=&quot;640&quot; height=&quot;80&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;0&quot; y=&quot;224.25&quot; width=&quot;640&quot; height=&quot;60&quot;&gt;&lt;/rect&gt;&lt;line x1=&quot;140&quot; x2=&quot;140&quot; y1=&quot;4&quot; y2=&quot;284.25&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;201.25&quot; x2=&quot;201.25&quot; y1=&quot;4&quot; y2=&quot;284.25&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;262.5&quot; x2=&quot;262.5&quot; y1=&quot;4&quot; y2=&quot;284.25&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;323.75&quot; x2=&quot;323.75&quot; y1=&quot;4&quot; y2=&quot;284.25&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;385&quot; x2=&quot;385&quot; y1=&quot;4&quot; y2=&quot;284.25&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;446.25&quot; x2=&quot;446.25&quot; y1=&quot;4&quot; y2=&quot;284.25&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;507.5&quot; x2=&quot;507.5&quot; y1=&quot;4&quot; y2=&quot;284.25&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;568.75&quot; x2=&quot;568.75&quot; y1=&quot;4&quot; y2=&quot;284.25&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;630&quot; x2=&quot;630&quot; y1=&quot;4&quot; y2=&quot;284.25&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;140&quot; x2=&quot;630&quot; y1=&quot;44&quot; y2=&quot;44&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;140&quot; x2=&quot;630&quot; y1=&quot;124&quot; y2=&quot;124&quot;&gt;&lt;/line&gt;&lt;g&gt;&lt;text x=&quot;0&quot; y=&quot;215.75&quot;&gt;地震報告串流&lt;/text&gt;&lt;/g&gt;&lt;line x1=&quot;140&quot; x2=&quot;630&quot; y1=&quot;204&quot; y2=&quot;204&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;140&quot; x2=&quot;630&quot; y1=&quot;264.25&quot; y2=&quot;264.25&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;215.88&quot; x2=&quot;215.88&quot; y1=&quot;35&quot; y2=&quot;29&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;198.88&quot; x2=&quot;198.88&quot; y1=&quot;53&quot; y2=&quot;60&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;544.25&quot; x2=&quot;544.25&quot; y1=&quot;35&quot; y2=&quot;29&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;201.25&quot; x2=&quot;198.88&quot; y1=&quot;44&quot; y2=&quot;44&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;198.88&quot; cy=&quot;44&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(191.38 36.5) scale(0.625)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;M12 16v-4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 8h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;line x1=&quot;213.5&quot; x2=&quot;215.88&quot; y1=&quot;44&quot; y2=&quot;44&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;215.88&quot; cy=&quot;44&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(208.38 36.5) scale(0.625)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;M12 16v-4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 8h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;circle cx=&quot;544.25&quot; cy=&quot;44&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(536.75 36.5) scale(0.625)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;M12 16v-4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 8h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;211.88&quot; y=&quot;25&quot;&gt;02:31&lt;/text&gt;&lt;text x=&quot;250.46&quot; y=&quot;25&quot;&gt;重新載入設定&lt;/text&gt;&lt;text x=&quot;194.88&quot; y=&quot;72&quot;&gt;02:30&lt;/text&gt;&lt;text x=&quot;233.46&quot; y=&quot;72&quot;&gt;換上新版後端，舊路徑停用&lt;/text&gt;&lt;text x=&quot;387.67&quot; y=&quot;25&quot;&gt;02:58&lt;/text&gt;&lt;text x=&quot;426.25&quot; y=&quot;25&quot;&gt;重新啟動 OpenResty&lt;/text&gt;&lt;line x1=&quot;262.5&quot; x2=&quot;262.5&quot; y1=&quot;115&quot; y2=&quot;109&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;581&quot; x2=&quot;581&quot; y1=&quot;133&quot; y2=&quot;140&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;262.5&quot; cy=&quot;124&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(255 116.5) scale(0.625)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;M12 16v-4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 8h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;circle cx=&quot;581&quot; cy=&quot;124&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(573.5 116.5) scale(0.625)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;M12 16v-4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 8h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;258.5&quot; y=&quot;105&quot;&gt;02:35&lt;/text&gt;&lt;text x=&quot;297.08&quot; y=&quot;105&quot;&gt;換上新版後端並重新載入，舊路徑停用&lt;/text&gt;&lt;text x=&quot;424.42&quot; y=&quot;152&quot;&gt;03:01&lt;/text&gt;&lt;text x=&quot;463&quot; y=&quot;152&quot;&gt;重新啟動 OpenResty&lt;/text&gt;&lt;g&gt;&lt;rect x=&quot;202.25&quot; y=&quot;196&quot; width=&quot;181.75&quot; height=&quot;16&quot; rx=&quot;3&quot;&gt;&lt;/rect&gt;&lt;/g&gt;&lt;g transform=&quot;translate(205.25 197.5) scale(0.54167)&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;222.25&quot; y=&quot;208&quot;&gt;探測失敗，約 15 分鐘&lt;/text&gt;&lt;line x1=&quot;434&quot; x2=&quot;434&quot; y1=&quot;195&quot; y2=&quot;189&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;385&quot; x2=&quot;385&quot; y1=&quot;195&quot; y2=&quot;189&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;385&quot; cy=&quot;204&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(377.5 196.5) scale(0.625)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;circle cx=&quot;434&quot; cy=&quot;204&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(426.5 196.5) scale(0.625)&quot;&gt;&lt;path d=&quot;M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;430&quot; y=&quot;185&quot;&gt;02:49&lt;/text&gt;&lt;text x=&quot;468.58&quot; y=&quot;185&quot;&gt;服務狀態頁的設定改成新網址&lt;/text&gt;&lt;text x=&quot;237.92&quot; y=&quot;185&quot;&gt;02:45&lt;/text&gt;&lt;text x=&quot;276.5&quot; y=&quot;185&quot;&gt;改請求新路徑，恢復&lt;/text&gt;&lt;g&gt;&lt;rect x=&quot;214.5&quot; y=&quot;256.25&quot; width=&quot;145&quot; height=&quot;16&quot; rx=&quot;3&quot;&gt;&lt;/rect&gt;&lt;/g&gt;&lt;g transform=&quot;translate(217.5 257.75) scale(0.54167)&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;234.5&quot; y=&quot;268.25&quot;&gt;監控失敗，12 分鐘&lt;/text&gt;&lt;line x1=&quot;360.5&quot; x2=&quot;360.5&quot; y1=&quot;255.25&quot; y2=&quot;249.25&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;360.5&quot; cy=&quot;264.25&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(353 256.75) scale(0.625)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;356.5&quot; y=&quot;245.25&quot;&gt;02:43&lt;/text&gt;&lt;text x=&quot;395.08&quot; y=&quot;245.25&quot;&gt;修正版上線，恢復&lt;/text&gt;&lt;line x1=&quot;140&quot; x2=&quot;630&quot; y1=&quot;284.25&quot; y2=&quot;284.25&quot;&gt;&lt;/line&gt;&lt;text x=&quot;128&quot; y=&quot;300.25&quot; text-anchor=&quot;end&quot;&gt;臺灣時間&lt;/text&gt;&lt;line x1=&quot;140&quot; x2=&quot;140&quot; y1=&quot;284.25&quot; y2=&quot;288.25&quot;&gt;&lt;/line&gt;&lt;text x=&quot;132&quot; y=&quot;300.25&quot;&gt;02:25&lt;/text&gt;&lt;line x1=&quot;201.25&quot; x2=&quot;201.25&quot; y1=&quot;284.25&quot; y2=&quot;288.25&quot;&gt;&lt;/line&gt;&lt;text x=&quot;184.65&quot; y=&quot;300.25&quot;&gt;02:30&lt;/text&gt;&lt;line x1=&quot;262.5&quot; x2=&quot;262.5&quot; y1=&quot;284.25&quot; y2=&quot;288.25&quot;&gt;&lt;/line&gt;&lt;text x=&quot;245.9&quot; y=&quot;300.25&quot;&gt;02:35&lt;/text&gt;&lt;line x1=&quot;323.75&quot; x2=&quot;323.75&quot; y1=&quot;284.25&quot; y2=&quot;288.25&quot;&gt;&lt;/line&gt;&lt;text x=&quot;307.15&quot; y=&quot;300.25&quot;&gt;02:40&lt;/text&gt;&lt;line x1=&quot;385&quot; x2=&quot;385&quot; y1=&quot;284.25&quot; y2=&quot;288.25&quot;&gt;&lt;/line&gt;&lt;text x=&quot;368.4&quot; y=&quot;300.25&quot;&gt;02:45&lt;/text&gt;&lt;line x1=&quot;446.25&quot; x2=&quot;446.25&quot; y1=&quot;284.25&quot; y2=&quot;288.25&quot;&gt;&lt;/line&gt;&lt;text x=&quot;429.65&quot; y=&quot;300.25&quot;&gt;02:50&lt;/text&gt;&lt;line x1=&quot;507.5&quot; x2=&quot;507.5&quot; y1=&quot;284.25&quot; y2=&quot;288.25&quot;&gt;&lt;/line&gt;&lt;text x=&quot;490.9&quot; y=&quot;300.25&quot;&gt;02:55&lt;/text&gt;&lt;line x1=&quot;568.75&quot; x2=&quot;568.75&quot; y1=&quot;284.25&quot; y2=&quot;288.25&quot;&gt;&lt;/line&gt;&lt;text x=&quot;552.15&quot; y=&quot;300.25&quot;&gt;03:00&lt;/text&gt;&lt;line x1=&quot;630&quot; x2=&quot;630&quot; y1=&quot;284.25&quot; y2=&quot;288.25&quot;&gt;&lt;/line&gt;&lt;text x=&quot;606.8&quot; y=&quot;300.25&quot;&gt;03:05&lt;/text&gt;&lt;g transform=&quot;translate(0 319.25) scale(0.58333)&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;18&quot; y=&quot;330.25&quot;&gt;嚴重&lt;/text&gt;&lt;g transform=&quot;translate(61 319.25) scale(0.58333)&quot;&gt;&lt;path d=&quot;M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;79&quot; y=&quot;330.25&quot;&gt;修正&lt;/text&gt;&lt;g transform=&quot;translate(122 319.25) scale(0.58333)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;M12 16v-4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 8h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;140&quot; y=&quot;330.25&quot;&gt;資訊&lt;/text&gt;&lt;g transform=&quot;translate(183 319.25) scale(0.58333)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;201&quot; y=&quot;330.25&quot;&gt;已恢復&lt;/text&gt;&lt;/svg&gt;&lt;/div&gt;&lt;p aria-hidden=&quot;true&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;點圖可放大&lt;/p&gt;&lt;p id=&quot;xt-diagram-desc-w224er&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;四條泳道，時間從 02:25 到 03:05。lb-khh1 在 02:30 換上新版後端、舊路徑停用，02:31 重新載入設定，02:58 重新啟動 OpenResty。lb-tpe1 在 02:35 換上新版後端並重新載入設定、舊路徑停用，03:01 重新啟動 OpenResty。服務狀態頁對地震報告串流的探測從約 02:30 開始失敗，02:45 改請求新路徑後恢復，02:49 服務狀態頁的設定改成新網址。內部的速報串流監控從 02:31 開始失敗，02:43 修正版上線後恢復。兩組監控都是在 LB 換上新後端的同時開始失敗。&lt;/p&gt;&lt;figcaption data-astro-cid-fia5stjh=&quot;&quot;&gt;11/17 凌晨的切換經過&lt;/figcaption&gt;&lt;/figure&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;時間&lt;/th&gt;
&lt;th&gt;事件&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;02:30&lt;/td&gt;
&lt;td&gt;lb-khh1 換上新版後端，&lt;code dir=&quot;auto&quot;&gt;/api/v1/trem/sse/report&lt;/code&gt; 在這台停用&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;約 02:30&lt;/td&gt;
&lt;td&gt;&lt;svg data-status=&quot;error&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m15 9-6 6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m9 9 6 6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;服務狀態頁對地震報告串流的探測開始失敗&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;02:31&lt;/td&gt;
&lt;td&gt;lb-khh1 的 OpenResty 重新載入設定&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;02:31&lt;/td&gt;
&lt;td&gt;&lt;svg data-status=&quot;error&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m15 9-6 6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m9 9 6 6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;內部的速報串流監控開始失敗&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;02:35&lt;/td&gt;
&lt;td&gt;lb-tpe1 換上新版後端並重新載入設定，&lt;code dir=&quot;auto&quot;&gt;/api/v1/trem/sse/report&lt;/code&gt; 在這台停用&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;02:43&lt;/td&gt;
&lt;td&gt;修正版上線，改成回報實際的上游連線狀態&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;02:43&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;內部監控恢復&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;02:45&lt;/td&gt;
&lt;td&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;地震報告串流的探測改成請求 &lt;code dir=&quot;auto&quot;&gt;/api/v1/cwa/sse/report&lt;/code&gt;，恢復正常&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;02:49&lt;/td&gt;
&lt;td&gt;服務狀態頁自己的設定改成新網址&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;02:58&lt;/td&gt;
&lt;td&gt;lb-khh1 重新啟動 OpenResty，換上 unix socket 與新映像檔&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;03:01&lt;/td&gt;
&lt;td&gt;lb-tpe1 重新啟動 OpenResty，換上 unix socket 與新映像檔&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;重新載入設定時沒有出現任何 5xx，舊的 worker 都在 30 秒的期限內結束。OpenResty 本身重新啟動的那兩次不一樣，每次啟動期間約有 10 秒回 502 或 503。另外，後端每重新啟動一次，所有連線都會被切斷一次，要由用戶端自己重連。&lt;/p&gt;
&lt;p&gt;新的程式只訂閱警報，沒有發布警報的權限。每次重新啟動前，我們都先從日誌確認當下沒有生效中的警報。驗證只看日誌與監控指標，沒有送出任何測試警報，也沒有對正式的速報串流開測試連線。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;切換時弄壞的監控&quot;&gt;切換時弄壞的監控&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;切換時，我們弄壞了自己的兩組監控。&lt;/p&gt;
&lt;p&gt;第一組是&lt;a href=&quot;https://exptech.dev/status/&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;服務狀態&lt;/a&gt;頁對地震報告串流的探測。&lt;code dir=&quot;auto&quot;&gt;/api/v1/trem/sse/report&lt;/code&gt; 隨著兩台 LB 換上新後端，在 02:30 到 02:35 之間停用，探測卻還在請求這個路徑，從 02:30 左右開始失敗；02:45 我們把探測改成 &lt;code dir=&quot;auto&quot;&gt;/api/v1/cwa/sse/report&lt;/code&gt; 之後才恢復。這段期間服務狀態頁送出了中斷與恢復通知。服務狀態頁自己的設定 02:49 才更新，所以這些通知上顯示的仍是舊網址。收到這些通知的人，我們在這裡道歉。&lt;/p&gt;
&lt;p&gt;第二組是內部的速報串流監控。舊的速報串流會在回應裡標示伺服器跟上游的連線是否正常，我們的內部監控看的就是這一項。新的伺服器在收到第一則警報之前，這一項都回報「尚未啟動」，那天夜裡沒有警報，它就一直停在這個狀態。內部監控從 02:31 開始失敗，02:43 修正版改成回報實際的上游連線狀態後恢復。&lt;/p&gt;
&lt;p&gt;兩件事的原因一樣。探測和監控也是用戶端，我們卻把它們留到伺服器換好之後才改。它們依賴的路徑和那一項狀態，應該在換伺服器的同一步一起改。結果地震報告串流的探測錯了約 15 分鐘，內部監控錯了 12 分鐘。&lt;/p&gt;
&lt;p&gt;服務狀態頁之後新增了「強震即時警報串流」一列，涵蓋 TPE-1、KHH-1 與 Auto，探測的網址不顯示。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;搬完之後&quot;&gt;搬完之後&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;下面比較 lb-tpe1 兩個早上的資料，都是 04:00 到 09:20：11/16 是 Lua 時期，11/17 是 Go 時期，兩天都是平日。連線長度取自存取紀錄，App 以 User-Agent 區分。&lt;/p&gt;
&lt;figure lang=&quot;zh-TW&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;div data-xt-zoomable=&quot;&quot; aria-label=&quot;Lua 與 Go 時期的平均連線長度&quot; aria-describedby=&quot;xt-diagram-desc-mveg1f&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;svg viewBox=&quot;0 0 600 346&quot; role=&quot;img&quot; aria-label=&quot;Lua 與 Go 時期的平均連線長度&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;line x1=&quot;248.5&quot; y1=&quot;34&quot; x2=&quot;248.5&quot; y2=&quot;140&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;463.48&quot; y1=&quot;34&quot; x2=&quot;463.48&quot; y2=&quot;140&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;0&quot; y1=&quot;160&quot; x2=&quot;600&quot; y2=&quot;160&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;248.5&quot; y1=&quot;194&quot; x2=&quot;248.5&quot; y2=&quot;300&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;463.48&quot; y1=&quot;194&quot; x2=&quot;463.48&quot; y2=&quot;300&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;0&quot; y1=&quot;320&quot; x2=&quot;600&quot; y2=&quot;320&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/line&gt;&lt;g data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;title&gt;TREM-Lite RTS（對照）：Lua（11/16） 36 分鐘，Go（11/17） 32 分鐘&lt;/title&gt;&lt;line x1=&quot;248.5&quot; y1=&quot;38&quot; x2=&quot;463.48&quot; y2=&quot;48.89&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;248.5&quot; cy=&quot;38&quot; r=&quot;5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/circle&gt;&lt;circle cx=&quot;463.48&quot; cy=&quot;48.89&quot; r=&quot;5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/circle&gt;&lt;text x=&quot;238.5&quot; y=&quot;42.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;end&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;tspan data-astro-cid-7zrcxzkx=&quot;&quot;&gt;RTS（對照） &lt;/tspan&gt;36 分鐘&lt;/text&gt;&lt;text x=&quot;473.48&quot; y=&quot;53.39&quot; font-size=&quot;12.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;32 分鐘&lt;tspan data-astro-cid-7zrcxzkx=&quot;&quot;&gt; RTS（對照）&lt;/tspan&gt;&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;title&gt;DPIP RTS（對照）：Lua（11/16） 169 秒，Go（11/17） 176 秒&lt;/title&gt;&lt;line x1=&quot;248.5&quot; y1=&quot;202.43&quot; x2=&quot;463.48&quot; y2=&quot;198.55&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;248.5&quot; cy=&quot;202.43&quot; r=&quot;5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/circle&gt;&lt;circle cx=&quot;463.48&quot; cy=&quot;198.55&quot; r=&quot;5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/circle&gt;&lt;text x=&quot;238.5&quot; y=&quot;219.71&quot; font-size=&quot;12.5&quot; text-anchor=&quot;end&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;tspan data-astro-cid-7zrcxzkx=&quot;&quot;&gt;RTS（對照） &lt;/tspan&gt;169 秒&lt;/text&gt;&lt;text x=&quot;473.48&quot; y=&quot;217.5&quot; font-size=&quot;12.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;176 秒&lt;tspan data-astro-cid-7zrcxzkx=&quot;&quot;&gt; RTS（對照）&lt;/tspan&gt;&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;title&gt;TREM-Lite 速報串流：Lua（11/16） 23 分鐘，Go（11/17） 32 分鐘&lt;/title&gt;&lt;line x1=&quot;248.5&quot; y1=&quot;73.39&quot; x2=&quot;463.48&quot; y2=&quot;48.89&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;248.5&quot; cy=&quot;73.39&quot; r=&quot;5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/circle&gt;&lt;circle cx=&quot;463.48&quot; cy=&quot;48.89&quot; r=&quot;5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/circle&gt;&lt;text x=&quot;238.5&quot; y=&quot;77.89&quot; font-size=&quot;12.5&quot; text-anchor=&quot;end&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;tspan data-astro-cid-7zrcxzkx=&quot;&quot;&gt;速報串流 &lt;/tspan&gt;23 分鐘&lt;/text&gt;&lt;text x=&quot;473.48&quot; y=&quot;68.39&quot; font-size=&quot;12.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;32 分鐘&lt;tspan data-astro-cid-7zrcxzkx=&quot;&quot;&gt; 速報串流&lt;/tspan&gt;&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;title&gt;DPIP 速報串流：Lua（11/16） 173 秒，Go（11/17） 177 秒&lt;/title&gt;&lt;line x1=&quot;248.5&quot; y1=&quot;200.21&quot; x2=&quot;463.48&quot; y2=&quot;198&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;248.5&quot; cy=&quot;200.21&quot; r=&quot;5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/circle&gt;&lt;circle cx=&quot;463.48&quot; cy=&quot;198&quot; r=&quot;5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/circle&gt;&lt;text x=&quot;238.5&quot; y=&quot;204.71&quot; font-size=&quot;12.5&quot; text-anchor=&quot;end&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;tspan data-astro-cid-7zrcxzkx=&quot;&quot;&gt;速報串流 &lt;/tspan&gt;173 秒&lt;/text&gt;&lt;text x=&quot;473.48&quot; y=&quot;202.5&quot; font-size=&quot;12.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;177 秒&lt;tspan data-astro-cid-7zrcxzkx=&quot;&quot;&gt; 速報串流&lt;/tspan&gt;&lt;/text&gt;&lt;/g&gt;&lt;text x=&quot;0&quot; y=&quot;25&quot; font-size=&quot;13.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;TREM-Lite&lt;/text&gt;&lt;text x=&quot;248.5&quot; y=&quot;24&quot; font-size=&quot;12&quot; text-anchor=&quot;middle&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;Lua（11/16）&lt;/text&gt;&lt;text x=&quot;463.48&quot; y=&quot;24&quot; font-size=&quot;12&quot; text-anchor=&quot;middle&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;Go（11/17）&lt;/text&gt;&lt;text x=&quot;238.5&quot; y=&quot;140.5&quot; font-size=&quot;11.5&quot; text-anchor=&quot;end&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;0&lt;/text&gt;&lt;text x=&quot;0&quot; y=&quot;185&quot; font-size=&quot;13.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;DPIP&lt;/text&gt;&lt;text x=&quot;248.5&quot; y=&quot;184&quot; font-size=&quot;12&quot; text-anchor=&quot;middle&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;Lua（11/16）&lt;/text&gt;&lt;text x=&quot;463.48&quot; y=&quot;184&quot; font-size=&quot;12&quot; text-anchor=&quot;middle&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;Go（11/17）&lt;/text&gt;&lt;text x=&quot;238.5&quot; y=&quot;300.5&quot; font-size=&quot;11.5&quot; text-anchor=&quot;end&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;0&lt;/text&gt;&lt;text x=&quot;0&quot; y=&quot;338&quot; font-size=&quot;11.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;每一項有各自的比例尺&lt;/text&gt;&lt;/svg&gt;&lt;/div&gt;&lt;p aria-hidden=&quot;true&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;點圖可放大&lt;/p&gt;&lt;p id=&quot;xt-diagram-desc-mveg1f&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;lb-tpe1 在 11/16（Lua）與 11/17（Go）04:00 到 09:20 的平均連線長度。兩格各自的比例尺，都從 0 開始。TREM-Lite：速報串流從 23 分鐘拉長到 32 分鐘，對照的 RTS 從 36 分鐘變成 32 分鐘，兩條線在 32 分鐘交會，差距不見了。DPIP：速報串流 173 秒到 177 秒，RTS 169 秒到 176 秒，兩個時期差不多。&lt;/p&gt;&lt;figcaption data-astro-cid-fia5stjh=&quot;&quot;&gt;Lua 與 Go 時期的平均連線長度&lt;/figcaption&gt;&lt;/figure&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;項目&lt;/th&gt;
&lt;th&gt;Lua（11/16）&lt;/th&gt;
&lt;th&gt;Go（11/17）&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;TREM-Lite 速報串流的平均連線長度&lt;/td&gt;
&lt;td&gt;23 分鐘&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;32 分鐘&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TREM-Lite RTS 的平均連線長度（對照）&lt;/td&gt;
&lt;td&gt;36 分鐘&lt;/td&gt;
&lt;td&gt;32 分鐘&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DPIP 速報串流的平均連線長度&lt;/td&gt;
&lt;td&gt;173 秒&lt;/td&gt;
&lt;td&gt;177 秒&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DPIP RTS 的平均連線長度（對照）&lt;/td&gt;
&lt;td&gt;169 秒&lt;/td&gt;
&lt;td&gt;176 秒&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TREM-Lite 速報串流剛好在第 120 秒結束的連線&lt;/td&gt;
&lt;td&gt;255 條&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;0 條&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;輪詢 GET，每秒請求數&lt;/td&gt;
&lt;td&gt;79.7&lt;/td&gt;
&lt;td&gt;83.7&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;輪詢 GET，回 304 的比例&lt;/td&gt;
&lt;td&gt;76.4%&lt;/td&gt;
&lt;td&gt;77.2%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;輪詢 GET 的回應時間&lt;/td&gt;
&lt;td&gt;低於 1 ms&lt;/td&gt;
&lt;td&gt;中位數 1 ms，p99 3 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;速報串流與輪詢 GET 的 5xx&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;TREM-Lite 的速報串流連線平均從 23 分鐘拉長到 32 分鐘。同一段時間，RTS 從 36 分鐘變成 32 分鐘，兩條串流的差距不見了。DPIP 在兩個時期都差不多。&lt;/p&gt;
&lt;p&gt;剛好在第 120 秒結束的連線不見了。Go 版的心跳由一個計時器統一送出，不會漏送。&lt;/p&gt;
&lt;p&gt;輪詢 GET 現在多走一段：OpenResty 把請求轉給 sse-server-go。Lua 版在 OpenResty 裡直接回應，紀錄上的時間都低於 1 ms；現在中位數 1 ms，p99 3 ms。&lt;/p&gt;
&lt;p&gt;LB 主機整體的數字也降了，但不能全算在搬遷上。前面提到的舊 worker 是 11/16 晚上清掉的，剛好落在兩個時段之間，下表是兩件事加起來的結果，分不出各自佔多少。兩個時段的負載差不多：同時 SSE 連線數平均 6,627 與 6,584 條，總請求數 357 萬與 374 萬。&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;lb-tpe1 主機&lt;/th&gt;
&lt;th&gt;Lua（11/16）&lt;/th&gt;
&lt;th&gt;Go（11/17）&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;CPU 使用率，平均&lt;/td&gt;
&lt;td&gt;21.6%&lt;/td&gt;
&lt;td&gt;16.5%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;conntrack 項目，平均／尖峰&lt;/td&gt;
&lt;td&gt;13,328／37,670&lt;/td&gt;
&lt;td&gt;11,152／24,430&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;記憶體用量，平均&lt;/td&gt;
&lt;td&gt;5.4 GB&lt;/td&gt;
&lt;td&gt;3.9 GB&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;這只是一個早上、一台 LB 的資料。TREM-Lite 的樣本不大，每條串流在每個時段只有約 1,000 到 2,800 條連線。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;心跳改成-30-秒&quot;&gt;心跳改成 30 秒&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;Go 時期還有一種中斷。11/17 04:00 到 09:20，有 144 條 TREM-Lite 連線在約 116.5 秒時斷掉，速報串流 97 條、休眠模式的 RTS 47 條。它們全部來自 6 個 IP，中斷都發生在伺服器送心跳的那一秒；每秒都有資料的 live 模式 RTS，一條都沒有斷。Lua 時期的 RTS 也有同樣的中斷。&lt;/p&gt;
&lt;p&gt;這幾個用戶端的網路，看起來會切掉閒置約 60 秒的連線，正好跟 60 秒一次的心跳賽跑。連線在心跳那一刻被切，用戶端約 3.5 秒後重連，下一次心跳 56.5 秒後就到，還來得及；再下一次隔滿 60 秒，就來不及了。&lt;/p&gt;
&lt;figure lang=&quot;zh-TW&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;div data-xt-zoomable=&quot;&quot; aria-label=&quot;60 秒與 30 秒的心跳，對上約 60 秒的閒置上限&quot; aria-describedby=&quot;xt-diagram-desc-j7n8jh&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;svg viewBox=&quot;0 0 640 227&quot; role=&quot;img&quot; aria-label=&quot;60 秒與 30 秒的心跳，對上約 60 秒的閒置上限&quot;&gt;&lt;rect x=&quot;0&quot; y=&quot;110&quot; width=&quot;640&quot; height=&quot;60.25&quot;&gt;&lt;/rect&gt;&lt;line x1=&quot;94&quot; x2=&quot;94&quot; y1=&quot;30&quot; y2=&quot;170.25&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;217.69&quot; x2=&quot;217.69&quot; y1=&quot;30&quot; y2=&quot;170.25&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;341.38&quot; x2=&quot;341.38&quot; y1=&quot;30&quot; y2=&quot;170.25&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;465.08&quot; x2=&quot;465.08&quot; y1=&quot;30&quot; y2=&quot;170.25&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;588.77&quot; x2=&quot;588.77&quot; y1=&quot;30&quot; y2=&quot;170.25&quot;&gt;&lt;/line&gt;&lt;g&gt;&lt;rect x=&quot;341.38&quot; y=&quot;21&quot; width=&quot;247.38&quot; height=&quot;149.25&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M341.38 25V21H588.77V25&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g&gt;&lt;text x=&quot;0&quot; y=&quot;81.75&quot;&gt;10:13 之前&lt;/text&gt;&lt;/g&gt;&lt;line x1=&quot;94&quot; x2=&quot;630&quot; y1=&quot;70&quot; y2=&quot;70&quot;&gt;&lt;/line&gt;&lt;g&gt;&lt;text x=&quot;0&quot; y=&quot;161.75&quot;&gt;10:13 之後&lt;/text&gt;&lt;/g&gt;&lt;line x1=&quot;94&quot; x2=&quot;630&quot; y1=&quot;150&quot; y2=&quot;150&quot;&gt;&lt;/line&gt;&lt;g&gt;&lt;rect x=&quot;109.43&quot; y=&quot;62&quot; width=&quot;230.95&quot; height=&quot;16&quot; rx=&quot;3&quot;&gt;&lt;/rect&gt;&lt;/g&gt;&lt;g&gt;&lt;rect x=&quot;342.38&quot; y=&quot;62&quot; width=&quot;245.38&quot; height=&quot;16&quot; rx=&quot;3&quot;&gt;&lt;/rect&gt;&lt;/g&gt;&lt;rect x=&quot;92.5&quot; y=&quot;60&quot; width=&quot;3&quot; height=&quot;20&quot; rx=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;339.88&quot; y=&quot;60&quot; width=&quot;3&quot; height=&quot;20&quot; rx=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;587.27&quot; y=&quot;60&quot; width=&quot;3&quot; height=&quot;20&quot; rx=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;g transform=&quot;translate(120.43 63.5) scale(0.54167)&quot;&gt;&lt;path d=&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 9v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;137.43&quot; y=&quot;74&quot;&gt;閒置 56.5 秒&lt;/text&gt;&lt;g transform=&quot;translate(348.38 63.5) scale(0.54167)&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;365.38&quot; y=&quot;74&quot;&gt;閒置 60 秒&lt;/text&gt;&lt;line x1=&quot;341.38&quot; x2=&quot;341.38&quot; y1=&quot;60&quot; y2=&quot;55&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;108.43&quot; x2=&quot;108.43&quot; y1=&quot;61&quot; y2=&quot;55&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;94&quot; x2=&quot;94&quot; y1=&quot;80&quot; y2=&quot;86&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;588.77&quot; x2=&quot;588.77&quot; y1=&quot;60&quot; y2=&quot;55&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;108.43&quot; cy=&quot;70&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(100.93 62.5) scale(0.625)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;M12 16v-4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 8h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform=&quot;translate(337.38 40.5) scale(0.54167)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;354.38&quot; y=&quot;51&quot;&gt;還來得及&lt;/text&gt;&lt;text x=&quot;104.43&quot; y=&quot;51&quot;&gt;約 3.5 秒後重連&lt;/text&gt;&lt;g transform=&quot;translate(90 87.5) scale(0.54167)&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;107&quot; y=&quot;98&quot;&gt;心跳那一刻連線被切&lt;/text&gt;&lt;g transform=&quot;translate(475.77 40.5) scale(0.54167)&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;492.77&quot; y=&quot;51&quot;&gt;來不及，連線被切&lt;/text&gt;&lt;g&gt;&lt;rect x=&quot;109.43&quot; y=&quot;142&quot; width=&quot;107.26&quot; height=&quot;16&quot; rx=&quot;3&quot;&gt;&lt;/rect&gt;&lt;/g&gt;&lt;g&gt;&lt;rect x=&quot;218.69&quot; y=&quot;142&quot; width=&quot;121.69&quot; height=&quot;16&quot; rx=&quot;3&quot;&gt;&lt;/rect&gt;&lt;/g&gt;&lt;g&gt;&lt;rect x=&quot;342.38&quot; y=&quot;142&quot; width=&quot;121.69&quot; height=&quot;16&quot; rx=&quot;3&quot;&gt;&lt;/rect&gt;&lt;/g&gt;&lt;g&gt;&lt;rect x=&quot;466.08&quot; y=&quot;142&quot; width=&quot;121.69&quot; height=&quot;16&quot; rx=&quot;3&quot;&gt;&lt;/rect&gt;&lt;/g&gt;&lt;rect x=&quot;216.19&quot; y=&quot;140&quot; width=&quot;3&quot; height=&quot;20&quot; rx=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;339.88&quot; y=&quot;140&quot; width=&quot;3&quot; height=&quot;20&quot; rx=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;463.58&quot; y=&quot;140&quot; width=&quot;3&quot; height=&quot;20&quot; rx=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;587.27&quot; y=&quot;140&quot; width=&quot;3&quot; height=&quot;20&quot; rx=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;g transform=&quot;translate(120.43 143.5) scale(0.54167)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;137.43&quot; y=&quot;154&quot;&gt;26.5 秒&lt;/text&gt;&lt;g transform=&quot;translate(224.69 143.5) scale(0.54167)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;241.69&quot; y=&quot;154&quot;&gt;30 秒&lt;/text&gt;&lt;g transform=&quot;translate(348.38 143.5) scale(0.54167)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;365.38&quot; y=&quot;154&quot;&gt;30 秒&lt;/text&gt;&lt;g transform=&quot;translate(472.08 143.5) scale(0.54167)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;489.08&quot; y=&quot;154&quot;&gt;30 秒&lt;/text&gt;&lt;line x1=&quot;108.43&quot; x2=&quot;108.43&quot; y1=&quot;141&quot; y2=&quot;135&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;108.43&quot; cy=&quot;150&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(100.93 142.5) scale(0.625)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;M12 16v-4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 8h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;104.43&quot; y=&quot;131&quot;&gt;連上&lt;/text&gt;&lt;text x=&quot;417.66&quot; y=&quot;17&quot;&gt;閒置上限約 60 秒&lt;/text&gt;&lt;line x1=&quot;94&quot; x2=&quot;630&quot; y1=&quot;170.25&quot; y2=&quot;170.25&quot;&gt;&lt;/line&gt;&lt;text x=&quot;82&quot; y=&quot;186.25&quot; text-anchor=&quot;end&quot;&gt;秒&lt;/text&gt;&lt;line x1=&quot;94&quot; x2=&quot;94&quot; y1=&quot;170.25&quot; y2=&quot;174.25&quot;&gt;&lt;/line&gt;&lt;text x=&quot;90.29&quot; y=&quot;186.25&quot;&gt;0&lt;/text&gt;&lt;line x1=&quot;217.69&quot; x2=&quot;217.69&quot; y1=&quot;170.25&quot; y2=&quot;174.25&quot;&gt;&lt;/line&gt;&lt;text x=&quot;210.28&quot; y=&quot;186.25&quot;&gt;30&lt;/text&gt;&lt;line x1=&quot;341.38&quot; x2=&quot;341.38&quot; y1=&quot;170.25&quot; y2=&quot;174.25&quot;&gt;&lt;/line&gt;&lt;text x=&quot;333.97&quot; y=&quot;186.25&quot;&gt;60&lt;/text&gt;&lt;line x1=&quot;465.08&quot; x2=&quot;465.08&quot; y1=&quot;170.25&quot; y2=&quot;174.25&quot;&gt;&lt;/line&gt;&lt;text x=&quot;457.66&quot; y=&quot;186.25&quot;&gt;90&lt;/text&gt;&lt;line x1=&quot;588.77&quot; x2=&quot;588.77&quot; y1=&quot;170.25&quot; y2=&quot;174.25&quot;&gt;&lt;/line&gt;&lt;text x=&quot;577.65&quot; y=&quot;186.25&quot;&gt;120&lt;/text&gt;&lt;g transform=&quot;translate(0 205.25) scale(0.58333)&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;18&quot; y=&quot;216.25&quot;&gt;連線被切&lt;/text&gt;&lt;g transform=&quot;translate(86 205.25) scale(0.58333)&quot;&gt;&lt;path d=&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 9v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;104&quot; y=&quot;216.25&quot;&gt;接近上限&lt;/text&gt;&lt;g transform=&quot;translate(172 205.25) scale(0.58333)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;M12 16v-4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 8h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;190&quot; y=&quot;216.25&quot;&gt;重連&lt;/text&gt;&lt;g transform=&quot;translate(233 205.25) scale(0.58333)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;251&quot; y=&quot;216.25&quot;&gt;來得及&lt;/text&gt;&lt;rect x=&quot;312&quot; y=&quot;205.25&quot; width=&quot;3&quot; height=&quot;14&quot; rx=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;324.5&quot; y=&quot;216.25&quot;&gt;心跳&lt;/text&gt;&lt;/svg&gt;&lt;/div&gt;&lt;p aria-hidden=&quot;true&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;點圖可放大&lt;/p&gt;&lt;p id=&quot;xt-diagram-desc-j7n8jh&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;兩條泳道比較 60 秒與 30 秒一次的心跳，時間以秒計，第 60 到 120 秒標出約 60 秒的閒置上限。60 秒一次：第 0 秒送心跳時連線被切，約 3.5 秒後重連；閒置 56.5 秒後第 60 秒的心跳送到，還來得及；下一次隔滿 60 秒，第 120 秒才送，來不及，連線又被切，這條連線約 116.5 秒。30 秒一次：同樣在第 3.5 秒連上，之後每 30 秒一次心跳，閒置最長 30 秒，遠低於 60 秒的上限。&lt;/p&gt;&lt;figcaption data-astro-cid-fia5stjh=&quot;&quot;&gt;60 秒與 30 秒的心跳，對上約 60 秒的閒置上限&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;11/17 10:13，我們把心跳改成 30 秒一次。每條連線每分鐘多一次心跳，約 20 位元組；lb-tpe1 約 7,000 條連線，合計每秒多約 2 KB，不到 SSE 總流量的 1%。用戶端判斷斷線的建議不變：90 秒沒收到任何位元組就重連，見&lt;a href=&quot;https://exptech.dev/docs/api/stream/#%E5%BF%83%E8%B7%B3&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;心跳&lt;/a&gt;。&lt;/p&gt;
&lt;p&gt;改完之後到 12:45，TREM-Lite 沒有任何一條連線在約 116.5 秒中斷，前一天同一時段有 28 條。這段時間不少 TREM-Lite 用戶換到了新版，連線數跟前一天不能直接比，所以我們另外追了 11/17 04:00 到 10:13 被切過 3 次以上的 7 個 IP。其中 3 個在改完之後留下 10 條連線，沒有一條中斷；一個還在用舊版的，有一條連線撐了 61 分鐘，它在改之前的 88 條連線裡有 19 條被切。另外 4 個 IP 在這段時間沒有留下已結束的連線紀錄。&lt;/p&gt;
&lt;p&gt;改設定要重新啟動 sse-server-go，這次是在白天。10:13 那一分鐘，lb-tpe1 回了 4,222 次 502，SSE 連線數從約 9,200 條掉到約 6,200 條，到 12:30 才回到約 8,500 條。被切斷的 DPIP 連線只有約一成在停機那幾秒裡重試，一分鐘內就連回來；其餘的在之後幾分鐘到幾小時內才陸續出現。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;用戶端&quot;&gt;用戶端&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;App 也在改。11/17 09:33 發布的 TREM-Lite 26w47a 預覽版改成只開一條連線，取代原本的兩條；地震報告改成啟動時抓一次列表，之後跟著地震報告串流更新。DPIP 的同樣修改還在測試。「搬完之後」04:00 到 09:20 的資料都在這個版本發布之前，量到的是舊版 App。&lt;/p&gt;
&lt;p&gt;如果你的程式還在連 &lt;code dir=&quot;auto&quot;&gt;/api/v1/trem/sse/report&lt;/code&gt;，這個路徑 11/17 已經停用，請改連 &lt;code dir=&quot;auto&quot;&gt;/api/v1/cwa/sse/report&lt;/code&gt;，或用 &lt;code dir=&quot;auto&quot;&gt;/api/v1/sse&lt;/code&gt; 在一條連線上收多個 topic。三個多工入口的差別見 &lt;a href=&quot;https://exptech.dev/docs/api/stream/#%E9%80%A3%E7%B7%9A&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;SSE 連線&lt;/a&gt;。&lt;/p&gt;</content:encoded><category>Sharing</category></item><item><title>SE-net 觀測網退役</title><link>https://exptech.dev/blog/sharing-2026-11-16/</link><guid isPermaLink="true">https://exptech.dev/blog/sharing-2026-11-16/</guid><description>SE-net 從 2022 年 5 月 31 日運作到 2026 年 10 月 24 日，共 1,607 天，是 TREM-net 第一個、也是用最久的主力子網。說明它為什麼退役，以及接手的 ES-net 和用 Go 重寫的 TREM EEW 核心。</description><pubDate>Mon, 16 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;SE-net 從 2022 年 5 月 31 日開始運作，2026 年 10 月 24 日退役，歷經 4 年 4 個月 24 天（共 1,607 天）。這段期間它一直是 TREM-net 的主力，陪我們撐過 2022 年的 918 池上地震與 2024 年的 0403 花蓮地震，也是 TREM EEW 最主要的資料來源。&lt;/p&gt;

&lt;aside aria-label=&quot;TREM EEW&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;TREM EEW&lt;/p&gt;&lt;div&gt;&lt;p&gt;TREM EEW 是 TREM 系統用 TREM-net 觀測資料自行解算的地震預警，不是官方資訊。依《氣象法》，只提供給經 ExpTech 個別同意或簽約的特定用戶，不對不特定大眾發布，一切以中央氣象署發布為準。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;figure lang=&quot;zh-TW&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;div data-xt-zoomable=&quot;&quot; aria-label=&quot;SE-net 運作的 1,607 天&quot; aria-describedby=&quot;xt-diagram-desc-13x8ujk&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;svg viewBox=&quot;0 0 640 131&quot; role=&quot;img&quot; aria-label=&quot;SE-net 運作的 1,607 天&quot;&gt;&lt;rect x=&quot;0&quot; y=&quot;64.25&quot; width=&quot;640&quot; height=&quot;40.5&quot;&gt;&lt;/rect&gt;&lt;line x1=&quot;208.7&quot; x2=&quot;208.7&quot; y1=&quot;4&quot; y2=&quot;104.75&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;314.02&quot; x2=&quot;314.02&quot; y1=&quot;4&quot; y2=&quot;104.75&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;419.64&quot; x2=&quot;419.64&quot; y1=&quot;4&quot; y2=&quot;104.75&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;524.96&quot; x2=&quot;524.96&quot; y1=&quot;4&quot; y2=&quot;104.75&quot;&gt;&lt;/line&gt;&lt;g&gt;&lt;text x=&quot;0&quot; y=&quot;55.75&quot;&gt;強震觀測網&lt;/text&gt;&lt;/g&gt;&lt;line x1=&quot;138&quot; x2=&quot;630&quot; y1=&quot;44&quot; y2=&quot;44&quot;&gt;&lt;/line&gt;&lt;g&gt;&lt;text x=&quot;0&quot; y=&quot;96.25&quot;&gt;增強靈敏度地震觀測網&lt;/text&gt;&lt;/g&gt;&lt;line x1=&quot;138&quot; x2=&quot;630&quot; y1=&quot;84.5&quot; y2=&quot;84.5&quot;&gt;&lt;/line&gt;&lt;g&gt;&lt;rect x=&quot;147.66&quot; y=&quot;36&quot; width=&quot;461.72&quot; height=&quot;16&quot; rx=&quot;3&quot;&gt;&lt;/rect&gt;&lt;/g&gt;&lt;g transform=&quot;translate(352.86 37.5) scale(0.54167)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;M12 16v-4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 8h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;369.86&quot; y=&quot;48&quot;&gt;2022/05/31–2026/10/24&lt;/text&gt;&lt;line x1=&quot;340.86&quot; x2=&quot;340.86&quot; y1=&quot;35&quot; y2=&quot;29&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;178.4&quot; x2=&quot;178.4&quot; y1=&quot;35&quot; y2=&quot;29&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;178.4&quot; cy=&quot;44&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(170.9 36.5) scale(0.625)&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;circle cx=&quot;340.86&quot; cy=&quot;44&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(333.36 36.5) scale(0.625)&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;336.86&quot; y=&quot;25&quot;&gt;0403 花蓮地震&lt;/text&gt;&lt;text x=&quot;174.4&quot; y=&quot;25&quot;&gt;918 池上地震&lt;/text&gt;&lt;g&gt;&lt;rect x=&quot;508.65&quot; y=&quot;76.5&quot; width=&quot;120.35&quot; height=&quot;16&quot; rx=&quot;3&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M633 79.5l4 5l-4 5&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform=&quot;translate(382.73 78) scale(0.54167)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;M12 16v-4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 8h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;399.73&quot; y=&quot;88.5&quot;&gt;2025 年 11 月上線&lt;/text&gt;&lt;line x1=&quot;138&quot; x2=&quot;630&quot; y1=&quot;104.75&quot; y2=&quot;104.75&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;208.7&quot; x2=&quot;208.7&quot; y1=&quot;104.75&quot; y2=&quot;108.75&quot;&gt;&lt;/line&gt;&lt;text x=&quot;193.87&quot; y=&quot;120.75&quot;&gt;2023&lt;/text&gt;&lt;line x1=&quot;314.02&quot; x2=&quot;314.02&quot; y1=&quot;104.75&quot; y2=&quot;108.75&quot;&gt;&lt;/line&gt;&lt;text x=&quot;299.19&quot; y=&quot;120.75&quot;&gt;2024&lt;/text&gt;&lt;line x1=&quot;419.64&quot; x2=&quot;419.64&quot; y1=&quot;104.75&quot; y2=&quot;108.75&quot;&gt;&lt;/line&gt;&lt;text x=&quot;404.81&quot; y=&quot;120.75&quot;&gt;2025&lt;/text&gt;&lt;line x1=&quot;524.96&quot; x2=&quot;524.96&quot; y1=&quot;104.75&quot; y2=&quot;108.75&quot;&gt;&lt;/line&gt;&lt;text x=&quot;510.13&quot; y=&quot;120.75&quot;&gt;2026&lt;/text&gt;&lt;/svg&gt;&lt;/div&gt;&lt;p aria-hidden=&quot;true&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;點圖可放大&lt;/p&gt;&lt;p id=&quot;xt-diagram-desc-13x8ujk&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;SE-net 從 2022/05/31 運作到 2026/10/24 退役，共 1,607 天，期間撐過 2022 年的 918 池上地震與 2024 年的 0403 花蓮地震。接手的 ES-net 在 2025 年 11 月上線，到 SE-net 退役前兩者同時運作；ES-net 仍在運作，長條畫到圖的右緣、以箭頭結尾。&lt;/p&gt;&lt;figcaption data-astro-cid-fia5stjh=&quot;&quot;&gt;SE-net 運作的 1,607 天&lt;/figcaption&gt;&lt;/figure&gt;
&lt;div&gt;&lt;h2 id=&quot;為什麼退役&quot;&gt;為什麼退役&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;資料量變大之後，原本用 &lt;span&gt;&lt;svg viewBox=&quot;0 0 24 24&quot; width=&quot;1em&quot; height=&quot;1em&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M1.125 0C.502 0 0 .502 0 1.125v21.75C0 23.498.502 24 1.125 24h21.75c.623 0 1.125-.502 1.125-1.125V1.125C24 .502 23.498 0 22.875 0zm17.363 9.75c.612 0 1.154.037 1.627.111a6.38 6.38 0 0 1 1.306.34v2.458a3.95 3.95 0 0 0-.643-.361 5.093 5.093 0 0 0-.717-.26 5.453 5.453 0 0 0-1.426-.2c-.3 0-.573.028-.819.086a2.1 2.1 0 0 0-.623.242c-.17.104-.3.229-.393.374a.888.888 0 0 0-.14.49c0 .196.053.373.156.529.104.156.252.304.443.444s.423.276.696.41c.273.135.582.274.926.416.47.197.892.407 1.266.628.374.222.695.473.963.753.268.279.472.598.614.957.142.359.214.776.214 1.253 0 .657-.125 1.21-.373 1.656a3.033 3.033 0 0 1-1.012 1.085 4.38 4.38 0 0 1-1.487.596c-.566.12-1.163.18-1.79.18a9.916 9.916 0 0 1-1.84-.164 5.544 5.544 0 0 1-1.512-.493v-2.63a5.033 5.033 0 0 0 3.237 1.2c.333 0 .624-.03.872-.09.249-.06.456-.144.623-.25.166-.108.29-.234.373-.38a1.023 1.023 0 0 0-.074-1.089 2.12 2.12 0 0 0-.537-.5 5.597 5.597 0 0 0-.807-.444 27.72 27.72 0 0 0-1.007-.436c-.918-.383-1.602-.852-2.053-1.405-.45-.553-.676-1.222-.676-2.005 0-.614.123-1.141.369-1.582.246-.441.58-.804 1.004-1.089a4.494 4.494 0 0 1 1.47-.629 7.536 7.536 0 0 1 1.77-.201zm-15.113.188h9.563v2.166H9.506v9.646H6.789v-9.646H3.375z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;TypeScript&lt;/span&gt; 寫的 TREM EEW 核心跟不上即時運算。SE-net 的觀測精度也不夠用：它的雜訊密度是 400 µg/√Hz，接手的 ES-net 是 60 µg/√Hz，靈敏度約差 6.7 倍。各子網的比較見 &lt;a href=&quot;https://exptech.dev/docs/product/start/trem-net/#%E5%9B%9B%E5%80%8B%E5%AD%90%E7%B6%B2&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;TREM-net 地震觀測網&lt;/a&gt;。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;換成什麼&quot;&gt;換成什麼&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;2025 年 11 月，新一代觀測網 ES-net 上線，我們同時用 &lt;span&gt;&lt;svg viewBox=&quot;0 0 24 24&quot; width=&quot;1em&quot; height=&quot;1em&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M1.811 10.231c-.047 0-.058-.023-.035-.059l.246-.315c.023-.035.081-.058.128-.058h4.172c.046 0 .058.035.035.07l-.199.303c-.023.036-.082.07-.117.07zM.047 11.306c-.047 0-.059-.023-.035-.058l.245-.316c.023-.035.082-.058.129-.058h5.328c.047 0 .07.035.058.07l-.093.28c-.012.047-.058.07-.105.07zm2.828 1.075c-.047 0-.059-.035-.035-.07l.163-.292c.023-.035.07-.07.117-.07h2.337c.047 0 .07.035.07.082l-.023.28c0 .047-.047.082-.082.082zm12.129-2.36c-.736.187-1.239.327-1.963.514-.176.046-.187.058-.34-.117-.174-.199-.303-.327-.548-.444-.737-.362-1.45-.257-2.115.175-.795.514-1.204 1.274-1.192 2.22.011.935.654 1.706 1.577 1.835.795.105 1.46-.175 1.987-.77.105-.13.198-.27.315-.434H10.47c-.245 0-.304-.152-.222-.35.152-.362.432-.97.596-1.274a.315.315 0 01.292-.187h4.253c-.023.316-.023.631-.07.947a4.983 4.983 0 01-.958 2.29c-.841 1.11-1.94 1.8-3.33 1.986-1.145.152-2.209-.07-3.143-.77-.865-.655-1.356-1.52-1.484-2.595-.152-1.274.222-2.419.993-3.424.83-1.086 1.928-1.776 3.272-2.02 1.098-.2 2.15-.07 3.096.571.62.41 1.063.97 1.356 1.648.07.105.023.164-.117.2m3.868 6.461c-1.064-.024-2.034-.328-2.852-1.029a3.665 3.665 0 01-1.262-2.255c-.21-1.32.152-2.489.947-3.529.853-1.122 1.881-1.706 3.272-1.95 1.192-.21 2.314-.095 3.33.595.923.63 1.496 1.484 1.648 2.605.198 1.578-.257 2.863-1.344 3.962-.771.783-1.718 1.273-2.805 1.495-.315.06-.63.07-.934.106zm2.78-4.72c-.011-.153-.011-.27-.034-.387-.21-1.157-1.274-1.81-2.384-1.554-1.087.245-1.788.935-2.045 2.033-.21.912.234 1.835 1.075 2.21.643.28 1.285.244 1.905-.07.923-.48 1.425-1.228 1.484-2.233z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Go&lt;/span&gt; 從頭重寫 TREM EEW 核心：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;演算法從原本的分群法換成 IPFx（擴展整合粒子濾波法），幾個地震同時發生、或餘震一個接一個時，比較分得開。&lt;/li&gt;
&lt;li&gt;規模預估與震相挑選大量改用機器學習，減少人工處理。&lt;/li&gt;
&lt;li&gt;臺南與東京兩座核心節點同時運作（異地多活）。舊版在一個區域出問題時要有人手動處理；新版在 15 秒內自動切到另一個區域，不需要人介入。架構見&lt;a href=&quot;https://exptech.dev/docs/api/start/architecture/&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;架構與異地備援&lt;/a&gt;。&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;&lt;h2 id=&quot;交棒給-es-net&quot;&gt;交棒給 ES-net&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;現在主力已經交給 ES-net，它比 SE-net 穩定，靈敏度約是 6.7 倍，&lt;a href=&quot;https://exptech.dev/docs/product/ES/es-net&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;ES-Net&lt;/a&gt; 與 &lt;a href=&quot;https://exptech.dev/docs/product/ES/es-pro&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;ES-Pro&lt;/a&gt; 地震儀都屬於這個子網。想在家設一座測站，可以看&lt;a href=&quot;https://exptech.dev/docs/product/start/trem-net/#%E5%8A%A0%E5%85%A5-trem-net&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;加入 TREM-net&lt;/a&gt;。&lt;/p&gt;</content:encoded><category>Sharing</category></item><item><title>09/18 事件之後的資安強化</title><link>https://exptech.dev/blog/sharing-2026-11-15/</link><guid isPermaLink="true">https://exptech.dev/blog/sharing-2026-11-15/</guid><description>09/18 的入侵事件之後，我們花了兩個月重新盤點四台路由器的對外入口、收緊來源限制與防火牆、讓路由器自動更新，也做了一套自動判讀主機日誌的資安報告。</description><pubDate>Sun, 15 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;2026/09/18，我們發現承載 DPIP 服務的四台路由器遭到入侵。事件經過、影響與處置寫在&lt;a href=&quot;https://exptech.dev/blog/rca-2026-09-18_1/&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;事件完整說明&lt;/a&gt;，當天的服務公告在&lt;a href=&quot;https://exptech.dev/announcement/?id=50&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;這裡&lt;/a&gt;。到 11/15 為止的複查都沒有再入侵的跡象，見事件說明的&lt;a href=&quot;https://exptech.dev/blog/rca-2026-09-18_1/#%E5%BE%8C%E7%BA%8C%E8%BF%BD%E8%B9%A4&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;後續追蹤&lt;/a&gt;。&lt;/p&gt;

&lt;div&gt;&lt;h2 id=&quot;對照&quot;&gt;對照&lt;/h2&gt;&lt;/div&gt;
&lt;figure lang=&quot;zh-TW&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;div data-xt-zoomable=&quot;&quot; aria-label=&quot;09/18 與之後的對照&quot; aria-describedby=&quot;xt-diagram-desc-y746oc&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;svg viewBox=&quot;0 0 600 440&quot; role=&quot;img&quot; aria-label=&quot;09/18 與之後的對照&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;path d=&quot;M12 5v14 M19 12l-7 7-7-7&quot; transform=&quot;translate(0 50.5) scale(0.5)&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/path&gt;&lt;line x1=&quot;0&quot; y1=&quot;86&quot; x2=&quot;600&quot; y2=&quot;86&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/line&gt;&lt;path d=&quot;M12 5v14 M19 12l-7 7-7-7&quot; transform=&quot;translate(0 136.5) scale(0.5)&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/path&gt;&lt;line x1=&quot;0&quot; y1=&quot;172&quot; x2=&quot;600&quot; y2=&quot;172&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/line&gt;&lt;path d=&quot;M12 19V5 M5 12l7-7 7 7&quot; transform=&quot;translate(0 222.5) scale(0.5)&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/path&gt;&lt;line x1=&quot;0&quot; y1=&quot;250&quot; x2=&quot;600&quot; y2=&quot;250&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/line&gt;&lt;path d=&quot;M12 19V5 M5 12l7-7 7 7&quot; transform=&quot;translate(0 300.5) scale(0.5)&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/path&gt;&lt;line x1=&quot;0&quot; y1=&quot;328&quot; x2=&quot;600&quot; y2=&quot;328&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;0&quot; y1=&quot;414&quot; x2=&quot;600&quot; y2=&quot;414&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/line&gt;&lt;g data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;title&gt;SSH 外部登入失敗（路由器四台合計）：09/18 2,118 次，之後 0 次，09/19 降到 170 次，09/20 起 0 次（至 11/15）&lt;/title&gt;&lt;rect x=&quot;228.07652000000002&quot; y=&quot;16&quot; width=&quot;249.81&quot; height=&quot;14&quot; rx=&quot;3&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;228.07652000000002&quot; y=&quot;38&quot; width=&quot;2&quot; height=&quot;14&quot; rx=&quot;3&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;184&quot; y=&quot;27&quot; font-size=&quot;12&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;09/18&lt;/text&gt;&lt;text x=&quot;483.89&quot; y=&quot;27.5&quot; font-size=&quot;12.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;2,118 次&lt;/text&gt;&lt;text x=&quot;184&quot; y=&quot;49&quot; font-size=&quot;12&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;之後&lt;/text&gt;&lt;text x=&quot;236.08&quot; y=&quot;49.5&quot; font-size=&quot;12.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;0 次&lt;/text&gt;&lt;text x=&quot;228.07652000000002&quot; y=&quot;68&quot; font-size=&quot;12&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;09/19 降到 170 次，09/20 起 0 次（至 11/15）&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;title&gt;白名單外連得上的對外入口（四台合計）：09/18 26 個，之後 11 個，11 個包含網站、VPN 這類本來就要公開的服務&lt;/title&gt;&lt;rect x=&quot;228.07652000000002&quot; y=&quot;102&quot; width=&quot;249.81&quot; height=&quot;14&quot; rx=&quot;3&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;228.07652000000002&quot; y=&quot;124&quot; width=&quot;105.69&quot; height=&quot;14&quot; rx=&quot;3&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;184&quot; y=&quot;113&quot; font-size=&quot;12&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;09/18&lt;/text&gt;&lt;text x=&quot;483.89&quot; y=&quot;113.5&quot; font-size=&quot;12.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;26 個&lt;/text&gt;&lt;text x=&quot;184&quot; y=&quot;135&quot; font-size=&quot;12&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;之後&lt;/text&gt;&lt;text x=&quot;339.77&quot; y=&quot;135.5&quot; font-size=&quot;12.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;11 個&lt;/text&gt;&lt;text x=&quot;228.07652000000002&quot; y=&quot;154&quot; font-size=&quot;12&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;11 個包含網站、VPN 這類本來就要公開的服務&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;title&gt;需要限制來源的入口中，已限制的比例：09/18 約 47%（22／47），之後 約 88%（44／50）&lt;/title&gt;&lt;rect x=&quot;228.07652000000002&quot; y=&quot;188&quot; width=&quot;249.81447999999997&quot; height=&quot;14&quot; rx=&quot;3&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;228.07652000000002&quot; y=&quot;188&quot; width=&quot;117.41&quot; height=&quot;14&quot; rx=&quot;3&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;228.07652000000002&quot; y=&quot;210&quot; width=&quot;249.81447999999997&quot; height=&quot;14&quot; rx=&quot;3&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;228.07652000000002&quot; y=&quot;210&quot; width=&quot;219.84&quot; height=&quot;14&quot; rx=&quot;3&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;184&quot; y=&quot;199&quot; font-size=&quot;12&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;09/18&lt;/text&gt;&lt;text x=&quot;483.89&quot; y=&quot;199.5&quot; font-size=&quot;12.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;約 47%（22／47）&lt;/text&gt;&lt;text x=&quot;184&quot; y=&quot;221&quot; font-size=&quot;12&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;之後&lt;/text&gt;&lt;text x=&quot;483.89&quot; y=&quot;221.5&quot; font-size=&quot;12.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;約 88%（44／50）&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;title&gt;SSH 管理入口有來源白名單的數量：09/18 1／13，之後 15／15&lt;/title&gt;&lt;rect x=&quot;228.07652000000002&quot; y=&quot;266&quot; width=&quot;216.51&quot; height=&quot;14&quot; rx=&quot;3&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;228.07652000000002&quot; y=&quot;266&quot; width=&quot;16.65&quot; height=&quot;14&quot; rx=&quot;3&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;228.07652000000002&quot; y=&quot;288&quot; width=&quot;249.81&quot; height=&quot;14&quot; rx=&quot;3&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;228.07652000000002&quot; y=&quot;288&quot; width=&quot;249.81&quot; height=&quot;14&quot; rx=&quot;3&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;184&quot; y=&quot;277&quot; font-size=&quot;12&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;09/18&lt;/text&gt;&lt;text x=&quot;450.59&quot; y=&quot;277.5&quot; font-size=&quot;12.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;1／13&lt;/text&gt;&lt;text x=&quot;184&quot; y=&quot;299&quot; font-size=&quot;12&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;之後&lt;/text&gt;&lt;text x=&quot;483.89&quot; y=&quot;299.5&quot; font-size=&quot;12.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;15／15&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;title&gt;路由器自動更新：09/18 沒有，之後 12 次，3 個版本 × 4 台，沒有一次同時中斷&lt;/title&gt;&lt;rect x=&quot;228.07652000000002&quot; y=&quot;344&quot; width=&quot;2&quot; height=&quot;14&quot; rx=&quot;3&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;228.07652000000002&quot; y=&quot;366&quot; width=&quot;249.81&quot; height=&quot;14&quot; rx=&quot;3&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;184&quot; y=&quot;355&quot; font-size=&quot;12&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;09/18&lt;/text&gt;&lt;text x=&quot;236.08&quot; y=&quot;355.5&quot; font-size=&quot;12.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;沒有&lt;/text&gt;&lt;text x=&quot;184&quot; y=&quot;377&quot; font-size=&quot;12&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;之後&lt;/text&gt;&lt;text x=&quot;483.89&quot; y=&quot;377.5&quot; font-size=&quot;12.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;12 次&lt;/text&gt;&lt;text x=&quot;228.07652000000002&quot; y=&quot;396&quot; font-size=&quot;12&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;3 個版本 × 4 台，沒有一次同時中斷&lt;/text&gt;&lt;/g&gt;&lt;text x=&quot;0&quot; y=&quot;25&quot; font-size=&quot;13.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;SSH 外部登入失敗&lt;/text&gt;&lt;text x=&quot;0&quot; y=&quot;43&quot; font-size=&quot;13.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;（路由器四台合計）&lt;/text&gt;&lt;text x=&quot;16&quot; y=&quot;60&quot; font-size=&quot;11.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;越低越好&lt;/text&gt;&lt;text x=&quot;0&quot; y=&quot;111&quot; font-size=&quot;13.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;白名單外連得上的對外入口&lt;/text&gt;&lt;text x=&quot;0&quot; y=&quot;129&quot; font-size=&quot;13.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;（四台合計）&lt;/text&gt;&lt;text x=&quot;16&quot; y=&quot;146&quot; font-size=&quot;11.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;越低越好&lt;/text&gt;&lt;text x=&quot;0&quot; y=&quot;197&quot; font-size=&quot;13.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;需要限制來源的入口中，&lt;/text&gt;&lt;text x=&quot;0&quot; y=&quot;215&quot; font-size=&quot;13.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;已限制的比例&lt;/text&gt;&lt;text x=&quot;16&quot; y=&quot;232&quot; font-size=&quot;11.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;越高越好&lt;/text&gt;&lt;text x=&quot;0&quot; y=&quot;275&quot; font-size=&quot;13.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;SSH 管理入口有&lt;/text&gt;&lt;text x=&quot;0&quot; y=&quot;293&quot; font-size=&quot;13.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;來源白名單的數量&lt;/text&gt;&lt;text x=&quot;16&quot; y=&quot;310&quot; font-size=&quot;11.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;越高越好&lt;/text&gt;&lt;text x=&quot;0&quot; y=&quot;353&quot; font-size=&quot;13.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;路由器自動更新&lt;/text&gt;&lt;text x=&quot;0&quot; y=&quot;432&quot; font-size=&quot;11.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;每一項有各自的比例尺&lt;/text&gt;&lt;/svg&gt;&lt;/div&gt;&lt;p aria-hidden=&quot;true&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;點圖可放大&lt;/p&gt;&lt;p id=&quot;xt-diagram-desc-y746oc&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;五個指標，每一項有各自的比例尺。路由器 SSH 的外部登入失敗從 2,118 次降到 0 次（09/19 是 170 次，09/20 起到 11/15 都是 0 次）。白名單外連得上的對外入口從 26 個降到 11 個。需要限制來源的入口中，已限制的比例從約 47% 升到約 88%。SSH 管理入口有來源白名單的，從 1／13 到 15／15。路由器自動更新從沒有到 12 次。&lt;/p&gt;&lt;figcaption data-astro-cid-fia5stjh=&quot;&quot;&gt;09/18 與之後的對照&lt;/figcaption&gt;&lt;/figure&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;項目&lt;/th&gt;
&lt;th&gt;09/18&lt;/th&gt;
&lt;th&gt;之後&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;路由器 SSH 的外部登入失敗（四台合計）&lt;/td&gt;
&lt;td&gt;2,118 次&lt;/td&gt;
&lt;td&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;09/19 降到 170 次，09/20 起 0 次（至 11/15）&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;白名單外連得上的對外入口（四台合計）&lt;/td&gt;
&lt;td&gt;26 個&lt;/td&gt;
&lt;td&gt;11 個，包含網站、VPN 這類本來就要公開的服務&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;需要限制來源的入口中，已限制的比例&lt;/td&gt;
&lt;td&gt;約 47%（22／47）&lt;/td&gt;
&lt;td&gt;&lt;svg data-status=&quot;warn&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 9v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17h.01&quot;&gt;&lt;/path&gt;&lt;/svg&gt;約 88%（44／50）&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SSH 管理入口有來源白名單的數量&lt;/td&gt;
&lt;td&gt;1／13&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;15／15&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;路由器自動更新&lt;/td&gt;
&lt;td&gt;沒有&lt;/td&gt;
&lt;td&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;12 次（3 個版本 × 4 台），沒有一次同時中斷&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;前兩項是實測，比例是依盤點表逐項推算，自動更新是設備上的安裝紀錄。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;一盤點每一個對外入口&quot;&gt;一、盤點每一個對外入口&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;這次被入侵，是因為有些已經放行的入口沒有限制來源。我們把每一個對外入口列出來，看哪些不需要對全世界開放。&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;盤了三次加一次複查&quot;&gt;盤了三次，加一次複查&lt;/h3&gt;&lt;/div&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;日期&lt;/th&gt;
&lt;th&gt;範圍&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;09/19&lt;/td&gt;
&lt;td&gt;四台路由器所有可能的攻擊路徑，加上雲端主機之間的服務互連，共列出 19 項&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10/18&lt;/td&gt;
&lt;td&gt;白名單複查（唯讀）：四台所有「允許來源」的設定與轉發規則&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10/29&lt;/td&gt;
&lt;td&gt;四台路由器的對外入口，加上經兩台雲端主機轉進來的路徑。這次最完整，有從外部實測，下面的數字都來自這次&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;11/05&lt;/td&gt;
&lt;td&gt;IPv6：四台路由器、底下的區網與兩台雲端主機。路由器底下的設備沒有 IPv6 對外路徑，白名單不會被 IPv6 繞過&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div&gt;&lt;h3 id=&quot;1029-怎麼盤&quot;&gt;10/29 怎麼盤&lt;/h3&gt;&lt;/div&gt;
&lt;ol role=&quot;list&quot;&gt;
&lt;li&gt;
&lt;p&gt;唯讀查詢四台的設定：防火牆、目的地轉址、路由器本身開著的服務、IPv6、UPnP。&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;從白名單外連線：從一台不在白名單內的主機，連四台的對外位址。TCP 測約 75 個常見埠，加上設定裡出現過的埠；UDP 與 ICMP 另外測。結果分三種：連得上、逾時（封包被丟掉）、被拒絕（路徑是通的，但後面沒有服務）。&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;追經雲端主機轉進來的路徑：唯讀查詢兩台雲端主機的轉址與隧道設定。&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;動手前先看誰在用：要收窄其中一條轉發之前，先抓了 12 秒的封包標頭（只看來源，不看內容），發現有 7 個外部客戶端正在使用 DPIP 的一個資料埠，所以這個埠保留。&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;我們沒有做全埠掃描。後端是正式服務，掃得太兇可能觸發自動封鎖，連帶影響使用者。實測範圍是約 75 個常見埠，加上設定中出現過的埠。&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;結果&quot;&gt;結果&lt;/h3&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;白名單外連得上的入口，四台合計從 26 個降到 11 個。少掉的 15 個沒有刪除任何轉發規則，而是加上來源白名單，或把轉發範圍縮小；從白名單內照常可以使用。&lt;/li&gt;
&lt;li&gt;經兩台雲端主機轉進來的路徑，原本是所有埠、所有協定都轉進內網，改成只放網站與 DPIP 資料需要的幾個 TCP 埠。改完從外部實測，其他埠都連不到，DPIP 既有的長連線也沒有中斷。&lt;/li&gt;
&lt;li&gt;路由器上停用了 6 個服務：這次攻擊用到的頻寬測試服務（4 台）、攻擊者自己開啟的 SOCKS 代理（2 台，連同攻擊者建立的代理帳號）。另外停用一組設備已離線的校時轉送規則。&lt;/li&gt;
&lt;li&gt;Winbox、API、Telnet、FTP 這類管理服務在事件前就已停用，不是這次才關的。事件當時真正對全世界開放的管理入口是 SSH，09/19 起只接受白名單來源。&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;&lt;h2 id=&quot;二來源白名單&quot;&gt;二、來源白名單&lt;/h2&gt;&lt;/div&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;日期&lt;/th&gt;
&lt;th&gt;加上來源限制的入口&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;09/19&lt;/td&gt;
&lt;td&gt;四台路由器的 SSH 管理介面&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10/29&lt;/td&gt;
&lt;td&gt;12 條轉發規則：轉到內網主機的 SSH 10 條、內部服務 2 條&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10/29&lt;/td&gt;
&lt;td&gt;經雲端主機的 2 條全埠轉發，改成只放需要的埠&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10/30&lt;/td&gt;
&lt;td&gt;3 條原本對全網開放的監控指標轉發，限制為單一監控主機；另新增 2 條同樣限制&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;不同用途的入口用不同的清單，例如監控用的清單只有實際抓指標的那一台主機，不沿用管理用的清單。&lt;/p&gt;
&lt;p&gt;套用時，我們也切掉了白名單外的既有連線，四台合計 112 條。這些連線的來源都是雲端主機與海外的網路業者，判斷是暴力破解。&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;效果&quot;&gt;效果&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;路由器 SSH 的外部登入失敗，09/18 四台合計 2,118 次，09/19 降到 170 次，09/20 起是 0，到 11/15 都沒有再出現。這段期間所有的登入失敗都來自我們自己的站台。&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;覆蓋率怎麼算&quot;&gt;覆蓋率怎麼算&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;從約 47% 到約 88% 是我們依盤點表逐項算出來的，不是工具量出來的：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;每個埠／協定算 1 個入口，經雲端主機的每條轉發路徑也算 1 個，停用的規則不算。&lt;/li&gt;
&lt;li&gt;分母只算需要限制來源的入口，不算網站、VPN 這類本來就要公開的入口，也不算後面沒有服務在聽的規則。&lt;/li&gt;
&lt;/ul&gt;
&lt;figure lang=&quot;zh-TW&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;div data-xt-zoomable=&quot;&quot; aria-label=&quot;已限制的入口與分母&quot; aria-describedby=&quot;xt-diagram-desc-tiipl6&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;svg viewBox=&quot;0 0 600 162&quot; role=&quot;img&quot; aria-label=&quot;已限制的入口與分母&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;line x1=&quot;0&quot; y1=&quot;68&quot; x2=&quot;600&quot; y2=&quot;68&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/line&gt;&lt;path d=&quot;M12 19V5 M5 12l7-7 7 7&quot; transform=&quot;translate(0 100.5) scale(0.5)&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/path&gt;&lt;line x1=&quot;0&quot; y1=&quot;136&quot; x2=&quot;600&quot; y2=&quot;136&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/line&gt;&lt;g data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;title&gt;已限制／需要限制來源的入口：09/18 22／47 個，10/30 之後 44／50 個&lt;/title&gt;&lt;rect x=&quot;255.61148&quot; y=&quot;16&quot; width=&quot;259.62&quot; height=&quot;14&quot; rx=&quot;3&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;255.61148&quot; y=&quot;16&quot; width=&quot;121.53&quot; height=&quot;14&quot; rx=&quot;3&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;255.61148&quot; y=&quot;38&quot; width=&quot;276.2&quot; height=&quot;14&quot; rx=&quot;3&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;255.61148&quot; y=&quot;38&quot; width=&quot;243.05&quot; height=&quot;14&quot; rx=&quot;3&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;184&quot; y=&quot;27&quot; font-size=&quot;12&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;09/18&lt;/text&gt;&lt;text x=&quot;521.23&quot; y=&quot;27.5&quot; font-size=&quot;12.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;22／47 個&lt;/text&gt;&lt;text x=&quot;184&quot; y=&quot;49&quot; font-size=&quot;12&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;10/30 之後&lt;/text&gt;&lt;text x=&quot;537.81&quot; y=&quot;49.5&quot; font-size=&quot;12.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;44／50 個&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;title&gt;比例：09/18 約 47%，10/30 之後 約 88%&lt;/title&gt;&lt;rect x=&quot;255.61148&quot; y=&quot;84&quot; width=&quot;276.19676999999996&quot; height=&quot;14&quot; rx=&quot;3&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;255.61148&quot; y=&quot;84&quot; width=&quot;129.81&quot; height=&quot;14&quot; rx=&quot;3&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;255.61148&quot; y=&quot;106&quot; width=&quot;276.19676999999996&quot; height=&quot;14&quot; rx=&quot;3&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;255.61148&quot; y=&quot;106&quot; width=&quot;243.05&quot; height=&quot;14&quot; rx=&quot;3&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;184&quot; y=&quot;95&quot; font-size=&quot;12&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;09/18&lt;/text&gt;&lt;text x=&quot;537.81&quot; y=&quot;95.5&quot; font-size=&quot;12.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;約 47%&lt;/text&gt;&lt;text x=&quot;184&quot; y=&quot;117&quot; font-size=&quot;12&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;10/30 之後&lt;/text&gt;&lt;text x=&quot;537.81&quot; y=&quot;117.5&quot; font-size=&quot;12.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;約 88%&lt;/text&gt;&lt;/g&gt;&lt;text x=&quot;0&quot; y=&quot;25&quot; font-size=&quot;13.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;已限制／&lt;/text&gt;&lt;text x=&quot;0&quot; y=&quot;43&quot; font-size=&quot;13.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;需要限制來源的入口&lt;/text&gt;&lt;text x=&quot;0&quot; y=&quot;93&quot; font-size=&quot;13.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;比例&lt;/text&gt;&lt;text x=&quot;16&quot; y=&quot;110&quot; font-size=&quot;11.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;越高越好&lt;/text&gt;&lt;text x=&quot;0&quot; y=&quot;154&quot; font-size=&quot;11.5&quot; data-astro-cid-7zrcxzkx=&quot;&quot;&gt;每一項有各自的比例尺&lt;/text&gt;&lt;/svg&gt;&lt;/div&gt;&lt;p aria-hidden=&quot;true&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;點圖可放大&lt;/p&gt;&lt;p id=&quot;xt-diagram-desc-tiipl6&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;每一條的全長是需要限制來源的入口（分母），填滿的部分是已限制的入口。09/18 是 47 個中的 22 個，約 47%；10/30 之後是 50 個中的 44 個，約 88%。09/18 的數字是從現況倒推的。&lt;/p&gt;&lt;figcaption data-astro-cid-fia5stjh=&quot;&quot;&gt;已限制的入口與分母&lt;/figcaption&gt;&lt;/figure&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;09/18&lt;/th&gt;
&lt;th&gt;10/30 之後&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;需要限制來源的入口&lt;/td&gt;
&lt;td&gt;47&lt;/td&gt;
&lt;td&gt;50&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;已限制（來源白名單＋只放需要的埠）&lt;/td&gt;
&lt;td&gt;22&lt;/td&gt;
&lt;td&gt;44&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;比例&lt;/td&gt;
&lt;td&gt;約 47%&lt;/td&gt;
&lt;td&gt;約 88%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;09/18 那一欄是從現況倒推的，當時沒有做同樣的外部實測。其餘是評估後保留的入口。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;三收緊防火牆&quot;&gt;三、收緊防火牆&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;路由器「沒有明確放行就拒絕」的基本架構，事件前就有，事後沒有重寫。這次補的是放行規則本身：替原本不限來源的規則加上來源與範圍的限制。&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;四台合計&lt;/th&gt;
&lt;th&gt;09/18&lt;/th&gt;
&lt;th&gt;11/15&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;過濾規則（filter）&lt;/td&gt;
&lt;td&gt;104&lt;/td&gt;
&lt;td&gt;107&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;轉址規則（NAT）&lt;/td&gt;
&lt;td&gt;59&lt;/td&gt;
&lt;td&gt;73&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;規則數量變化不大。轉址規則多出的 14 條，主要是 VPN 使用者的 DNS 強制導向（10/11，每台 2 條）、隧道的截止規則與監控轉發。真正的變化是 17 條轉址規則加上了來源或埠的限制（12＋2＋3），以及四台 SSH 管理介面的來源限制。&lt;/p&gt;
&lt;p&gt;改規則的原則：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;變更前後都匯出完整設定逐行比對，確認除了要改的地方之外沒有其他差異。&lt;/li&gt;
&lt;li&gt;每次變更前先準備好回復的方式。&lt;/li&gt;
&lt;li&gt;先看連線與封包，確認誰在使用，再決定怎麼收窄。&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;另外，四台的管理密碼、VPN 使用者密碼、SSH 主機金鑰與 VPN 憑證機構都各自獨立。單一台被攻破，不會連帶拿到其他三台的憑證。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;四自動更新&quot;&gt;四、自動更新&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;這次被利用的漏洞，原廠的修補比攻擊者植入惡意程式早了 12 天釋出。只要有任何形式的自動更新，就能擋下這次攻擊。&lt;/p&gt;
&lt;p&gt;所以 09/19 起，四台路由器改成定期自動檢查並安裝原廠 stable 通道的更新：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;不限制只裝同一系列的小版本：入侵時有一台還在 7.22.1，而修補不在 7.22 系列裡；如果只裝 7.22.x，根本拿不到修補。&lt;/li&gt;
&lt;li&gt;四台錯開更新，不會同時中斷。&lt;/li&gt;
&lt;li&gt;安裝前自動備份，有問題可以回復；取不到版本資訊就跳過，不會誤裝。&lt;/li&gt;
&lt;li&gt;排程的名稱與註解寫明是事件應變部署。這次的攻擊者就是用排程做持久化，避免日後稽核時被誤認成攻擊者留下的。&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;實際的結果：&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;版本&lt;/th&gt;
&lt;th&gt;四台完成&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;7.24.5&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;10 月上旬&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7.25&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;10 月下旬&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7.25.1&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;11 月上旬&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;三個版本 × 四台，共 12 次自動升級，每次都有安裝紀錄，沒有一次造成四台同時中斷。11/15 時四台都是最新的 stable 版本。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;五資安速報資安詳細資安日報&quot;&gt;五、資安速報、資安詳細、資安日報&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;這段期間，我們也做了一套自動判讀主機日誌的工具，在 10/29 上線，涵蓋 7 台 Linux 主機，分成三種報告：&lt;/p&gt;
&lt;div data-astro-cid-7qmvx3iy=&quot;&quot;&gt;&lt;article data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;p data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1.333em&quot; height=&quot;1.333em&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;M12 16v-4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 8h.01&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span data-astro-cid-z24ziyhq=&quot;&quot;&gt;資安速報&lt;/span&gt;&lt;/p&gt;&lt;div data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;p&gt;定時執行。程式規則加上 AI 先做初步判讀，正常時只發一行「一切正常」，有問題才通知。&lt;/p&gt;&lt;/div&gt;&lt;/article&gt;&lt;article data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;p data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1.333em&quot; height=&quot;1.333em&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;m21 21-4.34-4.34&quot;&gt;&lt;/path&gt;&lt;circle cx=&quot;11&quot; cy=&quot;11&quot; r=&quot;8&quot;&gt;&lt;/circle&gt;&lt;/svg&gt;&lt;span data-astro-cid-z24ziyhq=&quot;&quot;&gt;資安詳細&lt;/span&gt;&lt;/p&gt;&lt;div data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;p&gt;遇到新的危險項目，或負責人要求細查時，再做深入分析，產出一份報告。&lt;/p&gt;&lt;/div&gt;&lt;/article&gt;&lt;article data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;p data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1.333em&quot; height=&quot;1.333em&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M14 2v5a1 1 0 0 0 1 1h5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M10 9H8&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M16 13H8&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M16 17H8&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span data-astro-cid-z24ziyhq=&quot;&quot;&gt;資安日報&lt;/span&gt;&lt;/p&gt;&lt;div data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;p&gt;每天一份，整理前一天的狀況，加上相依套件的弱點、容器映像的掃描結果，以及新列入 CISA KEV（已知遭利用的弱點清單）的 CVE。&lt;/p&gt;&lt;/div&gt;&lt;/article&gt;&lt;/div&gt;
&lt;div&gt;&lt;h3 id=&quot;這套工具本身不能變成新的弱點&quot;&gt;這套工具本身不能變成新的弱點&lt;/h3&gt;&lt;/div&gt;
&lt;figure lang=&quot;zh-TW&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;div data-xt-zoomable=&quot;&quot; aria-label=&quot;日誌從主機到報告的路徑&quot; aria-describedby=&quot;xt-diagram-desc-1f50m6q&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;svg viewBox=&quot;-6 -6 472 306&quot; width=&quot;472&quot; height=&quot;306&quot; role=&quot;img&quot; aria-label=&quot;日誌從主機到報告的路徑&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M161 37 L304 37&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;311,37 303,41 303,33&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M385.5 74 L385.5 111&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;385.5,118 381.5,110 389.5,110&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M320 74 L320 90 Q320 96 314 96 L86.5 96 Q80.5 96 80.5 102 L80.5 111&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;80.5,118 76.5,110 84.5,110&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M161 155 L304 155&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;311,155 303,159 303,151&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M137.7 192 L137.7 230.84&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;137.7,237.84 133.7,229.84 141.7,229.84&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M322.3 192 L322.3 230.84&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;322.3,237.84 318.3,229.84 326.3,229.84&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M22 0 H139 A22 22 0 0 1 161 22 V52 A22 22 0 0 1 139 74 H22 A22 22 0 0 1 0 52 V22 A22 22 0 0 1 22 0 Z&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;text x=&quot;80.5&quot; y=&quot;19&quot; font-size=&quot;14&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;7 台 Linux 主機&lt;/text&gt;&lt;text x=&quot;80.5&quot; y=&quot;40&quot; font-size=&quot;12.5&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;送出前遮掉機密&lt;/text&gt;&lt;text x=&quot;80.5&quot; y=&quot;56&quot; font-size=&quot;12.5&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;只送統計與挑過的片段&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M316 0 H455 A5 5 0 0 1 460 5 V69 A5 5 0 0 1 455 74 H316 A5 5 0 0 1 311 69 V5 A5 5 0 0 1 316 0 Z&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;text x=&quot;385.5&quot; y=&quot;19&quot; font-size=&quot;14&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;收件端&lt;/text&gt;&lt;text x=&quot;385.5&quot; y=&quot;40&quot; font-size=&quot;12.5&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;檢查格式、大小與檔名&lt;/text&gt;&lt;text x=&quot;385.5&quot; y=&quot;56&quot; font-size=&quot;12.5&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;每台每天有總量上限&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M5 118 H156 A5 5 0 0 1 161 123 V187 A5 5 0 0 1 156 192 H5 A5 5 0 0 1 0 187 V123 A5 5 0 0 1 5 118 Z&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;text x=&quot;80.5&quot; y=&quot;137&quot; font-size=&quot;14&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;AI 判讀&lt;/text&gt;&lt;text x=&quot;80.5&quot; y=&quot;158&quot; font-size=&quot;12.5&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;唯讀：只讀監控資料&lt;/text&gt;&lt;text x=&quot;80.5&quot; y=&quot;174&quot; font-size=&quot;12.5&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;沒有 shell，讀不到機密&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M316 118 H455 A5 5 0 0 1 460 123 V187 A5 5 0 0 1 455 192 H316 A5 5 0 0 1 311 187 V123 A5 5 0 0 1 316 118 Z&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;text x=&quot;385.5&quot; y=&quot;137&quot; font-size=&quot;14&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;程式規則&lt;/text&gt;&lt;text x=&quot;385.5&quot; y=&quot;158&quot; font-size=&quot;12.5&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;判定有問題就通知&lt;/text&gt;&lt;text x=&quot;385.5&quot; y=&quot;174&quot; font-size=&quot;12.5&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;AI 判讀失敗也一樣&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M146.5 236 H313.5 A22 22 0 0 1 335.5 258 V272 A22 22 0 0 1 313.5 294 H146.5 A22 22 0 0 1 124.5 272 V258 A22 22 0 0 1 146.5 236 Z&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M146.5 239 H313.5 A19 19 0 0 1 332.5 258 V272 A19 19 0 0 1 313.5 291 H146.5 A19 19 0 0 1 127.5 272 V258 A19 19 0 0 1 146.5 239 Z&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;text x=&quot;230&quot; y=&quot;255&quot; font-size=&quot;14&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;通知與報告&lt;/text&gt;&lt;text x=&quot;230&quot; y=&quot;276&quot; font-size=&quot;12.5&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;資安速報、資安詳細、資安日報&lt;/text&gt;&lt;/g&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;rect x=&quot;201.5&quot; y=&quot;19&quot; width=&quot;60&quot; height=&quot;36&quot; rx=&quot;5&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;231.5&quot; y=&quot;29.5&quot; font-size=&quot;12&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;專屬金鑰&lt;/text&gt;&lt;text x=&quot;231.5&quot; y=&quot;44.5&quot; font-size=&quot;12&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;單向上傳&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;rect x=&quot;183.5&quot; y=&quot;137&quot; width=&quot;96&quot; height=&quot;36&quot; rx=&quot;5&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;231.5&quot; y=&quot;147.5&quot; font-size=&quot;12&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;只能提議規則&lt;/text&gt;&lt;text x=&quot;231.5&quot; y=&quot;162.5&quot; font-size=&quot;12&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;程式驗證後生效&lt;/text&gt;&lt;/g&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/div&gt;&lt;p aria-hidden=&quot;true&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;點圖可放大&lt;/p&gt;&lt;p id=&quot;xt-diagram-desc-1f50m6q&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;7 台 Linux 主機各用專屬的金鑰，把遮掉機密的資料單向上傳到收件端；收件端檢查格式、大小與檔名，每台每天有總量上限。接著由程式規則與 AI 判讀。AI 只能唯讀：只讀監控資料，沒有 shell，也讀不到機密；它不能直接改判斷規則，只能提議，由程式驗證後才生效。程式規則判定有問題的，就算 AI 判讀失敗也照樣通知。結果是資安速報、資安詳細與資安日報。&lt;/p&gt;&lt;figcaption data-astro-cid-fia5stjh=&quot;&quot;&gt;日誌從主機到報告的路徑&lt;/figcaption&gt;&lt;/figure&gt;
&lt;ul&gt;
&lt;li&gt;資料只能單向送出。各主機用各自專屬的金鑰，把摘要送到收件端。每把金鑰都綁死一個指令，只能上傳這一台自己的資料，開不了 shell，也冒充不了其他主機。收件端會檢查格式、大小與檔名，每台每天也有總量上限。&lt;/li&gt;
&lt;li&gt;送出前先遮掉機密。網址裡看起來像憑證的參數一律換成遮罩。完整的原始日誌留在各主機上，送出去的只有統計與挑過的片段。&lt;/li&gt;
&lt;li&gt;AI 只能唯讀。日誌是外面的人寫的，網址、標頭裡都可能是攻擊者刻意埋進去的文字。所以讀日誌的 AI 只能讀監控資料，沒有 shell，也讀不到任何機密。&lt;/li&gt;
&lt;li&gt;程式規則優先。程式規則判定有問題的，就算 AI 判讀失敗也照樣通知。AI 不能直接修改判斷規則，只能提議，由程式驗證後才生效；所有排除最長 24 小時，入侵類的警示永遠不能排除，被負責人撤銷的規則 30 天內不會再學回來。&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;&lt;h3 id=&quot;保存&quot;&gt;保存&lt;/h3&gt;&lt;/div&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;資料&lt;/th&gt;
&lt;th&gt;保存&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;各主機送出的分類資料&lt;/td&gt;
&lt;td&gt;30 天，總量上限 1 GB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;原始的上傳檔&lt;/td&gt;
&lt;td&gt;3 天&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;主機的數字指標（CPU、網路流量等）&lt;/td&gt;
&lt;td&gt;由另一套指標系統保存 365 天&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;資料壓縮後只剩原本的約 1/37，所以 30 天的資料也用不到 1 GB。&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;實際抓到的&quot;&gt;實際抓到的&lt;/h3&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;機密檔掃描：有人掃 &lt;code dir=&quot;auto&quot;&gt;.env&lt;/code&gt; 這類設定檔，全部回 404，沒有打進去。&lt;/li&gt;
&lt;li&gt;資料庫叢集自動主從切換（11/12）：協調服務之間連線逾時，主節點自動切換，10 分鐘後原本的主節點接回成備援。新規則上線當天就抓到。&lt;/li&gt;
&lt;li&gt;不熟悉來源的登入（11/11）：日報標出一筆從不熟悉來源的金鑰登入，請負責人確認，結果是本人，之後加進已知來源。&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;上線初期誤報偏多：11/12 回頭看 36 小時，約發了 110 則通知，大部分是誤報或重複。當天修掉 5 類誤報之後，同樣的時間估計會降到二十幾則。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;結語&quot;&gt;結語&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;來源限制的機制原本就在這四台路由器上，09/18 之前沒有用在後來收緊的那些入口。到 11/15，這些調整仍在繼續。&lt;/p&gt;</content:encoded><category>Sharing</category><category>Security</category></item><item><title>09/18 承載 DPIP 的網路設備遭入侵說明</title><link>https://exptech.dev/blog/rca-2026-09-18_1/</link><guid isPermaLink="true">https://exptech.dev/blog/rca-2026-09-18_1/</guid><description>2026/09/18 11:45（臺灣時間，UTC+8），DPIP 服務出現異常，排查後確認承載服務的四台網路設備遭到入侵。最早的入侵痕跡在 09/02。使用者資料未受影響。09/20 完成修補與清除，截至 11/15 複查無再入侵。</description><pubDate>Fri, 18 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;section data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;div data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;span data-severity=&quot;critical&quot;&gt;&lt;svg width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 16 16&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;rect data-on=&quot;&quot; x=&quot;1.5&quot; y=&quot;9.5&quot; width=&quot;2.25&quot; height=&quot;4.5&quot; rx=&quot;0.75&quot;&gt;&lt;/rect&gt;&lt;rect data-on=&quot;&quot; x=&quot;5.25&quot; y=&quot;7&quot; width=&quot;2.25&quot; height=&quot;7&quot; rx=&quot;0.75&quot;&gt;&lt;/rect&gt;&lt;rect data-on=&quot;&quot; x=&quot;9&quot; y=&quot;4.5&quot; width=&quot;2.25&quot; height=&quot;9.5&quot; rx=&quot;0.75&quot;&gt;&lt;/rect&gt;&lt;rect data-on=&quot;&quot; x=&quot;12.75&quot; y=&quot;2&quot; width=&quot;2.25&quot; height=&quot;12&quot; rx=&quot;0.75&quot;&gt;&lt;/rect&gt;&lt;/svg&gt;&lt;span&gt;嚴重程度&lt;/span&gt;&lt;span&gt;：&lt;/span&gt;&lt;span&gt;嚴重&lt;/span&gt;&lt;/span&gt;&lt;span data-status=&quot;investigating&quot;&gt;&lt;svg width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 16 16&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.6&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;circle cx=&quot;7&quot; cy=&quot;7&quot; r=&quot;4.5&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m10.4 10.4 3.6 3.6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span&gt;狀態&lt;/span&gt;&lt;span&gt;：&lt;/span&gt;&lt;span&gt;修補完成，11/15 複查無再入侵&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;dl data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;div data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;dt data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;13&quot; height=&quot;13&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;path d=&quot;M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M14 2v5a1 1 0 0 0 1 1h5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M10 9H8&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M16 13H8&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M16 17H8&quot;&gt;&lt;/path&gt;&lt;/svg&gt;問題描述&lt;/dt&gt;&lt;dd data-astro-cid-g5zafgs6=&quot;&quot;&gt;承載服務的四台網路設備遭到入侵，攻擊者取得了完整管理權限&lt;/dd&gt;&lt;/div&gt;&lt;div data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;dt data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;13&quot; height=&quot;13&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;path d=&quot;m21 21-4.34-4.34&quot;&gt;&lt;/path&gt;&lt;circle cx=&quot;11&quot; cy=&quot;11&quot; r=&quot;8&quot;&gt;&lt;/circle&gt;&lt;/svg&gt;根本原因&lt;/dt&gt;&lt;dd data-astro-cid-g5zafgs6=&quot;&quot;&gt;設備的系統版本落後於已公開的安全性修補，而且管理介面直接暴露在網際網路上。&lt;/dd&gt;&lt;/div&gt;&lt;div data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;dt data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;13&quot; height=&quot;13&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;path d=&quot;M4 16v-2.38C4 11.5 2.97 10.5 3 8c.03-2.72 1.49-6 4.5-6C9.37 2 10 3.8 10 5.5c0 3.11-2 5.66-2 8.68V16a2 2 0 1 1-4 0Z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M20 20v-2.38c0-2.12 1.03-3.12 1-5.62-.03-2.72-1.49-6-4.5-6C14.63 6 14 7.8 14 9.5c0 3.11 2 5.66 2 8.68V20a2 2 0 1 0 4 0Z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M16 17h4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M4 13h4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;最早入侵痕跡&lt;/dt&gt;&lt;dd data-astro-cid-g5zafgs6=&quot;&quot;&gt;2026/09/02&lt;/dd&gt;&lt;/div&gt;&lt;div data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;dt data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;13&quot; height=&quot;13&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;path d=&quot;M8 2v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M16 2v4&quot;&gt;&lt;/path&gt;&lt;rect width=&quot;18&quot; height=&quot;18&quot; x=&quot;3&quot; y=&quot;4&quot; rx=&quot;2&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M3 10h18&quot;&gt;&lt;/path&gt;&lt;/svg&gt;發現日&lt;/dt&gt;&lt;dd data-astro-cid-g5zafgs6=&quot;&quot;&gt;2026/09/18&lt;/dd&gt;&lt;/div&gt;&lt;div data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;dt data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;13&quot; height=&quot;13&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;rect width=&quot;20&quot; height=&quot;8&quot; x=&quot;2&quot; y=&quot;2&quot; rx=&quot;2&quot; ry=&quot;2&quot;&gt;&lt;/rect&gt;&lt;rect width=&quot;20&quot; height=&quot;8&quot; x=&quot;2&quot; y=&quot;14&quot; rx=&quot;2&quot; ry=&quot;2&quot;&gt;&lt;/rect&gt;&lt;line x1=&quot;6&quot; x2=&quot;6.01&quot; y1=&quot;6&quot; y2=&quot;6&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;6&quot; x2=&quot;6.01&quot; y1=&quot;18&quot; y2=&quot;18&quot;&gt;&lt;/line&gt;&lt;/svg&gt;影響範圍&lt;/dt&gt;&lt;dd data-astro-cid-g5zafgs6=&quot;&quot;&gt;承載 DPIP 服務的四台網路設備&lt;/dd&gt;&lt;/div&gt;&lt;/dl&gt;&lt;/section&gt;
&lt;p&gt;2026/09/18 11:45（以下時間皆為臺灣時間，UTC+8），DPIP 服務出現異常。排查後確認，承載這項服務的四台網路設備遭到入侵，攻擊者取得完整管理權限。最早的入侵痕跡在 09/02，遠端控制程式在 09/15 植入，日誌從 09/15 到 09/18 被改到幾乎留不住。09/18 15:20 取證完成，15:25 開始清理，服務陸續恢復。09/20 修補與清除完成，到 11/15 的複查沒有再入侵跡象，見&lt;a href=&quot;#%E5%BE%8C%E7%BA%8C%E8%BF%BD%E8%B9%A4&quot;&gt;後續追蹤&lt;/a&gt;。DPIP 蒐集的使用者相關資料經確認&lt;strong&gt;未受影響&lt;/strong&gt;，經過這四台的流量被側錄的可能性已基本排除。&lt;/p&gt;
&lt;p&gt;這些資料本來就是去識別化。側錄檢查的依據在&lt;a href=&quot;#%E5%BD%B1%E9%9F%BF%E7%AF%84%E5%9C%8D&quot;&gt;影響範圍&lt;/a&gt;。設備上的憑證與金鑰一律視為已洩漏並已輪換。內網服務的認證資訊無法排除曾被讀取，能輪換的已經輪換，資料平台也補上了認證。&lt;/p&gt;
&lt;p&gt;四台的系統版本落後已公開的安全性修補 3 到 6 個月，SSH 管理介面沒有限制來源。這是我們的疏失。對這段時間使用 DPIP 的使用者，我們道歉。&lt;/p&gt;
&lt;aside aria-label=&quot;提示&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;提示&lt;/p&gt;&lt;div&gt;&lt;p&gt;使用 DPIP 的人目前不需要採取任何動作。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;

&lt;div&gt;&lt;h2 id=&quot;影響範圍&quot;&gt;影響範圍&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;被入侵的是 &lt;code dir=&quot;auto&quot;&gt;core-tnn1&lt;/code&gt;、&lt;code dir=&quot;auto&quot;&gt;node-tnn1&lt;/code&gt;、&lt;code dir=&quot;auto&quot;&gt;node-tnn2&lt;/code&gt;、&lt;code dir=&quot;auto&quot;&gt;lb-khh1&lt;/code&gt;。四台都是路由器或負載平衡，負責把封包轉送到目的地，上面沒有應用程式的使用者資料庫。攻擊者拿到的是這四台的管理權。&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;項目&lt;/th&gt;
&lt;th&gt;狀態&lt;/th&gt;
&lt;th&gt;依據&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;DPIP 蒐集的使用者相關資料&lt;/td&gt;
&lt;td&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;未受影響。資料本即去識別化&lt;/td&gt;
&lt;td&gt;經確認&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;經過這些設備的網路流量&lt;/td&gt;
&lt;td&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;被側錄的可能性已基本排除&lt;/td&gt;
&lt;td&gt;見下方&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;設備上的憑證、VPN 金鑰、私鑰&lt;/td&gt;
&lt;td&gt;&lt;svg data-status=&quot;error&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m15 9-6 6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m9 9 6 6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;一律視為已洩漏，已全部輪換&lt;/td&gt;
&lt;td&gt;9 把 WireGuard 私鑰、4 組 CA、5 個 &lt;code dir=&quot;auto&quot;&gt;.ovpn&lt;/code&gt;、4 把 SSH 主機金鑰&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;內網服務的認證資訊&lt;/td&gt;
&lt;td&gt;&lt;svg data-status=&quot;warn&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 9v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17h.01&quot;&gt;&lt;/path&gt;&lt;/svg&gt;無法排除曾被讀取，已輪換或加上認證&lt;/td&gt;
&lt;td&gt;見&lt;a href=&quot;#%E5%B0%9A%E5%BE%85%E7%A2%BA%E8%AA%8D%E7%9A%84%E4%BA%8B%E9%A0%85&quot;&gt;尚待確認的事項&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div&gt;&lt;h3 id=&quot;流量側錄&quot;&gt;流量側錄&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;植入的排程帶有 &lt;code dir=&quot;auto&quot;&gt;sniff&lt;/code&gt; 權限，流量也會經過這四台。我們把 RouterOS 上能側錄流量的做法列出來，核對每一種在取證當下的狀態，並確認改設定會留下紀錄，而且那些紀錄沒有被新資料擠掉。&lt;/p&gt;
&lt;p&gt;下表除了最後一種，都要改設定才有用。&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;側錄手法&lt;/th&gt;
&lt;th&gt;需改設定&lt;/th&gt;
&lt;th&gt;取證時的實際狀態&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;/tool sniffer&lt;/code&gt; 設過濾器後啟動&lt;/td&gt;
&lt;td&gt;需要&lt;/td&gt;
&lt;td&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;22 個過濾欄位全部為空（出廠預設）&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;/tool sniffer&lt;/code&gt; 串流外送至遠端&lt;/td&gt;
&lt;td&gt;需要&lt;/td&gt;
&lt;td&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;code dir=&quot;auto&quot;&gt;streaming-enabled=no&lt;/code&gt;、目標為預設值&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;/tool sniffer&lt;/code&gt; 存檔&lt;/td&gt;
&lt;td&gt;需要&lt;/td&gt;
&lt;td&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;檔名欄位空白；設備上無任何 &lt;code dir=&quot;auto&quot;&gt;.pcap&lt;/code&gt; / &lt;code dir=&quot;auto&quot;&gt;.cap&lt;/code&gt; 檔&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;/tool sniffer&lt;/code&gt; 放大緩衝區&lt;/td&gt;
&lt;td&gt;需要&lt;/td&gt;
&lt;td&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;code dir=&quot;auto&quot;&gt;100KiB&lt;/code&gt;（出廠預設，未動）&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;防火牆 &lt;code dir=&quot;auto&quot;&gt;action=sniff-tzsp&lt;/code&gt; 鏡像至遠端收集器&lt;/td&gt;
&lt;td&gt;需要&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;0 條規則&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;交換晶片埠鏡像&lt;/td&gt;
&lt;td&gt;需要&lt;/td&gt;
&lt;td&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;來源 / 目標皆為 &lt;code dir=&quot;auto&quot;&gt;none&lt;/code&gt;（預設）&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NetFlow 外送&lt;/td&gt;
&lt;td&gt;需要&lt;/td&gt;
&lt;td&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;四台皆 &lt;code dir=&quot;auto&quot;&gt;enabled=no&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;容器內執行 tcpdump&lt;/td&gt;
&lt;td&gt;需要&lt;/td&gt;
&lt;td&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;container 套件四台皆未安裝&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;/tool sniffer quick&lt;/code&gt;（純執行期）&lt;/td&gt;
&lt;td&gt;不需要&lt;/td&gt;
&lt;td&gt;&lt;svg data-status=&quot;warn&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 9v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17h.01&quot;&gt;&lt;/path&gt;&lt;/svg&gt;無法從設定排除，見下方&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;攻擊者改日誌時留下 32 筆 &lt;code dir=&quot;auto&quot;&gt;log action changed&lt;/code&gt;，用的是 &lt;code dir=&quot;auto&quot;&gt;/system logging action set&lt;/code&gt;。&lt;code dir=&quot;auto&quot;&gt;/system … set&lt;/code&gt; 這類操作會被記下來，&lt;code dir=&quot;auto&quot;&gt;/tool sniffer set&lt;/code&gt; 也一樣。&lt;/p&gt;
&lt;p&gt;自 09/15 起，四台合計 47 筆這類操作，用來確認這段期間沒有側錄相關的設定變更。最早的入侵痕跡在 09/02。日誌被改到幾乎留不住是 09/15 到 09/18；09/10 起後門帳號已經在改日誌設定，見&lt;a href=&quot;#%E7%99%BC%E7%94%9F%E7%B6%93%E9%81%8E&quot;&gt;發生經過&lt;/a&gt;。&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;操作&lt;/th&gt;
&lt;th&gt;筆數&lt;/th&gt;
&lt;th&gt;性質&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;修改日誌輸出設定&lt;/td&gt;
&lt;td&gt;32&lt;/td&gt;
&lt;td&gt;反取證&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;修改日誌規則&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;反取證&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;新增使用者&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;建立後門帳號&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;從排程移除腳本&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;惡意程式的重複投放設計&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;與側錄相關&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;無&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;四台紀錄緩衝區的最舊一筆都早於 09/15，所以 09/15 之後的紀錄沒有被捲掉。&lt;code dir=&quot;auto&quot;&gt;node-tnn2&lt;/code&gt; 最早只到 09/03，&lt;code dir=&quot;auto&quot;&gt;lb-khh1&lt;/code&gt; 最早到 09/02。&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;節點&lt;/th&gt;
&lt;th&gt;紀錄筆數&lt;/th&gt;
&lt;th&gt;最舊紀錄日期&lt;/th&gt;
&lt;th&gt;最舊紀錄早於 09/15&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;core-tnn1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;101&lt;/td&gt;
&lt;td&gt;2026-06-30&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;是&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;node-tnn1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;40&lt;/td&gt;
&lt;td&gt;2026-07-02&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;是&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;node-tnn2&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;22&lt;/td&gt;
&lt;td&gt;2026-09-03&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;是&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;lb-khh1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;19&lt;/td&gt;
&lt;td&gt;2026-09-02&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;是&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;code dir=&quot;auto&quot;&gt;/tool sniffer quick&lt;/code&gt; 不改設定，沒辦法用設定紀錄排除。預設緩衝是 &lt;code dir=&quot;auto&quot;&gt;100KiB&lt;/code&gt;，單封包上限 2048 bytes，大約只能留 50 到 100 個封包，而且沒有過濾器，抓到的是隨機流量。要抓到特定服務的憑證，就得設過濾器或把緩衝加大，那就要改設定。和側錄有關的設定變更是 0 筆。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;發生經過&quot;&gt;發生經過&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;從 09/02 的最早痕跡到 09/18 發現，大約 16 天。09/02 開始的這波掃描與攻擊後來被稱為 MikroTrick。&lt;code dir=&quot;auto&quot;&gt;node-tnn1&lt;/code&gt; 的系統時鐘當時慢了 6 小時 45 分（NTP 未同步，期間沒有重開機，偏差是固定的），這台的時間在下文都已換算成臺灣時間。&lt;/p&gt;
&lt;figure lang=&quot;zh-TW&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;div data-xt-zoomable=&quot;&quot; aria-label=&quot;四台設備遭入侵的經過&quot; aria-describedby=&quot;xt-diagram-desc-4o4eq2&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;svg viewBox=&quot;0 0 640 581&quot; role=&quot;img&quot; aria-label=&quot;四台設備遭入侵的經過&quot;&gt;&lt;rect x=&quot;0&quot; y=&quot;150&quot; width=&quot;640&quot; height=&quot;120&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;0&quot; y=&quot;350&quot; width=&quot;640&quot; height=&quot;60&quot;&gt;&lt;/rect&gt;&lt;line x1=&quot;92&quot; x2=&quot;92&quot; y1=&quot;50&quot; y2=&quot;510&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;122.89&quot; x2=&quot;122.89&quot; y1=&quot;50&quot; y2=&quot;510&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;153.78&quot; x2=&quot;153.78&quot; y1=&quot;50&quot; y2=&quot;510&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;184.66&quot; x2=&quot;184.66&quot; y1=&quot;50&quot; y2=&quot;510&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;215.55&quot; x2=&quot;215.55&quot; y1=&quot;50&quot; y2=&quot;510&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;246.44&quot; x2=&quot;246.44&quot; y1=&quot;50&quot; y2=&quot;510&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;277.33&quot; x2=&quot;277.33&quot; y1=&quot;50&quot; y2=&quot;510&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;308.77&quot; x2=&quot;308.77&quot; y1=&quot;50&quot; y2=&quot;510&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;353.59&quot; x2=&quot;353.59&quot; y1=&quot;50&quot; y2=&quot;510&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;398.42&quot; x2=&quot;398.42&quot; y1=&quot;50&quot; y2=&quot;510&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;443.24&quot; x2=&quot;443.24&quot; y1=&quot;50&quot; y2=&quot;510&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;488.06&quot; x2=&quot;488.06&quot; y1=&quot;50&quot; y2=&quot;510&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;532.88&quot; x2=&quot;532.88&quot; y1=&quot;50&quot; y2=&quot;510&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;577.71&quot; x2=&quot;577.71&quot; y1=&quot;50&quot; y2=&quot;510&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;622.53&quot; x2=&quot;622.53&quot; y1=&quot;50&quot; y2=&quot;510&quot;&gt;&lt;/line&gt;&lt;g&gt;&lt;rect x=&quot;375.26&quot; y=&quot;41&quot; width=&quot;14.07&quot; height=&quot;469&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M375.26 45V41H389.33V45&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g&gt;&lt;rect x=&quot;375.26&quot; y=&quot;21&quot; width=&quot;250.57&quot; height=&quot;489&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M375.26 25V21H625.83V25&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g&gt;&lt;rect x=&quot;115.17&quot; y=&quot;21&quot; width=&quot;223.8&quot; height=&quot;489&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M115.17 25V21H338.96V25&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;line x1=&quot;92&quot; x2=&quot;292.77&quot; y1=&quot;110&quot; y2=&quot;110&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;308.77&quot; x2=&quot;630&quot; y1=&quot;110&quot; y2=&quot;110&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;92&quot; x2=&quot;292.77&quot; y1=&quot;210&quot; y2=&quot;210&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;308.77&quot; x2=&quot;630&quot; y1=&quot;210&quot; y2=&quot;210&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;92&quot; x2=&quot;292.77&quot; y1=&quot;310&quot; y2=&quot;310&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;308.77&quot; x2=&quot;630&quot; y1=&quot;310&quot; y2=&quot;310&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;92&quot; x2=&quot;292.77&quot; y1=&quot;390&quot; y2=&quot;390&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;308.77&quot; x2=&quot;630&quot; y1=&quot;390&quot; y2=&quot;390&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;92&quot; x2=&quot;292.77&quot; y1=&quot;470&quot; y2=&quot;470&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;308.77&quot; x2=&quot;630&quot; y1=&quot;470&quot; y2=&quot;470&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;625.83&quot; x2=&quot;625.83&quot; y1=&quot;26&quot; y2=&quot;510&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;284.77&quot; x2=&quot;284.77&quot; y1=&quot;101&quot; y2=&quot;95&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;223.27&quot; x2=&quot;223.27&quot; y1=&quot;119&quot; y2=&quot;126&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;146.05&quot; x2=&quot;146.05&quot; y1=&quot;101&quot; y2=&quot;95&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;115.94&quot; x2=&quot;115.94&quot; y1=&quot;101&quot; y2=&quot;75&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;98.94&quot; x2=&quot;98.94&quot; y1=&quot;119&quot; y2=&quot;126&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;98.94&quot; cy=&quot;110&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(91.44 102.5) scale(0.625)&quot;&gt;&lt;path d=&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 9v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;circle cx=&quot;115.94&quot; cy=&quot;110&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(108.44 102.5) scale(0.625)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;M12 16v-4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 8h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;circle cx=&quot;146.05&quot; cy=&quot;110&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(138.55 102.5) scale(0.625)&quot;&gt;&lt;path d=&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 9v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;circle cx=&quot;223.27&quot; cy=&quot;110&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(215.77 102.5) scale(0.625)&quot;&gt;&lt;path d=&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 9v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;circle cx=&quot;284.77&quot; cy=&quot;110&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(277.27 102.5) scale(0.625)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;M12 16v-4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 8h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;280.77&quot; y=&quot;91&quot;&gt;9/14&lt;/text&gt;&lt;text x=&quot;313.47&quot; y=&quot;91&quot;&gt;曝險約 260 萬台&lt;/text&gt;&lt;text x=&quot;219.27&quot; y=&quot;138&quot;&gt;9/10&lt;/text&gt;&lt;text x=&quot;251.97&quot; y=&quot;138&quot;&gt;CISA 列入 KEV&lt;/text&gt;&lt;text x=&quot;142.05&quot; y=&quot;91&quot;&gt;9/5&lt;/text&gt;&lt;text x=&quot;167.03&quot; y=&quot;91&quot;&gt;CERT Polska 公告&lt;/text&gt;&lt;text x=&quot;111.94&quot; y=&quot;71&quot;&gt;9/3&lt;/text&gt;&lt;text x=&quot;136.92&quot; y=&quot;71&quot;&gt;修補版本釋出&lt;/text&gt;&lt;text x=&quot;94.94&quot; y=&quot;138&quot;&gt;9/2&lt;/text&gt;&lt;text x=&quot;119.92&quot; y=&quot;138&quot;&gt;觀測到攻擊開始&lt;/text&gt;&lt;g&gt;&lt;rect x=&quot;618.61&quot; y=&quot;202&quot; width=&quot;6.22&quot; height=&quot;16&quot; rx=&quot;3&quot;&gt;&lt;/rect&gt;&lt;/g&gt;&lt;line x1=&quot;260.86&quot; x2=&quot;260.86&quot; y1=&quot;201&quot; y2=&quot;195&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;239&quot; x2=&quot;239&quot; y1=&quot;219&quot; y2=&quot;226&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;222&quot; x2=&quot;222&quot; y1=&quot;201&quot; y2=&quot;175&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;101.43&quot; x2=&quot;101.43&quot; y1=&quot;219&quot; y2=&quot;246&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;507.92&quot; x2=&quot;507.92&quot; y1=&quot;201&quot; y2=&quot;195&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;621.72&quot; x2=&quot;621.72&quot; y1=&quot;218&quot; y2=&quot;246&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;101.43&quot; cy=&quot;210&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(93.93 202.5) scale(0.625)&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;line x1=&quot;226.31&quot; x2=&quot;222&quot; y1=&quot;210&quot; y2=&quot;210&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;222&quot; cy=&quot;210&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(214.5 202.5) scale(0.625)&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;line x1=&quot;234.68&quot; x2=&quot;239&quot; y1=&quot;210&quot; y2=&quot;210&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;239&quot; cy=&quot;210&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(231.5 202.5) scale(0.625)&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;circle cx=&quot;260.86&quot; cy=&quot;210&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(253.36 202.5) scale(0.625)&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;circle cx=&quot;507.92&quot; cy=&quot;210&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(500.42 202.5) scale(0.625)&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;256.86&quot; y=&quot;191&quot;&gt;9/12 22:25:11&lt;/text&gt;&lt;text x=&quot;345.47&quot; y=&quot;191&quot;&gt;system 登入&lt;/text&gt;&lt;text x=&quot;235&quot; y=&quot;238&quot;&gt;9/11 05:44&lt;/text&gt;&lt;text x=&quot;304.46&quot; y=&quot;238&quot;&gt;routeradmini 改日誌設定&lt;/text&gt;&lt;text x=&quot;218&quot; y=&quot;171&quot;&gt;9/10 16:43&lt;/text&gt;&lt;text x=&quot;287.46&quot; y=&quot;171&quot;&gt;SSH 大量連線&lt;/text&gt;&lt;text x=&quot;97.43&quot; y=&quot;258&quot;&gt;9/2 14:39&lt;/text&gt;&lt;text x=&quot;159.17&quot; y=&quot;258&quot;&gt;ops 登入，最早的痕跡&lt;/text&gt;&lt;text x=&quot;433.24&quot; y=&quot;191&quot;&gt;9/17 05:19&lt;/text&gt;&lt;text x=&quot;502.71&quot; y=&quot;191&quot;&gt;新增 gabor76&lt;/text&gt;&lt;g transform=&quot;translate(341.46 247.5) scale(0.54167)&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;358.46&quot; y=&quot;258&quot;&gt;10:41 起兩條管理員 SSH 連線，我們登入時仍在&lt;/text&gt;&lt;g&gt;&lt;rect x=&quot;339.96&quot; y=&quot;302&quot; width=&quot;284.87&quot; height=&quot;16&quot; rx=&quot;3&quot;&gt;&lt;/rect&gt;&lt;/g&gt;&lt;g transform=&quot;translate(350.96 303.5) scale(0.54167)&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;367.96&quot; y=&quot;314&quot;&gt;每 3 分鐘回連 C2，共 1536 次&lt;/text&gt;&lt;line x1=&quot;338.96&quot; x2=&quot;338.96&quot; y1=&quot;301&quot; y2=&quot;295&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;102.13&quot; x2=&quot;102.13&quot; y1=&quot;301&quot; y2=&quot;295&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;596.76&quot; x2=&quot;596.76&quot; y1=&quot;301&quot; y2=&quot;295&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;617.8&quot; x2=&quot;617.8&quot; y1=&quot;319&quot; y2=&quot;326&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;102.13&quot; cy=&quot;310&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(94.63 302.5) scale(0.625)&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;circle cx=&quot;338.96&quot; cy=&quot;310&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(331.46 302.5) scale(0.625)&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;circle cx=&quot;596.76&quot; cy=&quot;310&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(589.26 302.5) scale(0.625)&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;circle cx=&quot;617.8&quot; cy=&quot;310&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(610.3 302.5) scale(0.625)&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;334.96&quot; y=&quot;291&quot;&gt;9/15 08:05&lt;/text&gt;&lt;text x=&quot;404.43&quot; y=&quot;291&quot;&gt;植入 C2&lt;/text&gt;&lt;text x=&quot;98.13&quot; y=&quot;291&quot;&gt;9/2 15:45&lt;/text&gt;&lt;text x=&quot;159.88&quot; y=&quot;291&quot;&gt;ops 登入&lt;/text&gt;&lt;text x=&quot;458.19&quot; y=&quot;291&quot;&gt;9/18 05:06&lt;/text&gt;&lt;text x=&quot;527.66&quot; y=&quot;291&quot;&gt;新增 mark65&lt;/text&gt;&lt;text x=&quot;478.69&quot; y=&quot;338&quot;&gt;9/18 10:44&lt;/text&gt;&lt;text x=&quot;548.16&quot; y=&quot;338&quot;&gt;新增 martin1&lt;/text&gt;&lt;line x1=&quot;260.87&quot; x2=&quot;260.87&quot; y1=&quot;381&quot; y2=&quot;375&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;260.87&quot; cy=&quot;390&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(253.37 382.5) scale(0.625)&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;256.87&quot; y=&quot;371&quot;&gt;9/12 22:25:49&lt;/text&gt;&lt;text x=&quot;345.47&quot; y=&quot;371&quot;&gt;system 登入，與 core-tnn1 相隔 38 秒&lt;/text&gt;&lt;line x1=&quot;248.71&quot; x2=&quot;248.71&quot; y1=&quot;461&quot; y2=&quot;455&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;231.71&quot; x2=&quot;231.71&quot; y1=&quot;479&quot; y2=&quot;486&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;214.71&quot; x2=&quot;214.71&quot; y1=&quot;461&quot; y2=&quot;435&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;226.14&quot; x2=&quot;214.71&quot; y1=&quot;470&quot; y2=&quot;470&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;214.71&quot; cy=&quot;470&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(207.21 462.5) scale(0.625)&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;circle cx=&quot;231.71&quot; cy=&quot;470&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(224.21 462.5) scale(0.625)&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;line x1=&quot;238.72&quot; x2=&quot;248.71&quot; y1=&quot;470&quot; y2=&quot;470&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;248.71&quot; cy=&quot;470&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(241.21 462.5) scale(0.625)&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;244.71&quot; y=&quot;451&quot;&gt;9/11&lt;/text&gt;&lt;text x=&quot;277.41&quot; y=&quot;451&quot;&gt;植入每日重建帳號的排程&lt;/text&gt;&lt;text x=&quot;227.71&quot; y=&quot;498&quot;&gt;9/10 22:53&lt;/text&gt;&lt;text x=&quot;297.18&quot; y=&quot;498&quot;&gt;routeradmini 改日誌設定&lt;/text&gt;&lt;text x=&quot;210.71&quot; y=&quot;431&quot;&gt;9/10 16:27&lt;/text&gt;&lt;text x=&quot;280.18&quot; y=&quot;431&quot;&gt;SSH 大量連線&lt;/text&gt;&lt;g transform=&quot;translate(517.06 26.5) scale(0.54167)&quot;&gt;&lt;path d=&quot;m21 21-4.34-4.34&quot;&gt;&lt;/path&gt;&lt;circle cx=&quot;11&quot; cy=&quot;11&quot; r=&quot;8&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;text x=&quot;534.06&quot; y=&quot;37&quot;&gt;12:53 開始取證&lt;/text&gt;&lt;g transform=&quot;translate(287.58 26.5) scale(0.54167)&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;304.58&quot; y=&quot;37&quot;&gt;4 小時內四台依序被改日誌設定&lt;/text&gt;&lt;text x=&quot;415.63&quot; y=&quot;17&quot;&gt;四台的日誌壓制反覆 20 次以上&lt;/text&gt;&lt;g transform=&quot;translate(143.51 6.5) scale(0.54167)&quot;&gt;&lt;path d=&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 9v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;160.51&quot; y=&quot;17&quot;&gt;修補釋出到植入 C2：12 天&lt;/text&gt;&lt;line x1=&quot;92&quot; x2=&quot;292.77&quot; y1=&quot;510&quot; y2=&quot;510&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;308.77&quot; x2=&quot;630&quot; y1=&quot;510&quot; y2=&quot;510&quot;&gt;&lt;/line&gt;&lt;path d=&quot;M295.77 515l4 -10M301.77 515l4 -10&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M295.77 115l4 -10M301.77 115l4 -10&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M295.77 215l4 -10M301.77 215l4 -10&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M295.77 315l4 -10M301.77 315l4 -10&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M295.77 395l4 -10M301.77 395l4 -10&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M295.77 475l4 -10M301.77 475l4 -10&quot;&gt;&lt;/path&gt;&lt;text x=&quot;80&quot; y=&quot;526&quot; text-anchor=&quot;end&quot;&gt;臺灣時間&lt;/text&gt;&lt;line x1=&quot;92&quot; x2=&quot;92&quot; y1=&quot;510&quot; y2=&quot;514&quot;&gt;&lt;/line&gt;&lt;text x=&quot;84&quot; y=&quot;526&quot;&gt;9/2&lt;/text&gt;&lt;line x1=&quot;122.89&quot; x2=&quot;122.89&quot; y1=&quot;510&quot; y2=&quot;514&quot;&gt;&lt;/line&gt;&lt;text x=&quot;112.82&quot; y=&quot;526&quot;&gt;9/4&lt;/text&gt;&lt;line x1=&quot;153.78&quot; x2=&quot;153.78&quot; y1=&quot;510&quot; y2=&quot;514&quot;&gt;&lt;/line&gt;&lt;text x=&quot;143.71&quot; y=&quot;526&quot;&gt;9/6&lt;/text&gt;&lt;line x1=&quot;184.66&quot; x2=&quot;184.66&quot; y1=&quot;510&quot; y2=&quot;514&quot;&gt;&lt;/line&gt;&lt;text x=&quot;174.6&quot; y=&quot;526&quot;&gt;9/8&lt;/text&gt;&lt;line x1=&quot;215.55&quot; x2=&quot;215.55&quot; y1=&quot;510&quot; y2=&quot;514&quot;&gt;&lt;/line&gt;&lt;text x=&quot;201.78&quot; y=&quot;526&quot;&gt;9/10&lt;/text&gt;&lt;line x1=&quot;246.44&quot; x2=&quot;246.44&quot; y1=&quot;510&quot; y2=&quot;514&quot;&gt;&lt;/line&gt;&lt;text x=&quot;235.33&quot; y=&quot;526&quot;&gt;9/12&lt;/text&gt;&lt;line x1=&quot;277.33&quot; x2=&quot;277.33&quot; y1=&quot;510&quot; y2=&quot;514&quot;&gt;&lt;/line&gt;&lt;text x=&quot;268.88&quot; y=&quot;526&quot;&gt;9/14&lt;/text&gt;&lt;line x1=&quot;308.77&quot; x2=&quot;308.77&quot; y1=&quot;510&quot; y2=&quot;514&quot;&gt;&lt;/line&gt;&lt;text x=&quot;302.43&quot; y=&quot;526&quot;&gt;00:00&lt;/text&gt;&lt;text x=&quot;302.43&quot; y=&quot;541&quot;&gt;9/15&lt;/text&gt;&lt;line x1=&quot;353.59&quot; x2=&quot;353.59&quot; y1=&quot;510&quot; y2=&quot;514&quot;&gt;&lt;/line&gt;&lt;text x=&quot;341.63&quot; y=&quot;526&quot;&gt;12:00&lt;/text&gt;&lt;line x1=&quot;398.42&quot; x2=&quot;398.42&quot; y1=&quot;510&quot; y2=&quot;514&quot;&gt;&lt;/line&gt;&lt;text x=&quot;381.82&quot; y=&quot;526&quot;&gt;00:00&lt;/text&gt;&lt;text x=&quot;381.82&quot; y=&quot;541&quot;&gt;9/16&lt;/text&gt;&lt;line x1=&quot;443.24&quot; x2=&quot;443.24&quot; y1=&quot;510&quot; y2=&quot;514&quot;&gt;&lt;/line&gt;&lt;text x=&quot;426.64&quot; y=&quot;526&quot;&gt;12:00&lt;/text&gt;&lt;line x1=&quot;488.06&quot; x2=&quot;488.06&quot; y1=&quot;510&quot; y2=&quot;514&quot;&gt;&lt;/line&gt;&lt;text x=&quot;471.46&quot; y=&quot;526&quot;&gt;00:00&lt;/text&gt;&lt;text x=&quot;471.46&quot; y=&quot;541&quot;&gt;9/17&lt;/text&gt;&lt;line x1=&quot;532.88&quot; x2=&quot;532.88&quot; y1=&quot;510&quot; y2=&quot;514&quot;&gt;&lt;/line&gt;&lt;text x=&quot;516.28&quot; y=&quot;526&quot;&gt;12:00&lt;/text&gt;&lt;line x1=&quot;577.71&quot; x2=&quot;577.71&quot; y1=&quot;510&quot; y2=&quot;514&quot;&gt;&lt;/line&gt;&lt;text x=&quot;561.11&quot; y=&quot;526&quot;&gt;00:00&lt;/text&gt;&lt;text x=&quot;561.11&quot; y=&quot;541&quot;&gt;9/18&lt;/text&gt;&lt;line x1=&quot;622.53&quot; x2=&quot;622.53&quot; y1=&quot;510&quot; y2=&quot;514&quot;&gt;&lt;/line&gt;&lt;text x=&quot;605.93&quot; y=&quot;526&quot;&gt;12:00&lt;/text&gt;&lt;g transform=&quot;translate(0 560) scale(0.58333)&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;18&quot; y=&quot;571&quot;&gt;嚴重&lt;/text&gt;&lt;g transform=&quot;translate(61 560) scale(0.58333)&quot;&gt;&lt;path d=&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 9v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;79&quot; y=&quot;571&quot;&gt;異常&lt;/text&gt;&lt;g transform=&quot;translate(122 560) scale(0.58333)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;M12 16v-4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 8h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;140&quot; y=&quot;571&quot;&gt;資訊&lt;/text&gt;&lt;/svg&gt;&lt;/div&gt;&lt;p aria-hidden=&quot;true&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;點圖可放大&lt;/p&gt;&lt;p id=&quot;xt-diagram-desc-4o4eq2&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;四台設備的入侵經過，時間從 09/02 到 09/18 中午，09/15 之前以天為單位，之後放大。外部：09/02 CERT Polska 觀測到攻擊開始，09/03 修補版本釋出，09/05 CERT Polska 公告，09/10 CISA 列入 KEV，09/14 曝險設備約 260 萬台。core-tnn1 與 node-tnn1 在 09/02 下午就有後門帳號 ops 登入；lb-khh1 與 node-tnn2 的第一筆後門帳號登入在 09/10 與 09/12。修補釋出 12 天後，09/15 08:05 node-tnn1 被植入 C2，之後每 3 分鐘回連，到取證時共 1536 次。09/15 17:48 到 21:34 四台依序被改日誌設定，到 09/18 日誌壓制反覆 20 次以上。09/17 到 09/18 上午又新增 gabor76、mark65、martin1 三個後門帳號。09/18 10:41 攻擊者在 core-tnn1 開的兩條管理員 SSH 連線，到我們 12:53 開始取證時仍在。&lt;/p&gt;&lt;figcaption data-astro-cid-fia5stjh=&quot;&quot;&gt;四台設備遭入侵的經過&lt;/figcaption&gt;&lt;/figure&gt;
&lt;section aria-labelledby=&quot;tl-wptuts&quot; data-astro-cid-z7ssoihh=&quot;&quot;&gt;&lt;header data-astro-cid-z7ssoihh=&quot;&quot;&gt;&lt;h3 id=&quot;tl-wptuts&quot; data-astro-cid-z7ssoihh=&quot;&quot;&gt;經過&lt;/h3&gt;&lt;/header&gt;&lt;ol role=&quot;list&quot; data-astro-cid-z7ssoihh=&quot;&quot;&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;warning&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 9v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17h.01&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;異常 &lt;/span&gt;&lt;time datetime=&quot;2026-09-02&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;2026-09-02&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;CERT Polska 觀測到針對 RouterOS 的攻擊開始&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;外部&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;critical&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;嚴重 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;09-02 14:39&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;後門帳號 ops 登入，最早的入侵痕跡&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;core-tnn1&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;critical&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;嚴重 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;09-02 15:45&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;後門帳號 ops 登入&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;node-tnn1&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;info&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;M12 16v-4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 8h.01&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;資訊 &lt;/span&gt;&lt;time datetime=&quot;2026-09-03&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;2026-09-03&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;MikroTik 釋出修補版本 7.24.2 / 7.23.4&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;外部&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;warning&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 9v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17h.01&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;異常 &lt;/span&gt;&lt;time datetime=&quot;2026-09-05&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;2026-09-05&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;CERT Polska 正式公告，全球 122,500 台設備曝險&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;外部&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;warning&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 9v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17h.01&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;異常 &lt;/span&gt;&lt;time datetime=&quot;2026-09-10&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;2026-09-10&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;CISA 將兩個 CVE 列入 KEV&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;外部&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;critical&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;嚴重 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;09-10 16:27 / 16:43&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;兩台各殘存的唯一一筆日誌：possible SYN flooding on tcp port 22（相距 16 分鐘，同一波 SSH 攻擊）&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;lb-khh1 / core-tnn1&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;critical&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;嚴重 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;09-10 22:53&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;後門帳號 routeradmini 登入，11 秒後開始修改日誌設定&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;lb-khh1&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;critical&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;嚴重 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;09-11 05:44&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;同一個後門帳號做同樣的事&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;core-tnn1&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;critical&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;嚴重 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;09-11&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;植入每日自動重建後門帳號的排程&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;lb-khh1&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;critical&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;嚴重 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;09-12 22:25:11 / 22:25:49&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;後門帳號 system 登入兩台，相隔 38 秒，自動化橫向移動&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;core-tnn1 / node-tnn2&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;info&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;M12 16v-4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 8h.01&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;資訊 &lt;/span&gt;&lt;time datetime=&quot;2026-09-14&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;2026-09-14&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;全球曝險設備統計約 260 萬台&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;外部&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;critical&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;嚴重 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;09-15 08:05&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;植入 C2 遠端控制程式，每 3 分鐘對外回連&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;node-tnn1&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;critical&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;嚴重 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;09-15 17:48 → 21:34&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;四台在 4 小時內被依序套用相同的日誌破壞設定&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;四台&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;critical&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;嚴重 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;09-15 → 09-18&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;日誌壓制動作被反覆執行 20 次以上&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;四台&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;critical&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;嚴重 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;09-17 05:19&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;新增後門帳號 gabor76&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;core-tnn1&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;critical&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;嚴重 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;09-18 05:06&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;新增後門帳號 mark65&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;node-tnn1&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;critical&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;嚴重 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;09-18 10:41&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;攻擊者建立兩條管理員權限的 SSH 連線&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;core-tnn1&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;critical&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;嚴重 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;09-18 10:44&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;新增後門帳號 martin1&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;node-tnn1&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/section&gt;
&lt;p&gt;&lt;code dir=&quot;auto&quot;&gt;martin1&lt;/code&gt; 在 09/18 10:44 建立，大約在我們 12:53 開始取證的 2 小時前。10:41 在 &lt;code dir=&quot;auto&quot;&gt;core-tnn1&lt;/code&gt; 上的兩條管理員 SSH 連線，我們登入時還在，已經持續 2 小時 12 分。那張清單上同時有我們的連線和攻擊者的連線。&lt;/p&gt;
&lt;figure lang=&quot;zh-TW&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;div data-xt-zoomable=&quot;&quot; aria-label=&quot;應變與之後的複查&quot; aria-describedby=&quot;xt-diagram-desc-1eqg8g9&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;svg viewBox=&quot;0 0 640 635&quot; role=&quot;img&quot; aria-label=&quot;應變與之後的複查&quot;&gt;&lt;rect x=&quot;0&quot; y=&quot;124&quot; width=&quot;640&quot; height=&quot;140&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;0&quot; y=&quot;344&quot; width=&quot;640&quot; height=&quot;100&quot;&gt;&lt;/rect&gt;&lt;line x1=&quot;95.51&quot; x2=&quot;95.51&quot; y1=&quot;4&quot; y2=&quot;564&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;152.59&quot; x2=&quot;152.59&quot; y1=&quot;4&quot; y2=&quot;564&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;209.68&quot; x2=&quot;209.68&quot; y1=&quot;4&quot; y2=&quot;564&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;266.76&quot; x2=&quot;266.76&quot; y1=&quot;4&quot; y2=&quot;564&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;323.84&quot; x2=&quot;323.84&quot; y1=&quot;4&quot; y2=&quot;564&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;380.92&quot; x2=&quot;380.92&quot; y1=&quot;4&quot; y2=&quot;564&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;438&quot; x2=&quot;438&quot; y1=&quot;4&quot; y2=&quot;564&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;487.96&quot; x2=&quot;487.96&quot; y1=&quot;4&quot; y2=&quot;564&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;531.19&quot; x2=&quot;531.19&quot; y1=&quot;4&quot; y2=&quot;564&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;583.68&quot; x2=&quot;583.68&quot; y1=&quot;4&quot; y2=&quot;564&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;626.91&quot; x2=&quot;626.91&quot; y1=&quot;4&quot; y2=&quot;564&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;86&quot; x2=&quot;438&quot; y1=&quot;64&quot; y2=&quot;64&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;454&quot; x2=&quot;630&quot; y1=&quot;64&quot; y2=&quot;64&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;86&quot; x2=&quot;438&quot; y1=&quot;204&quot; y2=&quot;204&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;454&quot; x2=&quot;630&quot; y1=&quot;204&quot; y2=&quot;204&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;86&quot; x2=&quot;438&quot; y1=&quot;304&quot; y2=&quot;304&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;454&quot; x2=&quot;630&quot; y1=&quot;304&quot; y2=&quot;304&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;86&quot; x2=&quot;438&quot; y1=&quot;404&quot; y2=&quot;404&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;454&quot; x2=&quot;630&quot; y1=&quot;404&quot; y2=&quot;404&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;86&quot; x2=&quot;438&quot; y1=&quot;504&quot; y2=&quot;504&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;454&quot; x2=&quot;630&quot; y1=&quot;504&quot; y2=&quot;504&quot;&gt;&lt;/line&gt;&lt;g&gt;&lt;rect x=&quot;104.92&quot; y=&quot;56&quot; width=&quot;21.31&quot; height=&quot;16&quot; rx=&quot;3&quot;&gt;&lt;/rect&gt;&lt;/g&gt;&lt;g&gt;&lt;rect x=&quot;229.7&quot; y=&quot;56&quot; width=&quot;93.14&quot; height=&quot;16&quot; rx=&quot;3&quot;&gt;&lt;/rect&gt;&lt;/g&gt;&lt;line x1=&quot;238.7&quot; x2=&quot;238.7&quot; y1=&quot;56&quot; y2=&quot;49&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;113.92&quot; x2=&quot;113.92&quot; y1=&quot;72&quot; y2=&quot;80&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;106.79&quot; x2=&quot;106.79&quot; y1=&quot;55&quot; y2=&quot;29&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;89.79&quot; x2=&quot;89.79&quot; y1=&quot;73&quot; y2=&quot;100&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;93.14&quot; x2=&quot;89.79&quot; y1=&quot;64&quot; y2=&quot;64&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;89.79&quot; cy=&quot;64&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(82.29 56.5) scale(0.625)&quot;&gt;&lt;path d=&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 9v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;line x1=&quot;103.44&quot; x2=&quot;106.79&quot; y1=&quot;64&quot; y2=&quot;64&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;106.79&quot; cy=&quot;64&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(99.29 56.5) scale(0.625)&quot;&gt;&lt;path d=&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 9v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform=&quot;translate(234.7 34.5) scale(0.54167)&quot;&gt;&lt;path d=&quot;m21 21-4.34-4.34&quot;&gt;&lt;/path&gt;&lt;circle cx=&quot;11&quot; cy=&quot;11&quot; r=&quot;8&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;text x=&quot;251.7&quot; y=&quot;45&quot;&gt;擴大稽核，修補資料平台認證缺口&lt;/text&gt;&lt;g transform=&quot;translate(109.92 81.5) scale(0.54167)&quot;&gt;&lt;path d=&quot;m21 21-4.34-4.34&quot;&gt;&lt;/path&gt;&lt;circle cx=&quot;11&quot; cy=&quot;11&quot; r=&quot;8&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;text x=&quot;126.92&quot; y=&quot;92&quot;&gt;取證（四台，唯讀）&lt;/text&gt;&lt;text x=&quot;102.79&quot; y=&quot;25&quot;&gt;9/18 12:50&lt;/text&gt;&lt;text x=&quot;172.26&quot; y=&quot;25&quot;&gt;確認遭植入惡意腳本&lt;/text&gt;&lt;text x=&quot;85.79&quot; y=&quot;112&quot;&gt;9/18 11:45&lt;/text&gt;&lt;text x=&quot;155.26&quot; y=&quot;112&quot;&gt;服務異常，開始排查&lt;/text&gt;&lt;g&gt;&lt;rect x=&quot;324.84&quot; y=&quot;196&quot; width=&quot;55.08&quot; height=&quot;16&quot; rx=&quot;3&quot;&gt;&lt;/rect&gt;&lt;/g&gt;&lt;line x1=&quot;333.84&quot; x2=&quot;333.84&quot; y1=&quot;196&quot; y2=&quot;189&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;209.68&quot; x2=&quot;209.68&quot; y1=&quot;213&quot; y2=&quot;220&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;150.62&quot; x2=&quot;150.62&quot; y1=&quot;195&quot; y2=&quot;169&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;133.62&quot; x2=&quot;133.62&quot; y1=&quot;213&quot; y2=&quot;240&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;116.62&quot; x2=&quot;116.62&quot; y1=&quot;195&quot; y2=&quot;149&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;128.02&quot; x2=&quot;116.62&quot; y1=&quot;204&quot; y2=&quot;204&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;116.62&quot; cy=&quot;204&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(109.12 196.5) scale(0.625)&quot;&gt;&lt;path d=&quot;M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;circle cx=&quot;133.62&quot; cy=&quot;204&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(126.12 196.5) scale(0.625)&quot;&gt;&lt;path d=&quot;M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;line x1=&quot;139.91&quot; x2=&quot;150.62&quot; y1=&quot;204&quot; y2=&quot;204&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;150.62&quot; cy=&quot;204&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(143.12 196.5) scale(0.625)&quot;&gt;&lt;path d=&quot;M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;circle cx=&quot;209.68&quot; cy=&quot;204&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(202.18 196.5) scale(0.625)&quot;&gt;&lt;path d=&quot;M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform=&quot;translate(329.84 174.5) scale(0.54167)&quot;&gt;&lt;path d=&quot;M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;346.84&quot; y=&quot;185&quot;&gt;移除 46 個檔案，建立乾淨基準備份&lt;/text&gt;&lt;text x=&quot;205.68&quot; y=&quot;232&quot;&gt;9/18–9/19&lt;/text&gt;&lt;text x=&quot;274.39&quot; y=&quot;232&quot;&gt;重建 VPN PKI，輪換 WireGuard 私鑰&lt;/text&gt;&lt;text x=&quot;146.62&quot; y=&quot;165&quot;&gt;16:40–16:50&lt;/text&gt;&lt;text x=&quot;227.1&quot; y=&quot;165&quot;&gt;RouterBOOT 重開機&lt;/text&gt;&lt;text x=&quot;129.62&quot; y=&quot;252&quot;&gt;15:56–16:10&lt;/text&gt;&lt;text x=&quot;210.1&quot; y=&quot;252&quot;&gt;升級至 7.24.4，輪換密碼&lt;/text&gt;&lt;text x=&quot;112.62&quot; y=&quot;145&quot;&gt;9/18 15:25&lt;/text&gt;&lt;text x=&quot;182.09&quot; y=&quot;145&quot;&gt;開始清理&lt;/text&gt;&lt;line x1=&quot;229.12&quot; x2=&quot;229.12&quot; y1=&quot;295&quot; y2=&quot;289&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;212.12&quot; x2=&quot;212.12&quot; y1=&quot;313&quot; y2=&quot;320&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;136.9&quot; x2=&quot;136.9&quot; y1=&quot;295&quot; y2=&quot;289&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;136.9&quot; cy=&quot;304&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(129.4 296.5) scale(0.625)&quot;&gt;&lt;path d=&quot;M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;line x1=&quot;215.23&quot; x2=&quot;212.12&quot; y1=&quot;304&quot; y2=&quot;304&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;212.12&quot; cy=&quot;304&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(204.62 296.5) scale(0.625)&quot;&gt;&lt;path d=&quot;M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;line x1=&quot;226.01&quot; x2=&quot;229.12&quot; y1=&quot;304&quot; y2=&quot;304&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;229.12&quot; cy=&quot;304&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(221.62 296.5) scale(0.625)&quot;&gt;&lt;path d=&quot;M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;225.12&quot; y=&quot;285&quot;&gt;01:43–01:49&lt;/text&gt;&lt;text x=&quot;305.59&quot; y=&quot;285&quot;&gt;記憶體日誌 65535，每週自動更新&lt;/text&gt;&lt;text x=&quot;208.12&quot; y=&quot;332&quot;&gt;9/19 00:35–00:45&lt;/text&gt;&lt;text x=&quot;319.48&quot; y=&quot;332&quot;&gt;SSH 來源白名單&lt;/text&gt;&lt;text x=&quot;80&quot; y=&quot;285&quot;&gt;9/18 16:21&lt;/text&gt;&lt;text x=&quot;149.47&quot; y=&quot;285&quot;&gt;磁碟日誌&lt;/text&gt;&lt;line x1=&quot;500.32&quot; x2=&quot;500.32&quot; y1=&quot;395&quot; y2=&quot;389&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;565.16&quot; x2=&quot;565.16&quot; y1=&quot;413&quot; y2=&quot;420&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;592.95&quot; x2=&quot;592.95&quot; y1=&quot;395&quot; y2=&quot;369&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;500.32&quot; cy=&quot;404&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(492.82 396.5) scale(0.625)&quot;&gt;&lt;path d=&quot;M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;circle cx=&quot;565.16&quot; cy=&quot;404&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(557.66 396.5) scale(0.625)&quot;&gt;&lt;path d=&quot;M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;circle cx=&quot;592.95&quot; cy=&quot;404&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(585.45 396.5) scale(0.625)&quot;&gt;&lt;path d=&quot;M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;332.65&quot; y=&quot;385&quot;&gt;10/5–10/8&lt;/text&gt;&lt;text x=&quot;401.36&quot; y=&quot;385&quot;&gt;自動升級至 7.24.5&lt;/text&gt;&lt;text x=&quot;393.45&quot; y=&quot;432&quot;&gt;10/26–10/29&lt;/text&gt;&lt;text x=&quot;477.61&quot; y=&quot;432&quot;&gt;自動升級至 7.25&lt;/text&gt;&lt;text x=&quot;417.56&quot; y=&quot;365&quot;&gt;11/4–11/10&lt;/text&gt;&lt;text x=&quot;493.99&quot; y=&quot;365&quot;&gt;自動升級至 7.25.1&lt;/text&gt;&lt;line x1=&quot;169.07&quot; x2=&quot;169.07&quot; y1=&quot;495&quot; y2=&quot;489&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;462&quot; x2=&quot;462&quot; y1=&quot;513&quot; y2=&quot;520&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;479&quot; x2=&quot;479&quot; y1=&quot;495&quot; y2=&quot;469&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;628.46&quot; x2=&quot;628.46&quot; y1=&quot;513&quot; y2=&quot;540&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;174.79&quot; x2=&quot;169.07&quot; y1=&quot;504&quot; y2=&quot;504&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;169.07&quot; cy=&quot;504&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(161.57 496.5) scale(0.625)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;line x1=&quot;180.34&quot; x2=&quot;186.07&quot; y1=&quot;504&quot; y2=&quot;504&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;186.07&quot; cy=&quot;504&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(178.57 496.5) scale(0.625)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;line x1=&quot;455.51&quot; x2=&quot;462&quot; y1=&quot;504&quot; y2=&quot;504&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;462&quot; cy=&quot;504&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(454.5 496.5) scale(0.625)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;line x1=&quot;458.63&quot; x2=&quot;479&quot; y1=&quot;504&quot; y2=&quot;504&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;479&quot; cy=&quot;504&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(471.5 496.5) scale(0.625)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;circle cx=&quot;628.46&quot; cy=&quot;504&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(620.96 496.5) scale(0.625)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;165.07&quot; y=&quot;485&quot;&gt;20:20、20:55&lt;/text&gt;&lt;text x=&quot;250.73&quot; y=&quot;485&quot;&gt;兩次再入侵嘗試被新版本擋下&lt;/text&gt;&lt;text x=&quot;259.03&quot; y=&quot;532&quot;&gt;9/20 11:44&lt;/text&gt;&lt;text x=&quot;328.5&quot; y=&quot;532&quot;&gt;重新入侵比對：無新跡象&lt;/text&gt;&lt;text x=&quot;300.3&quot; y=&quot;465&quot;&gt;9/21&lt;/text&gt;&lt;text x=&quot;333&quot; y=&quot;465&quot;&gt;第二次健康檢查：無再入侵&lt;/text&gt;&lt;text x=&quot;442.03&quot; y=&quot;552&quot;&gt;11/15&lt;/text&gt;&lt;text x=&quot;482.46&quot; y=&quot;552&quot;&gt;第三次健康檢查：無再入侵&lt;/text&gt;&lt;line x1=&quot;86&quot; x2=&quot;438&quot; y1=&quot;564&quot; y2=&quot;564&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;454&quot; x2=&quot;630&quot; y1=&quot;564&quot; y2=&quot;564&quot;&gt;&lt;/line&gt;&lt;path d=&quot;M441 569l4 -10M447 569l4 -10&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M441 69l4 -10M447 69l4 -10&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M441 209l4 -10M447 209l4 -10&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M441 309l4 -10M447 309l4 -10&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M441 409l4 -10M447 409l4 -10&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M441 509l4 -10M447 509l4 -10&quot;&gt;&lt;/path&gt;&lt;text x=&quot;74&quot; y=&quot;580&quot; text-anchor=&quot;end&quot;&gt;臺灣時間&lt;/text&gt;&lt;line x1=&quot;95.51&quot; x2=&quot;95.51&quot; y1=&quot;564&quot; y2=&quot;568&quot;&gt;&lt;/line&gt;&lt;text x=&quot;78.91&quot; y=&quot;580&quot;&gt;12:00&lt;/text&gt;&lt;text x=&quot;78.91&quot; y=&quot;595&quot;&gt;9/18&lt;/text&gt;&lt;line x1=&quot;152.59&quot; x2=&quot;152.59&quot; y1=&quot;564&quot; y2=&quot;568&quot;&gt;&lt;/line&gt;&lt;text x=&quot;136&quot; y=&quot;580&quot;&gt;18:00&lt;/text&gt;&lt;line x1=&quot;209.68&quot; x2=&quot;209.68&quot; y1=&quot;564&quot; y2=&quot;568&quot;&gt;&lt;/line&gt;&lt;text x=&quot;193.08&quot; y=&quot;580&quot;&gt;00:00&lt;/text&gt;&lt;text x=&quot;193.08&quot; y=&quot;595&quot;&gt;9/19&lt;/text&gt;&lt;line x1=&quot;266.76&quot; x2=&quot;266.76&quot; y1=&quot;564&quot; y2=&quot;568&quot;&gt;&lt;/line&gt;&lt;text x=&quot;250.16&quot; y=&quot;580&quot;&gt;06:00&lt;/text&gt;&lt;line x1=&quot;323.84&quot; x2=&quot;323.84&quot; y1=&quot;564&quot; y2=&quot;568&quot;&gt;&lt;/line&gt;&lt;text x=&quot;307.24&quot; y=&quot;580&quot;&gt;12:00&lt;/text&gt;&lt;line x1=&quot;380.92&quot; x2=&quot;380.92&quot; y1=&quot;564&quot; y2=&quot;568&quot;&gt;&lt;/line&gt;&lt;text x=&quot;364.32&quot; y=&quot;580&quot;&gt;18:00&lt;/text&gt;&lt;line x1=&quot;438&quot; x2=&quot;438&quot; y1=&quot;564&quot; y2=&quot;568&quot;&gt;&lt;/line&gt;&lt;text x=&quot;421.4&quot; y=&quot;580&quot;&gt;00:00&lt;/text&gt;&lt;text x=&quot;421.4&quot; y=&quot;595&quot;&gt;9/20&lt;/text&gt;&lt;line x1=&quot;487.96&quot; x2=&quot;487.96&quot; y1=&quot;564&quot; y2=&quot;568&quot;&gt;&lt;/line&gt;&lt;text x=&quot;474.19&quot; y=&quot;580&quot;&gt;10/1&lt;/text&gt;&lt;line x1=&quot;531.19&quot; x2=&quot;531.19&quot; y1=&quot;564&quot; y2=&quot;568&quot;&gt;&lt;/line&gt;&lt;text x=&quot;513.71&quot; y=&quot;580&quot;&gt;10/15&lt;/text&gt;&lt;line x1=&quot;583.68&quot; x2=&quot;583.68&quot; y1=&quot;564&quot; y2=&quot;568&quot;&gt;&lt;/line&gt;&lt;text x=&quot;569.91&quot; y=&quot;580&quot;&gt;11/1&lt;/text&gt;&lt;line x1=&quot;626.91&quot; x2=&quot;626.91&quot; y1=&quot;564&quot; y2=&quot;568&quot;&gt;&lt;/line&gt;&lt;text x=&quot;605.03&quot; y=&quot;580&quot;&gt;11/15&lt;/text&gt;&lt;g transform=&quot;translate(0 614) scale(0.58333)&quot;&gt;&lt;path d=&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 9v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;18&quot; y=&quot;625&quot;&gt;異常&lt;/text&gt;&lt;g transform=&quot;translate(61 614) scale(0.58333)&quot;&gt;&lt;path d=&quot;m21 21-4.34-4.34&quot;&gt;&lt;/path&gt;&lt;circle cx=&quot;11&quot; cy=&quot;11&quot; r=&quot;8&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;text x=&quot;79&quot; y=&quot;625&quot;&gt;取證&lt;/text&gt;&lt;g transform=&quot;translate(122 614) scale(0.58333)&quot;&gt;&lt;path d=&quot;M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;140&quot; y=&quot;625&quot;&gt;修正&lt;/text&gt;&lt;g transform=&quot;translate(183 614) scale(0.58333)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;201&quot; y=&quot;625&quot;&gt;已恢復&lt;/text&gt;&lt;/svg&gt;&lt;/div&gt;&lt;p aria-hidden=&quot;true&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;點圖可放大&lt;/p&gt;&lt;p id=&quot;xt-diagram-desc-1eqg8g9&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;升級後約 4 小時的兩次再入侵嘗試被新版本擋下，之後 09/20、09/21、11/15 三次複查，四台都沒有再入侵的跡象。圖分五條泳道，09/18 11:00 到 09/20 以小時為單位，之後到 11/15 以天為單位。偵測與取證：11:45 服務異常，12:50 確認遭植入惡意腳本，12:53 到 15:20 唯讀取證；09/19 02:00 到 12:00 擴大稽核，修補資料平台的認證缺口。清理與修補：15:25 開始清理，15:56 到 16:10 升級至 7.24.4 並輪換密碼，16:40 到 16:50 為了 RouterBOOT 韌體重開機，09/18 到 09/19 重建 VPN PKI、輪換 WireGuard 私鑰，09/19 12:00 到 18:00 移除 46 個檔案並建立乾淨基準備份。強化：16:21 建立磁碟日誌，09/19 00:35 到 00:45 SSH 設來源白名單，01:43 到 01:49 記憶體日誌上限拉到 65535、每週自動更新上線。自動更新在 10/5–10/8、10/26–10/29、11/4–11/10 自動升級到 7.24.5、7.25、7.25.1。驗證：20:20 與 20:55 兩次再入侵嘗試被擋下，09/20 11:44 重新入侵比對、09/21 第二次與 11/15 第三次健康檢查都沒有發現新跡象。&lt;/p&gt;&lt;figcaption data-astro-cid-fia5stjh=&quot;&quot;&gt;應變與之後的複查&lt;/figcaption&gt;&lt;/figure&gt;
&lt;section aria-labelledby=&quot;tl-fh0jyf&quot; data-astro-cid-z7ssoihh=&quot;&quot;&gt;&lt;header data-astro-cid-z7ssoihh=&quot;&quot;&gt;&lt;h3 id=&quot;tl-fh0jyf&quot; data-astro-cid-z7ssoihh=&quot;&quot;&gt;應變&lt;/h3&gt;&lt;/header&gt;&lt;ol role=&quot;list&quot; data-astro-cid-z7ssoihh=&quot;&quot;&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;warning&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 9v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17h.01&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;異常 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;09-18 11:45&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;服務異常，開始排查&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;warning&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 9v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17h.01&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;異常 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;09-18 12:50&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;確認遭植入惡意腳本&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;forensic&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;m21 21-4.34-4.34&quot;&gt;&lt;/path&gt;&lt;circle cx=&quot;11&quot; cy=&quot;11&quot; r=&quot;8&quot;&gt;&lt;/circle&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;取證 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;09-18 12:53&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;開始完整取證（四台，全程唯讀）&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;forensic&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;m21 21-4.34-4.34&quot;&gt;&lt;/path&gt;&lt;circle cx=&quot;11&quot; cy=&quot;11&quot; r=&quot;8&quot;&gt;&lt;/circle&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;取證 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;09-18 15:20&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;取證完畢，SHA256 與保管鏈建立&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;fix&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;修正 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;09-18 15:25&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;開始清理，服務陸續恢復&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;fix&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;修正 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;09-18 15:56 → 16:10&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;四台逐台升級至 7.24.4（16:00–16:06），各台升級後立即輪換管理密碼&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;fix&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;修正 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;09-18 16:21&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;四台建立磁碟日誌規則&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;fix&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;修正 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;09-18 16:40 → 16:50&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;RouterBOOT 韌體升級的重開機&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;resolved&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;已恢復 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;09-18 20:20 / 20:55&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;修補約 4 小時後，兩次 -2 再入侵嘗試被新版本擋下&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;fix&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;修正 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;09-18 → 09-19&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;VPN PKI 重建（09-18）、9 把 WireGuard 私鑰輪換（站對站 09-18、roadwarrior 09-19）&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;fix&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;修正 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;09-19 00:35 → 00:45&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;四台 SSH 管理介面設來源白名單&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;fix&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;修正 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;09-19 01:43 → 01:49&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;記憶體日誌上限拉到 65535、每週自動更新排程上線&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;forensic&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;m21 21-4.34-4.34&quot;&gt;&lt;/path&gt;&lt;circle cx=&quot;11&quot; cy=&quot;11&quot; r=&quot;8&quot;&gt;&lt;/circle&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;取證 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;09-19 02:00 → 12:00&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;擴大範圍稽核，發現資料平台的認證缺口並修補&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;fix&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;修正 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;09-19 12:00 → 18:00&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;移除 46 個受污染／調查產物檔案，建立乾淨基準備份&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;resolved&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;已恢復 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;09-20 11:44&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;重新入侵比對：四台皆無新入侵跡象&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;resolved&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;已恢復 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;09-21&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;第二次健康檢查：四台無再入侵跡象&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;resolved&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;已恢復 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;11-15&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;第三次健康檢查：四台無再入侵跡象&lt;/p&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;p&gt;見&lt;a href=&quot;#%E5%BE%8C%E7%BA%8C%E8%BF%BD%E8%B9%A4&quot;&gt;後續追蹤&lt;/a&gt;。&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/section&gt;
&lt;div&gt;&lt;h2 id=&quot;原因&quot;&gt;原因&lt;/h2&gt;&lt;/div&gt;
&lt;div&gt;&lt;h3 id=&quot;漏洞&quot;&gt;漏洞&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;2026 年 9 月公開的是六個 CVE。攻擊者可以不需要密碼就取得 RouterOS 的最高管理權限。&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;CVE&lt;/th&gt;
&lt;th&gt;攻擊面&lt;/th&gt;
&lt;th&gt;修補版本&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;CVE-2026-67276&lt;/td&gt;
&lt;td&gt;SSH 認證（RSA exponent 未驗證）&lt;/td&gt;
&lt;td&gt;7.23.4 / 7.24.2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CVE-2026-67277&lt;/td&gt;
&lt;td&gt;btest / bandwidth-test&lt;/td&gt;
&lt;td&gt;6.49.21 / 7.23.4 / 7.24.2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CVE-2026-67278&lt;/td&gt;
&lt;td&gt;TLS + SSH host-key&lt;/td&gt;
&lt;td&gt;7.23.6 / 7.24.3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CVE-2026-67279&lt;/td&gt;
&lt;td&gt;SSH rekey&lt;/td&gt;
&lt;td&gt;6.49.21 / 7.23.4 / 7.24.2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CVE-2026-67281&lt;/td&gt;
&lt;td&gt;WebFig &lt;code dir=&quot;auto&quot;&gt;/jsproxy&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;7.23.4 / 7.24.2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CVE-2026-86060&lt;/td&gt;
&lt;td&gt;SSH 登入提權&lt;/td&gt;
&lt;td&gt;6.49.21 / 7.23.4 / 7.24.2&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;code dir=&quot;auto&quot;&gt;CVE-2026-67277&lt;/code&gt; 與 &lt;code dir=&quot;auto&quot;&gt;CVE-2026-86060&lt;/code&gt; 已於 2026/09/10 被美國 CISA 列入已知遭利用漏洞清單（KEV）。&lt;/p&gt;
&lt;p&gt;實際接管是兩個漏洞串起來，全程走 SSH，不需要帳號密碼。&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;[1] CVE-2026-67276&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;RouterOS 在比對 SSH 公鑰時，只比對 key type 與 modulus，「不比對 exponent」。&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;攻擊者送出一把 exponent = 1 的公鑰，就能在沒有私鑰的情況下偽造出有效簽章&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;→ 認證通過。&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;↓&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;[2] CVE-2026-86060&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;用一個「開頭是禁用字元」的使用者名稱（例如 -2）登入，&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;RouterOS 的登入處理程式沒有正確處理參數分隔符，&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;導致這個連線可以改寫自己的權限設定&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;→ 提權成功。&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;↓&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;[3] 未認證的攻擊者取得完整 administrator 權限&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;使用者名稱以 &lt;code dir=&quot;auto&quot;&gt;-&lt;/code&gt; 開頭，是 &lt;code dir=&quot;auto&quot;&gt;CVE-2026-86060&lt;/code&gt; 的特徵。升級之後記到兩次這樣的登入，都失敗了，紀錄在&lt;a href=&quot;#%E5%86%8D%E5%85%A5%E4%BE%B5%E5%98%97%E8%A9%A6&quot;&gt;再入侵嘗試&lt;/a&gt;。&lt;/p&gt;
&lt;p&gt;&lt;code dir=&quot;auto&quot;&gt;CVE-2026-67278&lt;/code&gt; 需要 7.23.6 或 7.24.3。CERT Polska 寫明 7.23.4 與 7.24.2 的修補不完整，原文是 “Releases 7.23.4 and 7.24.2 included an incomplete fix.” 四個來源裡，只有他們寫了這件事。&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;來源&lt;/th&gt;
&lt;th&gt;標示的修補版本&lt;/th&gt;
&lt;th&gt;有沒有寫修補不完全&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;CERT Polska（原始通報者）&lt;/td&gt;
&lt;td&gt;7.23.6 / 7.24.3&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;有&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenCVE&lt;/td&gt;
&lt;td&gt;7.23.4 / 7.24.2 / 6.49.21&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;error&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m15 9-6 6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m9 9 6 6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;沒有&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rapid7&lt;/td&gt;
&lt;td&gt;7.23.4 / 7.24.2&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;error&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m15 9-6 6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m9 9 6 6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;沒有&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MikroTik 官方 supportsec 頁&lt;/td&gt;
&lt;td&gt;只列 7.25beta3 / 7.24.2 / 7.23.4 / 6.49.21&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;error&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m15 9-6 6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m9 9 6 6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;沒有&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;我們把判定線訂在 7.23.6 以上，實際升級到當時的最新穩定版 7.24.4。&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;四台的版本&quot;&gt;四台的版本&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;六個 CVE 當時都還沒修。四台的 SSH 都允許任何來源 IP 連入。&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;節點&lt;/th&gt;
&lt;th&gt;事發版本&lt;/th&gt;
&lt;th&gt;版本發布日&lt;/th&gt;
&lt;th&gt;落後&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;core-tnn1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;7.23.1&lt;/td&gt;
&lt;td&gt;2026-06-02&lt;/td&gt;
&lt;td&gt;約 3 個月&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;node-tnn2&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;7.22.2&lt;/td&gt;
&lt;td&gt;2026-04-22&lt;/td&gt;
&lt;td&gt;約 5 個月&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;node-tnn1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;7.22.1&lt;/td&gt;
&lt;td&gt;2026-03-23&lt;/td&gt;
&lt;td&gt;約 6 個月&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;lb-khh1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;7.22.1&lt;/td&gt;
&lt;td&gt;2026-03-23&lt;/td&gt;
&lt;td&gt;約 6 個月&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;四台的版本發布日都早於 09/03。09/03 釋出的修補，比 09/15 植入遠端控制程式早 12 天。當時若有每週自動更新，遠端控制程式植入前就會升到修補版本。&lt;/p&gt;
&lt;p&gt;RouterOS 有內建旗標 &lt;code dir=&quot;auto&quot;&gt;device-mode flagged&lt;/code&gt;。四台都顯示 &lt;code dir=&quot;auto&quot;&gt;no&lt;/code&gt;，四台都確認遭到入侵。原廠的說明是這個旗標只比對已文件化的指標。&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;沒有更早發現的原因&quot;&gt;沒有更早發現的原因&lt;/h3&gt;&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;沒有集中式日誌。日誌只在設備上，攻擊者一改設定，設備外面就沒有副本。這次約 80% 的證據缺口來自這裡。&lt;/li&gt;
&lt;li&gt;沒有設定變更告警。新增 25 個帳號（12 種名稱）、植入腳本與排程、修改日誌設定，都沒有通知。&lt;/li&gt;
&lt;li&gt;沒有出向流量的監控。&lt;code dir=&quot;auto&quot;&gt;node-tnn1&lt;/code&gt; 每 3 分鐘對荷蘭的 IP 送出 HTTP，連續 3 天、1536 次，沒有人看到。&lt;/li&gt;
&lt;li&gt;管理介面在公網上。設備有來源白名單，沒有用在管理介面。&lt;/li&gt;
&lt;li&gt;版本落後 3 到 6 個月。漏洞公告後 15 天仍未升級。&lt;/li&gt;
&lt;li&gt;帳號、腳本、排程沒有定期比對。公告點名的 &lt;code dir=&quot;auto&quot;&gt;ops&lt;/code&gt; 從 09/02 留到 09/18，我們才看到。&lt;/li&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;device-mode flagged&lt;/code&gt; 顯示正常，就沒有再往下查。它只比對已知指標。&lt;/li&gt;
&lt;li&gt;沒有從外面量過服務到底聽在哪裡。資料平台那兩台就是這樣，見&lt;a href=&quot;#%E8%B3%87%E6%96%99%E5%B9%B3%E5%8F%B0%E7%9A%84%E8%AA%8D%E8%AD%89%E7%BC%BA%E5%8F%A3&quot;&gt;資料平台的認證缺口&lt;/a&gt;。&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;網路設備沒有版本追蹤，沒有人隨時知道落後幾版。應用服務有建置流程與相依套件掃描，網路設備被當成裝好就不用管。集中式日誌先前沒有做，是因為還沒出過這類事。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;設備上的變更&quot;&gt;設備上的變更&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;四台上的手法不一樣。只升級或只改密碼，清不掉這些東西，見&lt;a href=&quot;#%E8%99%95%E7%BD%AE&quot;&gt;處置&lt;/a&gt;。&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;後門帳號&quot;&gt;後門帳號&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;四台合計 25 個帳號條目、12 個不重複的名稱，全部是最高權限，全部不限制來源 IP。&lt;/p&gt;
&lt;figure lang=&quot;zh-TW&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;div data-xt-zoomable=&quot;&quot; aria-label=&quot;後門帳號出現在哪幾台&quot; aria-describedby=&quot;xt-diagram-desc-16ho929&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;svg viewBox=&quot;0 0 600 450&quot; role=&quot;img&quot; aria-label=&quot;後門帳號出現在哪幾台&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;defs data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;pattern id=&quot;xt-matrix-hatch-cgy95s&quot; width=&quot;6&quot; height=&quot;6&quot; patternUnits=&quot;userSpaceOnUse&quot; patternTransform=&quot;rotate(45)&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;rect width=&quot;6&quot; height=&quot;6&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;line x1=&quot;1&quot; y1=&quot;0&quot; x2=&quot;1&quot; y2=&quot;6&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/line&gt;&lt;/pattern&gt;&lt;/defs&gt;&lt;rect x=&quot;-4.5&quot; y=&quot;256.5&quot; width=&quot;609&quot; height=&quot;33&quot; rx=&quot;6&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;-4.5&quot; y=&quot;289.5&quot; width=&quot;609&quot; height=&quot;33&quot; rx=&quot;6&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;-4.5&quot; y=&quot;322.5&quot; width=&quot;609&quot; height=&quot;33&quot; rx=&quot;6&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;-4.5&quot; y=&quot;355.5&quot; width=&quot;609&quot; height=&quot;33&quot; rx=&quot;6&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;-4.5&quot; y=&quot;388.5&quot; width=&quot;609&quot; height=&quot;33&quot; rx=&quot;6&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;154.86&quot; font-size=&quot;12&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;154.86&quot; y=&quot;18&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;core-tnn1&lt;/tspan&gt;&lt;/text&gt;&lt;text x=&quot;240.33&quot; font-size=&quot;12&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;240.33&quot; y=&quot;18&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;node-tnn2&lt;/tspan&gt;&lt;/text&gt;&lt;text x=&quot;325.8&quot; font-size=&quot;12&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;325.8&quot; y=&quot;18&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;node-tnn1&lt;/tspan&gt;&lt;/text&gt;&lt;text x=&quot;411.26&quot; font-size=&quot;12&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;411.26&quot; y=&quot;18&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;lb-khh1&lt;/tspan&gt;&lt;/text&gt;&lt;text font-size=&quot;11.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;1.5&quot; y=&quot;18&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;帳號&lt;/tspan&gt;&lt;/text&gt;&lt;text font-size=&quot;12&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;466.5&quot; y=&quot;18&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;出現的台數&lt;/tspan&gt;&lt;/text&gt;&lt;text font-size=&quot;13&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;1.5&quot; y=&quot;46.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;saryn&lt;/tspan&gt;&lt;/text&gt;&lt;text font-size=&quot;13&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;1.5&quot; y=&quot;79.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;SystemMikrotik&lt;/tspan&gt;&lt;/text&gt;&lt;text font-size=&quot;13&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;1.5&quot; y=&quot;112.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;routeradmin&lt;/tspan&gt;&lt;/text&gt;&lt;text font-size=&quot;13&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;1.5&quot; y=&quot;145.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;ops&lt;/tspan&gt;&lt;/text&gt;&lt;text font-size=&quot;13&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;1.5&quot; y=&quot;178.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;routeradmini&lt;/tspan&gt;&lt;/text&gt;&lt;text font-size=&quot;13&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;1.5&quot; y=&quot;211.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;system&lt;/tspan&gt;&lt;/text&gt;&lt;text font-size=&quot;13&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;1.5&quot; y=&quot;244.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;test&lt;/tspan&gt;&lt;/text&gt;&lt;text font-size=&quot;13&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;1.5&quot; y=&quot;277.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;operator&lt;/tspan&gt;&lt;/text&gt;&lt;text font-size=&quot;13&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;1.5&quot; y=&quot;310.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;gabor76&lt;/tspan&gt;&lt;/text&gt;&lt;text font-size=&quot;13&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;1.5&quot; y=&quot;343.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;mark65&lt;/tspan&gt;&lt;/text&gt;&lt;text font-size=&quot;13&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;1.5&quot; y=&quot;376.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;martin1&lt;/tspan&gt;&lt;/text&gt;&lt;text font-size=&quot;13&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;1.5&quot; y=&quot;409.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;zkadmin&lt;/tspan&gt;&lt;/text&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;saryn × core-tnn1：有&lt;/title&gt;&lt;rect x=&quot;113.63&quot; y=&quot;27&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;154.86&quot; cy=&quot;42&quot; r=&quot;6.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;saryn × node-tnn2：有&lt;/title&gt;&lt;rect x=&quot;199.1&quot; y=&quot;27&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;240.33&quot; cy=&quot;42&quot; r=&quot;6.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;saryn × node-tnn1：有&lt;/title&gt;&lt;rect x=&quot;284.57&quot; y=&quot;27&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;325.8&quot; cy=&quot;42&quot; r=&quot;6.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;saryn × lb-khh1：有&lt;/title&gt;&lt;rect x=&quot;370.03&quot; y=&quot;27&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;411.26&quot; cy=&quot;42&quot; r=&quot;6.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;SystemMikrotik × core-tnn1：有&lt;/title&gt;&lt;rect x=&quot;113.63&quot; y=&quot;60&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;154.86&quot; cy=&quot;75&quot; r=&quot;6.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;SystemMikrotik × node-tnn2：有&lt;/title&gt;&lt;rect x=&quot;199.1&quot; y=&quot;60&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;240.33&quot; cy=&quot;75&quot; r=&quot;6.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;SystemMikrotik × node-tnn1：有&lt;/title&gt;&lt;rect x=&quot;284.57&quot; y=&quot;60&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;325.8&quot; cy=&quot;75&quot; r=&quot;6.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;SystemMikrotik × lb-khh1：有&lt;/title&gt;&lt;rect x=&quot;370.03&quot; y=&quot;60&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;411.26&quot; cy=&quot;75&quot; r=&quot;6.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;routeradmin × core-tnn1：有&lt;/title&gt;&lt;rect x=&quot;113.63&quot; y=&quot;93&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;154.86&quot; cy=&quot;108&quot; r=&quot;6.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;routeradmin × node-tnn2：有&lt;/title&gt;&lt;rect x=&quot;199.1&quot; y=&quot;93&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;240.33&quot; cy=&quot;108&quot; r=&quot;6.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;routeradmin × node-tnn1：有&lt;/title&gt;&lt;rect x=&quot;284.57&quot; y=&quot;93&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;325.8&quot; cy=&quot;108&quot; r=&quot;6.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;routeradmin × lb-khh1：有&lt;/title&gt;&lt;rect x=&quot;370.03&quot; y=&quot;93&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;411.26&quot; cy=&quot;108&quot; r=&quot;6.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;ops × core-tnn1：有&lt;/title&gt;&lt;rect x=&quot;113.63&quot; y=&quot;126&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;154.86&quot; cy=&quot;141&quot; r=&quot;6.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;ops × node-tnn2：沒有&lt;/title&gt;&lt;rect x=&quot;199.1&quot; y=&quot;126&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;240.33&quot; cy=&quot;141&quot; r=&quot;5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;ops × node-tnn1：有&lt;/title&gt;&lt;rect x=&quot;284.57&quot; y=&quot;126&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;325.8&quot; cy=&quot;141&quot; r=&quot;6.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;ops × lb-khh1：沒有&lt;/title&gt;&lt;rect x=&quot;370.03&quot; y=&quot;126&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;411.26&quot; cy=&quot;141&quot; r=&quot;5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;routeradmini × core-tnn1：有&lt;/title&gt;&lt;rect x=&quot;113.63&quot; y=&quot;159&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;154.86&quot; cy=&quot;174&quot; r=&quot;6.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;routeradmini × node-tnn2：沒有&lt;/title&gt;&lt;rect x=&quot;199.1&quot; y=&quot;159&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;240.33&quot; cy=&quot;174&quot; r=&quot;5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;routeradmini × node-tnn1：沒有&lt;/title&gt;&lt;rect x=&quot;284.57&quot; y=&quot;159&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;325.8&quot; cy=&quot;174&quot; r=&quot;5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;routeradmini × lb-khh1：有&lt;/title&gt;&lt;rect x=&quot;370.03&quot; y=&quot;159&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;411.26&quot; cy=&quot;174&quot; r=&quot;6.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;system × core-tnn1：有&lt;/title&gt;&lt;rect x=&quot;113.63&quot; y=&quot;192&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;154.86&quot; cy=&quot;207&quot; r=&quot;6.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;system × node-tnn2：有&lt;/title&gt;&lt;rect x=&quot;199.1&quot; y=&quot;192&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;240.33&quot; cy=&quot;207&quot; r=&quot;6.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;system × node-tnn1：沒有&lt;/title&gt;&lt;rect x=&quot;284.57&quot; y=&quot;192&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;325.8&quot; cy=&quot;207&quot; r=&quot;5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;system × lb-khh1：沒有&lt;/title&gt;&lt;rect x=&quot;370.03&quot; y=&quot;192&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;411.26&quot; cy=&quot;207&quot; r=&quot;5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;test × core-tnn1：有&lt;/title&gt;&lt;rect x=&quot;113.63&quot; y=&quot;225&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;154.86&quot; cy=&quot;240&quot; r=&quot;6.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;test × node-tnn2：沒有&lt;/title&gt;&lt;rect x=&quot;199.1&quot; y=&quot;225&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;240.33&quot; cy=&quot;240&quot; r=&quot;5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;test × node-tnn1：沒有&lt;/title&gt;&lt;rect x=&quot;284.57&quot; y=&quot;225&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;325.8&quot; cy=&quot;240&quot; r=&quot;5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;test × lb-khh1：有&lt;/title&gt;&lt;rect x=&quot;370.03&quot; y=&quot;225&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;411.26&quot; cy=&quot;240&quot; r=&quot;6.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;operator × core-tnn1：有&lt;/title&gt;&lt;rect x=&quot;113.63&quot; y=&quot;258&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;154.86&quot; cy=&quot;273&quot; r=&quot;6.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;operator × node-tnn2：沒有&lt;/title&gt;&lt;rect x=&quot;199.1&quot; y=&quot;258&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;240.33&quot; cy=&quot;273&quot; r=&quot;5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;operator × node-tnn1：沒有&lt;/title&gt;&lt;rect x=&quot;284.57&quot; y=&quot;258&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;325.8&quot; cy=&quot;273&quot; r=&quot;5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;operator × lb-khh1：沒有&lt;/title&gt;&lt;rect x=&quot;370.03&quot; y=&quot;258&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;411.26&quot; cy=&quot;273&quot; r=&quot;5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;gabor76 × core-tnn1：有&lt;/title&gt;&lt;rect x=&quot;113.63&quot; y=&quot;291&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;154.86&quot; cy=&quot;306&quot; r=&quot;6.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;gabor76 × node-tnn2：沒有&lt;/title&gt;&lt;rect x=&quot;199.1&quot; y=&quot;291&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;240.33&quot; cy=&quot;306&quot; r=&quot;5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;gabor76 × node-tnn1：沒有&lt;/title&gt;&lt;rect x=&quot;284.57&quot; y=&quot;291&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;325.8&quot; cy=&quot;306&quot; r=&quot;5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;gabor76 × lb-khh1：沒有&lt;/title&gt;&lt;rect x=&quot;370.03&quot; y=&quot;291&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;411.26&quot; cy=&quot;306&quot; r=&quot;5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;mark65 × core-tnn1：沒有&lt;/title&gt;&lt;rect x=&quot;113.63&quot; y=&quot;324&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;154.86&quot; cy=&quot;339&quot; r=&quot;5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;mark65 × node-tnn2：沒有&lt;/title&gt;&lt;rect x=&quot;199.1&quot; y=&quot;324&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;240.33&quot; cy=&quot;339&quot; r=&quot;5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;mark65 × node-tnn1：有&lt;/title&gt;&lt;rect x=&quot;284.57&quot; y=&quot;324&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;325.8&quot; cy=&quot;339&quot; r=&quot;6.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;mark65 × lb-khh1：沒有&lt;/title&gt;&lt;rect x=&quot;370.03&quot; y=&quot;324&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;411.26&quot; cy=&quot;339&quot; r=&quot;5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;martin1 × core-tnn1：沒有&lt;/title&gt;&lt;rect x=&quot;113.63&quot; y=&quot;357&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;154.86&quot; cy=&quot;372&quot; r=&quot;5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;martin1 × node-tnn2：沒有&lt;/title&gt;&lt;rect x=&quot;199.1&quot; y=&quot;357&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;240.33&quot; cy=&quot;372&quot; r=&quot;5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;martin1 × node-tnn1：有&lt;/title&gt;&lt;rect x=&quot;284.57&quot; y=&quot;357&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;325.8&quot; cy=&quot;372&quot; r=&quot;6.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;martin1 × lb-khh1：沒有&lt;/title&gt;&lt;rect x=&quot;370.03&quot; y=&quot;357&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;411.26&quot; cy=&quot;372&quot; r=&quot;5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;zkadmin × core-tnn1：沒有&lt;/title&gt;&lt;rect x=&quot;113.63&quot; y=&quot;390&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;154.86&quot; cy=&quot;405&quot; r=&quot;5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;zkadmin × node-tnn2：沒有&lt;/title&gt;&lt;rect x=&quot;199.1&quot; y=&quot;390&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;240.33&quot; cy=&quot;405&quot; r=&quot;5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;zkadmin × node-tnn1：沒有&lt;/title&gt;&lt;rect x=&quot;284.57&quot; y=&quot;390&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;325.8&quot; cy=&quot;405&quot; r=&quot;5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;zkadmin × lb-khh1：有&lt;/title&gt;&lt;rect x=&quot;370.03&quot; y=&quot;390&quot; width=&quot;82.47&quot; height=&quot;30&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;411.26&quot; cy=&quot;405&quot; r=&quot;6.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;saryn：4&lt;/title&gt;&lt;rect x=&quot;466.5&quot; y=&quot;36&quot; width=&quot;110.28&quot; height=&quot;12&quot; rx=&quot;2&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;598.5&quot; y=&quot;46.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;end&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;4&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;SystemMikrotik：4&lt;/title&gt;&lt;rect x=&quot;466.5&quot; y=&quot;69&quot; width=&quot;110.28&quot; height=&quot;12&quot; rx=&quot;2&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;598.5&quot; y=&quot;79.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;end&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;4&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;routeradmin：4&lt;/title&gt;&lt;rect x=&quot;466.5&quot; y=&quot;102&quot; width=&quot;110.28&quot; height=&quot;12&quot; rx=&quot;2&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;598.5&quot; y=&quot;112.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;end&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;4&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;ops：2&lt;/title&gt;&lt;rect x=&quot;466.5&quot; y=&quot;135&quot; width=&quot;55.14&quot; height=&quot;12&quot; rx=&quot;2&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;598.5&quot; y=&quot;145.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;end&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;2&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;routeradmini：2&lt;/title&gt;&lt;rect x=&quot;466.5&quot; y=&quot;168&quot; width=&quot;55.14&quot; height=&quot;12&quot; rx=&quot;2&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;598.5&quot; y=&quot;178.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;end&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;2&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;system：2&lt;/title&gt;&lt;rect x=&quot;466.5&quot; y=&quot;201&quot; width=&quot;55.14&quot; height=&quot;12&quot; rx=&quot;2&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;598.5&quot; y=&quot;211.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;end&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;2&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;test：2&lt;/title&gt;&lt;rect x=&quot;466.5&quot; y=&quot;234&quot; width=&quot;55.14&quot; height=&quot;12&quot; rx=&quot;2&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;598.5&quot; y=&quot;244.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;end&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;2&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;operator：1&lt;/title&gt;&lt;rect x=&quot;466.5&quot; y=&quot;267&quot; width=&quot;27.57&quot; height=&quot;12&quot; rx=&quot;2&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;598.5&quot; y=&quot;277.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;end&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;1&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;gabor76：1&lt;/title&gt;&lt;rect x=&quot;466.5&quot; y=&quot;300&quot; width=&quot;27.57&quot; height=&quot;12&quot; rx=&quot;2&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;598.5&quot; y=&quot;310.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;end&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;1&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;mark65：1&lt;/title&gt;&lt;rect x=&quot;466.5&quot; y=&quot;333&quot; width=&quot;27.57&quot; height=&quot;12&quot; rx=&quot;2&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;598.5&quot; y=&quot;343.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;end&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;1&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;martin1：1&lt;/title&gt;&lt;rect x=&quot;466.5&quot; y=&quot;366&quot; width=&quot;27.57&quot; height=&quot;12&quot; rx=&quot;2&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;598.5&quot; y=&quot;376.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;end&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;1&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;zkadmin：1&lt;/title&gt;&lt;rect x=&quot;466.5&quot; y=&quot;399&quot; width=&quot;27.57&quot; height=&quot;12&quot; rx=&quot;2&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;598.5&quot; y=&quot;409.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;end&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;1&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;circle cx=&quot;8.5&quot; cy=&quot;442&quot; r=&quot;5.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;text x=&quot;21.5&quot; y=&quot;446&quot; font-size=&quot;11.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;有&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;circle cx=&quot;58&quot; cy=&quot;442&quot; r=&quot;4.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/circle&gt;&lt;text x=&quot;71&quot; y=&quot;446&quot; font-size=&quot;11.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;沒有&lt;/text&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/div&gt;&lt;p aria-hidden=&quot;true&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;點圖可放大&lt;/p&gt;&lt;p id=&quot;xt-diagram-desc-16ho929&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;12 個後門帳號名稱 × 4 台設備，實心圓是有、空心圓是沒有，右邊是出現的台數，四台合計 25 個帳號條目。saryn、SystemMikrotik、routeradmin 四台都有；ops、routeradmini、system、test 各在兩台；只在一台的有 5 個（加底色）：operator 與 gabor76 在 core-tnn1，mark65 與 martin1 在 node-tnn1，zkadmin 在 lb-khh1。&lt;/p&gt;&lt;figcaption data-astro-cid-fia5stjh=&quot;&quot;&gt;後門帳號出現在哪幾台&lt;/figcaption&gt;&lt;/figure&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;帳號&lt;/th&gt;
&lt;th&gt;&lt;code dir=&quot;auto&quot;&gt;core-tnn1&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;&lt;code dir=&quot;auto&quot;&gt;node-tnn2&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;&lt;code dir=&quot;auto&quot;&gt;node-tnn1&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;&lt;code dir=&quot;auto&quot;&gt;lb-khh1&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;備註&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;ops&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;有&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;有&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;CERT Polska 公告的 MikroTrick 特徵帳號&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;saryn&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;有&lt;/td&gt;
&lt;td&gt;有&lt;/td&gt;
&lt;td&gt;有&lt;/td&gt;
&lt;td&gt;有&lt;/td&gt;
&lt;td&gt;攻擊者取證當下使用中&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;SystemMikrotik&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;有&lt;/td&gt;
&lt;td&gt;有&lt;/td&gt;
&lt;td&gt;有&lt;/td&gt;
&lt;td&gt;有&lt;/td&gt;
&lt;td&gt;偽裝成系統帳號&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;routeradmin&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;有&lt;/td&gt;
&lt;td&gt;有&lt;/td&gt;
&lt;td&gt;有&lt;/td&gt;
&lt;td&gt;有&lt;/td&gt;
&lt;td&gt;偽裝成管理帳號&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;routeradmini&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;有&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;有&lt;/td&gt;
&lt;td&gt;上一個的 typo 變體&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;system&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;有&lt;/td&gt;
&lt;td&gt;有&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;偽裝成系統帳號&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;operator&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;有&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;test&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;有&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;有&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;gabor76&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;有&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;人名型&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;mark65&lt;/code&gt; / &lt;code dir=&quot;auto&quot;&gt;martin1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;有&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;人名型&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;zkadmin&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;有&lt;/td&gt;
&lt;td&gt;刪掉會自己長回來&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;code dir=&quot;auto&quot;&gt;ops&lt;/code&gt; 是 CERT Polska 公告點名的 MikroTrick 特徵帳號，在我們兩台設備上的最後登入時間是 2026-09-02，和這波攻擊開始的日期是同一天。&lt;/p&gt;
&lt;p&gt;取證當下，&lt;code dir=&quot;auto&quot;&gt;saryn&lt;/code&gt; 有兩條還開著的管理連線，來源 IP 是 &lt;code dir=&quot;auto&quot;&gt;203.74.122.229&lt;/code&gt;。&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;遠端控制程式&quot;&gt;遠端控制程式&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;&lt;code dir=&quot;auto&quot;&gt;node-tnn1&lt;/code&gt; 上有一支會主動對外回連、接收指令的程式。&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;連線目標：&lt;code dir=&quot;auto&quot;&gt;http://85.137.54.178:8080&lt;/code&gt;（荷蘭，VSYS-AMS-COLO）&lt;/li&gt;
&lt;li&gt;頻率：每 3 分鐘一次&lt;/li&gt;
&lt;li&gt;植入時間：2026-09-15 08:04:59（設備時鐘顯示 01:19:52，該台時鐘慢 6 小時 45 分）&lt;/li&gt;
&lt;li&gt;截至取證的執行次數：1536 次&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;這支程式做兩件事：把設備的架構、系統版本、硬體型號、設備名稱回報給對方；再從對方的伺服器抓一個指令檔回來執行，執行完立刻刪掉。對方可以在這台上執行指令，而且檔案不會留下。&lt;/p&gt;
&lt;p&gt;程式第一行是它自己的註解：&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# RouterOS foothold — beacon CNC every 3 minutes WITH identity&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# Installed via /import after /tool fetch&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;註解寫了 foothold 和 beacon CNC，用途就是立足點，每 3 分鐘向指揮控制伺服器回連。&lt;/p&gt;
&lt;p&gt;&lt;code dir=&quot;auto&quot;&gt;start-time=startup&lt;/code&gt;，重開機後會再啟動。安裝時會先刪掉舊的再裝一次，所以可以重複投放；設備還連得到的時候，只把檔案刪掉不夠。整段包在忽略錯誤的區塊裡，失敗不會留下紀錄。&lt;/p&gt;
&lt;p&gt;我們沒有去連線或掃描那台 C2。碰到攻擊者的基礎設施，可能讓對方清掉痕跡或加快破壞。這部分交給司法機關與 CERT。&lt;/p&gt;
&lt;p&gt;已公開的 MikroTrick C2 有 &lt;code dir=&quot;auto&quot;&gt;82.192.72.4&lt;/code&gt; 和 &lt;code dir=&quot;auto&quot;&gt;103.102.31.18&lt;/code&gt;，這次都沒有出現。&lt;code dir=&quot;auto&quot;&gt;85.137.54.178&lt;/code&gt; 不在那份公開清單上。CERT Polska 提醒過，公開的指標清單只涵蓋已經看過的案例。&lt;/p&gt;
&lt;p&gt;下面的指標公開出來，是給其他防守方比對自己的日誌。&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# C2&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;85.137.54.178:8080          # 本案實際觀測（荷蘭 VSYS-AMS-COLO），未見於公開清單&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;82.192.72.4                 # 公開 IoC，本案未出現&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;103.102.31.18               # 公開 IoC，本案未出現&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# 攻擊者互動來源&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;203.74.122.229              # 取證當下的活躍管理連線&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# 再入侵嘗試來源（修補後，皆失敗）&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;46.101.236.154              # DigitalOcean&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;159.89.228.250              # DigitalOcean&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# 後門帳號名稱&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;ops saryn SystemMikrotik routeradmin routeradmini&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;system operator test gabor76 mark65 martin1 zkadmin&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# 持久化的檔案／排程／腳本名稱&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;boat_ros                    # C2 排程與腳本（node-tnn1）&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;daily-maint                 # 帳號復活排程（lb-khh1）&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;logrotate                   # 帳號復活腳本（lb-khh1）&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;ros-task.rsc                # C2 下載的指令檔（執行後即刪）&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# SSH 登入特徵&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;使用者名稱以 &quot;-&quot; 開頭（例如 -2）   # CVE-2026-86060 引數注入&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;div&gt;&lt;h3 id=&quot;會自行重建的帳號&quot;&gt;會自行重建的帳號&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;&lt;code dir=&quot;auto&quot;&gt;lb-khh1&lt;/code&gt; 上沒有那支 C2。排程 &lt;code dir=&quot;auto&quot;&gt;daily-maint&lt;/code&gt; 每天 03:00 執行腳本 &lt;code dir=&quot;auto&quot;&gt;logrotate&lt;/code&gt;。腳本看到後門帳號 &lt;code dir=&quot;auto&quot;&gt;zkadmin&lt;/code&gt; 不在，就用固定密碼把它建成最高權限帳號。帳號刪掉之後，隔天 03:00 會再出現。&lt;/p&gt;
&lt;p&gt;這兩個名字看起來像一般維運工作。同一台設備上，合法的排程（NTP 校時、MAC 重置、DDNS 更新、韌體升級、WAN 備援檢查）建立者都是 &lt;code dir=&quot;auto&quot;&gt;admin&lt;/code&gt;，只有這兩個的建立者是 &lt;code dir=&quot;auto&quot;&gt;0&lt;/code&gt;，表示不是使用者登入後建立的。&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;ssh-金鑰&quot;&gt;SSH 金鑰&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;&lt;code dir=&quot;auto&quot;&gt;lb-khh1&lt;/code&gt; 的 &lt;code dir=&quot;auto&quot;&gt;admin&lt;/code&gt; 上多了一把攻擊者的 SSH 金鑰，RSA 3072，指紋 &lt;code dir=&quot;auto&quot;&gt;SHA256:zJ8ypOH1lW4DtgPrO+V1qmZUJprP8WzxlJGFYIFWZt8=&lt;/code&gt;。帳號清單不會多出一個名字，排程和腳本也不會多一筆，因為金鑰掛在原有的 &lt;code dir=&quot;auto&quot;&gt;admin&lt;/code&gt; 上。金鑰登入不計失敗次數，不受暴力破解防護限制。&lt;/p&gt;
&lt;p&gt;RouterOS 的規則是，這個使用者如果已經註冊了金鑰，就拒絕密碼登入。金鑰掛上之後，我們自己的管理密碼在這台上失效。我們一開始以為密碼記錯了。&lt;/p&gt;
&lt;p&gt;這台最後改用 RouterOS 的 REST API 取證，取得 119/121 個端點、238 個證據檔。命令列匯出會隱藏密碼與私鑰，REST API 不會。這台在機密欄位上的取證，比其他三台完整。&lt;/p&gt;
&lt;p&gt;這台的 SOCKS 代理也被打開，沒有任何來源限制，並建了一個代理帳號 &lt;code dir=&quot;auto&quot;&gt;r7n2k&lt;/code&gt;。同一個帳號也出現在 &lt;code dir=&quot;auto&quot;&gt;core-tnn1&lt;/code&gt;。另外兩台的 SOCKS 帳號清單是空的，所以 &lt;code dir=&quot;auto&quot;&gt;r7n2k&lt;/code&gt; 不是我們自己的設定。&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;日誌&quot;&gt;日誌&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;四台的日誌都被改成幾乎留不住紀錄。記憶體日誌上限從原廠預設的 1000 筆改成 1 筆。登入事件、帳號建立、設定變更這幾類全部停用。沒有外部 syslog，設備外面沒有副本。結果四台各只剩 1 筆日誌。&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;節點&lt;/th&gt;
&lt;th&gt;殘存的唯一一筆&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;lb-khh1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;09-10 16:27:07&lt;/code&gt;，SSH 埠遭大量連線攻擊&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;core-tnn1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;09-10 16:43:18&lt;/code&gt;，SSH 埠遭大量連線攻擊&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;node-tnn2&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;09-14 13:35:56&lt;/code&gt;，DHCP 警告&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;node-tnn1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;09-09 17:34:34&lt;/code&gt; 排程移除紀錄（設備時鐘；實際為 09-10 00:19）&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;前兩筆相距 16 分鐘，都是對 SSH 埠的大量連線。SSH 是這次漏洞的攻擊面，2026-09-10 也是 CISA 把這些漏洞列入 KEV 的日子。其餘日誌都被清掉了。&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;設定變更歷史&quot;&gt;設定變更歷史&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;RouterOS 另有一份設定變更歷史，記的是誰在什麼時候改了什麼。這份歷史只在記憶體裡，重開機就沒有了。攻擊者沒有改過，也改不了。&lt;/p&gt;
&lt;p&gt;合法的維運變更標成 &lt;code dir=&quot;auto&quot;&gt;admin&lt;/code&gt;。惡意變更標成 &lt;code dir=&quot;auto&quot;&gt;0&lt;/code&gt; 或後門帳號名稱。裡面直接有 &lt;code dir=&quot;auto&quot;&gt;user gabor76 added&lt;/code&gt;、&lt;code dir=&quot;auto&quot;&gt;user mark65 added&lt;/code&gt;、&lt;code dir=&quot;auto&quot;&gt;user martin1 added&lt;/code&gt;。自 09/15 至 09/18，日誌壓制被反覆執行 20 次以上。&lt;/p&gt;
&lt;p&gt;我們是在重開機之前把這份歷史讀出來的。若先重開機，它會消失。&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;自動備份&quot;&gt;自動備份&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;設備上的每日自動備份沒有加密，可以解析出每個時間點的帳號清單。這條紀錄不依賴記憶體。&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;節點&lt;/th&gt;
&lt;th&gt;基準線備份時間&lt;/th&gt;
&lt;th&gt;當時的帳號&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;core-tnn1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;2026-06-13&lt;/td&gt;
&lt;td&gt;只有 &lt;code dir=&quot;auto&quot;&gt;admin&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;node-tnn1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;2026-04-05&lt;/td&gt;
&lt;td&gt;只有 &lt;code dir=&quot;auto&quot;&gt;admin&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;這兩份備份裡只有 &lt;code dir=&quot;auto&quot;&gt;admin&lt;/code&gt;。後來多出來的 11 種後門帳號名稱，備份裡都沒有。第 12 種 &lt;code dir=&quot;auto&quot;&gt;zkadmin&lt;/code&gt; 只在 &lt;code dir=&quot;auto&quot;&gt;lb-khh1&lt;/code&gt;，由攻擊者的排程建立。後門帳號的活動時間，和我們的維運操作沒有重疊。帳號清單和設定變更歷史對得起來，沒有互相矛盾的項目。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;再入侵嘗試&quot;&gt;再入侵嘗試&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;四台在 09/18 16:00 到 16:06 升級到 7.24.4。約 4 小時後，同一個登入手法又出現兩次，兩次都&lt;strong&gt;失敗&lt;/strong&gt;。&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;時間&lt;/th&gt;
&lt;th&gt;節點&lt;/th&gt;
&lt;th&gt;來源 IP&lt;/th&gt;
&lt;th&gt;來源歸屬&lt;/th&gt;
&lt;th&gt;使用者名稱&lt;/th&gt;
&lt;th&gt;結果&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;2026-09-18 20:20:44&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;node-tnn2&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;46.101.236.154&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;DigitalOcean&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;-2&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;error&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m15 9-6 6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m9 9 6 6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;失敗&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2026-09-18 20:55:16&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;lb-khh1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;159.89.228.250&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;DigitalOcean&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;-2&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;error&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m15 9-6 6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m9 9 6 6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;失敗&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;time=2026-09-18 20:20:44 topics=system,error,critical&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;message=&quot;login failure for user -2 from 46.101.236.154 via ssh&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;extra-info=&quot;app=ssh duser=-2 outcome=failure src=46.101.236.154&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;time=2026-09-18 20:55:16 topics=system,error,critical&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;message=&quot;login failure for user -2 from 159.89.228.250 via ssh&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;extra-info=&quot;app=ssh duser=-2 outcome=failure src=159.89.228.250&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;使用者名稱 &lt;code dir=&quot;auto&quot;&gt;-2&lt;/code&gt; 是 &lt;code dir=&quot;auto&quot;&gt;CVE-2026-86060&lt;/code&gt; 的引數注入特徵。&lt;/p&gt;
&lt;p&gt;當時記憶體日誌的上限還是 10000 筆，這兩筆在 15 分鐘內就被新的日誌擠出記憶體緩衝區。升級後約 20 分鐘，16:21 建立了磁碟日誌，紀錄同時寫到設備的儲存空間，不會因為緩衝區滿了就消失。隔天記憶體上限拉到 RouterOS 的最大值 65535 筆，同樣的紀錄在記憶體裡可以留 13 小時以上。&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;來源白名單之後&quot;&gt;來源白名單之後&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;09/19 00:35 到 00:45，四台的 SSH 管理介面改為只允許來源白名單。各台最後一次外部嘗試的時間如下，09/20 的外部失敗次數是 0。到 11/15 為止，登入失敗的來源都是我們自己的站台。&lt;/p&gt;
&lt;figure lang=&quot;zh-TW&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;div data-xt-zoomable=&quot;&quot; aria-label=&quot;各台每天的 SSH 外部登入失敗次數&quot; aria-describedby=&quot;xt-diagram-desc-1lk1u4v&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;svg viewBox=&quot;0 0 600 250&quot; role=&quot;img&quot; aria-label=&quot;各台每天的 SSH 外部登入失敗次數&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;defs data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;pattern id=&quot;xt-matrix-hatch-9rc3bc&quot; width=&quot;6&quot; height=&quot;6&quot; patternUnits=&quot;userSpaceOnUse&quot; patternTransform=&quot;rotate(45)&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;rect width=&quot;6&quot; height=&quot;6&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;line x1=&quot;1&quot; y1=&quot;0&quot; x2=&quot;1&quot; y2=&quot;6&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/line&gt;&lt;/pattern&gt;&lt;/defs&gt;&lt;text x=&quot;248.84&quot; font-size=&quot;12&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;248.84&quot; y=&quot;18&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;09-18&lt;/tspan&gt;&lt;/text&gt;&lt;text x=&quot;340.84&quot; font-size=&quot;12&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;340.84&quot; y=&quot;18&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;09-19&lt;/tspan&gt;&lt;/text&gt;&lt;text x=&quot;432.84&quot; font-size=&quot;12&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;432.84&quot; y=&quot;18&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;09-20&lt;/tspan&gt;&lt;/text&gt;&lt;text font-size=&quot;11.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;122.66&quot; y=&quot;18&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;節點&lt;/tspan&gt;&lt;/text&gt;&lt;text font-size=&quot;13&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;122.66&quot; y=&quot;48.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;core-tnn1&lt;/tspan&gt;&lt;/text&gt;&lt;text font-size=&quot;13&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;122.66&quot; y=&quot;85.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;node-tnn1&lt;/tspan&gt;&lt;/text&gt;&lt;text font-size=&quot;13&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;122.66&quot; y=&quot;122.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;node-tnn2&lt;/tspan&gt;&lt;/text&gt;&lt;text font-size=&quot;13&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;122.66&quot; y=&quot;159.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;lb-khh1&lt;/tspan&gt;&lt;/text&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;core-tnn1 × 09-18：140 次&lt;/title&gt;&lt;rect x=&quot;204.34&quot; y=&quot;27&quot; width=&quot;89&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;248.84&quot; y=&quot;48.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;140&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;core-tnn1 × 09-19：12 次&lt;/title&gt;&lt;rect x=&quot;296.34&quot; y=&quot;27&quot; width=&quot;89&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;340.84&quot; y=&quot;48.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;12&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;core-tnn1 × 09-20：0 次&lt;/title&gt;&lt;rect x=&quot;388.34&quot; y=&quot;27&quot; width=&quot;89&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;432.84&quot; y=&quot;48.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;0&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;node-tnn1 × 09-18：1,667 次&lt;/title&gt;&lt;rect x=&quot;204.34&quot; y=&quot;64&quot; width=&quot;89&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;248.84&quot; y=&quot;85.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;1,667&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;node-tnn1 × 09-19：120 次&lt;/title&gt;&lt;rect x=&quot;296.34&quot; y=&quot;64&quot; width=&quot;89&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;340.84&quot; y=&quot;85.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;120&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;node-tnn1 × 09-20：0 次&lt;/title&gt;&lt;rect x=&quot;388.34&quot; y=&quot;64&quot; width=&quot;89&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;432.84&quot; y=&quot;85.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;0&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;node-tnn2 × 09-18：145 次&lt;/title&gt;&lt;rect x=&quot;204.34&quot; y=&quot;101&quot; width=&quot;89&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;248.84&quot; y=&quot;122.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;145&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;node-tnn2 × 09-19：14 次&lt;/title&gt;&lt;rect x=&quot;296.34&quot; y=&quot;101&quot; width=&quot;89&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;340.84&quot; y=&quot;122.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;14&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;node-tnn2 × 09-20：0 次&lt;/title&gt;&lt;rect x=&quot;388.34&quot; y=&quot;101&quot; width=&quot;89&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;432.84&quot; y=&quot;122.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;0&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb-khh1 × 09-18：166 次&lt;/title&gt;&lt;rect x=&quot;204.34&quot; y=&quot;138&quot; width=&quot;89&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;248.84&quot; y=&quot;159.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;166&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb-khh1 × 09-19：24 次&lt;/title&gt;&lt;rect x=&quot;296.34&quot; y=&quot;138&quot; width=&quot;89&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;340.84&quot; y=&quot;159.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;24&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb-khh1 × 09-20：0 次&lt;/title&gt;&lt;rect x=&quot;388.34&quot; y=&quot;138&quot; width=&quot;89&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;432.84&quot; y=&quot;159.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;0&lt;/text&gt;&lt;/g&gt;&lt;line x1=&quot;122.66&quot; y1=&quot;176&quot; x2=&quot;477.34155999999996&quot; y2=&quot;176&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/line&gt;&lt;text font-size=&quot;13&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;122.66&quot; y=&quot;204.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;四台合計&lt;/tspan&gt;&lt;/text&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;09-18：2,118 次&lt;/title&gt;&lt;text x=&quot;248.84&quot; y=&quot;196&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;2,118&lt;/text&gt;&lt;rect x=&quot;208.34&quot; y=&quot;205&quot; width=&quot;81&quot; height=&quot;6&quot; rx=&quot;2&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;208.34&quot; y=&quot;205&quot; width=&quot;81&quot; height=&quot;6&quot; rx=&quot;2&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;09-19：170 次&lt;/title&gt;&lt;text x=&quot;340.84&quot; y=&quot;196&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;170&lt;/text&gt;&lt;rect x=&quot;300.34&quot; y=&quot;205&quot; width=&quot;81&quot; height=&quot;6&quot; rx=&quot;2&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;300.34&quot; y=&quot;205&quot; width=&quot;6.5&quot; height=&quot;6&quot; rx=&quot;2&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;09-20：0 次&lt;/title&gt;&lt;text x=&quot;432.84&quot; y=&quot;196&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;0&lt;/text&gt;&lt;rect x=&quot;392.34&quot; y=&quot;205&quot; width=&quot;81&quot; height=&quot;6&quot; rx=&quot;2&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;392.34&quot; y=&quot;205&quot; width=&quot;1.5&quot; height=&quot;6&quot; rx=&quot;2&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;/g&gt;&lt;text x=&quot;122.66&quot; y=&quot;246&quot; font-size=&quot;11.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;單位：次&lt;/text&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;text x=&quot;186.66&quot; y=&quot;246&quot; font-size=&quot;11.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;12&lt;/text&gt;&lt;rect x=&quot;206.87&quot; y=&quot;236&quot; width=&quot;14&quot; height=&quot;12&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;220.87&quot; y=&quot;236&quot; width=&quot;14&quot; height=&quot;12&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;234.87&quot; y=&quot;236&quot; width=&quot;14&quot; height=&quot;12&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;248.87&quot; y=&quot;236&quot; width=&quot;14&quot; height=&quot;12&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;262.87&quot; y=&quot;236&quot; width=&quot;14&quot; height=&quot;12&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;282.87&quot; y=&quot;246&quot; font-size=&quot;11.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;1,667&lt;/text&gt;&lt;/g&gt;&lt;text x=&quot;332.5&quot; y=&quot;246&quot; font-size=&quot;11.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;對數色階&lt;/text&gt;&lt;/svg&gt;&lt;/div&gt;&lt;p aria-hidden=&quot;true&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;點圖可放大&lt;/p&gt;&lt;p id=&quot;xt-diagram-desc-1lk1u4v&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;4 台 × 3 天的外部登入失敗次數，格子裡是次數，顏色用對數色階。09/18 node-tnn1 有 1,667 次，其他三台 140 到 166 次；09/19 降到 12 到 120 次；09/20 四台都是 0。最下面一列是四台合計：2,118、170、0。&lt;/p&gt;&lt;figcaption data-astro-cid-fia5stjh=&quot;&quot;&gt;各台每天的 SSH 外部登入失敗次數&lt;/figcaption&gt;&lt;/figure&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;節點&lt;/th&gt;
&lt;th&gt;09-18&lt;/th&gt;
&lt;th&gt;09-19&lt;/th&gt;
&lt;th&gt;09-20&lt;/th&gt;
&lt;th&gt;最後一次外部嘗試&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;core-tnn1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;140&lt;/td&gt;
&lt;td&gt;12&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;2026-09-19 00:30:06&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;node-tnn1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;1667&lt;/td&gt;
&lt;td&gt;120&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;2026-09-19 01:01:34&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;node-tnn2&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;145&lt;/td&gt;
&lt;td&gt;14&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;2026-09-19 01:41:57&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;lb-khh1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;166&lt;/td&gt;
&lt;td&gt;24&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;2026-09-19 00:37:28&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div&gt;&lt;h2 id=&quot;資料平台的認證缺口&quot;&gt;資料平台的認證缺口&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;我們在查攻擊者能不能從路由器讀取內網服務時，從網際網路對各服務埠做了連線測試，找到這件事。這兩台的問題不是這次的路由器漏洞造成的。&lt;/p&gt;
&lt;p&gt;兩台資料平台主機把叢集協調服務開在網際網路上，而且沒有認證。&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;項目&lt;/th&gt;
&lt;th&gt;狀態（09/19 發現當時）&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;etcd（叢集協調服務）&lt;code dir=&quot;auto&quot;&gt;2379&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;svg data-status=&quot;error&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m15 9-6 6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m9 9 6 6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;兩台主機對全網開放，&lt;code dir=&quot;auto&quot;&gt;GET /v2/keys/&lt;/code&gt; 直接回 200&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;etcd 寫入&lt;/td&gt;
&lt;td&gt;&lt;svg data-status=&quot;error&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m15 9-6 6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m9 9 6 6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;未認證即可 &lt;code dir=&quot;auto&quot;&gt;PUT&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Patroni（資料庫高可用管理）REST &lt;code dir=&quot;auto&quot;&gt;8008&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;svg data-status=&quot;error&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m15 9-6 6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m9 9 6 6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;未認證，&lt;code dir=&quot;auto&quot;&gt;POST /config&lt;/code&gt;、&lt;code dir=&quot;auto&quot;&gt;/switchover&lt;/code&gt;、&lt;code dir=&quot;auto&quot;&gt;/restart&lt;/code&gt; 全部開放&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;etcd 版本&lt;/td&gt;
&lt;td&gt;&lt;svg data-status=&quot;warn&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 9v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17h.01&quot;&gt;&lt;/path&gt;&lt;/svg&gt;3.5.17，含已知的認證繞過 CVE&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;任何人從網際網路上任何位置，不需要憑證，一個 HTTP 請求就能讀寫叢集協調資料，或觸發資料庫主從切換，造成服務中斷。&lt;/p&gt;
&lt;p&gt;Patroni 會從 etcd 讀設定，但本機設定檔優先於分散式設定儲存，所以從 etcd 注入的 &lt;code dir=&quot;auto&quot;&gt;pg_hba&lt;/code&gt; 不會生效。即使 etcd 可以未認證改寫，也不能藉此把 PostgreSQL 改成免密碼登入。實際影響是可讀取叢集協調資料、可觸發服務中斷。&lt;/p&gt;
&lt;p&gt;09/19 當天修補完成。下面是從外部實測的結果。&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;測試&lt;/th&gt;
&lt;th&gt;修補前&lt;/th&gt;
&lt;th&gt;修補後&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;etcd v2 &lt;code dir=&quot;auto&quot;&gt;GET /v2/keys/&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;200&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;401&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;etcd v2 &lt;code dir=&quot;auto&quot;&gt;PUT /v2/keys/…&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;200&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;401&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;etcd v3 &lt;code dir=&quot;auto&quot;&gt;POST /v3/kv/range&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;正常回應&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;etcdserver: user name is empty&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Patroni &lt;code dir=&quot;auto&quot;&gt;DELETE /switchover&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;200&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;401&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Patroni &lt;code dir=&quot;auto&quot;&gt;GET /health&lt;/code&gt;（健康探測）&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;200&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;200&lt;/code&gt;（刻意保留）&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;etcd 版本&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;3.5.17&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;3.5.32&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;修補的時候碰到這些問題：&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;etcd 的 v2 與 v3 認證是兩套。v2 鎖上之後，v3 仍然開放，要分別啟用。&lt;/li&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;guest&lt;/code&gt; 角色只在執行 &lt;code dir=&quot;auto&quot;&gt;auth enable&lt;/code&gt; 時才建立。我們先撤銷 &lt;code dir=&quot;auto&quot;&gt;guest&lt;/code&gt; 再啟用認證，得到「角色不存在」。認證雖然啟用了，未認證的讀取仍然回 200。順序要反過來：先啟用認證，再撤銷 &lt;code dir=&quot;auto&quot;&gt;guest&lt;/code&gt;。&lt;/li&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;docker compose up -d&lt;/code&gt; 不會因為掛載檔案的內容變了就重建容器。我們改了設定檔再跑 &lt;code dir=&quot;auto&quot;&gt;up -d&lt;/code&gt;，它只印 Running，沒有 Recreated，設定沒有生效。要改用 &lt;code dir=&quot;auto&quot;&gt;restart&lt;/code&gt;。&lt;/li&gt;
&lt;li&gt;Patroni 的 &lt;code dir=&quot;auto&quot;&gt;patronictl reload&lt;/code&gt; 套不到 REST 認證設定，必須重啟行程。&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;我們原先以為這些服務在內網。Docker 發佈的通訊埠走 &lt;code dir=&quot;auto&quot;&gt;FORWARD&lt;/code&gt;，不走 &lt;code dir=&quot;auto&quot;&gt;INPUT&lt;/code&gt;。主機防火牆寫在 &lt;code dir=&quot;auto&quot;&gt;INPUT&lt;/code&gt; 的規則擋不到這些埠，published port 依然對外可達。&lt;/p&gt;
&lt;figure lang=&quot;zh-TW&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;div data-xt-zoomable=&quot;&quot; aria-label=&quot;Docker 發佈的通訊埠不經過 INPUT&quot; aria-describedby=&quot;xt-diagram-desc-kb1pb2&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;svg viewBox=&quot;-6 -6 665 417&quot; width=&quot;665&quot; height=&quot;417&quot; role=&quot;img&quot; aria-label=&quot;Docker 發佈的通訊埠不經過 INPUT&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;g data-tone=&quot;warning&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M440 0 H643 A10 10 0 0 1 653 10 V395 A10 10 0 0 1 643 405 H440 A10 10 0 0 1 430 395 V10 A10 10 0 0 1 440 0 Z&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; x=&quot;442&quot; y=&quot;11&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 9v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17h.01&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;text x=&quot;460&quot; y=&quot;17.5&quot; font-size=&quot;13&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;INPUT 的規則擋不到這條路&lt;/text&gt;&lt;/g&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M106 67 L143 67&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;150,67 142,71 142,63&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M262 98 L262 152&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;262,159 258,151 266,151&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M262 217 L262 262&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;262,269 258,261 266,261&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M374 67 L435 67&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;442,67 434,71 434,63&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M541.5 87 L541.5 144&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;541.5,151 537.5,143 545.5,143&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M541.5 225 L541.5 262&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;541.5,269 537.5,261 545.5,261&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M541.5 309 L541.5 346&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;541.5,353 537.5,345 545.5,345&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M22 39 H84 A22 22 0 0 1 106 61 V73 A22 22 0 0 1 84 95 H22 A22 22 0 0 1 0 73 V61 A22 22 0 0 1 22 39 Z&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;text x=&quot;53&quot; y=&quot;58&quot; font-size=&quot;14&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;從網際網路&lt;/text&gt;&lt;text x=&quot;53&quot; y=&quot;76&quot; font-size=&quot;14&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;進來的封包&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M150 67 L166 36 H358 L374 67 L358 98 H166 Z&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;text x=&quot;262&quot; y=&quot;58&quot; font-size=&quot;14&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;目的地是 Docker&lt;/text&gt;&lt;text x=&quot;262&quot; y=&quot;76&quot; font-size=&quot;14&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;發佈的通訊埠？&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M155 159 H369 A5 5 0 0 1 374 164 V212 A5 5 0 0 1 369 217 H155 A5 5 0 0 1 150 212 V164 A5 5 0 0 1 155 159 Z&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;text x=&quot;262&quot; y=&quot;178&quot; font-size=&quot;14&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;INPUT&lt;/text&gt;&lt;text x=&quot;262&quot; y=&quot;199&quot; font-size=&quot;12.5&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;主機防火牆的規則寫在這裡&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M222 269 H302 A20 20 0 0 1 322 289 V289 A20 20 0 0 1 302 309 H222 A20 20 0 0 1 202 289 V289 A20 20 0 0 1 222 269 Z&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M222 272 H302 A17 17 0 0 1 319 289 V289 A17 17 0 0 1 302 306 H222 A17 17 0 0 1 205 289 V289 A17 17 0 0 1 222 272 Z&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;text x=&quot;262&quot; y=&quot;289&quot; font-size=&quot;14&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;主機上的服務&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M447 47 H636 A5 5 0 0 1 641 52 V82 A5 5 0 0 1 636 87 H447 A5 5 0 0 1 442 82 V52 A5 5 0 0 1 447 47 Z&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;text x=&quot;541.5&quot; y=&quot;67&quot; font-size=&quot;14&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;FORWARD&lt;/text&gt;&lt;/g&gt;&lt;g data-tone=&quot;fix&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M447 151 H636 A5 5 0 0 1 641 156 V220 A5 5 0 0 1 636 225 H447 A5 5 0 0 1 442 220 V156 A5 5 0 0 1 447 151 Z&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;text x=&quot;541.5&quot; y=&quot;170&quot; font-size=&quot;14&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;DOCKER-USER&lt;/text&gt;&lt;text x=&quot;541.5&quot; y=&quot;191&quot; font-size=&quot;12.5&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;在 Docker 自己的規則之前評估&lt;/text&gt;&lt;text x=&quot;541.5&quot; y=&quot;207&quot; font-size=&quot;12.5&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;不會被 Docker 清空&lt;/text&gt;&lt;g aria-hidden=&quot;true&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;circle cx=&quot;446&quot; cy=&quot;154&quot; r=&quot;9&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/circle&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;12&quot; height=&quot;12&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; x=&quot;440&quot; y=&quot;148&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/g&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M447 269 H636 A5 5 0 0 1 641 274 V304 A5 5 0 0 1 636 309 H447 A5 5 0 0 1 442 304 V274 A5 5 0 0 1 447 269 Z&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;text x=&quot;541.5&quot; y=&quot;289&quot; font-size=&quot;14&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;Docker 自己的規則&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M519.5 353 H563.5 A20 20 0 0 1 583.5 373 V373 A20 20 0 0 1 563.5 393 H519.5 A20 20 0 0 1 499.5 373 V373 A20 20 0 0 1 519.5 353 Z&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M519.5 356 H563.5 A17 17 0 0 1 580.5 373 V373 A17 17 0 0 1 563.5 390 H519.5 A17 17 0 0 1 502.5 373 V373 A17 17 0 0 1 519.5 356 Z&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;text x=&quot;541.5&quot; y=&quot;373&quot; font-size=&quot;14&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;容器&lt;/text&gt;&lt;/g&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;rect x=&quot;250&quot; y=&quot;113.5&quot; width=&quot;24&quot; height=&quot;21&quot; rx=&quot;5&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;262&quot; y=&quot;124&quot; font-size=&quot;12&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;否&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;rect x=&quot;391.5&quot; y=&quot;56.5&quot; width=&quot;24&quot; height=&quot;21&quot; rx=&quot;5&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;403.5&quot; y=&quot;67&quot; font-size=&quot;12&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;是&lt;/text&gt;&lt;/g&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/div&gt;&lt;p aria-hidden=&quot;true&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;點圖可放大&lt;/p&gt;&lt;p id=&quot;xt-diagram-desc-kb1pb2&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;從網際網路進來的封包，目的地是 Docker 發佈的通訊埠時，走 FORWARD 鏈，經過 DOCKER-USER 鏈與 Docker 自己的規則送到容器，不經過 INPUT 鏈，所以主機防火牆寫在 INPUT 的規則擋不到。目的地是主機上的服務時，才走 INPUT 鏈。DOCKER-USER 鏈在 Docker 自己的規則之前被評估，而且不會被 Docker 清空。&lt;/p&gt;&lt;figcaption data-astro-cid-fia5stjh=&quot;&quot;&gt;Docker 發佈的通訊埠不經過 INPUT&lt;/figcaption&gt;&lt;/figure&gt;
&lt;div&gt;&lt;h2 id=&quot;處置&quot;&gt;處置&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;只升級、只改密碼，清不掉下面這些東西。&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;後門所在&lt;/th&gt;
&lt;th&gt;升級能清除&lt;/th&gt;
&lt;th&gt;改密碼能清除&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;25 個最高權限後門帳號（12 種名稱）&lt;/td&gt;
&lt;td&gt;不能&lt;/td&gt;
&lt;td&gt;不能，帳號還在，只是密碼被改&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;C2 程式（腳本 + 排程）&lt;/td&gt;
&lt;td&gt;不能&lt;/td&gt;
&lt;td&gt;不能&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;每日自動重建的後門帳號&lt;/td&gt;
&lt;td&gt;不能&lt;/td&gt;
&lt;td&gt;不能，改密碼也會被腳本覆寫&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;注入的 SSH 金鑰&lt;/td&gt;
&lt;td&gt;不能&lt;/td&gt;
&lt;td&gt;不能，金鑰登入完全繞過密碼&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SOCKS 代理&lt;/td&gt;
&lt;td&gt;不能&lt;/td&gt;
&lt;td&gt;不能&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;被破壞的日誌設定&lt;/td&gt;
&lt;td&gt;不能&lt;/td&gt;
&lt;td&gt;不能&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;已洩漏的憑證與私鑰&lt;/td&gt;
&lt;td&gt;不能&lt;/td&gt;
&lt;td&gt;不能，必須輪換&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;C2 可重新投放&lt;/td&gt;
&lt;td&gt;不能，只要連得到就能重裝&lt;/td&gt;
&lt;td&gt;不能&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;有些順序不能對調。&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;會留下問題的順序&lt;/th&gt;
&lt;th&gt;採用的順序&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;先刪後門帳號，隔天 03:00 自動重建&lt;/td&gt;
&lt;td&gt;先移除排程，再移除腳本，然後才刪帳號&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;先重開機，C2 自動再啟動，記憶體裡的證據消失&lt;/td&gt;
&lt;td&gt;先移除 C2 的腳本與排程，才能重開機&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;先換密碼再升級，漏洞還在，改了也能再被繞過&lt;/td&gt;
&lt;td&gt;先升級切斷漏洞，再輪換憑證&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;四台切斷攻擊者存取的動作要盡量同時做，避免從還沒處理的設備跳回來。對外閘道那一台放在最後。它一中斷，對外連線會斷，也到不了其他設備。&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;項目&lt;/th&gt;
&lt;th&gt;狀態&lt;/th&gt;
&lt;th&gt;驗證方式&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;全程唯讀取證，未重開機、未清理&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;完成&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;記憶體證據完整保全&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;全部證物 SHA256 與證據保管鏈&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;完成&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;1000 份以上證據檔&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;四台升級至 7.24.4，並升級 RouterBOOT 韌體&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;完成&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;版本與韌體皆實測確認；之後由自動更新升到 7.24.5、7.25、7.25.1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;移除全部後門帳號與持久化機制&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;完成&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;四台帳號各剩 1 個（僅 &lt;code dir=&quot;auto&quot;&gt;admin&lt;/code&gt;）；排程／腳本建立者全為 &lt;code dir=&quot;auto&quot;&gt;admin&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;移除注入的 SSH 公鑰&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;完成&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;四台 SSH 公鑰數皆為 0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;關閉 SOCKS、bandwidth-server&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;完成&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;四台皆 &lt;code dir=&quot;auto&quot;&gt;enabled=no&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;輪換四台管理密碼&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;完成&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;舊密碼實測已失效&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;重建 VPN PKI（4 組新 CA 與伺服器憑證）&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;完成&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;舊 CA 簽發的憑證全部失效&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;輪換 9 把 WireGuard 私鑰&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;完成&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;雙端同步，隧道握手正常&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;重新產生四台 SSH 主機金鑰&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;完成&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;升級後重新產生，舊主機金鑰作廢&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SSH 管理介面限制來源白名單&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;完成&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;外部登入失敗歸零，見&lt;a href=&quot;#%E5%86%8D%E5%85%A5%E4%BE%B5%E5%98%97%E8%A9%A6&quot;&gt;再入侵嘗試&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;日誌強化（磁碟落地，記憶體 65535 筆）&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;完成&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;磁碟日誌留下再入侵嘗試&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;每週自動更新排程&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;完成&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;四台錯開時段；10 月到 11 月已自動完成 3 次升級&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;移除受污染的備份與調查產物&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;完成&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;46 個檔案，並建立乾淨基準備份&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;資料平台認證缺口修補&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;完成&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;外部實測 401，見&lt;a href=&quot;#%E8%B3%87%E6%96%99%E5%B9%B3%E5%8F%B0%E7%9A%84%E8%AA%8D%E8%AD%89%E7%BC%BA%E5%8F%A3&quot;&gt;資料平台的認證缺口&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;重新入侵比對&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;完成&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;09/20、09/21、11/15 三次，四台皆無新跡象&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;剩餘節點檢查&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;warn&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 9v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17h.01&quot;&gt;&lt;/path&gt;&lt;/svg&gt;未完成&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;5 台中已檢查 2 台，見&lt;a href=&quot;#%E5%B0%9A%E5%BE%85%E7%A2%BA%E8%AA%8D%E7%9A%84%E4%BA%8B%E9%A0%85&quot;&gt;尚待確認的事項&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;必須輪換的項目：&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;#&lt;/th&gt;
&lt;th&gt;項目&lt;/th&gt;
&lt;th&gt;狀態&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;全部 VPN 帳號密碼（其中確認有一組帳號在兩台設備間重用了完全相同的密碼）&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;完成&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;全部 9 把 WireGuard 私鑰&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;完成&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;VPN CA 與客戶端憑證（重簽並撤銷舊的）&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;完成&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;四台全部管理帳號密碼&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;完成&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;四台全部 SSH 主機金鑰&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;完成&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;內網主機的服務認證資訊&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;warn&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 9v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17h.01&quot;&gt;&lt;/path&gt;&lt;/svg&gt;部分完成&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div&gt;&lt;h2 id=&quot;改善措施&quot;&gt;改善措施&lt;/h2&gt;&lt;/div&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;#&lt;/th&gt;
&lt;th&gt;項目&lt;/th&gt;
&lt;th&gt;狀態&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;管理介面只留白名單與 VPN 來源。路由器於 09/19 完成；轉發到內網主機的 SSH 等服務到 10/29 才補上白名單，見&lt;a href=&quot;#%E5%BE%8C%E7%BA%8C%E8%BF%BD%E8%B9%A4&quot;&gt;後續追蹤&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;完成&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;開啟每週自動更新，四台時段錯開。10 月到 11 月已自動升級三次（7.24.5、7.25、7.25.1）&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;完成&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;關閉不需要的服務，包含這次的攻擊面之一 bandwidth-server&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;完成&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;每台設備使用自己的金鑰，不再用還原備份的方式複製設定&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;完成&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div&gt;&lt;h2 id=&quot;尚待確認的事項&quot;&gt;尚待確認的事項&lt;/h2&gt;&lt;/div&gt;
&lt;div&gt;&lt;h3 id=&quot;與路由器相連的主機&quot;&gt;與路由器相連的主機&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;透過隧道與四台路由器相連的 2 台 Linux 主機都已檢查，結果乾淨。&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;主機&lt;/th&gt;
&lt;th&gt;狀態&lt;/th&gt;
&lt;th&gt;結果&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;郵件 / WireGuard 對端主機（加拿大）&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;已檢查&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;帳號、&lt;code dir=&quot;auto&quot;&gt;sudoers&lt;/code&gt;、&lt;code dir=&quot;auto&quot;&gt;sshd_config&lt;/code&gt;、cron 皆未變動；&lt;code dir=&quot;auto&quot;&gt;authorized_keys&lt;/code&gt; 乾淨&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;WireGuard 對端主機（新加坡）&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;已檢查&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;同上&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;東京、大阪、台北三台是 VPS，沒有 RouterOS，不受這次的漏洞影響。&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;無法驗證的部分&quot;&gt;無法驗證的部分&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;日誌已被破壞，攻擊過程本身的證據無法取得。初始入侵途徑是研判，不是確證。&lt;/p&gt;
&lt;p&gt;檔案系統層的植入無法用一般指令觀察，需要離線磁碟鑑識。韌體層無法驗證；若植入在韌體層，設備自己的輸出都不可信。C2 是否曾成功下發指令無法查證，程式執行後立刻刪檔，沒有殘留。&lt;/p&gt;
&lt;p&gt;重刷方面，RouterOS 7.24beta1 起可以由另一台 RouterOS 遠端重刷，但兩台必須在同一個二層網段。我們四台實測不共用任何二層網段，所以只能到現場重刷。&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;內網服務是否被讀取&quot;&gt;內網服務是否被讀取&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;日誌被破壞的那三天（09/15 至 09/18），攻擊者可以從路由器連到內網服務讀取資料。這不需要改設定，所以不會留下痕跡。我們假設這件事發生過，因此把路由器上的憑證與金鑰全部輪換，並給資料平台加上認證。無法證明當時沒有人讀過。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;給其他維運者&quot;&gt;給其他維運者&lt;/h2&gt;&lt;/div&gt;
&lt;aside aria-label=&quot;警告&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;警告&lt;/p&gt;&lt;div&gt;&lt;p&gt;檢查自己的 RouterOS 時，先讀設定變更歷史，不要先重開機。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;div&gt;&lt;h3 id=&quot;先檢查的項目&quot;&gt;先檢查的項目&lt;/h3&gt;&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;列出帳號。CERT Polska 點過名的有 &lt;code dir=&quot;auto&quot;&gt;ops&lt;/code&gt;、&lt;code dir=&quot;auto&quot;&gt;saryn&lt;/code&gt;、&lt;code dir=&quot;auto&quot;&gt;SystemMikrotik&lt;/code&gt;、&lt;code dir=&quot;auto&quot;&gt;routeradmin&lt;/code&gt;、&lt;code dir=&quot;auto&quot;&gt;system&lt;/code&gt;、&lt;code dir=&quot;auto&quot;&gt;operator&lt;/code&gt;。&lt;/li&gt;
&lt;li&gt;列出排程與腳本，看建立者。建立者是 &lt;code dir=&quot;auto&quot;&gt;0&lt;/code&gt;、名稱又像維運工作的，優先查。&lt;/li&gt;
&lt;li&gt;列出每個使用者的 SSH 公鑰。金鑰可以掛在原有的帳號上，只看帳號清單不會發現。&lt;/li&gt;
&lt;li&gt;看日誌設定。記憶體上限被改小、規則被停用、只剩 1 筆，都要當成入侵跡象。&lt;/li&gt;
&lt;li&gt;看 SOCKS 代理有沒有被打開。&lt;/li&gt;
&lt;li&gt;先讀設定變更歷史。它在記憶體裡，重開機就沒了。&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;&lt;h3 id=&quot;處理時注意的事&quot;&gt;處理時注意的事&lt;/h3&gt;&lt;/div&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;項目&lt;/th&gt;
&lt;th&gt;說明&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;不要先重開機&lt;/td&gt;
&lt;td&gt;設定變更歷史只在記憶體，這次的時間軸靠它。C2 若設了開機啟動，重開機只會讓它再啟動&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;修補版本以原始通報者為準&lt;/td&gt;
&lt;td&gt;四個來源裡只有 CERT Polska 寫了 7.23.4 的修補不完整。原廠 supportsec 頁也沒寫&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;看建立者，不看名稱&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;daily-maint&lt;/code&gt;、&lt;code dir=&quot;auto&quot;&gt;logrotate&lt;/code&gt; 看起來像一般維運工作&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;管理密碼突然失效要查金鑰&lt;/td&gt;
&lt;td&gt;帳號掛上 SSH 金鑰後，密碼登入會被拒絕。我們一開始以為密碼記錯&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;不要只看內建入侵旗標&lt;/td&gt;
&lt;td&gt;四台的 &lt;code dir=&quot;auto&quot;&gt;device-mode flagged&lt;/code&gt; 都是 &lt;code dir=&quot;auto&quot;&gt;no&lt;/code&gt;，四台都確認被入侵&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;不要只比對公開的 IoC 清單&lt;/td&gt;
&lt;td&gt;這次的 C2 不在公開清單上。公開清單上的兩個 IP，我們沒有遇到&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;日誌要離開設備&lt;/td&gt;
&lt;td&gt;這次約 80% 的證據缺口，是因為日誌只在設備上&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;記憶體日誌之外要有磁碟日誌&lt;/td&gt;
&lt;td&gt;兩次再入侵嘗試在 15 分鐘內被擠出記憶體緩衝區，靠磁碟日誌才留下&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;先升級，再改密碼&lt;/td&gt;
&lt;td&gt;漏洞還在的時候，改密碼也可以被繞過&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;清理順序是排程、腳本、然後帳號&lt;/td&gt;
&lt;td&gt;順序反過來，帳號隔天會被腳本重建&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div&gt;&lt;h3 id=&quot;通訊埠與-wireguard&quot;&gt;通訊埠與 WireGuard&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;&lt;span&gt;&lt;svg viewBox=&quot;0 0 24 24&quot; width=&quot;1em&quot; height=&quot;1em&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M13.983 11.078h2.119a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.119a.185.185 0 00-.185.185v1.888c0 .102.083.185.185.185m-2.954-5.43h2.118a.186.186 0 00.186-.186V3.574a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m0 2.716h2.118a.187.187 0 00.186-.186V6.29a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.887c0 .102.082.185.185.186m-2.93 0h2.12a.186.186 0 00.184-.186V6.29a.185.185 0 00-.185-.185H8.1a.185.185 0 00-.185.185v1.887c0 .102.083.185.185.186m-2.964 0h2.119a.186.186 0 00.185-.186V6.29a.185.185 0 00-.185-.185H5.136a.186.186 0 00-.186.185v1.887c0 .102.084.185.186.186m5.893 2.715h2.118a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m-2.93 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.083.185.185.185m-2.964 0h2.119a.185.185 0 00.185-.185V9.006a.185.185 0 00-.184-.186h-2.12a.186.186 0 00-.186.186v1.887c0 .102.084.185.186.185m-2.92 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.082.185.185.185M23.763 9.89c-.065-.051-.672-.51-1.954-.51-.338.001-.676.03-1.01.087-.248-1.7-1.653-2.53-1.716-2.566l-.344-.199-.226.327c-.284.438-.49.922-.612 1.43-.23.97-.09 1.882.403 2.661-.595.332-1.55.413-1.744.42H.751a.751.751 0 00-.75.748 11.376 11.376 0 00.692 4.062c.545 1.428 1.355 2.48 2.41 3.124 1.18.723 3.1 1.137 5.275 1.137.983.003 1.963-.086 2.93-.266a12.248 12.248 0 003.823-1.389c.98-.567 1.86-1.288 2.61-2.136 1.252-1.418 1.998-2.997 2.553-4.4h.221c1.372 0 2.215-.549 2.68-1.009.309-.293.55-.65.707-1.046l.098-.288Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Docker&lt;/span&gt; 發佈的通訊埠走 &lt;code dir=&quot;auto&quot;&gt;FORWARD&lt;/code&gt;，不走 &lt;code dir=&quot;auto&quot;&gt;INPUT&lt;/code&gt;。&lt;code dir=&quot;auto&quot;&gt;INPUT&lt;/code&gt; 上的規則再多，published port 還是對外可達。可以把 &lt;code dir=&quot;auto&quot;&gt;ports:&lt;/code&gt; 綁在 &lt;code dir=&quot;auto&quot;&gt;127.0.0.1&lt;/code&gt;，或用 &lt;code dir=&quot;auto&quot;&gt;DOCKER-USER&lt;/code&gt; 鏈。這條鏈在 Docker 自己的規則之前被評估，而且不會被 Docker 清空。封包的路徑見&lt;a href=&quot;#%E8%B3%87%E6%96%99%E5%B9%B3%E5%8F%B0%E7%9A%84%E8%AA%8D%E8%AD%89%E7%BC%BA%E5%8F%A3&quot;&gt;資料平台的認證缺口&lt;/a&gt;的圖。&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;svg viewBox=&quot;0 0 24 24&quot; width=&quot;1em&quot; height=&quot;1em&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M23.98 11.645S24.533 0 11.735 0C.418 0 .064 11.17.064 11.17S-1.6 24 11.997 24C25.04 24 23.98 11.645 23.98 11.645zM8.155 7.576c2.4-1.47 5.469-.571 6.618 1.638.218.419.246 1.063.108 1.503-.477 1.516-1.601 2.366-3.145 2.728.455-.39.817-.832.933-1.442a2.112 2.112 0 0 0-.364-1.677 2.14 2.14 0 0 0-2.465-.75c-.95.36-1.47 1.228-1.377 2.294.087.99.839 1.632 2.245 1.876-.21.111-.372.193-.53.281a5.113 5.113 0 0 0-1.644 1.43c-.143.192-.24.208-.458.075-2.827-1.729-3.009-6.067.078-7.956zM6.04 18.258c-.455.116-.895.286-1.359.438.227-1.532 2.021-2.943 3.539-2.782a3.91 3.91 0 0 0-.74 2.072c-.504.093-.98.155-1.44.272zM15.703 3.3c.448.017.898.01 1.347.02a2.324 2.324 0 0 1 .334.047 3.249 3.249 0 0 1-.34.434c-.16.15-.341.296-.573.069-.055-.055-.187-.042-.283-.044-.447-.005-.894-.02-1.34-.003a8.323 8.323 0 0 0-1.154.118c-.072.013-.178.25-.146.338.078.207.191.435.359.567.619.49 1.277.928 1.9 1.413.604.472 1.167.99 1.51 1.7.446.928.46 1.9.267 2.877-.322 1.63-1.147 2.98-2.483 3.962-.538.395-1.205.62-1.821.903-.543.25-1.1.465-1.644.712-.98.446-1.53 1.51-1.369 2.615.149 1.015 1.04 1.862 2.059 2.037 1.223.21 2.486-.586 2.785-1.83.336-1.397-.423-2.646-1.845-3.024l-.256-.066c.38-.17.708-.291 1.012-.458q.793-.437 1.558-.925c.15-.096.231-.096.36.014.977.846 1.56 1.898 1.724 3.187.27 2.135-.74 4.096-2.646 5.101-2.948 1.555-6.557-.215-7.208-3.484-.558-2.8 1.418-5.34 3.797-5.83 1.023-.211 1.958-.637 2.685-1.425.47-.508.697-.944.775-1.141a3.165 3.165 0 0 0 .217-1.158 2.71 2.71 0 0 0-.237-.992c-.248-.566-1.2-1.466-1.435-1.656l-2.24-1.754c-.079-.065-.168-.06-.36-.047-.23.016-.815.048-1.067-.018.204-.155.76-.38 1-.56-.726-.49-1.554-.314-2.315-.46.176-.328 1.046-.831 1.541-.888a7.323 7.323 0 0 0-.135-.822c-.03-.111-.154-.22-.263-.283-.262-.154-.541-.281-.843-.434a1.755 1.755 0 0 1 .906-.28 3.385 3.385 0 0 1 .908.088c.54.123.97.042 1.399-.324-.338-.136-.676-.26-1.003-.407a9.843 9.843 0 0 1-.942-.493c.85.118 1.671.437 2.54.32l.022-.118-2.018-.47c1.203-.11 2.323-.128 3.384.388.299.146.61.266.897.432.14.08.233.24.348.365.09.098.164.23.276.29.424.225.89.234 1.366.223l.01-.16c.479.15 1.017.702 1.017 1.105-.776 0-1.55-.003-2.325.004-.083 0-.165.061-.247.094.078.046.155.128.235.131z M14.703 2.153a.118.118 0 0 0-.016.19.179.179 0 0 0 .246.065c.075-.038.148-.078.238-.125-.072-.062-.13-.114-.19-.163-.106-.087-.193-.032-.278.033z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;WireGuard&lt;/span&gt; 的 &lt;code dir=&quot;auto&quot;&gt;allowed-address&lt;/code&gt; 只過濾來源，不限制對端能連到哪裡。對端能到哪裡，是防火牆決定的。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;後續追蹤&quot;&gt;後續追蹤&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;事件處置完成之後，我們持續檢查並收緊防護。&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;沒有再入侵&quot;&gt;沒有再入侵&lt;/h3&gt;&lt;/div&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;日期&lt;/th&gt;
&lt;th&gt;檢查&lt;/th&gt;
&lt;th&gt;結果&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;09/20、09/21&lt;/td&gt;
&lt;td&gt;完整健康檢查，並與乾淨基準比對&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;四台皆無新跡象&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;11/15&lt;/td&gt;
&lt;td&gt;同上，並把四台設定與最後一次授權變更後的快照逐行比對&lt;/td&gt;
&lt;td&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;0 處差異；已知的 9 項入侵特徵與漏洞利用嘗試皆為 0；日誌中每一筆設定變更與登入，都能對應到我們自己的操作或自動排程&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;路由器 SSH 的來源白名單從 09/19 生效至今，所有登入失敗紀錄的來源都是我們自己的站台。&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;自動更新確實在運作&quot;&gt;自動更新確實在運作&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;本文提到的每週自動更新，在 10 月到 11 月間已自動完成三次升級。四台錯開時段，沒有同時中斷。&lt;/p&gt;
&lt;section aria-label=&quot;時間軸&quot; data-astro-cid-z7ssoihh=&quot;&quot;&gt;&lt;ol role=&quot;list&quot; data-astro-cid-z7ssoihh=&quot;&quot;&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;fix&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;修正 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;10/05–10/08&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;自動升級至 7.24.5&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;fix&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;修正 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;10/26–10/29&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;自動升級至 7.25&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;fix&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;修正 &lt;/span&gt;&lt;time data-astro-cid-kroj6hsp=&quot;&quot;&gt;11/04–11/10&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;自動升級至 7.25.1&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/section&gt;
&lt;div&gt;&lt;h3 id=&quot;之後補上的防護&quot;&gt;之後補上的防護&lt;/h3&gt;&lt;/div&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;日期&lt;/th&gt;
&lt;th&gt;內容&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;10/09&lt;/td&gt;
&lt;td&gt;統一四台的 DNS 與校時：區網裝置的 DNS 查詢一律導向路由器，由路由器經加密 DNS（DoH）向上游查詢；校時統一由路由器提供。過程中發現其中一台的 DNS 攔截被另一條路由設定打壞而失效，已修正&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10/11&lt;/td&gt;
&lt;td&gt;VPN 使用者的 DNS 也強制導向路由器；清除四台上未使用的撥號與 VPN 範本設定（其中包含指向第三方 DNS 的設定）&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10/29&lt;/td&gt;
&lt;td&gt;從網際網路實際掃描四台的對外埠：轉發到內網主機的 10 個 SSH 埠與一個內部 AI 服務沒有來源限制，當日補上白名單並從白名單內外各驗證一次；經雲端主機轉入的流量也改為只放行服務需要的埠&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10/31&lt;/td&gt;
&lt;td&gt;修正 VPN 用戶端設定 &lt;code dir=&quot;auto&quot;&gt;auth-nocache&lt;/code&gt; 造成的每小時斷線：RouterOS 每小時重新協商金鑰時要再送一次帳密，而這個選項讓用戶端登入後就丟掉密碼。已從用戶端設定檔移除&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;11/05&lt;/td&gt;
&lt;td&gt;盤點 IPv6：路由器底下的設備沒有任何 IPv6 對外路徑，白名單不會被 IPv6 繞過&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div&gt;&lt;h2 id=&quot;公開範圍&quot;&gt;公開範圍&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;內部的完整取證報告有明文密碼、私鑰、設備序號與內網拓樸，不公開。&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;類別&lt;/th&gt;
&lt;th&gt;處理&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;我方設備的公網 IP、序號、金鑰指紋、內網位址與拓樸&lt;/td&gt;
&lt;td&gt;移除，改以節點代號與地區表示&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;VPN 帳密、私鑰、憑證內容&lt;/td&gt;
&lt;td&gt;只描述數量與型別，不列值&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;資料平台的主機位址、資料庫帳號密碼&lt;/td&gt;
&lt;td&gt;移除&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;攻擊者的 C2 位址、來源 IP、後門帳號名稱、惡意程式檔名、持久化手法、注入金鑰指紋&lt;/td&gt;
&lt;td&gt;完整揭露，供其他防守方比對&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;完整取證資料（1000 份以上的證據檔、全案 SHA256 清單、證據保管鏈、驗證紀錄）保存於 private 證據庫。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;發布紀錄&quot;&gt;發布紀錄&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;本文於 2026/11/15 發布。事件當天（09/18）我們先以&lt;a href=&quot;https://exptech.dev/announcement/?id=50&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;公告&lt;/a&gt;發布摘要。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;參考資料&quot;&gt;參考資料&lt;/h2&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://cert.pl/en/posts/2026/09/mikrotik-routeros-cve/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;CERT Polska — Vulnerabilities in MikroTik RouterOS software&lt;/a&gt;（原始通報者，修補版本以此為準）&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.bleepingcomputer.com/news/security/hackers-exploit-new-mikrotik-routeros-flaws-to-hijack-routers/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;BleepingComputer — Hackers exploit new MikroTik RouterOS flaws to hijack routers&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.triskelelabs.com/resources/critical-mikrotik-routeros-vulnerabilities-under-active-exploitation-mikrotrick&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Triskele Labs — Critical MikroTik RouterOS Vulnerabilities under Active Exploitation (MikroTrick)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://mikrotik.com/supportsec&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;MikroTik Security Advisories&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.cisa.gov/known-exploited-vulnerabilities-catalog&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;CISA Known Exploited Vulnerabilities Catalog&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</content:encoded><category>RCA</category><category>CVE</category></item><item><title>同一場地震，為什麼會算出兩個不同的震度？</title><link>https://exptech.dev/blog/sharing-2026-07-29/</link><guid isPermaLink="true">https://exptech.dev/blog/sharing-2026-07-29/</guid><description>熊本 M7.1，同一台地震儀的同一筆紀錄，換一種處理方式，算出來的最大地動速度差了三成。差在濾波。法規只寫了頻率範圍，沒有寫哪一種做法才對。</description><pubDate>Wed, 29 Jul 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;2026 年 7 月 28 日，日本熊本縣熊本地方發生規模 7.1 的地震，日本氣象廳命名為「令和 8 年熊本地震」。震源在&lt;strong&gt;內陸&lt;/strong&gt;、深度約 16 公里，研判為日奈久斷層帶錯動，最大震度 7（宇城市、氷川町）。日本的強震觀測網記錄下 125 個測站的完整波形，資料完全公開。&lt;/p&gt;
&lt;p&gt;我拿其中一站的紀錄，用兩種常見的處理方式各算了一次最大地動速度（決定震度的數字）。算出來是 98.92 和 130.83，差了三成。&lt;/p&gt;
&lt;p&gt;同一筆資料、同一個公式、同一台電腦，差別只在中間有一個步驟，做法不同。&lt;/p&gt;

&lt;p&gt;哪一個才對？我原本以為查一下規定就有答案。規定寫到頻率範圍就停了，剩下的得自己找。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;差在哪該用哪個&quot;&gt;差在哪、該用哪個&lt;/h2&gt;&lt;/div&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;問題&lt;/th&gt;
&lt;th&gt;答案&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;為什麼會差三成？&lt;/td&gt;
&lt;td&gt;中間那個步驟會把不同頻率的波錯開不同的時間，最大值對這種錯開很敏感&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;哪一個比較接近真實地動？&lt;/td&gt;
&lt;td&gt;差三成的那個（130.83）比較忠實，但波形裡有物理上不可能發生的部分&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;那台灣的震度該用哪個？&lt;/td&gt;
&lt;td&gt;用 98.92 那個。理由不是「98.92 比較準」，而是台灣的震度公式當初就是這樣校準的&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;法規怎麼規定？&lt;/td&gt;
&lt;td&gt;規定了「濾掉哪個頻率範圍」，濾波方式則屬於實作層面&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div&gt;&lt;h2 id=&quot;一地震儀錄到的東西不能直接拿來用&quot;&gt;一、地震儀錄到的東西，不能直接拿來用&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;地震儀記錄的是加速度，也就是地面每一瞬間被搖動的劇烈程度。以這場地震離震央最近的測站之一為例：&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://exptech.dev/img/sharing/2026-07-29/fig16-waveform.webp&quot; alt=&quot;地震儀記錄的三分量加速度波形&quot; decoding=&quot;async&quot; width=&quot;1400&quot; height=&quot;745&quot; srcset=&quot;/img/sharing/2026-07-29/fig16-waveform-640w.webp 640w, /img/sharing/2026-07-29/fig16-waveform.webp 1400w&quot; sizes=&quot;(min-width: 50rem) 48rem, 100vw&quot; data-zoom-src=&quot;/img/sharing/2026-07-29/fig16-waveform.webp&quot;&gt;&lt;figcaption&gt;圖 16　一個測站錄到的三個方向加速度，每秒 100 個取樣點、共 300 秒&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;地震儀有三個方向：南北、東西、上下。每秒取樣 100 次，這段紀錄有 300 秒、三萬個點。&lt;/p&gt;
&lt;p&gt;但這串數字不能直接用，有兩個原因：&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;裡面有&lt;strong&gt;雜訊&lt;/strong&gt;。車輛、風、儀器本身的電子雜訊，都混在裡面。&lt;/li&gt;
&lt;li&gt;要算速度得先積分，&lt;strong&gt;積分會失控&lt;/strong&gt;。加速度累加成速度時，原始資料只要有一點點偏差，累加幾萬次之後就會漂移到天上去。&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;所以要濾波，把太高頻的雜訊和太低頻的漂移拿掉，留下地震的能量。問題是濾波有兩種做法。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;二兩種濾波現場直播-vs-錄影後製&quot;&gt;二、兩種濾波：現場直播 vs 錄影後製&lt;/h2&gt;&lt;/div&gt;
&lt;div data-astro-cid-7qmvx3iy=&quot;&quot;&gt;&lt;article data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;p data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;span data-astro-cid-z24ziyhq=&quot;&quot;&gt;做法 A：只能看過去（因果）&lt;/span&gt;&lt;/p&gt;&lt;div data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;span data-astro-cid-f4zorn72=&quot;&quot;&gt;直播式&lt;/span&gt;&lt;p&gt;處理到第 100 個資料點時，只准使用第 1 到第 100 點，不准偷看後面。&lt;/p&gt;&lt;p&gt;像現場直播，只能根據已經發生的事反應。&lt;/p&gt;&lt;p&gt;地震預警系統只能這樣做。地震還在發生，未來的資料根本還不存在。&lt;/p&gt;&lt;/div&gt;&lt;/article&gt;&lt;article data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;p data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;span data-astro-cid-z24ziyhq=&quot;&quot;&gt;做法 B：可以看未來（零相位）&lt;/span&gt;&lt;/p&gt;&lt;div data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;span data-astro-cid-f4zorn72=&quot;&quot;&gt;後製式&lt;/span&gt;&lt;p&gt;先把整段錄完，再從頭到尾濾一次，然後反過來從尾到頭再濾一次。第二次用到了還沒走到的資料。&lt;/p&gt;&lt;p&gt;像錄影後製，整段都在手邊，才能回頭改任何一格。&lt;/p&gt;&lt;/div&gt;&lt;/article&gt;&lt;/div&gt;
&lt;figure&gt;&lt;img src=&quot;https://exptech.dev/img/sharing/2026-07-29/fig01-impulse-response.webp&quot; alt=&quot;因果與零相位濾波器對單一脈衝的反應&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1192&quot; height=&quot;738&quot;&gt;&lt;figcaption&gt;圖 1　同一個脈衝，兩種濾波的反應完全不同&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;圖 1 把一個瞬間敲擊丟進兩種濾波器。上圖（直播式）是敲下去之後才有反應。下圖（後製式）在敲擊之前就有反應，因為用到了未來的資料。&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;只看過去又完全不扭曲&quot;&gt;只看過去，又完全不扭曲&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;對這裡用的這一類濾波器來說，不行。&lt;/p&gt;
&lt;ol role=&quot;list&quot;&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;規格用的是遞迴式濾波器&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;台灣和日本的規格用的都是遞迴式濾波器：少數幾個係數反覆套用，計算很省，適合即時。&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;只能看過去，就受一條硬性限制&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;只要一個遞迴式濾波器只能看過去，扭曲程度就由篩選效果決定，沒得選。&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;完全不扭曲，就等於什麼都不做&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;唯一完全不扭曲的「只看過去」遞迴濾波器，是「什麼都不做」。只要你真的想篩掉什麼，就一定會產生扭曲。&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;aside aria-label=&quot;一個例外&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;一個例外&lt;/p&gt;&lt;div&gt;&lt;p&gt;嚴格說，「只看過去」和「不扭曲」並非絕對互斥。&lt;strong&gt;對稱型 FIR 濾波器&lt;/strong&gt;也是因果的，而且把所有頻率延後同樣的時間，不會把不同頻率錯開。代價是係數很多，濾波器會把整段訊號延後一段固定時間。即時系統付的就是這段延遲，零延遲仍然做不到。這裡比較的兩種做法都是遞迴式，所以底下的推論不受影響。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;figure&gt;&lt;img src=&quot;https://exptech.dev/img/sharing/2026-07-29/fig02-magnitude-phase.webp&quot; alt=&quot;振幅響應與相位響應的對比&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1452&quot; height=&quot;587&quot; srcset=&quot;/img/sharing/2026-07-29/fig02-magnitude-phase-640w.webp 640w, /img/sharing/2026-07-29/fig02-magnitude-phase.webp 1452w&quot; sizes=&quot;(min-width: 50rem) 48rem, 100vw&quot; data-zoom-src=&quot;/img/sharing/2026-07-29/fig02-magnitude-phase.webp&quot;&gt;&lt;figcaption&gt;圖 2　兩種做法篩掉的東西差不多（左），但扭曲程度天差地別（右）&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;圖 2 左邊兩種做法篩掉的量差不多，右邊直播式（藍線）扭曲很大，後製式（橘線）是一條零。篩選效果一樣，扭曲不一樣。&lt;/p&gt;
&lt;aside aria-label=&quot;一個容易搞混的地方&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;一個容易搞混的地方&lt;/p&gt;&lt;div&gt;&lt;p&gt;「來回濾兩次」把扭曲消掉，同時也濾得更用力（等於濾了兩遍）。兩種做法的差異裡混了「扭曲」和「篩得多寡」兩件事。後面的實驗會把這兩件事分開。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;div&gt;&lt;h2 id=&quot;三扭曲一下最大值為什麼會差三成&quot;&gt;三、扭曲一下，最大值為什麼會差三成？&lt;/h2&gt;&lt;/div&gt;
&lt;div&gt;&lt;h3 id=&quot;不同頻率被延後不同的時間&quot;&gt;不同頻率被延後不同的時間&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;「扭曲」具體是什麼意思？我實際量了一下：拿標準的正弦波餵進濾波器，看輸出移動了多少時間。&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://exptech.dev/img/sharing/2026-07-29/fig03-group-delay.webp&quot; alt=&quot;不同頻率被延後不同時間&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1270&quot; height=&quot;646&quot;&gt;&lt;figcaption&gt;圖 3　直播式濾波把不同頻率的波移動了不同的時間&lt;/figcaption&gt;&lt;/figure&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;波的頻率&lt;/th&gt;
&lt;th&gt;被移動&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;每 10 秒振動一次&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;−3.43 秒&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;每 5 秒振動一次&lt;/td&gt;
&lt;td&gt;−0.75 秒&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;每 2 秒振動一次&lt;/td&gt;
&lt;td&gt;−0.09 秒&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;每秒振動 1 次&lt;/td&gt;
&lt;td&gt;幾乎不動&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;每秒振動 2 次&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;+0.03 秒&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;地震波的能量主要就落在這個範圍。同一段波形裡，慢的成分和快的成分被錯開了 3.5 秒。&lt;/p&gt;
&lt;aside aria-label=&quot;表裡的負號不是偷看未來&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;表裡的負號不是偷看未來&lt;/p&gt;&lt;div&gt;&lt;p&gt;這裡量的是穩定正弦波的&lt;strong&gt;相位延遲&lt;/strong&gt;，而一段從頭振到尾的正弦波沒有「起點」，談不上因果問題。真正決定能量何時抵達的是&lt;strong&gt;群延遲&lt;/strong&gt;，這個濾波器在上述每個頻率的群延遲都是正的，也就是一律延後。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;div&gt;&lt;h3 id=&quot;最大值是很多頻率疊在同一瞬間&quot;&gt;最大值是很多頻率疊在同一瞬間&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;地動的最大值不是某一個頻率造成的，而是很多不同頻率的波剛好在某一瞬間同時到達波峰、疊加起來的結果。&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://exptech.dev/img/sharing/2026-07-29/fig04-peak-misalignment.webp&quot; alt=&quot;峰值是相位對齊的產物&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1270&quot; height=&quot;793&quot;&gt;&lt;figcaption&gt;圖 4　成分完全沒變，只是錯開時間，最大值就掉了三成&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;圖 4 上半是四個頻率的波同時到達波峰，疊出 3.20 的高峰。下半是同樣那四個波，只是照圖 3 的量錯開時間，最大值掉到 2.18。&lt;/p&gt;
&lt;p&gt;這裡只是把四個波在時間上平移，沒有削掉任何成分。能量沒有少，最大值掉下去是因為對不齊。&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;同一個濾波器跑兩次&quot;&gt;同一個濾波器跑兩次&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;上面是示意圖。要證明差異純粹來自「錯開時間」而不是「篩掉了東西」，得做一個更乾淨的實驗。&lt;/p&gt;
&lt;p&gt;我用完全相同的濾波器跑了兩次，唯一的差別是第二次把扭曲拿掉。篩掉的東西一模一樣，只有時間對齊不同。&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://exptech.dev/img/sharing/2026-07-29/fig05-energy-vs-peak.webp&quot; alt=&quot;能量一模一樣，最大值差三成&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1300&quot; height=&quot;836&quot; srcset=&quot;/img/sharing/2026-07-29/fig05-energy-vs-peak-640w.webp 640w, /img/sharing/2026-07-29/fig05-energy-vs-peak.webp 1300w&quot; sizes=&quot;(min-width: 50rem) 48rem, 100vw&quot; data-zoom-src=&quot;/img/sharing/2026-07-29/fig05-energy-vs-peak.webp&quot;&gt;&lt;figcaption&gt;圖 5　決定性實驗：總能量完全相同，最大值差 33%&lt;/figcaption&gt;&lt;/figure&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;同一段速度波形&lt;/th&gt;
&lt;th&gt;有扭曲（直播式）&lt;/th&gt;
&lt;th&gt;無扭曲（後製式）&lt;/th&gt;
&lt;th&gt;比值&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;總能量&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;7.7444&lt;/td&gt;
&lt;td&gt;7.7443&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1.0000&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;最大值&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;98.919&lt;/td&gt;
&lt;td&gt;131.923&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1.3336&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;總能量到小數第三位相同（7.744），最大值差 33%。&lt;/p&gt;
&lt;aside aria-label=&quot;濾波還是會改變能量&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;濾波還是會改變能量&lt;/p&gt;&lt;div&gt;&lt;p&gt;濾波會改變能量。高通、低通、帶通削掉一個頻段，總能量、平均振動強度、最大值、積分結果都會跟著變。&lt;/p&gt;&lt;p&gt;上面那個實驗的前提是兩次處理篩掉的東西完全一樣，只有時間對齊不同。這個前提下，總能量不變有數學保證：總能量只看每個頻率剩下多少振幅，不看這些成分在時間上怎麼排。&lt;/p&gt;&lt;p&gt;篩選效果相同的兩種濾波互相比，時間錯位會改掉瞬時的最大值，不會改掉各頻率的能量分布。震度量的是最集中的那一瞬間。&lt;/p&gt;&lt;p&gt;所以直播式和後製式的最大值差，主要來自時間錯位，不是其中一方多濾掉了什麼。這個實驗沒有、也沒辦法證明「濾波不影響能量」。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;div&gt;&lt;h2 id=&quot;四那後製版比較準嗎&quot;&gt;四、那後製版比較準嗎？&lt;/h2&gt;&lt;/div&gt;
&lt;figure&gt;&lt;img src=&quot;https://exptech.dev/img/sharing/2026-07-29/fig06-acausal-precursor.webp&quot; alt=&quot;零相位濾波產生的前振鈴&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1504&quot; height=&quot;613&quot; srcset=&quot;/img/sharing/2026-07-29/fig06-acausal-precursor-640w.webp 640w, /img/sharing/2026-07-29/fig06-acausal-precursor.webp 1504w&quot; sizes=&quot;(min-width: 50rem) 48rem, 100vw&quot; data-zoom-src=&quot;/img/sharing/2026-07-29/fig06-acausal-precursor.webp&quot;&gt;&lt;figcaption&gt;圖 6　後製版的代價：地震波還沒到，地面就先動了&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;右圖放大了 P 波（地震最先到達的波）抵達之前的那幾秒。藍線（直播式）貼著零，地震還沒到，地面本來就不該動。橘線（後製式）已經開始晃了。&lt;/p&gt;
&lt;p&gt;這個現象叫前振鈴。原因是用到未來的資料：處理第 100 個點時偷看了第 150 點，後面的地震波洩漏到前面。&lt;/p&gt;
&lt;p&gt;後製版這段波形在物理上不可能發生：因還沒到，果先出現了。&lt;/p&gt;
&lt;p&gt;後製版沒有把不同頻率的成分錯開，最大值留在原本的時間和大小。論最大值有沒有被打散，後製版比較忠實。&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;兩邊各有代價&quot;&gt;兩邊各有代價&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;兩種做法各自破壞的東西不一樣：&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;你在意的事&lt;/th&gt;
&lt;th&gt;該用&lt;/th&gt;
&lt;th&gt;但要付的代價&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;地面真正晃了多大（最大值不被打散）&lt;/td&gt;
&lt;td&gt;後製式（零相位）&lt;/td&gt;
&lt;td&gt;波形出現物理上不可能的前振鈴&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;波形不要出現「因還沒到、果就先到」&lt;/td&gt;
&lt;td&gt;直播式（因果）&lt;/td&gt;
&lt;td&gt;各頻率成分之間的相對時間被錯開&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;即時預警（未來的資料根本還不存在）&lt;/td&gt;
&lt;td&gt;只能用直播式&lt;/td&gt;
&lt;td&gt;同上&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;aside aria-label=&quot;直播式守住的不是時間精度&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;直播式守住的不是時間精度&lt;/p&gt;&lt;div&gt;&lt;p&gt;前面圖 3 已經看到，直播式把慢的成分和快的成分錯開了 3.5 秒。直播式守住的是「不會無中生有」，不是「時間精確」。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;div&gt;&lt;h2 id=&quot;五125-個測站告訴我們什麼&quot;&gt;五、125 個測站告訴我們什麼&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;一個測站看不出全貌。我把這場地震全部 125 個測站都算了兩遍。&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://exptech.dev/img/sharing/2026-07-29/fig07-125-scatter.webp&quot; alt=&quot;125 個測站的比值分布&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1348&quot; height=&quot;646&quot; srcset=&quot;/img/sharing/2026-07-29/fig07-125-scatter-640w.webp 640w, /img/sharing/2026-07-29/fig07-125-scatter.webp 1348w&quot; sizes=&quot;(min-width: 50rem) 48rem, 100vw&quot; data-zoom-src=&quot;/img/sharing/2026-07-29/fig07-125-scatter.webp&quot;&gt;&lt;figcaption&gt;圖 7　125 個測站：直播式造成的是亂跳，不是固定偏低&lt;/figcaption&gt;&lt;/figure&gt;
&lt;figure&gt;&lt;img src=&quot;https://exptech.dev/img/sharing/2026-07-29/fig08-125-hist.webp&quot; alt=&quot;比值的直方圖&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1452&quot; height=&quot;579&quot; srcset=&quot;/img/sharing/2026-07-29/fig08-125-hist-640w.webp 640w, /img/sharing/2026-07-29/fig08-125-hist.webp 1452w&quot; sizes=&quot;(min-width: 50rem) 48rem, 100vw&quot; data-zoom-src=&quot;/img/sharing/2026-07-29/fig08-125-hist.webp&quot;&gt;&lt;figcaption&gt;圖 8　最大速度的離散程度約 ±11%，最大加速度相對集中&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;如果直播式濾波「總是低估」，所有的點應該落在同一側。實際上是 73 站偏低、52 站偏高，幾乎對半。&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;統計（後製 ÷ 直播）&lt;/th&gt;
&lt;th&gt;中位數&lt;/th&gt;
&lt;th&gt;範圍&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;最大速度&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;1.020&lt;/td&gt;
&lt;td&gt;0.75 ~ 1.41&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;最大加速度&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;0.992&lt;/td&gt;
&lt;td&gt;0.82 ~ 1.05&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;再做一次控制實驗，把「篩得多寡」扣掉，只留時間錯位。中位數 1.010、68 站偏低、57 站偏高。&lt;/p&gt;
&lt;p&gt;直播式濾波造成的不是系統性低估，而是站站不同、無法預測的亂跳。&lt;/p&gt;
&lt;aside aria-label=&quot;速度差三成，震度大約差 0.26&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;速度差三成，震度大約差 0.26&lt;/p&gt;&lt;div&gt;&lt;p&gt;震度的換算用的是對數（震度 = 2.14 × log₁₀ PGV + 1.89），所以速度差三成只換算成大約 0.26 個震度單位。這場地震 125 站裡，換一種算法會跳一級的只有 4 站，而且全部卡在級距的邊界上。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;div&gt;&lt;h2 id=&quot;六那規定是怎麼寫的&quot;&gt;六、那規定是怎麼寫的？&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;我原本以為這題早就有標準答案，翻一下文件就好。&lt;/p&gt;
&lt;p&gt;台灣震度的法定依據是《交通部中央氣象署有感地震報告發布作業要點》的附表〈地震震度分級表〉註2。附表把震度的計算寫成九個步驟，其中跟濾波有關的是這兩句：&lt;/p&gt;
&lt;blockquote&gt;
&lt;ol start=&quot;2&quot;&gt;
&lt;li&gt;
&lt;p&gt;資料進行 &lt;strong&gt;10Hz 低通濾波&lt;/strong&gt;處理，適度過濾瞬間振動的高頻訊號。&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;將 3 向量原始加速度資料積分至速度，同時進行 &lt;strong&gt;0.075Hz 低切濾波&lt;/strong&gt;移除因積分動作所引進的低頻訊號。&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;
&lt;aside aria-label=&quot;第 6 步的「原始」加速度不是第 2 步的結果&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;第 6 步的「原始」加速度不是第 2 步的結果&lt;/p&gt;&lt;div&gt;&lt;p&gt;第 6 步的「原始加速度資料」，算最大速度走的是另一條路，直接從未經 10Hz 低通的原始波形積分，不是拿第 2 步的結果再用一次。這點很容易做錯。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;p&gt;規定寫到「濾掉哪個頻率範圍」為止，用哪一種濾波方式則落在實作層面。直播式還是後製式，得往別的地方找。&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;線索在當初訂出震度公式的論文裡&quot;&gt;線索在當初訂出震度公式的論文裡&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;台灣震度公式的兩個係數出自吳逸民教授團隊。翻他們的系列論文：&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;論文&lt;/th&gt;
&lt;th&gt;寫了什麼&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Wu &amp;#x26; Kanamori (2005)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;對台灣的強震記錄用的是「遞迴式」濾波器（遞迴就是只看過去），而且同一篇論文裡就引用了台灣的震度公式。&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Wu 等人 (2007)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;更直接寫出「&lt;strong&gt;單向&lt;/strong&gt;（one-way）」濾波器。&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Wu、蕭乃祺與鄧大量 (2004)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;這篇是氣象署官方引用的公式出處。寫著氣象局用的是「時域遞迴濾波器，基本上是即時運作的」。&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;氣象署要在地震發生後幾十秒內發布各縣市震度，強震即時警報更是以秒計。即時系統不可能用到未來的資料。&lt;/p&gt;
&lt;aside aria-label=&quot;係數怎麼來的，論文沒寫&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;係數怎麼來的，論文沒寫&lt;/p&gt;&lt;div&gt;&lt;p&gt;當初訂出那兩個係數的論文，並沒有交代他們怎麼處理資料。所以「因果的慣例被寫進了係數裡」是個合理的推論，而不是白紙黑字。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;div&gt;&lt;h3 id=&quot;國際上的做法不太一樣&quot;&gt;國際上的做法不太一樣&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;國際強震資料的處理慣例走另一邊：&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;來源&lt;/th&gt;
&lt;th&gt;立場&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;國際強震資料處理準則&lt;/strong&gt;（COSMOS, 2004）&lt;/td&gt;
&lt;td&gt;「&lt;strong&gt;一般情況下應使用非因果（後製式）濾波器&lt;/strong&gt;……若使用因果濾波器（&lt;strong&gt;例如即時應用&lt;/strong&gt;），務必明確載明。」&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Boore &amp;#x26; Akkar (2003)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;也推薦後製式。理由是「直播式的結果對參數選擇太敏感」，&lt;strong&gt;不是&lt;/strong&gt;「最大值比較準」。&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;反方向的研究&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;有學者發現，條件相同時，兩種做法算出來的地震工程用參數「&lt;strong&gt;在統計上無法區分&lt;/strong&gt;」。需要精確時間關係的應用（例如定位震央），&lt;strong&gt;直播式反而是首選&lt;/strong&gt;。&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;會有這種分歧，是因為兩邊要的東西不一樣。國際強震資料庫給工程師做結構分析，要的是波形忠實。震度是即時發布的公共資訊，要算得出來，也要跟過去的紀錄比得起來。&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;跟氣象署對照用直播式&quot;&gt;跟氣象署對照，用直播式&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;要算能跟氣象署發布值對照的震度，就用直播式。&lt;/p&gt;
&lt;aside aria-label=&quot;用直播式，是為了跟氣象署同一套做法&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;用直播式，是為了跟氣象署同一套做法&lt;/p&gt;&lt;div&gt;&lt;p&gt;理由不是「直播式比較準」，而是氣象署的作業環境是即時的（物理上不可能用到未來資料），震度公式的係數也是在那個環境下校準的。數字要能對照，就得用同一套做法。&lt;/p&gt;&lt;p&gt;濾掉的頻率範圍依照法規。用哪一種濾波是實作選擇，這裡選直播式，是為了跟氣象署的作業慣例一致。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;p&gt;不同單位公布的參數對不上，不一定是有人算錯，也可能是處理方式不同。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;七三種算法並列&quot;&gt;七、三種算法並列&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;查清楚之後，我讓計算同時輸出三組數字，方便交叉比對。&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://exptech.dev/img/sharing/2026-07-29/fig09-pipelines.webp&quot; alt=&quot;三條處理流程並列&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1522&quot; height=&quot;750&quot; srcset=&quot;/img/sharing/2026-07-29/fig09-pipelines-640w.webp 640w, /img/sharing/2026-07-29/fig09-pipelines.webp 1522w&quot; sizes=&quot;(min-width: 50rem) 48rem, 100vw&quot; data-zoom-src=&quot;/img/sharing/2026-07-29/fig09-pipelines.webp&quot;&gt;&lt;figcaption&gt;圖 9　三條處理流程：差別只在中間兩格，前後步驟完全相同&lt;/figcaption&gt;&lt;/figure&gt;
&lt;figure&gt;&lt;img src=&quot;https://exptech.dev/img/sharing/2026-07-29/fig10-three-way.webp&quot; alt=&quot;125 站三種算法的比值&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1478&quot; height=&quot;653&quot; srcset=&quot;/img/sharing/2026-07-29/fig10-three-way-640w.webp 640w, /img/sharing/2026-07-29/fig10-three-way.webp 1478w&quot; sizes=&quot;(min-width: 50rem) 48rem, 100vw&quot; data-zoom-src=&quot;/img/sharing/2026-07-29/fig10-three-way.webp&quot;&gt;&lt;figcaption&gt;圖 10　最大加速度差在「篩掉多少高頻」，最大速度差在「有沒有扭曲」&lt;/figcaption&gt;&lt;/figure&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;三種比較&lt;/th&gt;
&lt;th&gt;最大加速度中位&lt;/th&gt;
&lt;th&gt;最大速度中位&lt;/th&gt;
&lt;th&gt;最大速度離散程度&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;後製 ÷ 直播&lt;/td&gt;
&lt;td&gt;0.992&lt;/td&gt;
&lt;td&gt;1.020&lt;/td&gt;
&lt;td&gt;0.111&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;日本規格 ÷ 直播&lt;/td&gt;
&lt;td&gt;1.022&lt;/td&gt;
&lt;td&gt;1.030&lt;/td&gt;
&lt;td&gt;0.113&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;日本規格 ÷ 後製&lt;/td&gt;
&lt;td&gt;1.032&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1.008&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0.047&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;最後一列，日本規格和後製式的最大速度只差 0.8%，三組裡最接近，因為兩者都是後製式，只差在篩掉的頻率範圍略有不同。任一者跟直播式比，離散程度都在 ±11% 上下（個別測站最多可差到 −25% ~ +41%）。&lt;/p&gt;
&lt;p&gt;差異主要來自有沒有扭曲，不是來自篩掉多少。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;八日本沒寫是直播式還是後製式&quot;&gt;八、日本沒寫是直播式還是後製式&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;日本防災科學技術研究所（NIED）公布了他們計算最大速度用的濾波器參數，但沒說是直播式還是後製式。&lt;/p&gt;
&lt;p&gt;那就用數字反推。他們公布的其中一個測站，官方最大速度是 &lt;strong&gt;131.2&lt;/strong&gt;。我照他們的規格算兩次：&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://exptech.dev/img/sharing/2026-07-29/fig11-nied-validation.webp&quot; alt=&quot;反推 NIED 的濾波方式&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1504&quot; height=&quot;635&quot; srcset=&quot;/img/sharing/2026-07-29/fig11-nied-validation-640w.webp 640w, /img/sharing/2026-07-29/fig11-nied-validation.webp 1504w&quot; sizes=&quot;(min-width: 50rem) 48rem, 100vw&quot; data-zoom-src=&quot;/img/sharing/2026-07-29/fig11-nied-validation.webp&quot;&gt;&lt;figcaption&gt;圖 11　官方沒說，但數字只容許一個答案&lt;/figcaption&gt;&lt;/figure&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;做法&lt;/th&gt;
&lt;th&gt;算出來&lt;/th&gt;
&lt;th&gt;與官方差距&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;strong&gt;後製式&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;131.71&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;+0.39%&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;error&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m15 9-6 6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m9 9 6 6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;直播式&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;93.43&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;−28.8%&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;日本用的是後製式。這跟他們引用的那篇 1978 年濾波器設計論文在日本實務上的慣用方式也吻合。&lt;/p&gt;
&lt;p&gt;那剩下的 0.39% 呢？我掃了一輪參數：&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;掃的參數&lt;/th&gt;
&lt;th&gt;對結果的影響&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;濾波器的「強度」&lt;/td&gt;
&lt;td&gt;0.35%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;「切在哪個頻率」&lt;/td&gt;
&lt;td&gt;3.9%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;強度幾乎不影響結果，切點影響很大。所以那 0.39% 來自我推算的切點跟他們實際用的差了一點點，不是理解錯誤。&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;完整對照官方公布值&quot;&gt;完整對照官方公布值&lt;/h3&gt;&lt;/div&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;項目&lt;/th&gt;
&lt;th&gt;NIED 官方公布&lt;/th&gt;
&lt;th&gt;我算出&lt;/th&gt;
&lt;th&gt;差異&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;資料起點時刻&lt;/td&gt;
&lt;td&gt;2026/07/28 &lt;strong&gt;16:27:04&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;16:27:04&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;一致&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;測站經緯度&lt;/td&gt;
&lt;td&gt;32.5099 / 130.5908&lt;/td&gt;
&lt;td&gt;32.5099 / 130.5908&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;一致&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;最大加速度&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;482.7&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;482.70&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;−0.00%&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;最大速度&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;131.2&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;131.71&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;+0.39%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;日本計測震度&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;5.7&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;5.7&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;一致&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;除了那 0.39%，其他全部對上。&lt;/p&gt;
&lt;aside aria-label=&quot;這組時刻怎麼對上&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;這組時刻怎麼對上&lt;/p&gt;&lt;div&gt;&lt;p&gt;資料起點時刻是檔頭記錄時刻減去 15 秒，見第十一節。反推可以再驗一次：本站震源距約 22 公里，以 5.24 km/s 的 P 波速度需要 4.3 秒，推得發震時刻落在 16:27:15 前後，與日本氣象廳公布的 16 時 27 分相符。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;div&gt;&lt;h2 id=&quot;九日本的算法濾波器更多震度卻更高&quot;&gt;九、日本的算法濾波器更多，震度卻更高？&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;日本氣象廳算震度用了三個濾波器，台灣只用兩個。濾得越多，剩下的越少，震度好像應該越低。同一場地震，日本算出來的震度常常比台灣高。&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://exptech.dev/img/sharing/2026-07-29/fig13-jma-filters.webp&quot; alt=&quot;日本氣象廳的三個濾波器&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1348&quot; height=&quot;651&quot; srcset=&quot;/img/sharing/2026-07-29/fig13-jma-filters-640w.webp 640w, /img/sharing/2026-07-29/fig13-jma-filters.webp 1348w&quot; sizes=&quot;(min-width: 50rem) 48rem, 100vw&quot; data-zoom-src=&quot;/img/sharing/2026-07-29/fig13-jma-filters.webp&quot;&gt;&lt;figcaption&gt;圖 13　日本的第三個濾波器其實是放大器&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;原因在圖 13 的粉紅線：日本的第三個濾波器不是拿來篩東西的，是拿來放大長週期成分的。三個相乘之後，在「每 1 ~ 2.5 秒振動一次」這個頻帶，總增益大於 1，也就是放大，尖峰落在每 1.6 秒振動一次，增益約 1.17 倍。&lt;/p&gt;
&lt;p&gt;而大地震的能量正好集中在長週期帶。所以「濾波器比較多」反而讓震度變高。&lt;/p&gt;
&lt;aside aria-label=&quot;日本的算法天生是後製式&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;日本的算法天生是後製式&lt;/p&gt;&lt;div&gt;&lt;p&gt;日本的震度算法是在頻率域做的，這種做法天生就是後製式。這不是實作上選的，是法規這樣定義的必然結果。日本氣象廳自己也承認這個方法沒辦法即時。要即時算，他們改用另一個近似的量。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;div&gt;&lt;h2 id=&quot;十台灣震度的定義其實是一張表不是公式&quot;&gt;十、台灣震度的定義，其實是一張表不是公式&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;大家常看到的台灣震度公式，其實&lt;strong&gt;不是法定定義&lt;/strong&gt;。法定文件裡只有一張對照表。官方說明白，那張表是把公式算出來的數字「四捨五入並稍做微調方便記憶」之後劃定的。&lt;/p&gt;
&lt;p&gt;問題是「稍做微調」在某些地方微調得不少：&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://exptech.dev/img/sharing/2026-07-29/fig12-table-vs-formula.webp&quot; alt=&quot;官方對照表與公式的偏差&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1470&quot; height=&quot;653&quot; srcset=&quot;/img/sharing/2026-07-29/fig12-table-vs-formula-640w.webp 640w, /img/sharing/2026-07-29/fig12-table-vs-formula.webp 1470w&quot; sizes=&quot;(min-width: 50rem) 48rem, 100vw&quot; data-zoom-src=&quot;/img/sharing/2026-07-29/fig12-table-vs-formula.webp&quot;&gt;&lt;figcaption&gt;圖 12　加速度那張表兩者等價，速度那張表不是&lt;/figcaption&gt;&lt;/figure&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;對照表&lt;/th&gt;
&lt;th&gt;和公式差多少&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;加速度&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;所有界線吻合到 ±0.013 個震度單位，可以當成等價&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;速度&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;svg data-status=&quot;warn&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 9v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17h.01&quot;&gt;&lt;/path&gt;&lt;/svg&gt;最大偏差 0.106，是加速度表的八倍&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;aside aria-label=&quot;4 級和 5 弱的界線對不上&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;4 級和 5 弱的界線對不上&lt;/p&gt;&lt;div&gt;&lt;p&gt;官方表寫的是：最大速度 &lt;strong&gt;15&lt;/strong&gt;（單位 cm/s）以上算 5 弱。公式算出來要 &lt;strong&gt;16.58&lt;/strong&gt; 才到 5 弱。&lt;/p&gt;&lt;p&gt;所以最大速度落在 15 到 16.58 之間時，套公式會算成 4 級，查官方表卻是 5 弱。這個區間寬約 10%，而且橫跨「要不要啟動應變」的門檻。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;p&gt;要跟法定分級表一致，&lt;strong&gt;就得查表，不能直接套公式&lt;/strong&gt;。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;十一資料裡藏的時間陷阱&quot;&gt;十一、資料裡藏的時間陷阱&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;日本強震網的公開檔案裡有個時間欄位。直覺上會以為那是資料起點，其實是儀器被觸發的時刻，檔案裡的資料則從觸發前 15 秒開始。&lt;/p&gt;
&lt;p&gt;直接拿那個時間當起點，所有時間戳記會晚 15 秒。&lt;/p&gt;
&lt;figure lang=&quot;zh-TW&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;div data-xt-zoomable=&quot;&quot; aria-label=&quot;檔案裡的時間欄位與資料起點&quot; aria-describedby=&quot;xt-diagram-desc-1pxb8dr&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;svg viewBox=&quot;0 0 640 218&quot; role=&quot;img&quot; aria-label=&quot;檔案裡的時間欄位與資料起點&quot;&gt;&lt;rect x=&quot;0&quot; y=&quot;90&quot; width=&quot;640&quot; height=&quot;60&quot;&gt;&lt;/rect&gt;&lt;line x1=&quot;99&quot; x2=&quot;99&quot; y1=&quot;30&quot; y2=&quot;192&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;205.2&quot; x2=&quot;205.2&quot; y1=&quot;30&quot; y2=&quot;192&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;311.4&quot; x2=&quot;311.4&quot; y1=&quot;30&quot; y2=&quot;192&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;417.6&quot; x2=&quot;417.6&quot; y1=&quot;30&quot; y2=&quot;192&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;523.8&quot; x2=&quot;523.8&quot; y1=&quot;30&quot; y2=&quot;192&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;630&quot; x2=&quot;630&quot; y1=&quot;30&quot; y2=&quot;192&quot;&gt;&lt;/line&gt;&lt;g&gt;&lt;rect x=&quot;99&quot; y=&quot;21&quot; width=&quot;318.6&quot; height=&quot;171&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M99 25V21H417.6V25&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;line x1=&quot;99&quot; x2=&quot;630&quot; y1=&quot;70&quot; y2=&quot;70&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;99&quot; x2=&quot;630&quot; y1=&quot;130&quot; y2=&quot;130&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;99&quot; x2=&quot;630&quot; y1=&quot;171&quot; y2=&quot;171&quot;&gt;&lt;/line&gt;&lt;g&gt;&lt;rect x=&quot;100&quot; y=&quot;62&quot; width=&quot;529&quot; height=&quot;16&quot; rx=&quot;3&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M633 65l4 5l-4 5&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;line x1=&quot;404.64&quot; x2=&quot;404.64&quot; y1=&quot;61&quot; y2=&quot;55&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;99&quot; x2=&quot;99&quot; y1=&quot;61&quot; y2=&quot;55&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;99&quot; cy=&quot;70&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(91.5 62.5) scale(0.625)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;M12 16v-4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 8h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;circle cx=&quot;404.64&quot; cy=&quot;70&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(397.14 62.5) scale(0.625)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;M12 16v-4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 8h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;400.64&quot; y=&quot;51&quot;&gt;初動：中位數 14.39 秒&lt;/text&gt;&lt;text x=&quot;95&quot; y=&quot;51&quot;&gt;資料起點&lt;/text&gt;&lt;line x1=&quot;417.6&quot; x2=&quot;417.6&quot; y1=&quot;121&quot; y2=&quot;115&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;417.6&quot; cy=&quot;130&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(410.1 122.5) scale(0.625)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;M12 16v-4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 8h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;413.6&quot; y=&quot;111&quot;&gt;觸發時刻&lt;/text&gt;&lt;g&gt;&lt;rect x=&quot;418.6&quot; y=&quot;163&quot; width=&quot;210.4&quot; height=&quot;16&quot; rx=&quot;3&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M633 166l4 5l-4 5&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform=&quot;translate(421.6 164.5) scale(0.54167)&quot;&gt;&lt;path d=&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 9v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;438.6&quot; y=&quot;175&quot;&gt;所有時間戳記晚 15 秒&lt;/text&gt;&lt;text x=&quot;185.89&quot; y=&quot;17&quot;&gt;觸發前 15 秒（事前緩衝）&lt;/text&gt;&lt;line x1=&quot;99&quot; x2=&quot;630&quot; y1=&quot;192&quot; y2=&quot;192&quot;&gt;&lt;/line&gt;&lt;text x=&quot;87&quot; y=&quot;208&quot; text-anchor=&quot;end&quot;&gt;秒&lt;/text&gt;&lt;line x1=&quot;99&quot; x2=&quot;99&quot; y1=&quot;192&quot; y2=&quot;196&quot;&gt;&lt;/line&gt;&lt;text x=&quot;95.29&quot; y=&quot;208&quot;&gt;0&lt;/text&gt;&lt;line x1=&quot;205.2&quot; x2=&quot;205.2&quot; y1=&quot;192&quot; y2=&quot;196&quot;&gt;&lt;/line&gt;&lt;text x=&quot;201.49&quot; y=&quot;208&quot;&gt;5&lt;/text&gt;&lt;line x1=&quot;311.4&quot; x2=&quot;311.4&quot; y1=&quot;192&quot; y2=&quot;196&quot;&gt;&lt;/line&gt;&lt;text x=&quot;303.98&quot; y=&quot;208&quot;&gt;10&lt;/text&gt;&lt;line x1=&quot;417.6&quot; x2=&quot;417.6&quot; y1=&quot;192&quot; y2=&quot;196&quot;&gt;&lt;/line&gt;&lt;text x=&quot;410.18&quot; y=&quot;208&quot;&gt;15&lt;/text&gt;&lt;line x1=&quot;523.8&quot; x2=&quot;523.8&quot; y1=&quot;192&quot; y2=&quot;196&quot;&gt;&lt;/line&gt;&lt;text x=&quot;516.38&quot; y=&quot;208&quot;&gt;20&lt;/text&gt;&lt;line x1=&quot;630&quot; x2=&quot;630&quot; y1=&quot;192&quot; y2=&quot;196&quot;&gt;&lt;/line&gt;&lt;text x=&quot;622.58&quot; y=&quot;208&quot;&gt;25&lt;/text&gt;&lt;/svg&gt;&lt;/div&gt;&lt;p aria-hidden=&quot;true&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;點圖可放大&lt;/p&gt;&lt;p id=&quot;xt-diagram-desc-1pxb8dr&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;橫軸是檔案裡的第幾秒。資料從第 0 秒開始，初動出現在第 14.39 秒（中位數），時間欄位記的是第 15 秒的觸發時刻，也就是資料從觸發前 15 秒開始。把時間欄位當成資料起點，整段資料會被放到第 15 秒之後，所有時間戳記晚 15 秒。&lt;/p&gt;&lt;figcaption data-astro-cid-fia5stjh=&quot;&quot;&gt;檔案裡的時間欄位與資料起點&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;我沒有直接相信文件，用地震波的走時做了驗證：&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://exptech.dev/img/sharing/2026-07-29/fig15-timing.webp&quot; alt=&quot;用走時驗證資料起點&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1504&quot; height=&quot;646&quot; srcset=&quot;/img/sharing/2026-07-29/fig15-timing-640w.webp 640w, /img/sharing/2026-07-29/fig15-timing.webp 1504w&quot; sizes=&quot;(min-width: 50rem) 48rem, 100vw&quot; data-zoom-src=&quot;/img/sharing/2026-07-29/fig15-timing.webp&quot;&gt;&lt;figcaption&gt;圖 15　兩張圖合起來只有一種解釋&lt;/figcaption&gt;&lt;/figure&gt;
&lt;ol role=&quot;list&quot;&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;左圖：初動出現在檔案的第幾秒&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;地震初動出現在每個檔案的第幾秒？中位數 14.39 秒，而且跟測站遠近完全無關。這是一段固定長度的事前緩衝。&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;右圖：時間欄位減去發震時刻&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;差值隨著測站距離線性增加，換算出來的速度是每秒 5.24 公里，正好是 P 波在地殼裡的速度。這個欄位跟著地震波跑，是觸發時刻，不是資料起點。&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;兩張圖合起來，只有一種解釋&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;後來在 NIED 的〈K-NET ASCII 格式說明〉找到白紙黑字：「この時刻はトリガー収録を開始した時刻を表しており、公開データはトリガーの 15 秒前からのデータを含んでいます」「データ先頭の時刻はこの時刻から 15 秒を引いてください」。&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;aside aria-label=&quot;問答裡的另一個 15 秒是另一回事&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;問答裡的另一個 15 秒是另一回事&lt;/p&gt;&lt;div&gt;&lt;p&gt;官方問答裡另有一條也提到 15 秒，講的卻是&lt;strong&gt;最終校正時刻&lt;/strong&gt;，而且結論相反：「記録開始時刻の 15 秒前となるとは限りません」。兩個欄位不能混為一談。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;aside aria-label=&quot;發震時刻只精確到「分」&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;發震時刻只精確到「分」&lt;/p&gt;&lt;div&gt;&lt;p&gt;走時驗證還留下一個十幾秒的殘差查不出原因。後來在官方問答找到答案：&lt;strong&gt;檔案裡的「發震時刻」只精確到「分」&lt;/strong&gt;，秒的位置是補 0 上去的。&lt;/p&gt;&lt;p&gt;官方原文寫得很清楚：這些震源資訊的發震時刻只有分的精度，所以秒「補助性地記為 00」。有些資料秒數寫 30，那是為了區分同一分鐘內的兩個地震，&lt;strong&gt;不代表有 30 秒的精度&lt;/strong&gt;。&lt;/p&gt;&lt;p&gt;拿這個發震時刻算走時，對不齊。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;div&gt;&lt;h2 id=&quot;十二這場地震的結果&quot;&gt;十二、這場地震的結果&lt;/h2&gt;&lt;/div&gt;
&lt;figure&gt;&lt;img src=&quot;https://exptech.dev/img/sharing/2026-07-29/fig14-station-map.webp&quot; alt=&quot;125 個測站的震度分布&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;751&quot; height=&quot;984&quot;&gt;&lt;figcaption&gt;圖 14　125 個測站換算成台灣震度標準的分布&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;把 125 個測站的紀錄全部換算成台灣的震度標準，分布如上。震央附近的熊本測站群最高達 6 強，隨距離往外遞減到 3 級、2 級。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;參考資料&quot;&gt;參考資料&lt;/h2&gt;&lt;/div&gt;
&lt;div&gt;&lt;h3 id=&quot;官方文件&quot;&gt;官方文件&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;台灣&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;交通部中央氣象署，《&lt;a href=&quot;https://scweb.cwa.gov.tw/Uploads/Topic/%E4%BA%A4%E9%80%9A%E9%83%A8%E4%B8%AD%E5%A4%AE%E6%B0%A3%E8%B1%A1%E7%BD%B2%E6%9C%89%E6%84%9F%E5%9C%B0%E9%9C%87%E5%A0%B1%E5%91%8A%E7%99%BC%E5%B8%83%E4%BD%9C%E6%A5%AD%E8%A6%81%E9%BB%9E.pdf&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;有感地震報告發布作業要點&lt;/a&gt;》附表〈地震震度分級表〉註2/註3/註4。最新修正：中華民國112年10月16日中象地字第1120051308號函；震度分級表自 109/1/1 施行。&lt;/li&gt;
&lt;li&gt;交通部中央氣象局，《&lt;a href=&quot;https://www.cwa.gov.tw/Data/service/Newsbb/CH/1081218earthquakepress.pdf&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;震度新分級 應變更實用&lt;/a&gt;》新聞稿，2019-12-18。&lt;/li&gt;
&lt;li&gt;蕭乃祺，《&lt;a href=&quot;https://www.ncdr.nat.gov.tw/CEOCworkshop/cwb_2.pdf&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;我國新地震震度分級制度&lt;/a&gt;》，中央氣象局地震測報中心。&lt;/li&gt;
&lt;li&gt;中央氣象署，《&lt;a href=&quot;https://opendata.cwa.gov.tw/opendatadoc/Earthquake/E-A0016-001.pdf&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;小區域有感地震報告資料說明 E-A0016-001&lt;/a&gt;》。&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;日本&lt;/strong&gt;&lt;/p&gt;
&lt;ol start=&quot;5&quot;&gt;
&lt;li&gt;平成八年二月十五日 気象庁告示第四号（計測震度的法定定義）。全文引用於：気象庁，《&lt;a href=&quot;https://www.data.jma.go.jp/svd/eqev/data/study-panel/shindo-kentokai/kentokai-houkoku/report.pdf&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;「震度に関する検討会」報告書&lt;/a&gt;》参考5。&lt;/li&gt;
&lt;li&gt;気象庁，&lt;a href=&quot;https://www.jma.go.jp/jma/kishou/know/jishin/kyoshin/kaisetsu/calc_sindo.html&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;計測震度の算出方法&lt;/a&gt;。&lt;/li&gt;
&lt;li&gt;気象庁地震火山部，《&lt;a href=&quot;https://www.jma.go.jp/jma/kishou/know/jishin/eew/katsuyou/reference.pdf&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;緊急地震速報の概要や処理手法に関する技術的参考資料&lt;/a&gt;》令和6年4月11日。&lt;/li&gt;
&lt;li&gt;気象庁，&lt;a href=&quot;https://www.jma.go.jp/jma/kishou/shingikai/jishin/tyoshuki_joho_kentokai/kentokai4/sanko3.pdf&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;長周期地震動の絶対速度応答最大値の計算方法&lt;/a&gt;（長周期地震動に関する情報検討会 第4回 別添資料3）。&lt;/li&gt;
&lt;li&gt;気象庁，&lt;a href=&quot;https://www.jma.go.jp/jma/kishou/know/jishin/ltpgm_explain/about_level.html&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;長周期地震動階級について&lt;/a&gt;。&lt;/li&gt;
&lt;li&gt;気象庁，&lt;a href=&quot;https://www.jma.go.jp/jma/kishou/know/jishin/kyoshin/kaisetsu/calc_wave.html&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;速度波形・変位波形の求め方&lt;/a&gt;。&lt;/li&gt;
&lt;li&gt;防災科学技術研究所，&lt;a href=&quot;https://www.kyoshin.bosai.go.jp/ja/faq/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;K-NET・KiK-net 質問集&lt;/a&gt;（最大加速度與最大速度的計算方法、記錄開始時刻、發震時刻的精度）。&lt;/li&gt;
&lt;li&gt;防災科学技術研究所，&lt;a href=&quot;https://www.kyoshin.bosai.go.jp/ja/knetascii/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;K-NET ASCII フォーマットについて&lt;/a&gt;。&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;國際&lt;/strong&gt;&lt;/p&gt;
&lt;ol start=&quot;13&quot;&gt;
&lt;li&gt;Shakal, A., Boore, D. M., Chiou, B., Iwan, W. D., O’Connell, D. R. H., &amp;#x26; Stepp, J. C. (2004). &lt;em&gt;COSMOS Summary Guidelines and Recommendations for Strong-Motion Records Processing&lt;/em&gt;. COSMOS Newsletter 11: 3–5.&lt;/li&gt;
&lt;li&gt;USGS National Strong-Motion Project — &lt;a href=&quot;https://escweb.wr.usgs.gov/nsmp-data/processing.html&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Data Processing&lt;/a&gt;。&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;&lt;h3 id=&quot;學術論文&quot;&gt;學術論文&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;台灣震度公式的來源&lt;/strong&gt;&lt;/p&gt;
&lt;ol start=&quot;15&quot;&gt;
&lt;li&gt;Wu, Y.-M., Teng, T.-L., Shin, T.-C., &amp;#x26; Hsiao, N.-C. (2003). Relationship between Peak Ground Acceleration, Peak Ground Velocity, and Intensity in Taiwan. &lt;em&gt;Bulletin of the Seismological Society of America&lt;/em&gt;, 93(1), 386–396. &lt;a href=&quot;https://doi.org/10.1785/0120020097&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;doi:10.1785/0120020097&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Wu, Y.-M., Hsiao, N.-C., &amp;#x26; Teng, T.-L. (2004). Relationships between Strong Ground Motion Peak Values and Seismic Loss during the 1999 Chi-Chi, Taiwan Earthquake. &lt;em&gt;Natural Hazards&lt;/em&gt;, 32, 357–373.&lt;/li&gt;
&lt;li&gt;Wu, Y.-M., &amp;#x26; Kanamori, H. (2005). Rapid Assessment of Damage Potential of Earthquakes in Taiwan from the Beginning of P Waves. &lt;em&gt;BSSA&lt;/em&gt;, 95(3), 1181–1185.&lt;/li&gt;
&lt;li&gt;Wu, Y.-M., Kanamori, H., Allen, R. M., &amp;#x26; Hauksson, E. (2007). Determination of earthquake early warning parameters, τc and Pd, for southern California. &lt;em&gt;Geophysical Journal International&lt;/em&gt;, 170(2), 711–717.&lt;/li&gt;
&lt;li&gt;Yang, B. M., Mittal, H., &amp;#x26; Wu, Y.-M. (2021). Real-Time Production of PGA, PGV, Intensity, and Sa Shakemaps Using Dense MEMS-Based Sensors in Taiwan. &lt;em&gt;Sensors&lt;/em&gt;, 21(3), 943.&lt;/li&gt;
&lt;li&gt;徐明同（1979）。《地震學》。黎明文化，pp. 16–26。&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;兩種濾波方式的比較&lt;/strong&gt;&lt;/p&gt;
&lt;ol start=&quot;21&quot;&gt;
&lt;li&gt;Boore, D. M., &amp;#x26; Akkar, S. (2003). Effect of causal and acausal filters on elastic and inelastic response spectra. &lt;em&gt;Earthquake Engineering &amp;#x26; Structural Dynamics&lt;/em&gt;, 32(11), 1729–1748. &lt;a href=&quot;https://doi.org/10.1002/eqe.299&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;doi:10.1002/eqe.299&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Boore, D. M., &amp;#x26; Bommer, J. J. (2005). Processing of strong-motion accelerograms: needs, options and consequences. &lt;em&gt;Soil Dynamics and Earthquake Engineering&lt;/em&gt;, 25, 93–115.&lt;/li&gt;
&lt;li&gt;Ancheta, T. D., et al. (2014). NGA-West2 Database. &lt;em&gt;Earthquake Spectra&lt;/em&gt;, 30(3), 989–1005.&lt;/li&gt;
&lt;li&gt;Chiou, B., Darragh, R., Gregor, N., &amp;#x26; Silva, W. NGA Project Strong-Motion Database. &lt;em&gt;Earthquake Spectra&lt;/em&gt;.（引述 Bazzurro et al., 2004 的結論）&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;其他&lt;/strong&gt;&lt;/p&gt;
&lt;ol start=&quot;25&quot;&gt;
&lt;li&gt;Nigam, N. C., &amp;#x26; Jennings, P. C. (1969). Calculation of response spectra from strong-motion earthquake records. &lt;em&gt;BSSA&lt;/em&gt;, 59(2), 909–922.&lt;/li&gt;
&lt;li&gt;Kunugi, T., Aoi, S., Nakamura, H., Fujiwara, H., &amp;#x26; Morikawa, N. (2008). A Real-Time Processing of Seismic Intensity. &lt;em&gt;地震&lt;/em&gt; 2輯, 60(4), 243–252. &lt;a href=&quot;https://doi.org/10.4294/zisin.60.243&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;doi:10.4294/zisin.60.243&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;功刀卓ほか（2013）。震度のリアルタイム演算に用いられる近似フィルタの改良。&lt;em&gt;地震&lt;/em&gt; 2輯, 65, 223–230。&lt;/li&gt;
&lt;li&gt;斎藤正徳（1978）。漸化式デジタル・フィルターの自動設計。&lt;em&gt;物理探鉱&lt;/em&gt;, 31(4), 240–263。&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;&lt;h3 id=&quot;沒能查到的部分&quot;&gt;沒能查到的部分&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;這幾項沒查到：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Kanamori、Maechling 與 Hauksson (1999)&lt;/strong&gt;，&lt;em&gt;BSSA&lt;/em&gt; 89, 311–316——這篇是氣象局速度計算的原始出處，很可能才是釘死當年做法的關鍵，但取不到全文。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;徐明同（1979）《地震學》&lt;/strong&gt;——加速度關係式的源頭，是中文教科書、沒有線上版本。整套台灣震度分級等於錨定在一份查不到的 1979 年迴歸上。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;斎藤正徳（1978）原文&lt;/strong&gt;——紙本日文期刊。若能取得，應該可以完全消掉第八節那 0.39% 的殘差。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;大樣本的兩種濾波比較統計&lt;/strong&gt;——目前找得到的公開比較只有 4 筆紀錄。本文的 125 站統計可能是手上最大的樣本。&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;&lt;h2 id=&quot;資料來源&quot;&gt;資料來源&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;這裡用的地震紀錄全部來自日本防災科學技術研究所（NIED）的 K-NET 強震觀測網，公開資料。2026 年 7 月 28 日熊本 M7.1，125 個測站、每站三分量、每秒 100 個取樣點。&lt;/p&gt;
&lt;p&gt;數字都可以從公開資料重現。法規原文是把 PDF 的文字抽出來逐字比對過的。&lt;/p&gt;</content:encoded><category>Sharing</category><category>Analysis</category><category>Seismology</category><category>Signal Processing</category></item><item><title>07/18 強震即時警報轉發誤送測試電文說明</title><link>https://exptech.dev/blog/rca-2026-07-18_1/</link><guid isPermaLink="true">https://exptech.dev/blog/rca-2026-07-18_1/</guid><description>2026/07/18 08:29（臺灣時間）左右，cwa-xml-go 與 cwa-eew-go 合併的重構測試中，測試電文經 NATS Supercluster 進到生產環境。誤發的是轉發流程送出的測試電文，不是中央氣象署的警報，也不是我們自行發布的地震警報。</description><pubDate>Sat, 18 Jul 2026 00:00:00 GMT</pubDate><content:encoded>&lt;section data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;div data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;span data-severity=&quot;critical&quot;&gt;&lt;svg width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 16 16&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;rect data-on=&quot;&quot; x=&quot;1.5&quot; y=&quot;9.5&quot; width=&quot;2.25&quot; height=&quot;4.5&quot; rx=&quot;0.75&quot;&gt;&lt;/rect&gt;&lt;rect data-on=&quot;&quot; x=&quot;5.25&quot; y=&quot;7&quot; width=&quot;2.25&quot; height=&quot;7&quot; rx=&quot;0.75&quot;&gt;&lt;/rect&gt;&lt;rect data-on=&quot;&quot; x=&quot;9&quot; y=&quot;4.5&quot; width=&quot;2.25&quot; height=&quot;9.5&quot; rx=&quot;0.75&quot;&gt;&lt;/rect&gt;&lt;rect data-on=&quot;&quot; x=&quot;12.75&quot; y=&quot;2&quot; width=&quot;2.25&quot; height=&quot;12&quot; rx=&quot;0.75&quot;&gt;&lt;/rect&gt;&lt;/svg&gt;&lt;span&gt;嚴重程度&lt;/span&gt;&lt;span&gt;：&lt;/span&gt;&lt;span&gt;嚴重&lt;/span&gt;&lt;/span&gt;&lt;span data-status=&quot;resolved&quot;&gt;&lt;svg width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 16 16&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.6&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;circle cx=&quot;8&quot; cy=&quot;8&quot; r=&quot;6.25&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m5.4 8.2 1.8 1.8 3.5-3.6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span&gt;狀態&lt;/span&gt;&lt;span&gt;：&lt;/span&gt;&lt;span&gt;已結案&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;dl data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;div data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;dt data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;13&quot; height=&quot;13&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;path d=&quot;M8 2v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M16 2v4&quot;&gt;&lt;/path&gt;&lt;rect width=&quot;18&quot; height=&quot;18&quot; x=&quot;3&quot; y=&quot;4&quot; rx=&quot;2&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M3 10h18&quot;&gt;&lt;/path&gt;&lt;/svg&gt;發生時間&lt;/dt&gt;&lt;dd data-astro-cid-g5zafgs6=&quot;&quot;&gt;2026/07/18 08:29 (UTC+8) 左右&lt;/dd&gt;&lt;/div&gt;&lt;div data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;dt data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;13&quot; height=&quot;13&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;path d=&quot;M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;觸發條件&lt;/dt&gt;&lt;dd data-astro-cid-g5zafgs6=&quot;&quot;&gt;服務重構測試過程中&lt;/dd&gt;&lt;/div&gt;&lt;div data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;dt data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;13&quot; height=&quot;13&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;path d=&quot;M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M14 2v5a1 1 0 0 0 1 1h5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M10 9H8&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M16 13H8&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M16 17H8&quot;&gt;&lt;/path&gt;&lt;/svg&gt;問題描述&lt;/dt&gt;&lt;dd data-astro-cid-g5zafgs6=&quot;&quot;&gt;轉發流程送出測試電文&lt;/dd&gt;&lt;/div&gt;&lt;div data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;dt data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;13&quot; height=&quot;13&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;path d=&quot;m21 21-4.34-4.34&quot;&gt;&lt;/path&gt;&lt;circle cx=&quot;11&quot; cy=&quot;11&quot; r=&quot;8&quot;&gt;&lt;/circle&gt;&lt;/svg&gt;根本原因&lt;/dt&gt;&lt;dd data-astro-cid-g5zafgs6=&quot;&quot;&gt;測試電文經 NATS Supercluster 進到生產環境&lt;/dd&gt;&lt;/div&gt;&lt;/dl&gt;&lt;/section&gt;
&lt;p&gt;2026/07/18 08:29（臺灣時間）左右，我們在測試 &lt;code dir=&quot;auto&quot;&gt;cwa-xml-go&lt;/code&gt; 與 &lt;code dir=&quot;auto&quot;&gt;cwa-eew-go&lt;/code&gt; 的合併，測試電文經 NATS Supercluster 進到生產環境。誤發的是轉發流程送出的測試電文，不是中央氣象署的警報，也不是我們自行發布的地震警報。08:31 我們阻斷了這則電文。我們向收到這則測試電文的使用者道歉。&lt;/p&gt;

&lt;div&gt;&lt;h2 id=&quot;發生經過&quot;&gt;發生經過&lt;/h2&gt;&lt;/div&gt;
&lt;section aria-label=&quot;時間軸&quot; data-astro-cid-z7ssoihh=&quot;&quot;&gt;&lt;header data-astro-cid-z7ssoihh=&quot;&quot;&gt;&lt;p data-astro-cid-z7ssoihh=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;12&quot; height=&quot;12&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-z7ssoihh=&quot;&quot;&gt;&lt;path d=&quot;M12 6v6l4 2&quot;&gt;&lt;/path&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;/svg&gt;時間 (UTC+8)&lt;/p&gt;&lt;/header&gt;&lt;ol role=&quot;list&quot; data-astro-cid-z7ssoihh=&quot;&quot;&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;critical&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;嚴重 &lt;/span&gt;&lt;time datetime=&quot;2026-07-18T08:29&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;2026/07/18 08:29&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;轉發流程送出測試電文&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;forensic&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;m21 21-4.34-4.34&quot;&gt;&lt;/path&gt;&lt;circle cx=&quot;11&quot; cy=&quot;11&quot; r=&quot;8&quot;&gt;&lt;/circle&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;取證 &lt;/span&gt;&lt;time datetime=&quot;2026-07-18T08:30&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;2026/07/18 08:30&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;確認問題，開始處理&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;fix&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;修正 &lt;/span&gt;&lt;time datetime=&quot;2026-07-18T08:31&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;2026/07/18 08:31&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;阻斷這則電文&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/section&gt;
&lt;p&gt;當天早上重構 &lt;code dir=&quot;auto&quot;&gt;cwa-xml-go&lt;/code&gt;，要把 &lt;code dir=&quot;auto&quot;&gt;cwa-xml-go&lt;/code&gt; 與 &lt;code dir=&quot;auto&quot;&gt;cwa-eew-go&lt;/code&gt; 合成一個服務，降低系統複雜度，也減少處理延遲。&lt;code dir=&quot;auto&quot;&gt;cwa-eew-go&lt;/code&gt; 負責轉發中央氣象署的強震即時警報。&lt;/p&gt;
&lt;figure lang=&quot;zh-TW&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;div data-xt-zoomable=&quot;&quot; aria-label=&quot;cwa-xml-go 與 cwa-eew-go 合併前的架構示意圖&quot; aria-describedby=&quot;cwa-pipeline-desc-zh-TW&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;svg viewBox=&quot;0 0 500 901&quot; width=&quot;500&quot; height=&quot;901&quot; role=&quot;img&quot; aria-label=&quot;cwa-xml-go 與 cwa-eew-go 合併前的架構&quot; aria-describedby=&quot;cwa-pipeline-desc-zh-TW&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;110&quot; y=&quot;4&quot; width=&quot;280&quot; height=&quot;136&quot; rx=&quot;12&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M110 16 A12 12 0 0 1 122 4 H378 A12 12 0 0 1 390 16&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/path&gt;&lt;rect x=&quot;120&quot; y=&quot;13&quot; width=&quot;37.46&quot; height=&quot;19&quot; rx=&quot;9.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;138.73&quot; y=&quot;23&quot; font-size=&quot;11.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;CWA&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;30&quot; y=&quot;248&quot; width=&quot;174&quot; height=&quot;390&quot; rx=&quot;12&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M30 260 A12 12 0 0 1 42 248 H192 A12 12 0 0 1 204 260&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/path&gt;&lt;rect x=&quot;124.34&quot; y=&quot;257&quot; width=&quot;69.66&quot; height=&quot;19&quot; rx=&quot;9.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;159.17&quot; y=&quot;267&quot; font-size=&quot;11.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;core-tyo1&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;296&quot; y=&quot;248&quot; width=&quot;174&quot; height=&quot;390&quot; rx=&quot;12&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M296 260 A12 12 0 0 1 308 248 H458 A12 12 0 0 1 470 260&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/path&gt;&lt;rect x=&quot;306&quot; y=&quot;257&quot; width=&quot;69.66&quot; height=&quot;19&quot; rx=&quot;9.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;340.83&quot; y=&quot;267&quot; font-size=&quot;11.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;core-tnn1&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;30&quot; y=&quot;690&quot; width=&quot;170&quot; height=&quot;76&quot; rx=&quot;12&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M30 702 A12 12 0 0 1 42 690 H188 A12 12 0 0 1 200 702&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/path&gt;&lt;rect x=&quot;133.22&quot; y=&quot;699&quot; width=&quot;56.78&quot; height=&quot;19&quot; rx=&quot;9.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;161.61&quot; y=&quot;709&quot; font-size=&quot;11.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;lb-khh1&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;300&quot; y=&quot;690&quot; width=&quot;170&quot; height=&quot;76&quot; rx=&quot;12&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M300 702 A12 12 0 0 1 312 690 H458 A12 12 0 0 1 470 702&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/path&gt;&lt;rect x=&quot;310&quot; y=&quot;699&quot; width=&quot;56.78&quot; height=&quot;19&quot; rx=&quot;9.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;338.39&quot; y=&quot;709&quot; font-size=&quot;11.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;lb-tnn1&lt;/text&gt;&lt;/g&gt;&lt;g fill=&quot;none&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;path d=&quot;M180 66 L180 88&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;180,94 175.5,87 184.5,87&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;path d=&quot;M320 124 L320 194 Q320 202 312 202 L52 202 Q44 202 44 210 L44 393 Q44 399 50 399 L56 399&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;62,399 55,403.5 55,394.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;path d=&quot;M320 124 L320 194 Q320 202 328 202 L448 202 Q456 202 456 210 L456 393 Q456 399 450 399 L444 399&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;438,399 445,394.5 445,403.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;path d=&quot;M180 124 L180 222 Q180 230 172 230 L128 230 Q120 230 120 238 L120 274&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;120,280 115.5,273 124.5,273&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;path d=&quot;M180 124 L180 222 Q180 230 188 230 L372 230 Q380 230 380 238 L380 274&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;380,280 375.5,273 384.5,273&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;path d=&quot;M120 310 L120 378&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;120,384 115.5,377 124.5,377&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;path d=&quot;M380 310 L380 378&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;380,384 375.5,377 384.5,377&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;path d=&quot;M178 295 C226 295 340 328 340 378&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;340,384 335.5,377 344.5,377&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;path d=&quot;M322 295 C274 295 160 328 160 378&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;160,384 155.5,377 164.5,377&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;path d=&quot;M120 414 L120 482&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;120,488 115.5,481 124.5,481&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;path d=&quot;M380 414 L380 482&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;380,488 375.5,481 384.5,481&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;path d=&quot;M178 399 C226 399 340 432 340 482&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;340,488 335.5,481 344.5,481&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;path d=&quot;M322 399 C274 399 160 432 160 482&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;160,488 155.5,481 164.5,481&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;path d=&quot;M120 518 L120 586&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;120,592 115.5,585 124.5,585&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;path d=&quot;M380 518 L380 586&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;380,592 375.5,585 384.5,585&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;path d=&quot;M178 503 C226 503 340 536 340 586&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;340,592 335.5,585 344.5,585&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;path d=&quot;M322 503 C274 503 160 536 160 586&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;160,592 155.5,585 164.5,585&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;path d=&quot;M62 503 L52 503 Q44 503 44 511 L44 656 Q44 664 52 664 L112 664 Q120 664 120 672 L120 714&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;120,720 115.5,713 124.5,713&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;path d=&quot;M438 503 L448 503 Q456 503 456 511 L456 656 Q456 664 448 664 L388 664 Q380 664 380 672 L380 714&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;380,720 375.5,713 384.5,713&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;path d=&quot;M62 503 L14 503 Q6 503 6 511 L6 882 Q6 890 14 890 L228 890 Q236 890 242.73 885.67 L257.27 876.33 Q264 872 272 872 L474 872 Q482 872 482 864 L482 743 Q482 735 474 735 L444 735&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;438,735 445,730.5 445,739.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;path d=&quot;M438 503 L486 503 Q494 503 494 511 L494 882 Q494 890 486 890 L272 890 Q264 890 257.27 885.67 L242.73 876.33 Q236 872 228 872 L26 872 Q18 872 18 864 L18 743 Q18 735 26 735 L56 735&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;62,735 55,739.5 55,730.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;path d=&quot;M190 832 L128 832 Q120 832 120 824 L120 756&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;120,750 124.5,757 115.5,757&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;path d=&quot;M310 832 L372 832 Q380 832 380 824 L380 756&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;380,750 384.5,757 375.5,757&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;path d=&quot;M250 816 L250 615 Q250 607 242 607 L184 607&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;178,607 185,602.5 185,611.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;path d=&quot;M250 816 L250 615 Q250 607 258 607 L316 607&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;322,607 315,611.5 315,602.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;126&quot; y=&quot;36&quot; width=&quot;108&quot; height=&quot;30&quot; rx=&quot;7&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;180&quot; y=&quot;51.5&quot; font-size=&quot;12.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;DCSN1&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;126&quot; y=&quot;94&quot; width=&quot;108&quot; height=&quot;30&quot; rx=&quot;7&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;180&quot; y=&quot;109.5&quot; font-size=&quot;12.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;EIP&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;266&quot; y=&quot;94&quot; width=&quot;108&quot; height=&quot;30&quot; rx=&quot;7&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;320&quot; y=&quot;109.5&quot; font-size=&quot;12.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;?&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;62&quot; y=&quot;280&quot; width=&quot;116&quot; height=&quot;30&quot; rx=&quot;7&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;120&quot; y=&quot;295.5&quot; font-size=&quot;12&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;cwa-xml-go&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;62&quot; y=&quot;384&quot; width=&quot;116&quot; height=&quot;30&quot; rx=&quot;7&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;120&quot; y=&quot;399.5&quot; font-size=&quot;12&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;cwa-eew-go&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;62&quot; y=&quot;488&quot; width=&quot;116&quot; height=&quot;30&quot; rx=&quot;7&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;120&quot; y=&quot;503.5&quot; font-size=&quot;12&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;eew-server-go&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;62&quot; y=&quot;592&quot; width=&quot;116&quot; height=&quot;30&quot; rx=&quot;7&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;120&quot; y=&quot;607.5&quot; font-size=&quot;12.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;Nginx + Lua&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;322&quot; y=&quot;280&quot; width=&quot;116&quot; height=&quot;30&quot; rx=&quot;7&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;380&quot; y=&quot;295.5&quot; font-size=&quot;12&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;cwa-xml-go&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;322&quot; y=&quot;384&quot; width=&quot;116&quot; height=&quot;30&quot; rx=&quot;7&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;380&quot; y=&quot;399.5&quot; font-size=&quot;12&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;cwa-eew-go&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;322&quot; y=&quot;488&quot; width=&quot;116&quot; height=&quot;30&quot; rx=&quot;7&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;380&quot; y=&quot;503.5&quot; font-size=&quot;12&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;eew-server-go&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;322&quot; y=&quot;592&quot; width=&quot;116&quot; height=&quot;30&quot; rx=&quot;7&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;380&quot; y=&quot;607.5&quot; font-size=&quot;12.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;Nginx + Lua&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;62&quot; y=&quot;720&quot; width=&quot;116&quot; height=&quot;30&quot; rx=&quot;7&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;120&quot; y=&quot;735.5&quot; font-size=&quot;12.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;Nginx + Lua&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;322&quot; y=&quot;720&quot; width=&quot;116&quot; height=&quot;30&quot; rx=&quot;7&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;380&quot; y=&quot;735.5&quot; font-size=&quot;12.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;Nginx + Lua&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;190&quot; y=&quot;816&quot; width=&quot;120&quot; height=&quot;32&quot; rx=&quot;8&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;250&quot; y=&quot;832.5&quot; font-size=&quot;12.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;使用者&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;261.86&quot; y=&quot;154.5&quot; width=&quot;116.28&quot; height=&quot;33&quot; rx=&quot;6&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;320&quot; y=&quot;164&quot; font-size=&quot;11.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;HTTP GET&lt;/text&gt;&lt;text x=&quot;320&quot; y=&quot;178.5&quot; font-size=&quot;11&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;(application/json)&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;113.72&quot; y=&quot;154.5&quot; width=&quot;132.56&quot; height=&quot;33&quot; rx=&quot;6&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;180&quot; y=&quot;164&quot; font-size=&quot;11.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;HTTP GET&lt;/text&gt;&lt;text x=&quot;180&quot; y=&quot;178.5&quot; font-size=&quot;11&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;(multipart/form-data)&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;98.36&quot; y=&quot;325.5&quot; width=&quot;43.28&quot; height=&quot;19&quot; rx=&quot;6&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;120&quot; y=&quot;335.5&quot; font-size=&quot;11.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;NATS&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;358.36&quot; y=&quot;325.5&quot; width=&quot;43.28&quot; height=&quot;19&quot; rx=&quot;6&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;380&quot; y=&quot;335.5&quot; font-size=&quot;11.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;NATS&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;315.75&quot; y=&quot;355.5&quot; width=&quot;43.28&quot; height=&quot;19&quot; rx=&quot;6&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;337.39&quot; y=&quot;365.5&quot; font-size=&quot;11.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;NATS&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;140.97&quot; y=&quot;355.5&quot; width=&quot;43.28&quot; height=&quot;19&quot; rx=&quot;6&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;162.61&quot; y=&quot;365.5&quot; font-size=&quot;11.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;NATS&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;98.36&quot; y=&quot;429.5&quot; width=&quot;43.28&quot; height=&quot;19&quot; rx=&quot;6&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;120&quot; y=&quot;439.5&quot; font-size=&quot;11.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;NATS&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;358.36&quot; y=&quot;429.5&quot; width=&quot;43.28&quot; height=&quot;19&quot; rx=&quot;6&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;380&quot; y=&quot;439.5&quot; font-size=&quot;11.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;NATS&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;315.75&quot; y=&quot;459.5&quot; width=&quot;43.28&quot; height=&quot;19&quot; rx=&quot;6&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;337.39&quot; y=&quot;469.5&quot; font-size=&quot;11.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;NATS&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;140.97&quot; y=&quot;459.5&quot; width=&quot;43.28&quot; height=&quot;19&quot; rx=&quot;6&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;162.61&quot; y=&quot;469.5&quot; font-size=&quot;11.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;NATS&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;98.36&quot; y=&quot;533.5&quot; width=&quot;43.28&quot; height=&quot;19&quot; rx=&quot;6&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;120&quot; y=&quot;543.5&quot; font-size=&quot;11.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;NATS&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;358.36&quot; y=&quot;533.5&quot; width=&quot;43.28&quot; height=&quot;19&quot; rx=&quot;6&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;380&quot; y=&quot;543.5&quot; font-size=&quot;11.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;NATS&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;315.75&quot; y=&quot;563.5&quot; width=&quot;43.28&quot; height=&quot;19&quot; rx=&quot;6&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;337.39&quot; y=&quot;573.5&quot; font-size=&quot;11.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;NATS&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;140.97&quot; y=&quot;563.5&quot; width=&quot;43.28&quot; height=&quot;19&quot; rx=&quot;6&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;162.61&quot; y=&quot;573.5&quot; font-size=&quot;11.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;NATS&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;60.36&quot; y=&quot;654.5&quot; width=&quot;43.28&quot; height=&quot;19&quot; rx=&quot;6&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;82&quot; y=&quot;664.5&quot; font-size=&quot;11.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;NATS&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;396.36&quot; y=&quot;654.5&quot; width=&quot;43.28&quot; height=&quot;19&quot; rx=&quot;6&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;418&quot; y=&quot;664.5&quot; font-size=&quot;11.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;NATS&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;98.36&quot; y=&quot;880.5&quot; width=&quot;43.28&quot; height=&quot;19&quot; rx=&quot;6&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;120&quot; y=&quot;890.5&quot; font-size=&quot;11.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;NATS&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;358.36&quot; y=&quot;880.5&quot; width=&quot;43.28&quot; height=&quot;19&quot; rx=&quot;6&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;380&quot; y=&quot;890.5&quot; font-size=&quot;11.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;NATS&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;61.86&quot; y=&quot;778.5&quot; width=&quot;116.28&quot; height=&quot;33&quot; rx=&quot;6&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;120&quot; y=&quot;788&quot; font-size=&quot;11.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;HTTP GET&lt;/text&gt;&lt;text x=&quot;120&quot; y=&quot;802.5&quot; font-size=&quot;11&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;(application/json)&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;321.86&quot; y=&quot;778.5&quot; width=&quot;116.28&quot; height=&quot;33&quot; rx=&quot;6&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;380&quot; y=&quot;788&quot; font-size=&quot;11.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;HTTP GET&lt;/text&gt;&lt;text x=&quot;380&quot; y=&quot;802.5&quot; font-size=&quot;11&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;(application/json)&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;rect x=&quot;191.86&quot; y=&quot;647.5&quot; width=&quot;116.28&quot; height=&quot;33&quot; rx=&quot;6&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;250&quot; y=&quot;657&quot; font-size=&quot;11.5&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;HTTP GET&lt;/text&gt;&lt;text x=&quot;250&quot; y=&quot;671.5&quot; font-size=&quot;11&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;(application/json)&lt;/text&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/div&gt;&lt;p aria-hidden=&quot;true&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;點圖可放大&lt;/p&gt;&lt;p id=&quot;cwa-pipeline-desc-zh-TW&quot; data-astro-cid-v5l3aotb=&quot;&quot;&gt;中央氣象署（CWA）的方塊裡有 DCSN1、EIP，以及一個標示「?」的方塊，DCSN1 的箭頭指向 EIP。core-tyo1 與 core-tnn1 兩組各有 cwa-xml-go、cwa-eew-go、eew-server-go 與 Nginx + Lua；lb-khh1 與 lb-tnn1 兩組各有一個 Nginx + Lua。從 EIP 指向兩組 cwa-xml-go 的箭頭標示 HTTP GET（multipart/form-data）；從「?」指向兩組 cwa-eew-go 的箭頭標示 HTTP GET（application/json）。標示 NATS 的箭頭：每個 cwa-xml-go 指向兩組的 cwa-eew-go，每個 cwa-eew-go 指向兩組的 eew-server-go，每個 eew-server-go 指向 core-tyo1、core-tnn1、lb-khh1、lb-tnn1 的四個 Nginx + Lua。使用者的箭頭指向 lb-khh1 與 lb-tnn1 的 Nginx + Lua，標示 HTTP GET（application/json）；另有兩條虛線箭頭指向 core-tyo1 與 core-tnn1 的 Nginx + Lua，同樣標示 HTTP GET（application/json）。&lt;/p&gt;&lt;figcaption data-astro-cid-v5l3aotb=&quot;&quot;&gt;cwa-xml-go 與 cwa-eew-go 合併前的架構示意圖&lt;/figcaption&gt;&lt;/figure&gt;
&lt;div&gt;&lt;h2 id=&quot;原因&quot;&gt;原因&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;服務之間用 &lt;span&gt;&lt;svg viewBox=&quot;0 0 24 24&quot; width=&quot;1em&quot; height=&quot;1em&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M12.004 0H.404v18.807h9.938l1.714 1.602v-.026L15.966 24v-5.193h7.63V0H12.003zm7.578 14.45H15.38L6.898 6.519v7.93H4.116V4.376h4.349l8.344 7.784V4.375h2.773V14.45z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;NATS&lt;/span&gt; 傳電文。NATS Supercluster 會把電文同步到另一個機房，供異地雙活備援使用。測試機和生產環境接在同一組 Supercluster 上，測試機可以對生產環境訂閱的 subject 發布。下游服務沒有區分測試電文和正式電文，收到之後就照正式電文處理，轉發流程因此把測試電文送出去。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;改善措施&quot;&gt;改善措施&lt;/h2&gt;&lt;/div&gt;
&lt;ol role=&quot;list&quot;&gt;
&lt;li&gt;
&lt;p&gt;限制測試機的發布權限，避免測試電文進到生產環境訂閱的 subject。&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;把測試與生產環境的訊息通道分開。&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;檢查其餘服務有沒有同樣的權限設定，並一併修正。&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;</content:encoded><category>RCA</category></item><item><title>不能忽略的 CVE-2025-66478 滿級漏洞</title><link>https://exptech.dev/blog/sharing-2025-12-17/</link><guid isPermaLink="true">https://exptech.dev/blog/sharing-2025-12-17/</guid><description>CVE-2025-66478 影響 Next.js，來自 React Server Components（RSC）協議的缺陷，可能導致伺服器被遠端執行腳本或指令。我用 Docker 部署，前後端分開，攻擊者無法直接讀取後端服務的敏感資料。</description><pubDate>Wed, 17 Dec 2025 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;CVE-2025-66478 影響 Next.js，來自 React Server Components（RSC）協議的缺陷，可能導致伺服器被遠端執行腳本或指令。我平常使用 &lt;span&gt;&lt;svg viewBox=&quot;0 0 24 24&quot; width=&quot;1em&quot; height=&quot;1em&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M13.983 11.078h2.119a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.119a.185.185 0 00-.185.185v1.888c0 .102.083.185.185.185m-2.954-5.43h2.118a.186.186 0 00.186-.186V3.574a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m0 2.716h2.118a.187.187 0 00.186-.186V6.29a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.887c0 .102.082.185.185.186m-2.93 0h2.12a.186.186 0 00.184-.186V6.29a.185.185 0 00-.185-.185H8.1a.185.185 0 00-.185.185v1.887c0 .102.083.185.185.186m-2.964 0h2.119a.186.186 0 00.185-.186V6.29a.185.185 0 00-.185-.185H5.136a.186.186 0 00-.186.185v1.887c0 .102.084.185.186.186m5.893 2.715h2.118a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m-2.93 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.083.185.185.185m-2.964 0h2.119a.185.185 0 00.185-.185V9.006a.185.185 0 00-.184-.186h-2.12a.186.186 0 00-.186.186v1.887c0 .102.084.185.186.185m-2.92 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.082.185.185.185M23.763 9.89c-.065-.051-.672-.51-1.954-.51-.338.001-.676.03-1.01.087-.248-1.7-1.653-2.53-1.716-2.566l-.344-.199-.226.327c-.284.438-.49.922-.612 1.43-.23.97-.09 1.882.403 2.661-.595.332-1.55.413-1.744.42H.751a.751.751 0 00-.75.748 11.376 11.376 0 00.692 4.062c.545 1.428 1.355 2.48 2.41 3.124 1.18.723 3.1 1.137 5.275 1.137.983.003 1.963-.086 2.93-.266a12.248 12.248 0 003.823-1.389c.98-.567 1.86-1.288 2.61-2.136 1.252-1.418 1.998-2.997 2.553-4.4h.221c1.372 0 2.215-.549 2.68-1.009.309-.293.55-.65.707-1.046l.098-.288Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Docker&lt;/span&gt; 部署，前後端分開，這次的影響相對有限：攻擊者無法直接讀取後端服務的敏感資料，容器也沒有掛載實體檔案系統，入侵宿主機的風險相對較低。&lt;/p&gt;
&lt;section data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;div data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;span data-severity=&quot;high&quot;&gt;&lt;svg width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 16 16&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;rect data-on=&quot;&quot; x=&quot;1.5&quot; y=&quot;9.5&quot; width=&quot;2.25&quot; height=&quot;4.5&quot; rx=&quot;0.75&quot;&gt;&lt;/rect&gt;&lt;rect data-on=&quot;&quot; x=&quot;5.25&quot; y=&quot;7&quot; width=&quot;2.25&quot; height=&quot;7&quot; rx=&quot;0.75&quot;&gt;&lt;/rect&gt;&lt;rect data-on=&quot;&quot; x=&quot;9&quot; y=&quot;4.5&quot; width=&quot;2.25&quot; height=&quot;9.5&quot; rx=&quot;0.75&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;12.75&quot; y=&quot;2&quot; width=&quot;2.25&quot; height=&quot;12&quot; rx=&quot;0.75&quot;&gt;&lt;/rect&gt;&lt;/svg&gt;&lt;span&gt;嚴重程度&lt;/span&gt;&lt;span&gt;：&lt;/span&gt;&lt;span&gt;高&lt;/span&gt;&lt;/span&gt;&lt;span data-status=&quot;resolved&quot;&gt;&lt;svg width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 16 16&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.6&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;circle cx=&quot;8&quot; cy=&quot;8&quot; r=&quot;6.25&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m5.4 8.2 1.8 1.8 3.5-3.6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span&gt;狀態&lt;/span&gt;&lt;span&gt;：&lt;/span&gt;&lt;span&gt;已結案&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;dl data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;div data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;dt data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;13&quot; height=&quot;13&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;path d=&quot;M8 2v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M16 2v4&quot;&gt;&lt;/path&gt;&lt;rect width=&quot;18&quot; height=&quot;18&quot; x=&quot;3&quot; y=&quot;4&quot; rx=&quot;2&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M3 10h18&quot;&gt;&lt;/path&gt;&lt;/svg&gt;發現時間&lt;/dt&gt;&lt;dd data-astro-cid-g5zafgs6=&quot;&quot;&gt;2025/12/8&lt;/dd&gt;&lt;/div&gt;&lt;div data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;dt data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;13&quot; height=&quot;13&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;path d=&quot;m12 14 4-4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M3.34 19a10 10 0 1 1 17.32 0&quot;&gt;&lt;/path&gt;&lt;/svg&gt;CVSS 評分&lt;/dt&gt;&lt;dd data-astro-cid-g5zafgs6=&quot;&quot;&gt;10.0（Critical）&lt;/dd&gt;&lt;/div&gt;&lt;div data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;dt data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;13&quot; height=&quot;13&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;path d=&quot;M12 20v-9&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M14.12 3.88 16 2&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 21a4 4 0 0 0-3.81-4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 5a4 4 0 0 1-3.55 3.97&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M22 13h-4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M3 21a4 4 0 0 1 3.81-4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M3 5a4 4 0 0 0 3.55 3.97&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M6 13H2&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m8 2 1.88 1.88&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M9 7.13V6a3 3 0 1 1 6 0v1.13&quot;&gt;&lt;/path&gt;&lt;/svg&gt;漏洞類型&lt;/dt&gt;&lt;dd data-astro-cid-g5zafgs6=&quot;&quot;&gt;遠端程式碼執行（Remote Code Execution）&lt;/dd&gt;&lt;/div&gt;&lt;div data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;dt data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;13&quot; height=&quot;13&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;line x1=&quot;22&quot; x2=&quot;18&quot; y1=&quot;12&quot; y2=&quot;12&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;6&quot; x2=&quot;2&quot; y1=&quot;12&quot; y2=&quot;12&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;12&quot; x2=&quot;12&quot; y1=&quot;6&quot; y2=&quot;2&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;12&quot; x2=&quot;12&quot; y1=&quot;22&quot; y2=&quot;18&quot;&gt;&lt;/line&gt;&lt;/svg&gt;攻擊向量&lt;/dt&gt;&lt;dd data-astro-cid-g5zafgs6=&quot;&quot;&gt;網路攻擊，無需身分驗證&lt;/dd&gt;&lt;/div&gt;&lt;/dl&gt;&lt;/section&gt;

&lt;div&gt;&lt;h2 id=&quot;經過&quot;&gt;經過&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;一開始看到這個漏洞公告，還以為只是「又一個框架安全更新」，沒有特別在意。直到自己的 IP 被 &lt;span&gt;&lt;svg viewBox=&quot;0 0 24 24&quot; width=&quot;1em&quot; height=&quot;1em&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M16.5088 16.8447c.1475-.5068.0908-.9707-.1553-1.3154-.2246-.3164-.6045-.499-1.0615-.5205l-8.6592-.1123a.1559.1559 0 0 1-.1333-.0713c-.0283-.042-.0351-.0986-.021-.1553.0278-.084.1123-.1484.2036-.1562l8.7359-.1123c1.0351-.0489 2.1601-.8868 2.5537-1.9136l.499-1.3013c.0215-.0561.0293-.1128.0147-.168-.5625-2.5463-2.835-4.4453-5.5499-4.4453-2.5039 0-4.6284 1.6177-5.3876 3.8614-.4927-.3658-1.1187-.5625-1.794-.499-1.2026.119-2.1665 1.083-2.2861 2.2856-.0283.31-.0069.6128.0635.894C1.5683 13.171 0 14.7754 0 16.752c0 .1748.0142.3515.0352.5273.0141.083.0844.1475.1689.1475h15.9814c.0909 0 .1758-.0645.2032-.1553l.12-.4268zm2.7568-5.5634c-.0771 0-.1611 0-.2383.0112-.0566 0-.1054.0415-.127.0976l-.3378 1.1744c-.1475.5068-.0918.9707.1543 1.3164.2256.3164.6055.498 1.0625.5195l1.8437.1133c.0557 0 .1055.0263.1329.0703.0283.043.0351.1074.0214.1562-.0283.084-.1132.1485-.204.1553l-1.921.1123c-1.041.0488-2.1582.8867-2.5527 1.914l-.1406.3585c-.0283.0713.0215.1416.0986.1416h6.5977c.0771 0 .1474-.0489.169-.126.1122-.4082.1757-.837.1757-1.2803 0-2.6025-2.125-4.727-4.7344-4.727&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Cloudflare&lt;/span&gt; 列入黑名單，才知道背後很可能已經有人在主動嘗試攻擊。&lt;/p&gt;
&lt;p&gt;最後重新建置映像、重新部署，並更新 Next.js 版本，環境回到乾淨狀態。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;漏洞詳情&quot;&gt;漏洞詳情&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;CVE-2025-66478 源於 React 的上游實作（CVE-2025-55182）。在特定條件下，攻擊者可以透過精心構造的請求，讓伺服器走到沒有預期的執行路徑，在伺服器上執行腳本或指令。&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;攻擊方式&quot;&gt;攻擊方式&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;實際觀察到的攻擊行為大致如下：&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;連線進來後，先偵測伺服器上已安裝的套件與環境&lt;/li&gt;
&lt;li&gt;接著嘗試從遠端下載惡意腳本，並在伺服器上執行&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;目前實際遇到的腳本類型：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;偽裝成 Nginx 的程式或服務&lt;/li&gt;
&lt;li&gt;挖礦腳本&lt;/li&gt;
&lt;li&gt;後門腳本（包含開機自動執行的腳本）&lt;/li&gt;
&lt;li&gt;架設 VPN / Proxy 的腳本&lt;/li&gt;
&lt;li&gt;PowerShell 腳本（針對 Windows 環境）&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;下方是其中一個惡意腳本的內容截圖（部分資訊已遮掉）：&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://exptech.dev/img/sharing/2025-12-17/image.webp&quot; alt=&quot;惡意腳本截圖&quot; decoding=&quot;async&quot; width=&quot;1784&quot; height=&quot;1328&quot;&gt;&lt;figcaption&gt;惡意腳本截圖&lt;/figcaption&gt;&lt;/figure&gt;
&lt;div&gt;&lt;h2 id=&quot;參考資源&quot;&gt;參考資源&lt;/h2&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://nextjs.org/blog/CVE-2025-66478&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Next.js 官方安全公告&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;svg viewBox=&quot;0 0 24 24&quot; width=&quot;1em&quot; height=&quot;1em&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;a href=&quot;https://github.com/facebook/react/security/advisories&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;React CVE-2025-55182&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;&lt;h2 id=&quot;相關日誌記錄&quot;&gt;相關日誌記錄&lt;/h2&gt;&lt;/div&gt;
&lt;div&gt;&lt;a href=&quot;https://github.com/ExpTechTW/CVE-2025-66478&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;span&gt;&lt;svg width=&quot;20&quot; height=&quot;20&quot; viewBox=&quot;0 0 16 16&quot; fill=&quot;currentColor&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0016 8c0-4.42-3.58-8-8-8z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span&gt;&lt;span&gt;CVE-2025-66478&lt;/span&gt;&lt;span&gt;github.com/ExpTechTW/CVE-2025-66478&lt;/span&gt;&lt;/span&gt;&lt;svg width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 16 16&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.5&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M5.5 10.5 10.5 5.5M6 5.5h4.5V10&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;span&gt;Next.js 的 CVE-2025-66478 漏洞詳情&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&lt;h2 id=&quot;之後的維護&quot;&gt;之後的維護&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;這次之後，我會更重視伺服器的安全：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;優先更新與安全性相關的套件與框架版本&lt;/li&gt;
&lt;li&gt;持續關注 CVE 與官方安全公告&lt;/li&gt;
&lt;li&gt;部署時盡量使用容器化與最小權限原則，降低實際損害範圍&lt;/li&gt;
&lt;/ul&gt;</content:encoded><category>Sharing</category><category>CVE</category><category>Next.js</category><category>Docker</category></item><item><title>ExpTech NTP Server</title><link>https://exptech.dev/blog/sharing-2025-12-16/</link><guid isPermaLink="true">https://exptech.dev/blog/sharing-2025-12-16/</guid><description>越來越多 ExpTech 相關產品及服務需要時間同步服務，在 ttyAMA0 的幫助下，架設了 ExpTech NTP Server，同時整理了舊的時間同步機制。</description><pubDate>Tue, 16 Dec 2025 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;越來越多 ExpTech 相關產品及服務需要時間同步。在 &lt;span&gt;&lt;a href=&quot;https://github.com/bclswl0827&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img src=&quot;https://github.com/bclswl0827.png?size=40&quot; alt=&quot;&quot; width=&quot;20&quot; height=&quot;20&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;span&gt;ttyAMA0&lt;/span&gt;&lt;svg width=&quot;14&quot; height=&quot;14&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;currentColor&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M12 .3a12 12 0 0 0-3.8 23.38c.6.12.83-.26.83-.57L9 21.07c-3.34.72-4.04-1.61-4.04-1.61-.55-1.39-1.34-1.76-1.34-1.76-1.08-.74.09-.73.09-.73 1.2.09 1.83 1.24 1.83 1.24 1.08 1.83 2.81 1.3 3.5 1 .1-.78.42-1.31.76-1.61-2.67-.3-5.47-1.33-5.47-5.93 0-1.31.47-2.38 1.24-3.22-.14-.3-.54-1.52.1-3.18 0 0 1-.32 3.3 1.23a11.5 11.5 0 0 1 6 0c2.28-1.55 3.29-1.23 3.29-1.23.64 1.66.24 2.88.12 3.18a4.65 4.65 0 0 1 1.23 3.22c0 4.61-2.8 5.63-5.48 5.92.42.36.81 1.1.81 2.22l-.01 3.29c0 .31.2.69.82.57A12 12 0 0 0 12 .3Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;14&quot; height=&quot;14&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M7 7h10v10&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M7 17 17 7&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&lt;span&gt;&lt;a href=&quot;https://github.com/bclswl0827&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot; tabindex=&quot;-1&quot; aria-hidden=&quot;true&quot;&gt;&lt;img src=&quot;https://github.com/bclswl0827.png?size=128&quot; alt=&quot;&quot; width=&quot;52&quot; height=&quot;52&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;ttyAMA0&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;14&quot; height=&quot;14&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M7 7h10v10&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M7 17 17 7&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;span&gt;&lt;svg width=&quot;14&quot; height=&quot;14&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;currentColor&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M12 .3a12 12 0 0 0-3.8 23.38c.6.12.83-.26.83-.57L9 21.07c-3.34.72-4.04-1.61-4.04-1.61-.55-1.39-1.34-1.76-1.34-1.76-1.08-.74.09-.73.09-.73 1.2.09 1.83 1.24 1.83 1.24 1.08 1.83 2.81 1.3 3.5 1 .1-.78.42-1.31.76-1.61-2.67-.3-5.47-1.33-5.47-5.93 0-1.31.47-2.38 1.24-3.22-.14-.3-.54-1.52.1-3.18 0 0 1-.32 3.3 1.23a11.5 11.5 0 0 1 6 0c2.28-1.55 3.29-1.23 3.29-1.23.64 1.66.24 2.88.12 3.18a4.65 4.65 0 0 1 1.23 3.22c0 4.61-2.8 5.63-5.48 5.92.42.36.81 1.1.81 2.22l-.01 3.29c0 .31.2.69.82.57A12 12 0 0 0 12 .3Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;@bclswl0827&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt; 的幫助下，剛好有這個機會，我自己又加了一點料，就有了 ExpTech NTP Server，也把舊的時間同步機制一起整理過。&lt;/p&gt;

&lt;div&gt;&lt;h2 id=&quot;舊架構&quot;&gt;舊架構&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;早期是一個很簡單的 HTTP 服務，Body 回傳 Unix Timestamp（&lt;code dir=&quot;auto&quot;&gt;text/plain&lt;/code&gt;）。當時對時間精度沒有特別要求，這個陽春版撐了很久。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;新架構&quot;&gt;新架構&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;現在改在 &lt;code dir=&quot;auto&quot;&gt;time.exptech.com.tw:123&lt;/code&gt; 提供 SNTP（UDP），同時保留 HTTP，給不能用 UDP 的環境（例如網頁）對時。&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;sntp&quot;&gt;SNTP&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;先拿幾個常見的公共 NTP Server 對照：&lt;/p&gt;
&lt;div&gt;&lt;h4 id=&quot;各家-ntp-server-對照&quot;&gt;各家 NTP Server 對照&lt;/h4&gt;&lt;/div&gt;
&lt;div data-astro-cid-kew6xv4d=&quot;&quot;&gt;&lt;figure&gt;&lt;img src=&quot;https://exptech.dev/img/sharing/2025-12-16/google.webp&quot; alt=&quot;Google NTP Server&quot; decoding=&quot;async&quot; width=&quot;1044&quot; height=&quot;490&quot;&gt;&lt;figcaption&gt;Google NTP Server&lt;/figcaption&gt;&lt;/figure&gt;&lt;figure&gt;&lt;img src=&quot;https://exptech.dev/img/sharing/2025-12-16/cloudflare.webp&quot; alt=&quot;Cloudflare NTP Server&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1048&quot; height=&quot;490&quot;&gt;&lt;figcaption&gt;Cloudflare NTP Server&lt;/figcaption&gt;&lt;/figure&gt;&lt;figure&gt;&lt;img src=&quot;https://exptech.dev/img/sharing/2025-12-16/apple.webp&quot; alt=&quot;Apple NTP Server&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1046&quot; height=&quot;490&quot;&gt;&lt;figcaption&gt;Apple NTP Server&lt;/figcaption&gt;&lt;/figure&gt;&lt;figure&gt;&lt;img src=&quot;https://exptech.dev/img/sharing/2025-12-16/tw.webp&quot; alt=&quot;TW NTP Server&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1046&quot; height=&quot;490&quot;&gt;&lt;figcaption&gt;TW NTP Server&lt;/figcaption&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;div&gt;&lt;h4 id=&quot;exptech-ntp-server&quot;&gt;ExpTech NTP Server&lt;/h4&gt;&lt;/div&gt;
&lt;p&gt;ExpTech 的 NTP Server：&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://exptech.dev/img/sharing/2025-12-16/exptech.webp&quot; alt=&quot;ExpTech NTP Server&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1044&quot; height=&quot;490&quot;&gt;&lt;/figure&gt;
&lt;div&gt;&lt;h3 id=&quot;http-gettextplain&quot;&gt;HTTP GET（text/plain）&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;SNTP 之外，也可以用 HTTP 拿時間：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Header 會回傳 &lt;code dir=&quot;auto&quot;&gt;X-NTP-T2&lt;/code&gt;、&lt;code dir=&quot;auto&quot;&gt;X-NTP-T3&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Body 仍回傳 Unix Timestamp（&lt;code dir=&quot;auto&quot;&gt;text/plain&lt;/code&gt;），向下相容舊架構&lt;/li&gt;
&lt;/ul&gt;
&lt;figure&gt;&lt;img src=&quot;https://exptech.dev/img/sharing/2025-12-16/http.webp&quot; alt=&quot;ExpTech NTP (HTTP) Server&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;965&quot; height=&quot;470&quot;&gt;&lt;/figure&gt;
&lt;div&gt;&lt;h2 id=&quot;誤差&quot;&gt;誤差&lt;/h2&gt;&lt;/div&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;協定&lt;/th&gt;
&lt;th&gt;誤差&lt;/th&gt;
&lt;th&gt;說明&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;SNTP&lt;/td&gt;
&lt;td&gt;約 ±5ms&lt;/td&gt;
&lt;td&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;精度表現很好，實測相當穩定&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;HTTP&lt;/td&gt;
&lt;td&gt;約 ±50ms&lt;/td&gt;
&lt;td&gt;&lt;svg data-status=&quot;warn&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 9v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17h.01&quot;&gt;&lt;/path&gt;&lt;/svg&gt;主要是 TCP 開銷。精度不如 SNTP，但在網頁這類不能用 UDP 的情境仍然很實用&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;依照實際使用環境選 SNTP 或 HTTP，不同平台都能維持不錯的時間同步。HTTP 的用法見&lt;a href=&quot;https://exptech.dev/docs/api/misc/ntp/&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;時間同步 API&lt;/a&gt;；桌面上可以直接用 &lt;a href=&quot;https://exptech.dev/docs/product/software/ntp-client/&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;NTP Client&lt;/a&gt; 對時。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;特別感謝&quot;&gt;特別感謝&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;感謝 &lt;strong&gt;台灣數位串流有限公司 TWDS（Taiwan Digital Streaming）&lt;/strong&gt; 提供伺服器贊助，ExpTech NTP Server 才能穩定運作。&lt;/p&gt;
&lt;div&gt;&lt;img src=&quot;https://exptech.dev/img/partners/twds.svg&quot; alt=&quot;台灣數位串流有限公司&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/div&gt;</content:encoded><category>Sharing</category></item><item><title>從 JavaScript 到 Golang：TREM 與 DPIP 的架構變遷</title><link>https://exptech.dev/blog/sharing-2025-12-15/</link><guid isPermaLink="true">https://exptech.dev/blog/sharing-2025-12-15/</guid><description>TREM 與 DPIP 從 2022 年做到現在：從一顆 60 元的 MPU6050、PM2 + JavaScript，到 Docker、Golang 重寫、OpenResty + Lua 與 NATS。回顧整個系統架構怎麼一路變過來，也說明 DPIP 為什麼曾經這麼難用。</description><pubDate>Mon, 15 Dec 2025 00:00:00 GMT</pubDate><content:encoded>&lt;div&gt;&lt;h2 id=&quot;前言&quot;&gt;前言&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;TREM 與 DPIP 從 2022 年 5 月中開始做。當時我完全不會寫程式，邊做邊學；服務也從地震慢慢擴到其他類型。
範圍變廣、系統變複雜之後，維護變難，穩定性也跟著往下掉。&lt;/p&gt;

&lt;p&gt;這篇稿放了半年，現在才把故事寫完。要解釋 DPIP 為什麼這麼難用，得先從 TREM 怎麼長出來講起。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;為什麼選擇做地震&quot;&gt;為什麼選擇做地震？&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;起點是 &lt;a href=&quot;https://zh.wikipedia.org/zh-tw/2022%E5%B9%B4%E8%8A%B1%E8%93%AE%E5%9C%B0%E9%9C%87&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;2022 年 3 月 23 日的花蓮地震&lt;/a&gt;。人在臺南，搖晃先到，警報才來。我開始想：能不能自己測，看出哪裡正在地震？學測剛考完，時間夠用，同年 5 月這個計畫就開始了。&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;trem-net-觀測網&quot;&gt;TREM-net 觀測網&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href=&quot;https://exptech.dev/docs/product/start/trem-net/&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;TREM-net&lt;/a&gt;（TREM 地震觀測網）由三種感測器組成：&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;名稱&lt;/th&gt;
&lt;th&gt;感測器&lt;/th&gt;
&lt;th&gt;上線&lt;/th&gt;
&lt;th&gt;說明&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;SE-net&lt;/code&gt;（Strong Earthquake）&lt;/td&gt;
&lt;td&gt;MEMS 加速度儀&lt;/td&gt;
&lt;td&gt;2022-05-31&lt;/td&gt;
&lt;td&gt;強震觀測網&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;MS-net&lt;/code&gt;（Micro Seismographic）&lt;/td&gt;
&lt;td&gt;磁電式速度儀&lt;/td&gt;
&lt;td&gt;2023-04-09&lt;/td&gt;
&lt;td&gt;微地震觀測網&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;ES-net&lt;/code&gt;（Enhanced Sensitivity）&lt;/td&gt;
&lt;td&gt;MEMS 加速度儀&lt;/td&gt;
&lt;td&gt;2025-11-02&lt;/td&gt;
&lt;td&gt;增強靈敏度地震觀測網&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;aside aria-label=&quot;2026 Q4 的交接&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;2026 Q4 的交接&lt;/p&gt;&lt;div&gt;&lt;p&gt;&lt;code dir=&quot;auto&quot;&gt;SE-net&lt;/code&gt;、&lt;code dir=&quot;auto&quot;&gt;MS-net&lt;/code&gt; 預計 2026 Q4 淘汰，之後由 &lt;code dir=&quot;auto&quot;&gt;ES-net&lt;/code&gt; 接替。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;div&gt;&lt;h3 id=&quot;第一台地震儀&quot;&gt;第一台地震儀&lt;/h3&gt;&lt;/div&gt;
&lt;figure&gt;&lt;img src=&quot;https://exptech.dev/img/sharing/2025-12-15/seismograph-6732340.webp&quot; alt=&quot;編號 6732340 地震儀&quot; decoding=&quot;async&quot; width=&quot;2000&quot; height=&quot;1493&quot; srcset=&quot;/img/sharing/2025-12-15/seismograph-6732340-640w.webp 640w, /img/sharing/2025-12-15/seismograph-6732340-1280w.webp 1280w, /img/sharing/2025-12-15/seismograph-6732340-1920w.webp 1920w, /img/sharing/2025-12-15/seismograph-6732340.webp 2000w&quot; sizes=&quot;(min-width: 50rem) 48rem, 100vw&quot; data-zoom-src=&quot;/img/sharing/2025-12-15/seismograph-6732340.webp&quot;&gt;&lt;figcaption&gt;編號 6732340 地震儀&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;這台用 MPU6050 + ESP32 做的，編號 &lt;code dir=&quot;auto&quot;&gt;6732340&lt;/code&gt;，放在我家。從 2022 年 5 月運作到現在（2026 年 8 月），目前仍正常運作。&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://exptech.dev/img/sharing/2025-12-15/seismograph-se-net.webp&quot; alt=&quot;SE-net 地震儀&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;2000&quot; height=&quot;1396&quot; srcset=&quot;/img/sharing/2025-12-15/seismograph-se-net-640w.webp 640w, /img/sharing/2025-12-15/seismograph-se-net-1280w.webp 1280w, /img/sharing/2025-12-15/seismograph-se-net-1920w.webp 1920w, /img/sharing/2025-12-15/seismograph-se-net.webp 2000w&quot; sizes=&quot;(min-width: 50rem) 48rem, 100vw&quot; data-zoom-src=&quot;/img/sharing/2025-12-15/seismograph-se-net.webp&quot;&gt;&lt;figcaption&gt;SE-net 地震儀&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;上圖是裝在一般住家的 &lt;code dir=&quot;auto&quot;&gt;SE-net&lt;/code&gt; 地震儀 &lt;code dir=&quot;auto&quot;&gt;ver 1.0&lt;/code&gt;。後面幾個版本改的是供電和外殼：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;code dir=&quot;auto&quot;&gt;ver 1.0&lt;/code&gt;&lt;/strong&gt;：AC 110V 供電，機內降壓到 DC 5V。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code dir=&quot;auto&quot;&gt;ver 2.0&lt;/code&gt;&lt;/strong&gt;：改成外部 DC 5V（一般手機充電器）。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code dir=&quot;auto&quot;&gt;ver 2.1&lt;/code&gt;&lt;/strong&gt;：透明 Arduino UNO 外殼，加工比較簡單、比較好生產，體積也更小。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code dir=&quot;auto&quot;&gt;ver 2.2&lt;/code&gt;&lt;/strong&gt;：第一次試 3D 列印外殼。當時還沒有自己的 3D 印表機，只做了極少量，後來停產，主力還是 &lt;code dir=&quot;auto&quot;&gt;ver 2.1&lt;/code&gt;。&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;2022 年 5 月到 2026 年 8 月，&lt;code dir=&quot;auto&quot;&gt;SE-net&lt;/code&gt; 一直是 DPIP 即時資訊與強震監視器通知的主要資料來源。2025 年 9 月，在 &lt;span&gt;&lt;a href=&quot;https://github.com/bclswl0827&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img src=&quot;https://github.com/bclswl0827.png?size=40&quot; alt=&quot;&quot; width=&quot;20&quot; height=&quot;20&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;span&gt;ttyAMA0&lt;/span&gt;&lt;svg width=&quot;14&quot; height=&quot;14&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;currentColor&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M12 .3a12 12 0 0 0-3.8 23.38c.6.12.83-.26.83-.57L9 21.07c-3.34.72-4.04-1.61-4.04-1.61-.55-1.39-1.34-1.76-1.34-1.76-1.08-.74.09-.73.09-.73 1.2.09 1.83 1.24 1.83 1.24 1.08 1.83 2.81 1.3 3.5 1 .1-.78.42-1.31.76-1.61-2.67-.3-5.47-1.33-5.47-5.93 0-1.31.47-2.38 1.24-3.22-.14-.3-.54-1.52.1-3.18 0 0 1-.32 3.3 1.23a11.5 11.5 0 0 1 6 0c2.28-1.55 3.29-1.23 3.29-1.23.64 1.66.24 2.88.12 3.18a4.65 4.65 0 0 1 1.23 3.22c0 4.61-2.8 5.63-5.48 5.92.42.36.81 1.1.81 2.22l-.01 3.29c0 .31.2.69.82.57A12 12 0 0 0 12 .3Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;14&quot; height=&quot;14&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M7 7h10v10&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M7 17 17 7&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&lt;span&gt;&lt;a href=&quot;https://github.com/bclswl0827&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot; tabindex=&quot;-1&quot; aria-hidden=&quot;true&quot;&gt;&lt;img src=&quot;https://github.com/bclswl0827.png?size=128&quot; alt=&quot;&quot; width=&quot;52&quot; height=&quot;52&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;ttyAMA0&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;14&quot; height=&quot;14&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M7 7h10v10&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M7 17 17 7&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;span&gt;&lt;svg width=&quot;14&quot; height=&quot;14&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;currentColor&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M12 .3a12 12 0 0 0-3.8 23.38c.6.12.83-.26.83-.57L9 21.07c-3.34.72-4.04-1.61-4.04-1.61-.55-1.39-1.34-1.76-1.34-1.76-1.08-.74.09-.73.09-.73 1.2.09 1.83 1.24 1.83 1.24 1.08 1.83 2.81 1.3 3.5 1 .1-.78.42-1.31.76-1.61-2.67-.3-5.47-1.33-5.47-5.93 0-1.31.47-2.38 1.24-3.22-.14-.3-.54-1.52.1-3.18 0 0 1-.32 3.3 1.23a11.5 11.5 0 0 1 6 0c2.28-1.55 3.29-1.23 3.29-1.23.64 1.66.24 2.88.12 3.18a4.65 4.65 0 0 1 1.23 3.22c0 4.61-2.8 5.63-5.48 5.92.42.36.81 1.1.81 2.22l-.01 3.29c0 .31.2.69.82.57A12 12 0 0 0 12 .3Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;@bclswl0827&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt; 的幫助下，開始做新一代 &lt;code dir=&quot;auto&quot;&gt;ES-net&lt;/code&gt;，要更穩定，也要更靈敏。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;新舊地震儀比較&quot;&gt;新舊地震儀比較&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;以 2026/08/25 臺灣東南部海域 M5.8 地震為例，看兩套地震儀在同一場地震的表現。&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;se-net&quot;&gt;SE-net&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;臺東縣臺東市 &lt;code dir=&quot;auto&quot;&gt;7725352&lt;/code&gt;&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://exptech.dev/img/sharing/2025-12-15/se-net_7725352.webp&quot; alt=&quot;SE-net 地震儀&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;800&quot; height=&quot;750&quot;&gt;&lt;figcaption&gt;SE-net 地震儀&lt;/figcaption&gt;&lt;/figure&gt;
&lt;aside aria-label=&quot;強震時容易掉資料&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;強震時容易掉資料&lt;/p&gt;&lt;div&gt;&lt;p&gt;因為架構設計，&lt;code dir=&quot;auto&quot;&gt;SE-net&lt;/code&gt; 遇到強震時容易掉資料。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;p&gt;&lt;strong&gt;三軸分量&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;項目&lt;/th&gt;
&lt;th&gt;EW&lt;/th&gt;
&lt;th&gt;NS&lt;/th&gt;
&lt;th&gt;UD&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;加速度 (cm/s²)&lt;/td&gt;
&lt;td&gt;36.12&lt;/td&gt;
&lt;td&gt;19.19&lt;/td&gt;
&lt;td&gt;10.51&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;速度 (cm/s)&lt;/td&gt;
&lt;td&gt;1.62&lt;/td&gt;
&lt;td&gt;1.16&lt;/td&gt;
&lt;td&gt;1.55&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;綜合指標&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;項目&lt;/th&gt;
&lt;th&gt;數值&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;3 分量合成加速度 (PGA, gal)&lt;/td&gt;
&lt;td&gt;39.07&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3 分量合成速度 (PGV, kine)&lt;/td&gt;
&lt;td&gt;1.65&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;最大計測震度&lt;/td&gt;
&lt;td&gt;3.9&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;最大震度階&lt;/td&gt;
&lt;td&gt;4 級&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;速度反應譜 (SVA)&lt;/td&gt;
&lt;td&gt;3.43&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;長周期地震動階級 (LPGM)&lt;/td&gt;
&lt;td&gt;0 (3.43 cm/s)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;開始時間&lt;/td&gt;
&lt;td&gt;2026/08/25 15:00:06&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;結束時間&lt;/td&gt;
&lt;td&gt;2026/08/25 15:01:22&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div&gt;&lt;h3 id=&quot;es-net&quot;&gt;ES-net&lt;/h3&gt;&lt;/div&gt;
&lt;figure&gt;&lt;img src=&quot;https://exptech.dev/img/sharing/2025-12-15/es-net_1C1136C.webp&quot; alt=&quot;ES-net 地震儀&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;2000&quot; height=&quot;1428&quot; srcset=&quot;/img/sharing/2025-12-15/es-net_1C1136C-640w.webp 640w, /img/sharing/2025-12-15/es-net_1C1136C-1280w.webp 1280w, /img/sharing/2025-12-15/es-net_1C1136C.webp 2000w&quot; sizes=&quot;(min-width: 50rem) 48rem, 100vw&quot; data-zoom-src=&quot;/img/sharing/2025-12-15/es-net_1C1136C.webp&quot;&gt;&lt;figcaption&gt;ES-net 地震儀&lt;/figcaption&gt;&lt;/figure&gt;
&lt;div&gt;&lt;h3 id=&quot;分析&quot;&gt;分析&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;穩定性以外，雜訊也差一截：&lt;code dir=&quot;auto&quot;&gt;SE-net&lt;/code&gt; 高達 &lt;code dir=&quot;auto&quot;&gt;400 µg/√Hz&lt;/code&gt;，&lt;code dir=&quot;auto&quot;&gt;ES-net&lt;/code&gt; 則是 &lt;code dir=&quot;auto&quot;&gt;60 µg/√Hz&lt;/code&gt;。&lt;/p&gt;
&lt;p&gt;而且不穩不只發生在強震當下。&lt;code dir=&quot;auto&quot;&gt;SE-net&lt;/code&gt; 平時就很容易斷線，工作人員得頻繁聯絡用戶，請對方把地震儀重新插拔，維運的工作量因此大很多。&lt;/p&gt;
&lt;p&gt;高雜訊、不穩定，再加上大量雜訊誤報，是我們做新版地震儀的主要原因。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;講故事&quot;&gt;講故事&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;硬體是一段辛酸史，軟體架構也沒少踩雷。時間拉回最前面，看整個系統怎麼一路長出來，也一路壞掉。&lt;/p&gt;
&lt;figure lang=&quot;zh-TW&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;div data-xt-zoomable=&quot;&quot; aria-label=&quot;2022 到 2026 年的子網與技術堆疊&quot; aria-describedby=&quot;xt-diagram-desc-iez0kc&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;svg viewBox=&quot;0 0 640 278&quot; role=&quot;img&quot; aria-label=&quot;2022 到 2026 年的子網與技術堆疊&quot;&gt;&lt;rect x=&quot;0&quot; y=&quot;90&quot; width=&quot;640&quot; height=&quot;40.5&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;0&quot; y=&quot;171&quot; width=&quot;640&quot; height=&quot;40.5&quot;&gt;&lt;/rect&gt;&lt;line x1=&quot;208.7&quot; x2=&quot;208.7&quot; y1=&quot;30&quot; y2=&quot;251.5&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;314.02&quot; x2=&quot;314.02&quot; y1=&quot;30&quot; y2=&quot;251.5&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;419.64&quot; x2=&quot;419.64&quot; y1=&quot;30&quot; y2=&quot;251.5&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;524.96&quot; x2=&quot;524.96&quot; y1=&quot;30&quot; y2=&quot;251.5&quot;&gt;&lt;/line&gt;&lt;g&gt;&lt;rect x=&quot;603.74&quot; y=&quot;21&quot; width=&quot;26.26&quot; height=&quot;230.5&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M603.74 25V21H630V25&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;line x1=&quot;138&quot; x2=&quot;630&quot; y1=&quot;70&quot; y2=&quot;70&quot;&gt;&lt;/line&gt;&lt;g&gt;&lt;text x=&quot;0&quot; y=&quot;122&quot;&gt;強震觀測網&lt;/text&gt;&lt;/g&gt;&lt;line x1=&quot;138&quot; x2=&quot;630&quot; y1=&quot;110.25&quot; y2=&quot;110.25&quot;&gt;&lt;/line&gt;&lt;g&gt;&lt;text x=&quot;0&quot; y=&quot;162.5&quot;&gt;微地震觀測網&lt;/text&gt;&lt;/g&gt;&lt;line x1=&quot;138&quot; x2=&quot;630&quot; y1=&quot;150.75&quot; y2=&quot;150.75&quot;&gt;&lt;/line&gt;&lt;g&gt;&lt;text x=&quot;0&quot; y=&quot;203&quot;&gt;增強靈敏度地震觀測網&lt;/text&gt;&lt;/g&gt;&lt;line x1=&quot;138&quot; x2=&quot;630&quot; y1=&quot;191.25&quot; y2=&quot;191.25&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;138&quot; x2=&quot;630&quot; y1=&quot;231.5&quot; y2=&quot;231.5&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;340.86&quot; x2=&quot;340.86&quot; y1=&quot;61&quot; y2=&quot;55&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;203.79&quot; x2=&quot;203.79&quot; y1=&quot;61&quot; y2=&quot;55&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;203.79&quot; cy=&quot;70&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(196.29 62.5) scale(0.625)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;M12 16v-4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 8h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;circle cx=&quot;340.86&quot; cy=&quot;70&quot; r=&quot;9&quot;&gt;&lt;/circle&gt;&lt;g transform=&quot;translate(333.36 62.5) scale(0.625)&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;336.86&quot; y=&quot;51&quot;&gt;0403 地震（M7.1）&lt;/text&gt;&lt;text x=&quot;199.79&quot; y=&quot;51&quot;&gt;2022/12 與 CWB 簽約&lt;/text&gt;&lt;g&gt;&lt;rect x=&quot;147.66&quot; y=&quot;102.25&quot; width=&quot;481.34&quot; height=&quot;16&quot; rx=&quot;3&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M633 105.25l4 5l-4 5&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform=&quot;translate(150.66 103.75) scale(0.54167)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;M12 16v-4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 8h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;167.66&quot; y=&quot;114.25&quot;&gt;2022/05/31 上線&lt;/text&gt;&lt;g&gt;&lt;rect x=&quot;237.98&quot; y=&quot;142.75&quot; width=&quot;391.02&quot; height=&quot;16&quot; rx=&quot;3&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M633 145.75l4 5l-4 5&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform=&quot;translate(240.98 144.25) scale(0.54167)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;M12 16v-4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 8h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;257.98&quot; y=&quot;154.75&quot;&gt;2023/04/09 上線&lt;/text&gt;&lt;g&gt;&lt;rect x=&quot;508.65&quot; y=&quot;183.25&quot; width=&quot;120.35&quot; height=&quot;16&quot; rx=&quot;3&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M633 186.25l4 5l-4 5&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform=&quot;translate(511.65 184.75) scale(0.54167)&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;M12 16v-4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 8h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;528.65&quot; y=&quot;195.25&quot;&gt;2025/11/02 上線&lt;/text&gt;&lt;g&gt;&lt;rect x=&quot;143.04&quot; y=&quot;223.5&quot; width=&quot;169.98&quot; height=&quot;16&quot; rx=&quot;3&quot;&gt;&lt;/rect&gt;&lt;/g&gt;&lt;g&gt;&lt;rect x=&quot;315.02&quot; y=&quot;223.5&quot; width=&quot;173.73&quot; height=&quot;16&quot; rx=&quot;3&quot;&gt;&lt;/rect&gt;&lt;/g&gt;&lt;g&gt;&lt;rect x=&quot;490.76&quot; y=&quot;223.5&quot; width=&quot;138.24&quot; height=&quot;16&quot; rx=&quot;3&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M633 226.5l4 5l-4 5&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform=&quot;translate(146.04 225) scale(0.54167)&quot;&gt;&lt;path d=&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 9v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;163.04&quot; y=&quot;235.5&quot;&gt;PM2 + JavaScript&lt;/text&gt;&lt;g transform=&quot;translate(318.02 225) scale(0.54167)&quot;&gt;&lt;path d=&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 9v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17h.01&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;335.02&quot; y=&quot;235.5&quot;&gt;Docker + Bun.js&lt;/text&gt;&lt;g transform=&quot;translate(493.76 225) scale(0.54167)&quot;&gt;&lt;path d=&quot;M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;510.76&quot; y=&quot;235.5&quot;&gt;Golang&lt;/text&gt;&lt;text x=&quot;432.32&quot; y=&quot;17&quot;&gt;2026 Q4 預計淘汰 SE-net、MS-net&lt;/text&gt;&lt;line x1=&quot;138&quot; x2=&quot;630&quot; y1=&quot;251.5&quot; y2=&quot;251.5&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;208.7&quot; x2=&quot;208.7&quot; y1=&quot;251.5&quot; y2=&quot;255.5&quot;&gt;&lt;/line&gt;&lt;text x=&quot;193.87&quot; y=&quot;267.5&quot;&gt;2023&lt;/text&gt;&lt;line x1=&quot;314.02&quot; x2=&quot;314.02&quot; y1=&quot;251.5&quot; y2=&quot;255.5&quot;&gt;&lt;/line&gt;&lt;text x=&quot;299.19&quot; y=&quot;267.5&quot;&gt;2024&lt;/text&gt;&lt;line x1=&quot;419.64&quot; x2=&quot;419.64&quot; y1=&quot;251.5&quot; y2=&quot;255.5&quot;&gt;&lt;/line&gt;&lt;text x=&quot;404.81&quot; y=&quot;267.5&quot;&gt;2025&lt;/text&gt;&lt;line x1=&quot;524.96&quot; x2=&quot;524.96&quot; y1=&quot;251.5&quot; y2=&quot;255.5&quot;&gt;&lt;/line&gt;&lt;text x=&quot;510.13&quot; y=&quot;267.5&quot;&gt;2026&lt;/text&gt;&lt;/svg&gt;&lt;/div&gt;&lt;p aria-hidden=&quot;true&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;點圖可放大&lt;/p&gt;&lt;p id=&quot;xt-diagram-desc-iez0kc&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;2022 年 5 月到 2026 年底。SE-net 在 2022/05/31 上線，MS-net 在 2023/04/09，ES-net 在 2025/11/02。SE-net 與 MS-net 預計在 2026 Q4 淘汰，文中沒有確切日期，所以三個子網的長條都畫到圖的右緣，以箭頭結尾，不畫結束日期。技術堆疊：2022 年 5 月起是 PM2 + JavaScript，2024 年初換成 Docker + Bun.js（仍是 JavaScript），2025 年 9 月起改用 Golang 分批重寫。2022 年 12 月與 CWB 簽約；2024 年 4 月的 0403 地震（M7.1）發生在 Docker + Bun.js 的時期。&lt;/p&gt;&lt;figcaption data-astro-cid-fia5stjh=&quot;&quot;&gt;2022 到 2026 年的子網與技術堆疊&lt;/figcaption&gt;&lt;/figure&gt;
&lt;div&gt;&lt;h3 id=&quot;第-1-卷&quot;&gt;第 1 卷&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;2022 年 5 月，大約高三學測剛考完，開始做 &lt;code dir=&quot;auto&quot;&gt;SE-net&lt;/code&gt;。當時完全沒有程式基礎，用 PM2 + &lt;span&gt;&lt;svg viewBox=&quot;0 0 24 24&quot; width=&quot;1em&quot; height=&quot;1em&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 0h24v24H0V0zm22.034 18.276c-.175-1.095-.888-2.015-3.003-2.873-.736-.345-1.554-.585-1.797-1.14-.091-.33-.105-.51-.046-.705.15-.646.915-.84 1.515-.66.39.12.75.42.976.9 1.034-.676 1.034-.676 1.755-1.125-.27-.42-.404-.601-.586-.78-.63-.705-1.469-1.065-2.834-1.034l-.705.089c-.676.165-1.32.525-1.71 1.005-1.14 1.291-.811 3.541.569 4.471 1.365 1.02 3.361 1.244 3.616 2.205.24 1.17-.87 1.545-1.966 1.41-.811-.18-1.26-.586-1.755-1.336l-1.83 1.051c.21.48.45.689.81 1.109 1.74 1.756 6.09 1.666 6.871-1.004.029-.09.24-.705.074-1.65l.046.067zm-8.983-7.245h-2.248c0 1.938-.009 3.864-.009 5.805 0 1.232.063 2.363-.138 2.711-.33.689-1.18.601-1.566.48-.396-.196-.597-.466-.83-.855-.063-.105-.11-.196-.127-.196l-1.825 1.125c.305.63.75 1.172 1.324 1.517.855.51 2.004.675 3.207.405.783-.226 1.458-.691 1.811-1.411.51-.93.402-2.07.397-3.346.012-2.054 0-4.109 0-6.179l.004-.056z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;JavaScript&lt;/span&gt;。現在回頭看，選 JavaScript 等於替後面埋了一串炸彈；但那時候，JavaScript 是我唯一寫得動大型專案的語言。&lt;/p&gt;
&lt;p&gt;當時沒有 AI 可以問。身邊沒有朋友或家人在做這行，也沒有人可以請教（別指望普通高中的老師，高職或許有機會）。&lt;/p&gt;
&lt;aside aria-label=&quot;從 CMD 換到 PM2&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;從 CMD 換到 PM2&lt;/p&gt;&lt;div&gt;&lt;p&gt;換成 PM2 的時候很震驚：原來有這麼好用的東西（笑）。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;p&gt;過程中認識了&lt;a href=&quot;https://www.instagram.com/eggrollpvp/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;蛋捲PVP&lt;/a&gt;，學到很多，主要是地球科學。在蛋捲的推動下，開始在全臺各地部署 SE-net 地震儀。&lt;/p&gt;
&lt;aside aria-label=&quot;MPU6050，一顆 60 元&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;MPU6050，一顆 60 元&lt;/p&gt;&lt;div&gt;&lt;p&gt;當時根本不知道這樣測不測得到地震。那可是 MPU6050，一顆 60 元台幣，說出來我自己都不信。我跟蛋捲都是在賭。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;p&gt;同年，一位熱心人士引薦，認識了 CWB 地震測報中心科長&lt;a href=&quot;http://seismology.gl.ntu.edu.tw/chen-da-yi_2.htm&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;陳達毅&lt;/a&gt;。從他那邊學到非常多 EEW 系統的知識，12 月正式與交通部中央氣象局（CWB）簽約合作。&lt;/p&gt;
&lt;aside aria-label=&quot;CWB 與 CWA&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;CWB 與 CWA&lt;/p&gt;&lt;div&gt;&lt;p&gt;當時的名稱是交通部中央氣象局（CWB），現在是交通部中央氣象署（CWA）。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;p&gt;簽約半年後，在東華大學放上第一台 MS-net 磁電式速度儀。做法很粗：ADS1115 + Geophone（4.5 Hz）+ ESP32，就這三樣，卻一直運作到現在。我覺得已經是奇蹟了。要高精度的磁電式地震儀，可以看 &lt;a href=&quot;https://anyshake.org/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;AnyShake&lt;/a&gt;。&lt;/p&gt;
&lt;aside aria-label=&quot;兩個網各做什麼&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;兩個網各做什麼&lt;/p&gt;&lt;div&gt;&lt;p&gt;&lt;code dir=&quot;auto&quot;&gt;SE-net&lt;/code&gt; 是範圍主力，收集全臺的觀測資料；&lt;code dir=&quot;auto&quot;&gt;MS-net&lt;/code&gt; 是速度主力，測得到很小的 P 波，預警可以更快。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;figure&gt;&lt;img src=&quot;https://exptech.dev/img/sharing/2025-12-15/computer-2021.webp&quot; alt=&quot;2021 年的電腦&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1707&quot; height=&quot;1280&quot; srcset=&quot;/img/sharing/2025-12-15/computer-2021-640w.webp 640w, /img/sharing/2025-12-15/computer-2021-1280w.webp 1280w, /img/sharing/2025-12-15/computer-2021.webp 1707w&quot; sizes=&quot;(min-width: 50rem) 48rem, 100vw&quot; data-zoom-src=&quot;/img/sharing/2025-12-15/computer-2021.webp&quot;&gt;&lt;figcaption&gt;2021 年的電腦&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;當時的主力電腦是家人汰換下來的 ASUS X55V：CPU Pentium 2020M、記憶體 4GB DDR3。開個 VSCode 都卡到炸——&lt;del&gt;天崩開局&lt;/del&gt;。&lt;code dir=&quot;auto&quot;&gt;SE-net&lt;/code&gt; 就是在這樣的環境下誕生的。沒錯，它現在還活著。&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://exptech.dev/img/sharing/2025-12-15/server-2021.webp&quot; alt=&quot;2021 年的伺服器&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1707&quot; height=&quot;1280&quot; srcset=&quot;/img/sharing/2025-12-15/server-2021-640w.webp 640w, /img/sharing/2025-12-15/server-2021-1280w.webp 1280w, /img/sharing/2025-12-15/server-2021.webp 1707w&quot; sizes=&quot;(min-width: 50rem) 48rem, 100vw&quot; data-zoom-src=&quot;/img/sharing/2025-12-15/server-2021.webp&quot;&gt;&lt;figcaption&gt;2021 年的伺服器&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;當時的主力伺服器是 AMD Ryzen 5 5600X。現在還在服役（笑），只是從主力換成打雜，負責各類非即時資料整理。&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;第-2-卷&quot;&gt;第 2 卷&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;PM2 用到 2024 年初，然後大改一次：&lt;code dir=&quot;auto&quot;&gt;PM2&lt;/code&gt; 換成 &lt;svg viewBox=&quot;0 0 24 24&quot; width=&quot;1em&quot; height=&quot;1em&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M13.983 11.078h2.119a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.119a.185.185 0 00-.185.185v1.888c0 .102.083.185.185.185m-2.954-5.43h2.118a.186.186 0 00.186-.186V3.574a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m0 2.716h2.118a.187.187 0 00.186-.186V6.29a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.887c0 .102.082.185.185.186m-2.93 0h2.12a.186.186 0 00.184-.186V6.29a.185.185 0 00-.185-.185H8.1a.185.185 0 00-.185.185v1.887c0 .102.083.185.185.186m-2.964 0h2.119a.186.186 0 00.185-.186V6.29a.185.185 0 00-.185-.185H5.136a.186.186 0 00-.186.185v1.887c0 .102.084.185.186.186m5.893 2.715h2.118a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m-2.93 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.083.185.185.185m-2.964 0h2.119a.185.185 0 00.185-.185V9.006a.185.185 0 00-.184-.186h-2.12a.186.186 0 00-.186.186v1.887c0 .102.084.185.186.185m-2.92 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.082.185.185.185M23.763 9.89c-.065-.051-.672-.51-1.954-.51-.338.001-.676.03-1.01.087-.248-1.7-1.653-2.53-1.716-2.566l-.344-.199-.226.327c-.284.438-.49.922-.612 1.43-.23.97-.09 1.882.403 2.661-.595.332-1.55.413-1.744.42H.751a.751.751 0 00-.75.748 11.376 11.376 0 00.692 4.062c.545 1.428 1.355 2.48 2.41 3.124 1.18.723 3.1 1.137 5.275 1.137.983.003 1.963-.086 2.93-.266a12.248 12.248 0 003.823-1.389c.98-.567 1.86-1.288 2.61-2.136 1.252-1.418 1.998-2.997 2.553-4.4h.221c1.372 0 2.215-.549 2.68-1.009.309-.293.55-.65.707-1.046l.098-.288Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;code dir=&quot;auto&quot;&gt;Docker&lt;/code&gt;，&lt;code dir=&quot;auto&quot;&gt;Node.js&lt;/code&gt; 換成 &lt;svg viewBox=&quot;0 0 24 24&quot; width=&quot;1em&quot; height=&quot;1em&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M12 22.596c6.628 0 12-4.338 12-9.688 0-3.318-2.057-6.248-5.219-7.986-1.286-.715-2.297-1.357-3.139-1.89C14.058 2.025 13.08 1.404 12 1.404c-1.097 0-2.334.785-3.966 1.821a49.92 49.92 0 0 1-2.816 1.697C2.057 6.66 0 9.59 0 12.908c0 5.35 5.372 9.687 12 9.687v.001ZM10.599 4.715c.334-.759.503-1.58.498-2.409 0-.145.202-.187.23-.029.658 2.783-.902 4.162-2.057 4.624-.124.048-.199-.121-.103-.209a5.763 5.763 0 0 0 1.432-1.977Zm2.058-.102a5.82 5.82 0 0 0-.782-2.306v-.016c-.069-.123.086-.263.185-.172 1.962 2.111 1.307 4.067.556 5.051-.082.103-.23-.003-.189-.126a5.85 5.85 0 0 0 .23-2.431Zm1.776-.561a5.727 5.727 0 0 0-1.612-1.806v-.014c-.112-.085-.024-.274.114-.218 2.595 1.087 2.774 3.18 2.459 4.407a.116.116 0 0 1-.049.071.11.11 0 0 1-.153-.026.122.122 0 0 1-.022-.083 5.891 5.891 0 0 0-.737-2.331Zm-5.087.561c-.617.546-1.282.76-2.063 1-.117 0-.195-.078-.156-.181 1.752-.909 2.376-1.649 2.999-2.778 0 0 .155-.118.188.085 0 .304-.349 1.329-.968 1.874Zm4.945 11.237a2.957 2.957 0 0 1-.937 1.553c-.346.346-.8.565-1.286.62a2.178 2.178 0 0 1-1.327-.62 2.955 2.955 0 0 1-.925-1.553.244.244 0 0 1 .064-.198.234.234 0 0 1 .193-.069h3.965a.226.226 0 0 1 .19.07c.05.053.073.125.063.197Zm-5.458-2.176a1.862 1.862 0 0 1-2.384-.245 1.98 1.98 0 0 1-.233-2.447c.207-.319.503-.566.848-.713a1.84 1.84 0 0 1 1.092-.11c.366.075.703.261.967.531a1.98 1.98 0 0 1 .408 2.114 1.931 1.931 0 0 1-.698.869v.001Zm8.495.005a1.86 1.86 0 0 1-2.381-.253 1.964 1.964 0 0 1-.547-1.366c0-.384.11-.76.32-1.079.207-.319.503-.567.849-.713a1.844 1.844 0 0 1 1.093-.108c.367.076.704.262.968.534a1.98 1.98 0 0 1 .4 2.117 1.932 1.932 0 0 1-.702.868Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;code dir=&quot;auto&quot;&gt;Bun.js&lt;/code&gt;（還是 JavaScript）。改完當下，「看似」還不錯。&lt;/p&gt;
&lt;p&gt;好景不常。幾個月後，JavaScript 沒有型別的問題冒出來。新功能一直往上疊，錯誤變得很頻繁，於是開始加 TypeScript，想把這類問題壓下來。&lt;/p&gt;
&lt;aside aria-label=&quot;TREM-Lite 為什麼難用&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;TREM-Lite 為什麼難用&lt;/p&gt;&lt;div&gt;&lt;p&gt;TREM-Lite 就是這個時期做出來的。IDE 不會提示型別，每個變數的型別和用意都得自己背。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;aside aria-label=&quot;0403 地震（M7.1）&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;0403 地震（M7.1）&lt;/p&gt;&lt;div&gt;&lt;p&gt;2024 年 4 月的 0403 地震（M7.1），流量突然暴增。設備、經驗兩頭空，完全束手無策。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;div&gt;&lt;h3 id=&quot;第-25-卷&quot;&gt;第 2.5 卷？&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;0403 之後，意外認識了更多人，也來了很強的外援。&lt;/p&gt;
&lt;div data-astro-cid-7qmvx3iy=&quot;&quot;&gt;&lt;article data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;p data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1.333em&quot; height=&quot;1.333em&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M20.054 15.987H3.946&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span data-astro-cid-z24ziyhq=&quot;&quot;&gt;個人電腦與伺服器&lt;/span&gt;&lt;/p&gt;&lt;div data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;p&gt;&lt;a href=&quot;https://www.geoscience.com.tw/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;巨科資訊有限公司&lt;/a&gt; 贊助個人電腦（換掉那台 ASUS X55V）和伺服器（AMD Ryzen 9 7900X）。&lt;/p&gt;&lt;/div&gt;&lt;/article&gt;&lt;article data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;p data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1.333em&quot; height=&quot;1.333em&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span data-astro-cid-z24ziyhq=&quot;&quot;&gt;高頻寬伺服器&lt;/span&gt;&lt;/p&gt;&lt;div data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;p&gt;&lt;a href=&quot;https://www.twds.com.tw/zh-tw/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;台灣數位串流有限公司&lt;/a&gt; 提供超高頻寬的伺服器，用來應付地震時的突發流量。&lt;/p&gt;&lt;/div&gt;&lt;/article&gt;&lt;/div&gt;
&lt;p&gt;地震觀測本來就冷門，這兩家願意幫忙，真的非常感激。&lt;/p&gt;
&lt;aside aria-label=&quot;Ryzen 9 7900X 還是主力&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;Ryzen 9 7900X 還是主力&lt;/p&gt;&lt;div&gt;&lt;p&gt;到 2026 年 8 月，這台都還是主力，看樣子還會撐很長一段時間。現在硬體貴成這樣，要換可能得傾家蕩產（笑）。最近開始出現不少毛病，例如硬碟頻繁掉盤，讓我很頭痛。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;div&gt;&lt;h3 id=&quot;第-3-卷&quot;&gt;第 3 卷&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;整個 2025 年上半年都在修修補補，沒有多少實質進展。&lt;/p&gt;
&lt;p&gt;真正的改變在同年 9 月。在 &lt;span&gt;&lt;a href=&quot;https://github.com/bclswl0827&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img src=&quot;https://github.com/bclswl0827.png?size=40&quot; alt=&quot;&quot; width=&quot;20&quot; height=&quot;20&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;span&gt;ttyAMA0&lt;/span&gt;&lt;svg width=&quot;14&quot; height=&quot;14&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;currentColor&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M12 .3a12 12 0 0 0-3.8 23.38c.6.12.83-.26.83-.57L9 21.07c-3.34.72-4.04-1.61-4.04-1.61-.55-1.39-1.34-1.76-1.34-1.76-1.08-.74.09-.73.09-.73 1.2.09 1.83 1.24 1.83 1.24 1.08 1.83 2.81 1.3 3.5 1 .1-.78.42-1.31.76-1.61-2.67-.3-5.47-1.33-5.47-5.93 0-1.31.47-2.38 1.24-3.22-.14-.3-.54-1.52.1-3.18 0 0 1-.32 3.3 1.23a11.5 11.5 0 0 1 6 0c2.28-1.55 3.29-1.23 3.29-1.23.64 1.66.24 2.88.12 3.18a4.65 4.65 0 0 1 1.23 3.22c0 4.61-2.8 5.63-5.48 5.92.42.36.81 1.1.81 2.22l-.01 3.29c0 .31.2.69.82.57A12 12 0 0 0 12 .3Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;14&quot; height=&quot;14&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M7 7h10v10&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M7 17 17 7&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&lt;span&gt;&lt;a href=&quot;https://github.com/bclswl0827&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot; tabindex=&quot;-1&quot; aria-hidden=&quot;true&quot;&gt;&lt;img src=&quot;https://github.com/bclswl0827.png?size=128&quot; alt=&quot;&quot; width=&quot;52&quot; height=&quot;52&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;ttyAMA0&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;14&quot; height=&quot;14&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M7 7h10v10&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M7 17 17 7&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;span&gt;&lt;svg width=&quot;14&quot; height=&quot;14&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;currentColor&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M12 .3a12 12 0 0 0-3.8 23.38c.6.12.83-.26.83-.57L9 21.07c-3.34.72-4.04-1.61-4.04-1.61-.55-1.39-1.34-1.76-1.34-1.76-1.08-.74.09-.73.09-.73 1.2.09 1.83 1.24 1.83 1.24 1.08 1.83 2.81 1.3 3.5 1 .1-.78.42-1.31.76-1.61-2.67-.3-5.47-1.33-5.47-5.93 0-1.31.47-2.38 1.24-3.22-.14-.3-.54-1.52.1-3.18 0 0 1-.32 3.3 1.23a11.5 11.5 0 0 1 6 0c2.28-1.55 3.29-1.23 3.29-1.23.64 1.66.24 2.88.12 3.18a4.65 4.65 0 0 1 1.23 3.22c0 4.61-2.8 5.63-5.48 5.92.42.36.81 1.1.81 2.22l-.01 3.29c0 .31.2.69.82.57A12 12 0 0 0 12 .3Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;@bclswl0827&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt; 的推薦下，開始嘗試 &lt;span&gt;&lt;svg viewBox=&quot;0 0 24 24&quot; width=&quot;1em&quot; height=&quot;1em&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M1.811 10.231c-.047 0-.058-.023-.035-.059l.246-.315c.023-.035.081-.058.128-.058h4.172c.046 0 .058.035.035.07l-.199.303c-.023.036-.082.07-.117.07zM.047 11.306c-.047 0-.059-.023-.035-.058l.245-.316c.023-.035.082-.058.129-.058h5.328c.047 0 .07.035.058.07l-.093.28c-.012.047-.058.07-.105.07zm2.828 1.075c-.047 0-.059-.035-.035-.07l.163-.292c.023-.035.07-.07.117-.07h2.337c.047 0 .07.035.07.082l-.023.28c0 .047-.047.082-.082.082zm12.129-2.36c-.736.187-1.239.327-1.963.514-.176.046-.187.058-.34-.117-.174-.199-.303-.327-.548-.444-.737-.362-1.45-.257-2.115.175-.795.514-1.204 1.274-1.192 2.22.011.935.654 1.706 1.577 1.835.795.105 1.46-.175 1.987-.77.105-.13.198-.27.315-.434H10.47c-.245 0-.304-.152-.222-.35.152-.362.432-.97.596-1.274a.315.315 0 01.292-.187h4.253c-.023.316-.023.631-.07.947a4.983 4.983 0 01-.958 2.29c-.841 1.11-1.94 1.8-3.33 1.986-1.145.152-2.209-.07-3.143-.77-.865-.655-1.356-1.52-1.484-2.595-.152-1.274.222-2.419.993-3.424.83-1.086 1.928-1.776 3.272-2.02 1.098-.2 2.15-.07 3.096.571.62.41 1.063.97 1.356 1.648.07.105.023.164-.117.2m3.868 6.461c-1.064-.024-2.034-.328-2.852-1.029a3.665 3.665 0 01-1.262-2.255c-.21-1.32.152-2.489.947-3.529.853-1.122 1.881-1.706 3.272-1.95 1.192-.21 2.314-.095 3.33.595.923.63 1.496 1.484 1.648 2.605.198 1.578-.257 2.863-1.344 3.962-.771.783-1.718 1.273-2.805 1.495-.315.06-.63.07-.934.106zm2.78-4.72c-.011-.153-.011-.27-.034-.387-.21-1.157-1.274-1.81-2.384-1.554-1.087.245-1.788.935-2.045 2.033-.21.912.234 1.835 1.075 2.21.643.28 1.285.244 1.905-.07.923-.48 1.425-1.228 1.484-2.233z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Golang&lt;/span&gt;，再逐步、分批把舊服務全部用 Golang 重寫（是 rewrite，不是 native port）。&lt;/p&gt;
&lt;p&gt;跟 JavaScript 比，總算用得上多核，記憶體用量更低，同樣的計算 CPU 用量也更低，打包出來的 Image 更小。&lt;/p&gt;
&lt;p&gt;架構也砍掉一大塊。以前太複雜、太冗餘，常常不穩。&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;項目&lt;/th&gt;
&lt;th&gt;以前&lt;/th&gt;
&lt;th&gt;現在&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Balance Server&lt;/td&gt;
&lt;td&gt;Nginx 後面還有一層 Server&lt;/td&gt;
&lt;td&gt;拿掉那層，改成 Openresty + &lt;span&gt;&lt;svg viewBox=&quot;0 0 24 24&quot; width=&quot;1em&quot; height=&quot;1em&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M.38 10.377l-.272-.037c-.048.344-.082.695-.101 1.041l.275.016c.018-.34.051-.682.098-1.02zM4.136 3.289l-.184-.205c-.258.232-.509.48-.746.734l.202.188c.231-.248.476-.49.728-.717zM5.769 2.059l-.146-.235c-.296.186-.586.385-.863.594l.166.219c.27-.203.554-.399.843-.578zM1.824 18.369c.185.297.384.586.593.863l.22-.164c-.205-.271-.399-.555-.58-.844l-.233.145zM1.127 16.402l-.255.104c.129.318.274.635.431.943l.005.01.245-.125-.005-.01c-.153-.301-.295-.611-.421-.922zM.298 9.309l.269.063c.076-.332.168-.664.272-.986l-.261-.087c-.108.332-.202.672-.28 1.01zM.274 12.42l-.275.01c.012.348.04.699.083 1.043l.273-.033c-.042-.336-.069-.68-.081-1.02zM.256 14.506c.073.34.162.682.264 1.014l.263-.08c-.1-.326-.187-.658-.258-.99l-.269.056zM11.573.275L11.563 0c-.348.012-.699.039-1.044.082l.034.273c.338-.041.68-.068 1.02-.08zM23.221 8.566c.1.326.186.66.256.992l.27-.059c-.072-.34-.16-.682-.262-1.014l-.264.081zM17.621 1.389c-.309-.164-.627-.314-.947-.449l-.107.252c.314.133.625.281.926.439l.128-.242zM15.693.572c-.332-.105-.67-.199-1.01-.277l-.063.268c.332.076.664.168.988.273l.085-.264zM6.674 1.545c.298-.15.606-.291.916-.418L7.486.873c-.317.127-.632.272-.937.428l-.015.008.125.244.015-.008zM23.727 11.588l.275-.01a11.797 11.797 0 0 0-.082-1.045l-.273.033c.041.338.068.682.08 1.022zM13.654.105c-.346-.047-.696-.08-1.043-.098l-.014.273c.339.018.683.051 1.019.098l.038-.273zM9.544.527l-.058-.27c-.34.072-.681.16-1.014.264l.081.262c.325-.099.659-.185.991-.256zM1.921 5.469l.231.15c.185-.285.384-.566.592-.834l-.217-.17c-.213.276-.417.563-.606.854zM.943 7.318l.253.107c.132-.313.28-.625.439-.924l-.243-.128c-.163.307-.314.625-.449.945zM18.223 21.943l.145.234c.295-.186.586-.385.863-.594l-.164-.219c-.272.204-.557.4-.844.579zM21.248 19.219l.217.17c.215-.273.418-.561.607-.854l-.23-.148c-.186.285-.385.564-.594.832zM19.855 20.715l.184.203c.258-.23.51-.479.746-.732l-.201-.188c-.23.248-.477.488-.729.717zM22.359 17.504l.244.129c.162-.307.314-.625.449-.945l-.254-.107a11.27 11.27 0 0 1-.439.923zM23.617 13.629l.273.039c.049-.346.082-.695.102-1.043l-.275-.014c-.018.338-.051.682-.1 1.018zM23.156 15.621l.264.086c.107-.332.201-.67.279-1.01l-.268-.063c-.077.333-.169.665-.275.987zM22.453 6.672c.154.303.297.617.424.932l.256-.104c-.131-.322-.277-.643-.436-.953l-.244.125zM8.296 23.418c.331.107.67.201 1.009.279l.062-.268c-.331-.076-.663-.168-.986-.273l-.085.262zM10.335 23.889c.345.049.696.082 1.043.102l.014-.275c-.339-.018-.682-.051-1.019-.098l-.038.271zM17.326 22.449c-.303.154-.613.297-.926.424l.104.256c.318-.131.639-.275.947-.434l.004-.002-.123-.246-.006.002zM4.613 21.467c.274.213.562.418.854.605l.149-.23c-.285-.184-.565-.385-.833-.592l-.17.217zM12.417 23.725l.009.275c.348-.014.699-.041 1.045-.084l-.035-.271c-.336.041-.68.068-1.019.08zM6.37 22.604c.307.162.625.314.946.449l.107-.254c-.313-.133-.624-.279-.924-.439l-.129.244zM3.083 20.041c.233.258.48.51.734.746l.188-.201c-.249-.23-.49-.477-.717-.729l-.205.184zM14.445 23.475l.059.27c.34-.074.68-.162 1.014-.266l-.082-.262c-.325.099-.659.185-.991.258zM21.18.129A2.689 2.689 0 1 0 21.18 5.507 2.689 2.689 0 1 0 21.18.129zM15.324 15.447c0 .471.314.66.852.66.67 0 1.297-.396 1.297-1.016v-.645c-.23.107-.379.141-1.107.24-.735.109-1.042.306-1.042.761zM12 2.818c-5.07 0-9.18 4.109-9.18 9.18 0 5.068 4.11 9.18 9.18 9.18 5.07 0 9.18-4.111 9.18-9.18 0-5.07-4.11-9.18-9.18-9.18zm-2.487 13.77H5.771v-6.023h.769v5.346h2.974v.677zm4.13 0h-.619v-.67c-.405.57-.811.793-1.446.793-.843 0-1.38-.463-1.38-1.182v-3.271h.686v3c0 .52.347.85.893.85.719 0 1.181-.578 1.181-1.461v-2.389h.686v4.33zm-.53-8.393c0-1.484 1.205-2.689 2.689-2.689s2.688 1.205 2.688 2.689-1.203 2.688-2.688 2.688-2.689-1.203-2.689-2.688zm5.567 7.856v.52c-.223.059-.33.074-.471.074-.34 0-.637-.238-.711-.57-.381.406-.918.637-1.471.637-.877 0-1.422-.463-1.422-1.248 0-.527.256-.916.76-1.123.266-.107.414-.141 1.389-.264.545-.066.719-.191.719-.48v-.182c0-.412-.348-.645-.967-.645-.645 0-.957.24-1.016.77h-.693c.041-1 .686-1.404 1.734-1.404 1.066 0 1.627.412 1.627 1.182v2.412c0 .215.133.338.373.338.041-.002.074-.002.149-.017z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Lua&lt;/span&gt;，快取控得更細&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;儲存&lt;/td&gt;
&lt;td&gt;JSON&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg viewBox=&quot;0 0 24 24&quot; width=&quot;1em&quot; height=&quot;1em&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M21.678.521c-1.032-.92-2.28-.55-3.513.544a8.71 8.71 0 0 0-.547.535c-2.109 2.237-4.066 6.38-4.674 9.544.237.48.422 1.093.544 1.561a13.044 13.044 0 0 1 .164.703s-.019-.071-.096-.296l-.05-.146a1.689 1.689 0 0 0-.033-.08c-.138-.32-.518-.995-.686-1.289-.143.423-.27.818-.376 1.176.484.884.778 2.4.778 2.4s-.025-.099-.147-.442c-.107-.303-.644-1.244-.772-1.464-.217.804-.304 1.346-.226 1.478.152.256.296.698.422 1.186.286 1.1.485 2.44.485 2.44l.017.224a22.41 22.41 0 0 0 .056 2.748c.095 1.146.273 2.13.5 2.657l.155-.084c-.334-1.038-.47-2.399-.41-3.967.09-2.398.642-5.29 1.661-8.304 1.723-4.55 4.113-8.201 6.3-9.945-1.993 1.8-4.692 7.63-5.5 9.788-.904 2.416-1.545 4.684-1.931 6.857.666-2.037 2.821-2.912 2.821-2.912s1.057-1.304 2.292-3.166c-.74.169-1.955.458-2.362.629-.6.251-.762.337-.762.337s1.945-1.184 3.613-1.72C21.695 7.9 24.195 2.767 21.678.521m-18.573.543A1.842 1.842 0 0 0 1.27 2.9v16.608a1.84 1.84 0 0 0 1.835 1.834h9.418a22.953 22.953 0 0 1-.052-2.707c-.006-.062-.011-.141-.016-.2a27.01 27.01 0 0 0-.473-2.378c-.121-.47-.275-.898-.369-1.057-.116-.197-.098-.31-.097-.432 0-.12.015-.245.037-.386a9.98 9.98 0 0 1 .234-1.045l.217-.028c-.017-.035-.014-.065-.031-.097l-.041-.381a32.8 32.8 0 0 1 .382-1.194l.2-.019c-.008-.016-.01-.038-.018-.053l-.043-.316c.63-3.28 2.587-7.443 4.8-9.791.066-.069.133-.128.198-.194Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;SQLite&lt;/span&gt;（歷史遺留。嚴肅，別笑）&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;資料庫&lt;/td&gt;
&lt;td&gt;MariaDB&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg viewBox=&quot;0 0 24 24&quot; width=&quot;1em&quot; height=&quot;1em&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M21.333 10H24v4h-2.667ZM16 1.335h2.667v21.33H16Zm-5.333 0h2.666v21.33h-2.666ZM0 22.665V1.335h2.667v21.33zm5.333-21.33H8v21.33H5.333Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;ClickHouse&lt;/span&gt;（波形）+ HA PostgreSQL（解算資料）&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;內部通訊&lt;/td&gt;
&lt;td&gt;WebSocket&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg viewBox=&quot;0 0 24 24&quot; width=&quot;1em&quot; height=&quot;1em&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M12.004 0H.404v18.807h9.938l1.714 1.602v-.026L15.966 24v-5.193h7.63V0H12.003zm7.578 14.45H15.38L6.898 6.519v7.93H4.116V4.376h4.349l8.344 7.784V4.375h2.773V14.45z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;NATS&lt;/span&gt;。不用維護健康狀態，邏輯比較簡單，也比較穩，而且本身就有異地備援&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;去 YouTube 翻地震紀錄影片，會發現現在延遲超級低。差在改用 Lua JIT。&lt;/p&gt;
&lt;aside aria-label=&quot;JSON 時期的 API&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;JSON 時期的 API&lt;/p&gt;&lt;div&gt;&lt;p&gt;以前用 JSON 的時候，API 回應速度會有明顯延遲。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;aside aria-label=&quot;2026 Q4&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;2026 Q4&lt;/p&gt;&lt;div&gt;&lt;p&gt;2026 Q4 預計從 HTTP Polling 改成 SSE。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;div&gt;&lt;h4 id=&quot;新舊-trem-eew-系統差異&quot;&gt;新舊 TREM EEW 系統差異&lt;/h4&gt;&lt;/div&gt;
&lt;aside aria-label=&quot;TREM EEW 是什麼&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;TREM EEW 是什麼&lt;/p&gt;&lt;div&gt;&lt;p&gt;TREM EEW 是 TREM 系統以 TREM-net 觀測資料自行解算的地震預警，屬非官方資訊，一切以中央氣象署發布為準。依《氣象法》，TREM EEW 只提供給特定用戶，不對不特定大眾發布；下面說的「發報」「發布權限」，指的是由哪個節點負責送出 TREM EEW。對所有使用者轉發的，是中央氣象署的強震即時警報。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;figure lang=&quot;zh-TW&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;div data-xt-zoomable=&quot;&quot; aria-label=&quot;新系統&quot; aria-describedby=&quot;sysarch25-zh-TW-desc&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;svg viewBox=&quot;0 0 640 985&quot; width=&quot;640&quot; height=&quot;985&quot; role=&quot;img&quot; aria-labelledby=&quot;sysarch25-zh-TW-title&quot; aria-describedby=&quot;sysarch25-zh-TW-desc&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;title id=&quot;sysarch25-zh-TW-title&quot;&gt;新系統架構圖&lt;/title&gt;&lt;desc id=&quot;sysarch25-zh-TW-desc&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;感測器接到 ESP32 裝置（裝置代號 10C746C），裝置負責 JMA 震度運算、二進位編碼與 HMAC 簽章。裝置以 WS · TCP 連到臺灣台南節點 core-tnn1，以 UDP 連到日本東京節點 core-tyo1（RTT 48ms、遺失 0%）；兩個節點都跑 Nginx 與 raw-server-go。每個節點把資料寫進自己的 ClickHouse（震波與震度，7 天），並連到自己的 HAProxy；HAProxy 輪詢 Patroni 健康端點、導向當前的 Leader，兩地的 HAProxy 都連到兩地的 PostgreSQL（中繼資料，由 Patroni 管理）。兩座 PostgreSQL 之間是 Patroni 同步複寫，並透過 etcd 叢集（台南、東京、台北）做 DCS 共識與 Leader 選舉。兩個節點也都連到 NATS 叢集（JetStream、跨節點同步、廣播、去重）。兩地的 rts-server-go（即時震度 RTS）與 rts-wave-go（即時波形）訂閱 NATS；websocket-server-go 訂閱廣播（每節點各一），再以即時 WS 推播到終端 App（TREM 即時顯示）。&lt;/desc&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M152 54.25L183 54.25&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M152 54.25L183 54.25&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M189 54.25L182 58.75L182 49.75Z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M215 92.5L215 109.5Q215 116.5 208 116.5L111 116.5Q104 116.5 104 123.5L104 147.75&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M215 92.5L215 109.5Q215 116.5 208 116.5L111 116.5Q104 116.5 104 123.5L104 147.75&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M104 153.75L99.5 146.75L108.5 146.75Z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M425 92.5L425 109.5Q425 116.5 432 116.5L529 116.5Q536 116.5 536 123.5L536 138.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M425 92.5L425 109.5Q425 116.5 432 116.5L529 116.5Q536 116.5 536 123.5L536 138.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M536 144.5L531.5 137.5L540.5 137.5Z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M196 192L212 192&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M196 192L212 192&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M196 192L212 192&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M218 192L211 196.5L211 187.5Z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M190 192L197 187.5L197 196.5Z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M444 192L428 192&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M444 192L428 192&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M444 192L428 192&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M422 192L429 187.5L429 196.5Z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M450 192L443 196.5L443 187.5Z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M236 235.5L236 255.5Q236 262.5 229 262.5L211 262.5Q204 262.5 204 269.5L204 325Q204 329 200 329L196 329&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M236 235.5L236 255.5Q236 262.5 229 262.5L211 262.5Q204 262.5 204 269.5L204 325Q204 329 200 329L196 329&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M190 329L197 324.5L197 333.5Z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M236 235.5L236 255.5Q236 262.5 229 262.5L211 262.5Q204 262.5 204 269.5L204 440.75Q204 444.75 200 444.75L196 444.75&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M236 235.5L236 255.5Q236 262.5 229 262.5L211 262.5Q204 262.5 204 269.5L204 440.75Q204 444.75 200 444.75L196 444.75&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M190 444.75L197 440.25L197 449.25Z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M404 235.5L404 255.5Q404 262.5 411 262.5L429 262.5Q436 262.5 436 269.5L436 325Q436 329 440 329L444 329&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M404 235.5L404 255.5Q404 262.5 411 262.5L429 262.5Q436 262.5 436 269.5L436 325Q436 329 440 329L444 329&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M450 329L443 333.5L443 324.5Z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M404 235.5L404 255.5Q404 262.5 411 262.5L429 262.5Q436 262.5 436 269.5L436 440.75Q436 444.75 440 444.75L444 444.75&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M404 235.5L404 255.5Q404 262.5 411 262.5L429 262.5Q436 262.5 436 269.5L436 440.75Q436 444.75 440 444.75L444 444.75&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M450 444.75L443 449.25L443 440.25Z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M320 235.5L320 279.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M320 235.5L320 279.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M320 285.5L315.5 278.5L324.5 278.5Z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M320 372.5L320 404.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M320 372.5L320 404.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M320 410.5L315.5 403.5L324.5 403.5Z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M18 192L12.5 192Q7 192 7 197.5L7 534.75Q7 537.25 9.5 537.25L12 537.25&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18 192L12.5 192Q7 192 7 197.5L7 534.75Q7 537.25 9.5 537.25L12 537.25&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18 537.25L11 541.75L11 532.75Z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M18 192L12.5 192Q7 192 7 197.5L7 630.5Q7 633 9.5 633L12 633&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18 192L12.5 192Q7 192 7 197.5L7 630.5Q7 633 9.5 633L12 633&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18 633L11 637.5L11 628.5Z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M622 192L627.5 192Q633 192 633 197.5L633 534.75Q633 537.25 630.5 537.25L628 537.25&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M622 192L627.5 192Q633 192 633 197.5L633 534.75Q633 537.25 630.5 537.25L628 537.25&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M622 537.25L629 532.75L629 541.75Z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M622 192L627.5 192Q633 192 633 197.5L633 630.5Q633 633 630.5 633L628 633&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M622 192L627.5 192Q633 192 633 197.5L633 630.5Q633 633 630.5 633L628 633&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M622 633L629 628.5L629 637.5Z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M66 676.5L66 740.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M66 746.5L61.5 739.5L70.5 739.5Z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M574 676.5L574 740.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M574 746.5L569.5 739.5L578.5 739.5Z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M146 676.5L146 689.5Q146 696.5 153 696.5L461 696.5Q468 696.5 468 703.5L468 740.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M468 746.5L463.5 739.5L472.5 739.5Z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M494 676.5L494 707.5Q494 714.5 487 714.5L179 714.5Q172 714.5 172 721.5L172 740.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M494 676.5L494 707.5Q494 714.5 487 714.5L179 714.5Q172 714.5 172 721.5L172 740.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M172 746.5L167.5 739.5L176.5 739.5Z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M196 793.25L444 793.25&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M196 793.25L444 793.25&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M196 793.25L444 793.25&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M450 793.25L443 797.75L443 788.75Z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M190 793.25L197 788.75L197 797.75Z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M104 840L104 918.5Q104 925.5 111 925.5L218 925.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M536 840L536 918.5Q536 925.5 529 925.5L422 925.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;30&quot; y=&quot;30.25&quot; width=&quot;122&quot; height=&quot;48&quot; rx=&quot;9&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;40&quot; y=&quot;40.25&quot; width=&quot;28&quot; height=&quot;28&quot; rx=&quot;7&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;g transform=&quot;translate(45.6 45.85) scale(0.7000000000000001)&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M22 12h-4l-3 9L9 3l-3 9H2&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;76&quot; y=&quot;59.45&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;感測器&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;189&quot; y=&quot;16&quot; width=&quot;262&quot; height=&quot;76.5&quot; rx=&quot;9&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;199&quot; y=&quot;28&quot; width=&quot;28&quot; height=&quot;28&quot; rx=&quot;7&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;g transform=&quot;translate(204.6 33.6) scale(0.7000000000000001)&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M9 9h6v6H9z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M15 2v2M15 20v2M2 15h2M2 9h2M20 15h2M20 9h2M9 2v2M9 20v2&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;235&quot; y=&quot;39.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;ESP32 裝置&lt;/text&gt;&lt;text x=&quot;235&quot; y=&quot;55&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;10C746C&lt;/text&gt;&lt;text x=&quot;199&quot; y=&quot;77.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;JMA 震度運算 · 二進位編碼 · HMAC 簽章&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;18&quot; y=&quot;153.75&quot; width=&quot;172&quot; height=&quot;76.5&quot; rx=&quot;9&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M19.5 162.75A7.5 7.5 0 0 1 27 155.25H181A7.5 7.5 0 0 1 188.5 162.75&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;rect x=&quot;28&quot; y=&quot;165.75&quot; width=&quot;28&quot; height=&quot;28&quot; rx=&quot;7&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;g transform=&quot;translate(33.6 171.35) scale(0.7000000000000001)&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M4 4h16v7H4z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M4 13h16v7H4z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M8 7.5h.01&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M8 16.5h.01&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;64&quot; y=&quot;177.25&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;臺灣台南&lt;/text&gt;&lt;text x=&quot;64&quot; y=&quot;192.75&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;core-tnn1&lt;/text&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;158.14&quot; y=&quot;180.75&quot; width=&quot;23.86&quot; height=&quot;16&quot; rx=&quot;8&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;170.07&quot; y=&quot;192.55&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;WS&lt;/text&gt;&lt;/g&gt;&lt;text x=&quot;28&quot; y=&quot;215.25&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;Nginx · raw-server-go&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;218&quot; y=&quot;148.5&quot; width=&quot;204&quot; height=&quot;87&quot; rx=&quot;9&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;228&quot; y=&quot;158.5&quot; width=&quot;24&quot; height=&quot;24&quot; rx=&quot;7&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;g transform=&quot;translate(232.8 163.3) scale(0.6)&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M18 2a3 3 0 1 1 0 6 3 3 0 0 1 0-6z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M6 9a3 3 0 1 1 0 6 3 3 0 0 1 0-6z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18 16a3 3 0 1 1 0 6 3 3 0 0 1 0-6z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M8.6 13.5l6.8 4&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M15.4 6.5l-6.8 4&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;260&quot; y=&quot;175.7&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;NATS 叢集&lt;/text&gt;&lt;text x=&quot;228&quot; y=&quot;202&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;JetStream · 跨節點同步&lt;/text&gt;&lt;text x=&quot;228&quot; y=&quot;220.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;廣播 · 去重&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;450&quot; y=&quot;144.5&quot; width=&quot;172&quot; height=&quot;95&quot; rx=&quot;9&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M451.5 153.5A7.5 7.5 0 0 1 459 146H613A7.5 7.5 0 0 1 620.5 153.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;rect x=&quot;460&quot; y=&quot;156.5&quot; width=&quot;28&quot; height=&quot;28&quot; rx=&quot;7&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;g transform=&quot;translate(465.6 162.1) scale(0.7000000000000001)&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M4 4h16v7H4z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M4 13h16v7H4z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M8 7.5h.01&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M8 16.5h.01&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;496&quot; y=&quot;168&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;日本東京&lt;/text&gt;&lt;text x=&quot;496&quot; y=&quot;183.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;core-tyo1&lt;/text&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;574.21&quot; y=&quot;171.5&quot; width=&quot;39.79&quot; height=&quot;16&quot; rx=&quot;8&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M13 2 3 14h9l-1 8 10-12h-9l1-8z&quot; transform=&quot;translate(579.21 175) scale(0.375)&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;text x=&quot;598.605&quot; y=&quot;183.3&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;UDP&lt;/text&gt;&lt;/g&gt;&lt;text x=&quot;460&quot; y=&quot;206&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;Nginx · raw-server-go&lt;/text&gt;&lt;text x=&quot;460&quot; y=&quot;224.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;RTT &lt;tspan data-astro-cid-ghpldzin=&quot;&quot;&gt;48&lt;/tspan&gt;ms&lt;tspan dx=&quot;12&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;遺失 &lt;/tspan&gt;&lt;tspan data-astro-cid-ghpldzin=&quot;&quot;&gt;0&lt;/tspan&gt;%&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;18&quot; y=&quot;294.75&quot; width=&quot;172&quot; height=&quot;68.5&quot; rx=&quot;9&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M19.5 303.75A7.5 7.5 0 0 1 27 296.25H181A7.5 7.5 0 0 1 188.5 303.75&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;rect x=&quot;28&quot; y=&quot;304.75&quot; width=&quot;24&quot; height=&quot;24&quot; rx=&quot;7&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;g transform=&quot;translate(32.8 309.55) scale(0.6)&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;60&quot; y=&quot;321.95&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;rts-server-go&lt;/text&gt;&lt;text x=&quot;28&quot; y=&quot;348.25&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;即時震度 RTS&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;218&quot; y=&quot;285.5&quot; width=&quot;204&quot; height=&quot;87&quot; rx=&quot;9&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;228&quot; y=&quot;295.5&quot; width=&quot;24&quot; height=&quot;24&quot; rx=&quot;7&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;g transform=&quot;translate(232.8 300.3) scale(0.6)&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M4.9 16.1C1 12.2 1 5.8 4.9 1.9&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M7.8 4.7a6.1 6.1 0 0 0-.8 7.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 7a2 2 0 1 1 0 4 2 2 0 0 1 0-4z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M16.2 4.8c2 2 2.3 5.1.8 7.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M19.1 1.9a10 10 0 0 1 0 14.1&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M9.5 18h5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M8 22l4-11 4 11&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;260&quot; y=&quot;312.7&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;websocket-server-go&lt;/text&gt;&lt;text x=&quot;228&quot; y=&quot;339&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;訂閱廣播 · 即時推播&lt;/text&gt;&lt;text x=&quot;228&quot; y=&quot;357.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;（每節點各一）&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;450&quot; y=&quot;294.75&quot; width=&quot;172&quot; height=&quot;68.5&quot; rx=&quot;9&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M451.5 303.75A7.5 7.5 0 0 1 459 296.25H613A7.5 7.5 0 0 1 620.5 303.75&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;rect x=&quot;460&quot; y=&quot;304.75&quot; width=&quot;24&quot; height=&quot;24&quot; rx=&quot;7&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;g transform=&quot;translate(464.8 309.55) scale(0.6)&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;492&quot; y=&quot;321.95&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;rts-server-go&lt;/text&gt;&lt;text x=&quot;460&quot; y=&quot;348.25&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;即時震度 RTS&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;18&quot; y=&quot;410.5&quot; width=&quot;172&quot; height=&quot;68.5&quot; rx=&quot;9&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M19.5 419.5A7.5 7.5 0 0 1 27 412H181A7.5 7.5 0 0 1 188.5 419.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;rect x=&quot;28&quot; y=&quot;420.5&quot; width=&quot;24&quot; height=&quot;24&quot; rx=&quot;7&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;g transform=&quot;translate(32.8 425.3) scale(0.6)&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;60&quot; y=&quot;437.7&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;rts-wave-go&lt;/text&gt;&lt;text x=&quot;28&quot; y=&quot;464&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;即時波形&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;218&quot; y=&quot;410.5&quot; width=&quot;204&quot; height=&quot;68.5&quot; rx=&quot;9&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;228&quot; y=&quot;420.5&quot; width=&quot;24&quot; height=&quot;24&quot; rx=&quot;7&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;g transform=&quot;translate(232.8 425.3) scale(0.6)&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M7 2h10a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 18h.01&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;260&quot; y=&quot;437.7&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;終端 App&lt;/text&gt;&lt;text x=&quot;228&quot; y=&quot;464&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;TREM 即時顯示&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;450&quot; y=&quot;410.5&quot; width=&quot;172&quot; height=&quot;68.5&quot; rx=&quot;9&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M451.5 419.5A7.5 7.5 0 0 1 459 412H613A7.5 7.5 0 0 1 620.5 419.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;rect x=&quot;460&quot; y=&quot;420.5&quot; width=&quot;24&quot; height=&quot;24&quot; rx=&quot;7&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;g transform=&quot;translate(464.8 425.3) scale(0.6)&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;492&quot; y=&quot;437.7&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;rts-wave-go&lt;/text&gt;&lt;text x=&quot;460&quot; y=&quot;464&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;即時波形&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;18&quot; y=&quot;503&quot; width=&quot;172&quot; height=&quot;68.5&quot; rx=&quot;9&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M19.5 512A7.5 7.5 0 0 1 27 504.5H181A7.5 7.5 0 0 1 188.5 512&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;rect x=&quot;28&quot; y=&quot;513&quot; width=&quot;24&quot; height=&quot;24&quot; rx=&quot;7&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;g transform=&quot;translate(32.8 517.8) scale(0.6)&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M3 5c0-1.7 4-3 9-3s9 1.3 9 3-4 3-9 3-9-1.3-9-3z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M3 5v14c0 1.7 4 3 9 3s9-1.3 9-3V5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M3 12c0 1.7 4 3 9 3s9-1.3 9-3&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;60&quot; y=&quot;530.2&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;ClickHouse&lt;/text&gt;&lt;text x=&quot;28&quot; y=&quot;556.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;震波 / 震度 · 7天&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;450&quot; y=&quot;503&quot; width=&quot;172&quot; height=&quot;68.5&quot; rx=&quot;9&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M451.5 512A7.5 7.5 0 0 1 459 504.5H613A7.5 7.5 0 0 1 620.5 512&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;rect x=&quot;460&quot; y=&quot;513&quot; width=&quot;24&quot; height=&quot;24&quot; rx=&quot;7&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;g transform=&quot;translate(464.8 517.8) scale(0.6)&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M3 5c0-1.7 4-3 9-3s9 1.3 9 3-4 3-9 3-9-1.3-9-3z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M3 5v14c0 1.7 4 3 9 3s9-1.3 9-3V5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M3 12c0 1.7 4 3 9 3s9-1.3 9-3&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;492&quot; y=&quot;530.2&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;ClickHouse&lt;/text&gt;&lt;text x=&quot;460&quot; y=&quot;556.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;震波 / 震度 · 7天&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;18&quot; y=&quot;589.5&quot; width=&quot;172&quot; height=&quot;87&quot; rx=&quot;9&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M19.5 598.5A7.5 7.5 0 0 1 27 591H181A7.5 7.5 0 0 1 188.5 598.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;rect x=&quot;28&quot; y=&quot;599.5&quot; width=&quot;24&quot; height=&quot;24&quot; rx=&quot;7&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;g transform=&quot;translate(32.8 604.3) scale(0.6)&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M12 2a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M4.5 9.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M19.5 9.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M10.2 6.3l-3.9 3.9&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M7 12h10&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M13.8 17.7l3.9-3.9&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;60&quot; y=&quot;616.7&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;HAProxy&lt;/text&gt;&lt;text x=&quot;28&quot; y=&quot;643&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;輪詢 Patroni 健康端點&lt;/text&gt;&lt;text x=&quot;28&quot; y=&quot;661.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;導向當前 Leader&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;450&quot; y=&quot;589.5&quot; width=&quot;172&quot; height=&quot;87&quot; rx=&quot;9&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M451.5 598.5A7.5 7.5 0 0 1 459 591H613A7.5 7.5 0 0 1 620.5 598.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;rect x=&quot;460&quot; y=&quot;599.5&quot; width=&quot;24&quot; height=&quot;24&quot; rx=&quot;7&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;g transform=&quot;translate(464.8 604.3) scale(0.6)&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M12 2a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M4.5 9.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M19.5 9.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M10.2 6.3l-3.9 3.9&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M7 12h10&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M13.8 17.7l3.9-3.9&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;492&quot; y=&quot;616.7&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;HAProxy&lt;/text&gt;&lt;text x=&quot;460&quot; y=&quot;643&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;輪詢 Patroni 健康端點&lt;/text&gt;&lt;text x=&quot;460&quot; y=&quot;661.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;導向當前 Leader&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;18&quot; y=&quot;746.5&quot; width=&quot;172&quot; height=&quot;93.5&quot; rx=&quot;9&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M19.5 755.5A7.5 7.5 0 0 1 27 748H181A7.5 7.5 0 0 1 188.5 755.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;rect x=&quot;28&quot; y=&quot;756.5&quot; width=&quot;24&quot; height=&quot;24&quot; rx=&quot;7&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;g transform=&quot;translate(32.8 761.3) scale(0.6)&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M3 5c0-1.7 4-3 9-3s9 1.3 9 3-4 3-9 3-9-1.3-9-3z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M3 5v14c0 1.7 4 3 9 3s9-1.3 9-3V5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M3 12c0 1.7 4 3 9 3s9-1.3 9-3&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;60&quot; y=&quot;773.7&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;PostgreSQL&lt;/text&gt;&lt;text x=&quot;28&quot; y=&quot;800&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;中繼 · Patroni 管理&lt;/text&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;28&quot; y=&quot;808&quot; width=&quot;60.988800000000005&quot; height=&quot;19&quot; rx=&quot;5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;34&quot; y=&quot;821.6&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;Patroni&lt;/text&gt;&lt;/g&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;450&quot; y=&quot;746.5&quot; width=&quot;172&quot; height=&quot;93.5&quot; rx=&quot;9&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M451.5 755.5A7.5 7.5 0 0 1 459 748H613A7.5 7.5 0 0 1 620.5 755.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;rect x=&quot;460&quot; y=&quot;756.5&quot; width=&quot;24&quot; height=&quot;24&quot; rx=&quot;7&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;g transform=&quot;translate(464.8 761.3) scale(0.6)&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M3 5c0-1.7 4-3 9-3s9 1.3 9 3-4 3-9 3-9-1.3-9-3z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M3 5v14c0 1.7 4 3 9 3s9-1.3 9-3V5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M3 12c0 1.7 4 3 9 3s9-1.3 9-3&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;492&quot; y=&quot;773.7&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;PostgreSQL&lt;/text&gt;&lt;text x=&quot;460&quot; y=&quot;800&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;中繼 · Patroni 管理&lt;/text&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;460&quot; y=&quot;808&quot; width=&quot;60.988800000000005&quot; height=&quot;19&quot; rx=&quot;5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;466&quot; y=&quot;821.6&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;Patroni&lt;/text&gt;&lt;/g&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;218&quot; y=&quot;882&quot; width=&quot;204&quot; height=&quot;87&quot; rx=&quot;9&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;228&quot; y=&quot;892&quot; width=&quot;24&quot; height=&quot;24&quot; rx=&quot;7&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;g transform=&quot;translate(232.8 896.8) scale(0.6)&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M12 3.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 15.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M19 15.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5z&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M10.6 8.2 6.4 15.8&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M13.4 8.2l4.2 7.6&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M7.5 18h9&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;260&quot; y=&quot;909.2&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;etcd 叢集&lt;/text&gt;&lt;text x=&quot;228&quot; y=&quot;935.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;台南 · 東京 · 台北&lt;/text&gt;&lt;text x=&quot;228&quot; y=&quot;954&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;DCS 共識 · Leader 選舉&lt;/text&gt;&lt;/g&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;124.5&quot; y=&quot;106&quot; width=&quot;70&quot; height=&quot;21&quot; rx=&quot;10.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;159.5&quot; y=&quot;120.9&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;WS · TCP&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;440&quot; y=&quot;106&quot; width=&quot;80.99999999999999&quot; height=&quot;21&quot; rx=&quot;10.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;480.5&quot; y=&quot;120.9&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;UDP · 48ms&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;198.5&quot; y=&quot;252&quot; width=&quot;43&quot; height=&quot;21&quot; rx=&quot;10.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;220&quot; y=&quot;266.9&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;訂閱&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;298.5&quot; y=&quot;250&quot; width=&quot;43&quot; height=&quot;21&quot; rx=&quot;10.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;320&quot; y=&quot;264.9&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;廣播&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;288.625&quot; y=&quot;381&quot; width=&quot;62.75&quot; height=&quot;21&quot; rx=&quot;10.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;320&quot; y=&quot;395.9&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;即時 WS&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;32&quot; y=&quot;701&quot; width=&quot;68&quot; height=&quot;21&quot; rx=&quot;10.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;66&quot; y=&quot;715.9&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;導向主庫&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;260.75&quot; y=&quot;782.75&quot; width=&quot;118.49999999999999&quot; height=&quot;21&quot; rx=&quot;10.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;320&quot; y=&quot;797.65&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;Patroni 同步複寫&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;125.5&quot; y=&quot;915&quot; width=&quot;71&quot; height=&quot;21&quot; rx=&quot;10.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;161&quot; y=&quot;929.9&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;DCS 共識&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;443.5&quot; y=&quot;915&quot; width=&quot;71&quot; height=&quot;21&quot; rx=&quot;10.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;479&quot; y=&quot;929.9&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;DCS 共識&lt;/text&gt;&lt;/g&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;477&quot; y=&quot;41.75&quot; width=&quot;18&quot; height=&quot;3&quot; rx=&quot;1.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;503&quot; y=&quot;47.65&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;臺灣&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;rect x=&quot;477&quot; y=&quot;65.75&quot; width=&quot;18&quot; height=&quot;3&quot; rx=&quot;1.5&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;503&quot; y=&quot;71.65&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;日本&lt;/text&gt;&lt;/g&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/div&gt;&lt;figcaption data-astro-cid-ghpldzin=&quot;&quot;&gt;新系統&lt;/figcaption&gt;&lt;p aria-hidden=&quot;true&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;svg viewBox=&quot;0 0 24 24&quot; focusable=&quot;false&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;path d=&quot;M11 4a7 7 0 1 1 0 14 7 7 0 0 1 0-14zM20 20l-3.5-3.5M11 8v6M8 11h6&quot; data-astro-cid-ghpldzin=&quot;&quot;&gt;&lt;/path&gt;&lt;/svg&gt;點圖可放大&lt;/p&gt;&lt;/figure&gt;
&lt;p&gt;&lt;a href=&quot;https://static.core-tnn1.exptech.dev/seismograph-info/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;地震儀裝置監控面板&lt;/a&gt;&lt;/p&gt;
&lt;div data-astro-cid-7qmvx3iy=&quot;&quot;&gt;&lt;article data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;p data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1.333em&quot; height=&quot;1.333em&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;m18 14 4 4-4 4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m18 2 4 4-4 4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 6h1.972a4 4 0 0 1 3.6 2.2&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span data-astro-cid-z24ziyhq=&quot;&quot;&gt;舊版異地多活&lt;/span&gt;&lt;/p&gt;&lt;div data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;p&gt;兩個節點都會發報，但解算結果通常差很多。實際使用時只能固定單一節點，故障時要手動切換。&lt;/p&gt;&lt;/div&gt;&lt;/article&gt;&lt;article data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;p data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1.333em&quot; height=&quot;1.333em&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span data-astro-cid-z24ziyhq=&quot;&quot;&gt;新系統&lt;/span&gt;&lt;/p&gt;&lt;div data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;p&gt;兩邊一樣都會解算，最後用仲裁決定哪個節點有發布權限（自動故障轉移）。也會自動補齊兩邊的差異測站，避免特定測站只存在單邊（例如一邊連不上）。&lt;/p&gt;&lt;/div&gt;&lt;/article&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href=&quot;https://report.exptech.dev/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;TREM 檢知報告&lt;/a&gt;&lt;/p&gt;
&lt;div&gt;&lt;h4 id=&quot;狀態監測&quot;&gt;狀態監測&lt;/h4&gt;&lt;/div&gt;
&lt;figure&gt;&lt;img src=&quot;https://exptech.dev/img/sharing/2025-12-15/status.webp&quot; alt=&quot;新系統&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1846&quot; height=&quot;903&quot; srcset=&quot;/img/sharing/2025-12-15/status-640w.webp 640w, /img/sharing/2025-12-15/status.webp 1846w&quot; sizes=&quot;(min-width: 50rem) 48rem, 100vw&quot; data-zoom-src=&quot;/img/sharing/2025-12-15/status.webp&quot;&gt;&lt;figcaption&gt;新系統&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;&lt;a href=&quot;https://status.exptech.dev/status&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;狀態監測&lt;/a&gt;&lt;/p&gt;
&lt;div&gt;&lt;h4 id=&quot;ml-模型&quot;&gt;ML 模型&lt;/h4&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://huggingface.co/YuYu1015/YuYu1015-PhaseNet-50Hz-268k-v1&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;YuYu1015-PhaseNet-50Hz-268k-v1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://huggingface.co/YuYu1015/YuYu1015-IntensityGMM-TW-45k-v1&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;YuYu1015-IntensityGMM-TW-45k-v1&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;&lt;h2 id=&quot;番外篇&quot;&gt;番外篇&lt;/h2&gt;&lt;/div&gt;
&lt;div&gt;&lt;h3 id=&quot;學生時代&quot;&gt;學生時代&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;高一到高三，成績應該都是全校倒數（不是班排，是校排）。我其實有認真在讀書，大概吧。高中念了 4 年，大一還回高中重補修，全校大概只有我。&lt;/p&gt;
&lt;p&gt;當時多半被當成怪人（不上課，都在胡搞瞎搞）加上廢人（成績爛）。家人一開始很生氣，後來就放棄了。他們很討厭我用 3C，希望我好好讀書，手機還被折成兩半（喜提折疊機）。經過好幾次家庭革命，才勉強能做自己想做的事。說到底，也只能說是運氣好，一路上遇到很多願意幫忙的人。&lt;/p&gt;
&lt;aside aria-label=&quot;用手機寫程式&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;用手機寫程式&lt;/p&gt;&lt;div&gt;&lt;p&gt;有很長一段時間是用手機寫程式，靠背記住程式在哪個檔案的哪個位置。手機螢幕很小，用背的比用找的快。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;div&gt;&lt;h3 id=&quot;20240403-地震&quot;&gt;2024/04/03 地震&lt;/h3&gt;&lt;/div&gt;
&lt;div data-astro-cid-7qmvx3iy=&quot;&quot;&gt;&lt;div data-astro-cid-zaaezwya=&quot;&quot;&gt;&lt;span data-astro-cid-zaaezwya=&quot;&quot;&gt;&lt;a href=&quot;https://youtu.be/BLnajRWAXIw&quot; data-astro-cid-zaaezwya=&quot;&quot;&gt;&lt;span data-astro-cid-zaaezwya=&quot;&quot;&gt;ExpTech 2024/04/03 07:58 M7.1 地震紀錄&lt;/span&gt;&lt;/a&gt;&lt;span data-astro-cid-zaaezwya=&quot;&quot;&gt;主震時的 TREM EEW 內部紀錄。&lt;/span&gt;&lt;/span&gt;&lt;svg data-astro-cid-zaaezwya=&quot;true&quot; aria-hidden=&quot;true&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;currentColor&quot; data-astro-cid-hkc32dio=&quot;&quot;&gt;&lt;path d=&quot;M17.92 11.62a1.001 1.001 0 0 0-.21-.33l-5-5a1.003 1.003 0 1 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219l5-5a1 1 0 0 0 .21-.33 1 1 0 0 0 0-.76Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div data-astro-cid-zaaezwya=&quot;&quot;&gt;&lt;span data-astro-cid-zaaezwya=&quot;&quot;&gt;&lt;a href=&quot;https://youtu.be/eCoOz4duIIw&quot; data-astro-cid-zaaezwya=&quot;&quot;&gt;&lt;span data-astro-cid-zaaezwya=&quot;&quot;&gt;你是什麼人 2024/04/27 M5.8 地震紀錄&lt;/span&gt;&lt;/a&gt;&lt;span data-astro-cid-zaaezwya=&quot;&quot;&gt;餘震剛好都發生在語音通話時。事後看真的快被笑死。&lt;/span&gt;&lt;/span&gt;&lt;svg data-astro-cid-zaaezwya=&quot;true&quot; aria-hidden=&quot;true&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;currentColor&quot; data-astro-cid-hkc32dio=&quot;&quot;&gt;&lt;path d=&quot;M17.92 11.62a1.001 1.001 0 0 0-.21-.33l-5-5a1.003 1.003 0 1 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219l5-5a1 1 0 0 0 .21-.33 1 1 0 0 0 0-.76Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;/div&gt;</content:encoded><category>Sharing</category></item><item><title>LB Server 請求分析</title><link>https://exptech.dev/blog/analysis-2025-12-14/</link><guid isPermaLink="true">https://exptech.dev/blog/analysis-2025-12-14/</guid><description>2025/12/13 上午 9:19:57 至 9:25:01 期間，LB Server 處理了 948,920 個請求，平均 RPS 3,121.45，峰值 RPS 3,183.02。5xx 為 0，負載分布不均，lb-1 處理了 30.58% 的流量。</description><pubDate>Sun, 14 Dec 2025 00:00:00 GMT</pubDate><content:encoded>&lt;div&gt;&lt;h2 id=&quot;區間&quot;&gt;區間&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;區間是 &lt;strong&gt;2025/12/13 上午 9:19:57 至 9:25:01（UTC+8）&lt;/strong&gt;，長度 5 分 4 秒。&lt;/p&gt;

&lt;div&gt;&lt;h2 id=&quot;流量&quot;&gt;流量&lt;/h2&gt;&lt;/div&gt;
&lt;div data-astro-cid-7qmvx3iy=&quot;&quot;&gt;&lt;article data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;p data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1.333em&quot; height=&quot;1.333em&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span data-astro-cid-z24ziyhq=&quot;&quot;&gt;總請求數&lt;/span&gt;&lt;/p&gt;&lt;div data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;p&gt;948,920&lt;/p&gt;&lt;/div&gt;&lt;/article&gt;&lt;article data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;p data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1.333em&quot; height=&quot;1.333em&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M3 3v16a2 2 0 0 0 2 2h16&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18 17V9&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M13 17V5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M8 17v-3&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span data-astro-cid-z24ziyhq=&quot;&quot;&gt;RPS&lt;/span&gt;&lt;/p&gt;&lt;div data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;p&gt;平均 3,121.45，峰值 3,183.02&lt;/p&gt;&lt;/div&gt;&lt;/article&gt;&lt;article data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;p data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1.333em&quot; height=&quot;1.333em&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M12 15V3&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m7 10 5 5 5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span data-astro-cid-z24ziyhq=&quot;&quot;&gt;總傳輸量&lt;/span&gt;&lt;/p&gt;&lt;div data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;p&gt;659.64 MB&lt;/p&gt;&lt;/div&gt;&lt;/article&gt;&lt;article data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;p data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1.333em&quot; height=&quot;1.333em&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;M12 16v-4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 8h.01&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span data-astro-cid-z24ziyhq=&quot;&quot;&gt;成功率&lt;/span&gt;&lt;/p&gt;&lt;div data-astro-cid-z24ziyhq=&quot;&quot;&gt;&lt;p&gt;97.16%（5xx 為 0）&lt;/p&gt;&lt;/div&gt;&lt;/article&gt;&lt;/div&gt;
&lt;p&gt;這段期間處理了 948,920 個 HTTP 請求，峰值 RPS 比平均高約 2%。&lt;/p&gt;
&lt;p&gt;平均請求大小 728.91 B（範圍 0 B ~ 94.12 KB），總傳輸量 659.64 MB。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;http-狀態碼&quot;&gt;HTTP 狀態碼&lt;/h2&gt;&lt;/div&gt;
&lt;div&gt;&lt;h3 id=&quot;類別&quot;&gt;類別&lt;/h3&gt;&lt;/div&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;狀態碼類別&lt;/th&gt;
&lt;th&gt;數量&lt;/th&gt;
&lt;th&gt;比例&lt;/th&gt;
&lt;th&gt;評估&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;2xx（成功）&lt;/td&gt;
&lt;td&gt;921,963&lt;/td&gt;
&lt;td&gt;97.16%&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;高&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3xx（重新導向）&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;0.00%&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;正常&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4xx（客戶端錯誤）&lt;/td&gt;
&lt;td&gt;26,956&lt;/td&gt;
&lt;td&gt;2.84%&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;warn&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 9v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 17h.01&quot;&gt;&lt;/path&gt;&lt;/svg&gt;偏高&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5xx（伺服器錯誤）&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;0.00%&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg data-status=&quot;ok&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;1.1em&quot; height=&quot;1.1em&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;無&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div&gt;&lt;h3 id=&quot;個別狀態碼&quot;&gt;個別狀態碼&lt;/h3&gt;&lt;/div&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;狀態碼&lt;/th&gt;
&lt;th&gt;數量&lt;/th&gt;
&lt;th&gt;比例&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;200&lt;/td&gt;
&lt;td&gt;921,702&lt;/td&gt;
&lt;td&gt;97.13%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;404&lt;/td&gt;
&lt;td&gt;26,932&lt;/td&gt;
&lt;td&gt;2.84%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;204&lt;/td&gt;
&lt;td&gt;261&lt;/td&gt;
&lt;td&gt;0.03%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;499&lt;/td&gt;
&lt;td&gt;24&lt;/td&gt;
&lt;td&gt;0.00%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;302&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;0.00%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;aside aria-label=&quot;沒有 5xx&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;沒有 5xx&lt;/p&gt;&lt;div&gt;&lt;p&gt;5xx 為 0，負載平衡器與後端都沒有回伺服器錯誤。成功的請求佔 97.16%，對照標準是高於 95%。499 有 24 筆（0.00%），是客戶端自己取消的。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;aside aria-label=&quot;404 高於 2%&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;404 高於 2%&lt;/p&gt;&lt;div&gt;&lt;p&gt;404 有 26,932 筆（2.84%），高於 2% 這個參考值。可能原因：&lt;/p&gt;&lt;ul&gt;
&lt;li&gt;客戶端還在打舊版或已棄用的路徑&lt;/li&gt;
&lt;li&gt;API 版本不符&lt;/li&gt;
&lt;li&gt;端點路徑設錯&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;路徑或版本不對的客戶端要更新，或把設定改過來。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;div&gt;&lt;h2 id=&quot;熱門端點&quot;&gt;熱門端點&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;流量集中在兩個 API。前 8 個端點佔總流量的 &lt;strong&gt;73.48%&lt;/strong&gt;，其中：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;地震預警（&lt;code dir=&quot;auto&quot;&gt;/api/v2/eq/…&lt;/code&gt;，轉發中央氣象署的強震即時警報，完整路徑不列出）：36.86%&lt;/li&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;/api/v2/trem/rts&lt;/code&gt;（即時測站）：36.62%&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;地震預警與即時測站在 4 台負載平衡器上各約 9%。&lt;/p&gt;
&lt;figure lang=&quot;zh-TW&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;div data-xt-zoomable=&quot;&quot; aria-label=&quot;各端點在每台負載平衡器的請求比例（佔全部請求）&quot; aria-describedby=&quot;xt-diagram-desc-10f45s4&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;svg viewBox=&quot;0 0 600 254&quot; role=&quot;img&quot; aria-label=&quot;各端點在每台負載平衡器的請求比例（佔全部請求）&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;defs data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;pattern id=&quot;xt-matrix-hatch-yv9mv8&quot; width=&quot;6&quot; height=&quot;6&quot; patternUnits=&quot;userSpaceOnUse&quot; patternTransform=&quot;rotate(45)&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;rect width=&quot;6&quot; height=&quot;6&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;line x1=&quot;1&quot; y1=&quot;0&quot; x2=&quot;1&quot; y2=&quot;6&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/line&gt;&lt;/pattern&gt;&lt;/defs&gt;&lt;rect x=&quot;-4.5&quot; y=&quot;40.5&quot; width=&quot;609&quot; height=&quot;37&quot; rx=&quot;6&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;154.41&quot; font-size=&quot;12&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;154.41&quot; y=&quot;18&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;/api/v2/&lt;/tspan&gt;&lt;tspan x=&quot;154.41&quot; y=&quot;33&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;eq/…&lt;/tspan&gt;&lt;/text&gt;&lt;text x=&quot;208.88&quot; font-size=&quot;12&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;208.88&quot; y=&quot;18&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;/api/v2/&lt;/tspan&gt;&lt;tspan x=&quot;208.88&quot; y=&quot;33&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;trem/rts&lt;/tspan&gt;&lt;/text&gt;&lt;text x=&quot;263.35&quot; font-size=&quot;12&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;263.35&quot; y=&quot;18&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;/api/v1/&lt;/tspan&gt;&lt;tspan x=&quot;263.35&quot; y=&quot;33&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;trem/rts&lt;/tspan&gt;&lt;/text&gt;&lt;text x=&quot;317.82&quot; font-size=&quot;12&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;317.82&quot; y=&quot;33&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;/ntp&lt;/tspan&gt;&lt;/text&gt;&lt;text x=&quot;372.3&quot; font-size=&quot;12&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;372.3&quot; y=&quot;33&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;/websocket&lt;/tspan&gt;&lt;/text&gt;&lt;text x=&quot;426.77&quot; font-size=&quot;12&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;426.77&quot; y=&quot;18&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;/api/v1/&lt;/tspan&gt;&lt;tspan x=&quot;426.77&quot; y=&quot;33&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;eq/…&lt;/tspan&gt;&lt;/text&gt;&lt;text font-size=&quot;12&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;466.5&quot; y=&quot;18&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;每台合計&lt;/tspan&gt;&lt;/text&gt;&lt;text x=&quot;522.72&quot; y=&quot;33&quot; font-size=&quot;11.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;4 台均分 25%&lt;/text&gt;&lt;text font-size=&quot;13&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;1.5&quot; y=&quot;63.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;lb-1.exptech.dev&lt;/tspan&gt;&lt;/text&gt;&lt;text font-size=&quot;13&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;1.5&quot; y=&quot;100.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;lb-2.exptech.dev&lt;/tspan&gt;&lt;/text&gt;&lt;text font-size=&quot;13&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;1.5&quot; y=&quot;137.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;lb-3.exptech.dev&lt;/tspan&gt;&lt;/text&gt;&lt;text font-size=&quot;13&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;1.5&quot; y=&quot;174.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;lb-4.exptech.dev&lt;/tspan&gt;&lt;/text&gt;&lt;text font-size=&quot;13&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;tspan x=&quot;1.5&quot; y=&quot;211.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;lb.exptech.dev&lt;/tspan&gt;&lt;/text&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb-1.exptech.dev × /api/v2/eq/…：9.22%&lt;/title&gt;&lt;rect x=&quot;128.67&quot; y=&quot;42&quot; width=&quot;51.47&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;154.41&quot; y=&quot;63.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;9.22%&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb-1.exptech.dev × /api/v2/trem/rts：9.16%&lt;/title&gt;&lt;rect x=&quot;183.14&quot; y=&quot;42&quot; width=&quot;51.47&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;208.88&quot; y=&quot;63.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;9.16%&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb-1.exptech.dev × /api/v1/trem/rts：6.34%&lt;/title&gt;&lt;rect x=&quot;237.61&quot; y=&quot;42&quot; width=&quot;51.47&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;263.35&quot; y=&quot;63.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;6.34%&lt;/text&gt;&lt;rect x=&quot;236.61&quot; y=&quot;41&quot; width=&quot;53.47&quot; height=&quot;36&quot; rx=&quot;5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb-1.exptech.dev × /ntp：4.25%&lt;/title&gt;&lt;rect x=&quot;292.08&quot; y=&quot;42&quot; width=&quot;51.47&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;317.82&quot; y=&quot;63.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;4.25%&lt;/text&gt;&lt;rect x=&quot;291.08&quot; y=&quot;41&quot; width=&quot;53.47&quot; height=&quot;36&quot; rx=&quot;5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb-1.exptech.dev × /websocket：0.89%&lt;/title&gt;&lt;rect x=&quot;346.56&quot; y=&quot;42&quot; width=&quot;51.47&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;372.3&quot; y=&quot;63.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;0.89%&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb-1.exptech.dev × /api/v1/eq/…：0.70%&lt;/title&gt;&lt;rect x=&quot;401.03&quot; y=&quot;42&quot; width=&quot;51.47&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;426.77&quot; y=&quot;63.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;0.70%&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb-2.exptech.dev × /api/v2/eq/…：9.29%&lt;/title&gt;&lt;rect x=&quot;128.67&quot; y=&quot;79&quot; width=&quot;51.47&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;154.41&quot; y=&quot;100.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;9.29%&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb-2.exptech.dev × /api/v2/trem/rts：9.17%&lt;/title&gt;&lt;rect x=&quot;183.14&quot; y=&quot;79&quot; width=&quot;51.47&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;208.88&quot; y=&quot;100.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;9.17%&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb-2.exptech.dev × /api/v1/trem/rts：2.64%&lt;/title&gt;&lt;rect x=&quot;237.61&quot; y=&quot;79&quot; width=&quot;51.47&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;263.35&quot; y=&quot;100.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;2.64%&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb-2.exptech.dev × /ntp：1.84%&lt;/title&gt;&lt;rect x=&quot;292.08&quot; y=&quot;79&quot; width=&quot;51.47&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;317.82&quot; y=&quot;100.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;1.84%&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb-2.exptech.dev × /websocket：0.08%&lt;/title&gt;&lt;rect x=&quot;346.56&quot; y=&quot;79&quot; width=&quot;51.47&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;372.3&quot; y=&quot;100.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;0.08%&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb-2.exptech.dev × /api/v1/eq/…：0.66%&lt;/title&gt;&lt;rect x=&quot;401.03&quot; y=&quot;79&quot; width=&quot;51.47&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;426.77&quot; y=&quot;100.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;0.66%&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb-3.exptech.dev × /api/v2/eq/…：9.18%&lt;/title&gt;&lt;rect x=&quot;128.67&quot; y=&quot;116&quot; width=&quot;51.47&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;154.41&quot; y=&quot;137.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;9.18%&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb-3.exptech.dev × /api/v2/trem/rts：9.13%&lt;/title&gt;&lt;rect x=&quot;183.14&quot; y=&quot;116&quot; width=&quot;51.47&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;208.88&quot; y=&quot;137.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;9.13%&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb-3.exptech.dev × /api/v1/trem/rts：0.66%&lt;/title&gt;&lt;rect x=&quot;237.61&quot; y=&quot;116&quot; width=&quot;51.47&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;263.35&quot; y=&quot;137.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;0.66%&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb-3.exptech.dev × /ntp：1.83%&lt;/title&gt;&lt;rect x=&quot;292.08&quot; y=&quot;116&quot; width=&quot;51.47&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;317.82&quot; y=&quot;137.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;1.83%&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb-3.exptech.dev × /websocket：0.90%&lt;/title&gt;&lt;rect x=&quot;346.56&quot; y=&quot;116&quot; width=&quot;51.47&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;372.3&quot; y=&quot;137.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;0.90%&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb-3.exptech.dev × /api/v1/eq/…：0.67%&lt;/title&gt;&lt;rect x=&quot;401.03&quot; y=&quot;116&quot; width=&quot;51.47&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;426.77&quot; y=&quot;137.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;0.67%&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb-4.exptech.dev × /api/v2/eq/…：9.18%&lt;/title&gt;&lt;rect x=&quot;128.67&quot; y=&quot;153&quot; width=&quot;51.47&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;154.41&quot; y=&quot;174.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;9.18%&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb-4.exptech.dev × /api/v2/trem/rts：9.16%&lt;/title&gt;&lt;rect x=&quot;183.14&quot; y=&quot;153&quot; width=&quot;51.47&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;208.88&quot; y=&quot;174.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;9.16%&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb-4.exptech.dev × /api/v1/trem/rts：0.63%&lt;/title&gt;&lt;rect x=&quot;237.61&quot; y=&quot;153&quot; width=&quot;51.47&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;263.35&quot; y=&quot;174.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;0.63%&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb-4.exptech.dev × /ntp：1.83%&lt;/title&gt;&lt;rect x=&quot;292.08&quot; y=&quot;153&quot; width=&quot;51.47&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;317.82&quot; y=&quot;174.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;1.83%&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb-4.exptech.dev × /websocket：0.90%&lt;/title&gt;&lt;rect x=&quot;346.56&quot; y=&quot;153&quot; width=&quot;51.47&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;372.3&quot; y=&quot;174.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;0.90%&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb-4.exptech.dev × /api/v1/eq/…：0.67%&lt;/title&gt;&lt;rect x=&quot;401.03&quot; y=&quot;153&quot; width=&quot;51.47&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;426.77&quot; y=&quot;174.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;0.67%&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb.exptech.dev × /api/v2/eq/…：無資料&lt;/title&gt;&lt;rect x=&quot;128.67&quot; y=&quot;190&quot; width=&quot;51.47&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;154.41&quot; y=&quot;211.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;–&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb.exptech.dev × /api/v2/trem/rts：0.04%&lt;/title&gt;&lt;rect x=&quot;183.14&quot; y=&quot;190&quot; width=&quot;51.47&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;208.88&quot; y=&quot;211.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;0.04%&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb.exptech.dev × /api/v1/trem/rts：0.61%&lt;/title&gt;&lt;rect x=&quot;237.61&quot; y=&quot;190&quot; width=&quot;51.47&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;263.35&quot; y=&quot;211.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;0.61%&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb.exptech.dev × /ntp：0.04%&lt;/title&gt;&lt;rect x=&quot;292.08&quot; y=&quot;190&quot; width=&quot;51.47&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;317.82&quot; y=&quot;211.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;0.04%&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb.exptech.dev × /websocket：無資料&lt;/title&gt;&lt;rect x=&quot;346.56&quot; y=&quot;190&quot; width=&quot;51.47&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;372.3&quot; y=&quot;211.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;–&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb.exptech.dev × /api/v1/eq/…：0.04%&lt;/title&gt;&lt;rect x=&quot;401.03&quot; y=&quot;190&quot; width=&quot;51.47&quot; height=&quot;34&quot; rx=&quot;4&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;426.77&quot; y=&quot;211.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;middle&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;0.04%&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb-1.exptech.dev：30.58%&lt;/title&gt;&lt;rect x=&quot;466.5&quot; y=&quot;53&quot; width=&quot;68.77&quot; height=&quot;12&quot; rx=&quot;2&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;598.5&quot; y=&quot;63.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;end&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;30.58%&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb-2.exptech.dev：23.68%&lt;/title&gt;&lt;rect x=&quot;466.5&quot; y=&quot;90&quot; width=&quot;53.25&quot; height=&quot;12&quot; rx=&quot;2&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;598.5&quot; y=&quot;100.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;end&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;23.68%&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb-3.exptech.dev：22.38%&lt;/title&gt;&lt;rect x=&quot;466.5&quot; y=&quot;127&quot; width=&quot;50.33&quot; height=&quot;12&quot; rx=&quot;2&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;598.5&quot; y=&quot;137.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;end&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;22.38%&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb-4.exptech.dev：22.37%&lt;/title&gt;&lt;rect x=&quot;466.5&quot; y=&quot;164&quot; width=&quot;50.3&quot; height=&quot;12&quot; rx=&quot;2&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;598.5&quot; y=&quot;174.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;end&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;22.37%&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;title&gt;lb.exptech.dev：0.94%&lt;/title&gt;&lt;rect x=&quot;466.5&quot; y=&quot;201&quot; width=&quot;2.11&quot; height=&quot;12&quot; rx=&quot;2&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;598.5&quot; y=&quot;211.5&quot; font-size=&quot;12.5&quot; text-anchor=&quot;end&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;0.94%&lt;/text&gt;&lt;/g&gt;&lt;line x1=&quot;522.72&quot; y1=&quot;37&quot; x2=&quot;522.72&quot; y2=&quot;226&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/line&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;text x=&quot;1.5&quot; y=&quot;250&quot; font-size=&quot;11.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;0.00%&lt;/text&gt;&lt;rect x=&quot;43.75&quot; y=&quot;240&quot; width=&quot;14&quot; height=&quot;12&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;57.75&quot; y=&quot;240&quot; width=&quot;14&quot; height=&quot;12&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;71.75&quot; y=&quot;240&quot; width=&quot;14&quot; height=&quot;12&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;85.75&quot; y=&quot;240&quot; width=&quot;14&quot; height=&quot;12&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;99.75&quot; y=&quot;240&quot; width=&quot;14&quot; height=&quot;12&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;119.75&quot; y=&quot;250&quot; font-size=&quot;11.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;9.29%&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;rect x=&quot;173.99&quot; y=&quot;240&quot; width=&quot;14&quot; height=&quot;12&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;193.99&quot; y=&quot;250&quot; font-size=&quot;11.5&quot; data-astro-cid-zp3tqp75=&quot;&quot;&gt;無資料&lt;/text&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/div&gt;&lt;p aria-hidden=&quot;true&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;點圖可放大&lt;/p&gt;&lt;p id=&quot;xt-diagram-desc-10f45s4&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;列是 5 個負載平衡器的網域，欄是 6 個主要端點，格子是佔全部請求的比例。地震預警（/api/v2/eq/…）與即時測站（/api/v2/trem/rts）在 lb-1 到 lb-4 各約 9%，差不多。lb-1 比較高的是 /api/v1/trem/rts（6.34%，其他三台 0.63% 到 2.64%）與 /ntp（4.25%，其他三台約 1.8%）。右邊是每台的合計：lb-1 30.58%，高於 4 台均分的 25%；lb-2 23.68%、lb-3 22.38%、lb-4 22.37%、lb.exptech.dev 0.94%。lb.exptech.dev 的 /api/v2/eq/… 與 /websocket 不在下面的排名表裡（排名表列到第 28 名，360 筆），標為無資料。&lt;/p&gt;&lt;figcaption data-astro-cid-fia5stjh=&quot;&quot;&gt;各端點在每台負載平衡器的請求比例（佔全部請求）&lt;/figcaption&gt;&lt;/figure&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;排名&lt;/th&gt;
&lt;th&gt;請求&lt;/th&gt;
&lt;th&gt;請求數&lt;/th&gt;
&lt;th&gt;比例&lt;/th&gt;
&lt;th&gt;累積比例&lt;/th&gt;
&lt;th&gt;RPS&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;GET /api/v2/eq/… [lb-2.exptech.dev]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;88,110&lt;/td&gt;
&lt;td&gt;9.29%&lt;/td&gt;
&lt;td&gt;9.29%&lt;/td&gt;
&lt;td&gt;289.84&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;GET /api/v2/eq/… [lb-1.exptech.dev]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;87,496&lt;/td&gt;
&lt;td&gt;9.22%&lt;/td&gt;
&lt;td&gt;18.51%&lt;/td&gt;
&lt;td&gt;287.82&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;GET /api/v2/eq/… [lb-3.exptech.dev]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;87,108&lt;/td&gt;
&lt;td&gt;9.18%&lt;/td&gt;
&lt;td&gt;27.69%&lt;/td&gt;
&lt;td&gt;286.54&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;GET /api/v2/eq/… [lb-4.exptech.dev]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;87,065&lt;/td&gt;
&lt;td&gt;9.18%&lt;/td&gt;
&lt;td&gt;36.86%&lt;/td&gt;
&lt;td&gt;286.40&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;GET /api/v2/trem/rts [lb-2.exptech.dev]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;86,989&lt;/td&gt;
&lt;td&gt;9.17%&lt;/td&gt;
&lt;td&gt;46.03%&lt;/td&gt;
&lt;td&gt;286.15&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;GET /api/v2/trem/rts [lb-4.exptech.dev]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;86,966&lt;/td&gt;
&lt;td&gt;9.16%&lt;/td&gt;
&lt;td&gt;55.19%&lt;/td&gt;
&lt;td&gt;286.07&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;GET /api/v2/trem/rts [lb-1.exptech.dev]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;86,954&lt;/td&gt;
&lt;td&gt;9.16%&lt;/td&gt;
&lt;td&gt;64.36%&lt;/td&gt;
&lt;td&gt;286.03&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;GET /api/v2/trem/rts [lb-3.exptech.dev]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;86,615&lt;/td&gt;
&lt;td&gt;9.13%&lt;/td&gt;
&lt;td&gt;73.48%&lt;/td&gt;
&lt;td&gt;284.92&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;GET /api/v1/trem/rts [lb-1.exptech.dev]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;60,190&lt;/td&gt;
&lt;td&gt;6.34%&lt;/td&gt;
&lt;td&gt;79.83%&lt;/td&gt;
&lt;td&gt;197.99&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;GET /ntp [lb-1.exptech.dev]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;40,335&lt;/td&gt;
&lt;td&gt;4.25%&lt;/td&gt;
&lt;td&gt;84.08%&lt;/td&gt;
&lt;td&gt;132.68&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;11&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;GET /api/v1/trem/rts [lb-2.exptech.dev]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;25,096&lt;/td&gt;
&lt;td&gt;2.64%&lt;/td&gt;
&lt;td&gt;86.72%&lt;/td&gt;
&lt;td&gt;82.55&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;12&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;GET /ntp [lb-2.exptech.dev]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;17,428&lt;/td&gt;
&lt;td&gt;1.84%&lt;/td&gt;
&lt;td&gt;88.56%&lt;/td&gt;
&lt;td&gt;57.33&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;13&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;GET /ntp [lb-3.exptech.dev]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;17,332&lt;/td&gt;
&lt;td&gt;1.83%&lt;/td&gt;
&lt;td&gt;90.39%&lt;/td&gt;
&lt;td&gt;57.01&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;14&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;GET /ntp [lb-4.exptech.dev]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;17,321&lt;/td&gt;
&lt;td&gt;1.83%&lt;/td&gt;
&lt;td&gt;92.21%&lt;/td&gt;
&lt;td&gt;56.98&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;15&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;GET /websocket [lb-4.exptech.dev]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;8,575&lt;/td&gt;
&lt;td&gt;0.90%&lt;/td&gt;
&lt;td&gt;93.11%&lt;/td&gt;
&lt;td&gt;28.21&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;GET /websocket [lb-3.exptech.dev]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;8,544&lt;/td&gt;
&lt;td&gt;0.90%&lt;/td&gt;
&lt;td&gt;94.01%&lt;/td&gt;
&lt;td&gt;28.11&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;17&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;GET /websocket [lb-1.exptech.dev]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;8,475&lt;/td&gt;
&lt;td&gt;0.89%&lt;/td&gt;
&lt;td&gt;94.91%&lt;/td&gt;
&lt;td&gt;27.88&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;18&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;GET /api/v1/eq/… [lb-1.exptech.dev]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;6,633&lt;/td&gt;
&lt;td&gt;0.70%&lt;/td&gt;
&lt;td&gt;95.61%&lt;/td&gt;
&lt;td&gt;21.82&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;19&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;GET /api/v1/eq/… [lb-3.exptech.dev]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;6,351&lt;/td&gt;
&lt;td&gt;0.67%&lt;/td&gt;
&lt;td&gt;96.28%&lt;/td&gt;
&lt;td&gt;20.89&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;GET /api/v1/eq/… [lb-4.exptech.dev]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;6,346&lt;/td&gt;
&lt;td&gt;0.67%&lt;/td&gt;
&lt;td&gt;96.94%&lt;/td&gt;
&lt;td&gt;20.88&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;21&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;GET /api/v1/trem/rts [lb-3.exptech.dev]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;6,305&lt;/td&gt;
&lt;td&gt;0.66%&lt;/td&gt;
&lt;td&gt;97.61%&lt;/td&gt;
&lt;td&gt;20.74&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;22&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;GET /api/v1/eq/… [lb-2.exptech.dev]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;6,287&lt;/td&gt;
&lt;td&gt;0.66%&lt;/td&gt;
&lt;td&gt;98.27%&lt;/td&gt;
&lt;td&gt;20.68&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;23&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;GET /api/v1/trem/rts [lb-4.exptech.dev]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;5,934&lt;/td&gt;
&lt;td&gt;0.63%&lt;/td&gt;
&lt;td&gt;98.90%&lt;/td&gt;
&lt;td&gt;19.52&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;24&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;GET /api/v1/trem/rts [lb.exptech.dev]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;5,750&lt;/td&gt;
&lt;td&gt;0.61%&lt;/td&gt;
&lt;td&gt;99.50%&lt;/td&gt;
&lt;td&gt;18.91&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;25&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;GET /websocket [lb-2.exptech.dev]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;769&lt;/td&gt;
&lt;td&gt;0.08%&lt;/td&gt;
&lt;td&gt;99.58%&lt;/td&gt;
&lt;td&gt;2.53&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;26&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;GET /ntp [lb.exptech.dev]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;365&lt;/td&gt;
&lt;td&gt;0.04%&lt;/td&gt;
&lt;td&gt;99.62%&lt;/td&gt;
&lt;td&gt;1.20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;27&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;GET /api/v2/trem/rts [lb.exptech.dev]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;360&lt;/td&gt;
&lt;td&gt;0.04%&lt;/td&gt;
&lt;td&gt;99.66%&lt;/td&gt;
&lt;td&gt;1.18&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;28&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;GET /api/v1/eq/… [lb.exptech.dev]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;360&lt;/td&gt;
&lt;td&gt;0.04%&lt;/td&gt;
&lt;td&gt;99.70%&lt;/td&gt;
&lt;td&gt;1.18&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div&gt;&lt;h2 id=&quot;api-端點&quot;&gt;API 端點&lt;/h2&gt;&lt;/div&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;API 端點&lt;/th&gt;
&lt;th&gt;總請求數&lt;/th&gt;
&lt;th&gt;比例&lt;/th&gt;
&lt;th&gt;平均 RPS&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;/api/v2/eq/…&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;349,779&lt;/td&gt;
&lt;td&gt;36.86%&lt;/td&gt;
&lt;td&gt;~1,151&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;/api/v2/trem/rts&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;347,884&lt;/td&gt;
&lt;td&gt;36.66%&lt;/td&gt;
&lt;td&gt;~1,144&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;/api/v1/trem/rts&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;103,275&lt;/td&gt;
&lt;td&gt;10.88%&lt;/td&gt;
&lt;td&gt;~340&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;/ntp&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;92,781&lt;/td&gt;
&lt;td&gt;9.78%&lt;/td&gt;
&lt;td&gt;~305&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;/websocket&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;26,363&lt;/td&gt;
&lt;td&gt;2.78%&lt;/td&gt;
&lt;td&gt;~87&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;/api/v1/eq/…&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;25,977&lt;/td&gt;
&lt;td&gt;2.74%&lt;/td&gt;
&lt;td&gt;~85&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;這張表是上表 28 列依端點加總（含 lb.exptech.dev），前 28 名以外的組合合計不到 0.3%，沒有算進來。2026-11-18 更正：&lt;code dir=&quot;auto&quot;&gt;/api/v2/trem/rts&lt;/code&gt;、&lt;code dir=&quot;auto&quot;&gt;/api/v1/trem/rts&lt;/code&gt;、&lt;code dir=&quot;auto&quot;&gt;/ntp&lt;/code&gt; 與 &lt;code dir=&quot;auto&quot;&gt;/websocket&lt;/code&gt; 原本的數字跟上表對不起來，已改為加總值。&lt;/p&gt;
&lt;p&gt;地震預警佔 36.86%，平均 RPS 約 1,151。即時測站（&lt;code dir=&quot;auto&quot;&gt;/api/v2/trem/rts&lt;/code&gt;）佔 36.66%。兩個在 4 台上的量都差不多，加起來 73.5%。&lt;/p&gt;
&lt;p&gt;v2 API 使用率 73.5%，大部分使用者已遷移至 v2 API。&lt;/p&gt;
&lt;p&gt;&lt;code dir=&quot;auto&quot;&gt;/ntp&lt;/code&gt; 佔 9.78%，用來對時。&lt;code dir=&quot;auto&quot;&gt;/websocket&lt;/code&gt; 佔 2.78%，用來推即時資料。&lt;/p&gt;
&lt;aside aria-label=&quot;v1 仍在使用&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;v1 仍在使用&lt;/p&gt;&lt;div&gt;&lt;p&gt;v1 API 仍佔 13.62%，還有一部分使用者使用舊版。需要留意 v1 的維護成本與相容性，以及版本遷移進度。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;div&gt;&lt;h2 id=&quot;負載平衡器&quot;&gt;負載平衡器&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;共 5 個不同的 Host。&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;排名&lt;/th&gt;
&lt;th&gt;Host&lt;/th&gt;
&lt;th&gt;請求數&lt;/th&gt;
&lt;th&gt;比例&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;lb-1.exptech.dev&lt;/td&gt;
&lt;td&gt;290,151&lt;/td&gt;
&lt;td&gt;30.58%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;lb-2.exptech.dev&lt;/td&gt;
&lt;td&gt;224,730&lt;/td&gt;
&lt;td&gt;23.68%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;lb-3.exptech.dev&lt;/td&gt;
&lt;td&gt;212,328&lt;/td&gt;
&lt;td&gt;22.38%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;lb-4.exptech.dev&lt;/td&gt;
&lt;td&gt;212,276&lt;/td&gt;
&lt;td&gt;22.37%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;lb.exptech.dev&lt;/td&gt;
&lt;td&gt;8,886&lt;/td&gt;
&lt;td&gt;0.94%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;4 台負載平衡器與理想值（25%）的差異：&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;伺服器&lt;/th&gt;
&lt;th&gt;請求數&lt;/th&gt;
&lt;th&gt;比例&lt;/th&gt;
&lt;th&gt;與理想值差異&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;lb-1&lt;/td&gt;
&lt;td&gt;290,151&lt;/td&gt;
&lt;td&gt;30.58%&lt;/td&gt;
&lt;td&gt;+5.58%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;lb-2&lt;/td&gt;
&lt;td&gt;224,730&lt;/td&gt;
&lt;td&gt;23.68%&lt;/td&gt;
&lt;td&gt;-1.32%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;lb-3&lt;/td&gt;
&lt;td&gt;212,328&lt;/td&gt;
&lt;td&gt;22.38%&lt;/td&gt;
&lt;td&gt;-2.62%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;lb-4&lt;/td&gt;
&lt;td&gt;212,276&lt;/td&gt;
&lt;td&gt;22.37%&lt;/td&gt;
&lt;td&gt;-2.63%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;4 台都在正常運作，沒有單點故障。各台佔比在 22% 到 31% 之間，核心 API 在 4 台上的量差不多。&lt;/p&gt;
&lt;p&gt;通用網域 &lt;code dir=&quot;auto&quot;&gt;lb.exptech.dev&lt;/code&gt; 只處理 &lt;strong&gt;0.94%&lt;/strong&gt;，大部分客戶端直接指定某一台。&lt;/p&gt;
&lt;aside aria-label=&quot;lb-1 負載偏高&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;lb-1 負載偏高&lt;/p&gt;&lt;div&gt;&lt;p&gt;&lt;code dir=&quot;auto&quot;&gt;lb-1.exptech.dev&lt;/code&gt; 處理了 &lt;strong&gt;30.58%&lt;/strong&gt; 的流量，高於另外三台（均分是 25%）。lb-1 故障的話，大約 30% 的流量會受影響。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;p&gt;這些是 2025 年 12 月的入口。&lt;code dir=&quot;auto&quot;&gt;lb-1&lt;/code&gt;～&lt;code dir=&quot;auto&quot;&gt;lb-4&lt;/code&gt; 現在已不是 API 的入口，目前的 host 見&lt;a href=&quot;https://exptech.dev/docs/api/start/hosts&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;伺服器與 Base URL&lt;/a&gt;。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;客戶端平台&quot;&gt;客戶端平台&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;共 14 個不同的平台。&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;排名&lt;/th&gt;
&lt;th&gt;平台&lt;/th&gt;
&lt;th&gt;請求數&lt;/th&gt;
&lt;th&gt;比例&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;trem_lite&lt;/td&gt;
&lt;td&gt;375,765&lt;/td&gt;
&lt;td&gt;39.60%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg viewBox=&quot;0 0 24 24&quot; width=&quot;1em&quot; height=&quot;1em&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M4.105 4.105S9.158 1.58 11.684.316a3.079 3.079 0 0 1 1.481-.315c.766.047 1.677.788 1.677.788L24 9.948v9.789h-4.263V24H9.789l-9-9C.303 14.5 0 13.795 0 13.105c0-.319.18-.818.316-1.105l3.789-7.895zm.679.679v11.787c.002.543.021 1.024.498 1.508L10.204 23h8.533v-4.263L4.784 4.784zm12.055-.678c-.899-.896-1.809-1.78-2.74-2.643-.302-.267-.567-.468-1.07-.462-.37.014-.87.195-.87.195L6.341 4.105l10.498.001z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Dart&lt;/span&gt;/Flutter&lt;/td&gt;
&lt;td&gt;264,753&lt;/td&gt;
&lt;td&gt;27.90%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;tremv&lt;/td&gt;
&lt;td&gt;165,834&lt;/td&gt;
&lt;td&gt;17.48%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;ZeroQuake&lt;/td&gt;
&lt;td&gt;72,434&lt;/td&gt;
&lt;td&gt;7.63%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Unknown&lt;/td&gt;
&lt;td&gt;27,754&lt;/td&gt;
&lt;td&gt;2.92%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg viewBox=&quot;0 0 24 24&quot; width=&quot;1em&quot; height=&quot;1em&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M11.998,24c-0.321,0-0.641-0.084-0.922-0.247l-2.936-1.737c-0.438-0.245-0.224-0.332-0.08-0.383 c0.585-0.203,0.703-0.25,1.328-0.604c0.065-0.037,0.151-0.023,0.218,0.017l2.256,1.339c0.082,0.045,0.197,0.045,0.272,0l8.795-5.076 c0.082-0.047,0.134-0.141,0.134-0.238V6.921c0-0.099-0.053-0.192-0.137-0.242l-8.791-5.072c-0.081-0.047-0.189-0.047-0.271,0 L3.075,6.68C2.99,6.729,2.936,6.825,2.936,6.921v10.15c0,0.097,0.054,0.189,0.139,0.235l2.409,1.392 c1.307,0.654,2.108-0.116,2.108-0.89V7.787c0-0.142,0.114-0.253,0.256-0.253h1.115c0.139,0,0.255,0.112,0.255,0.253v10.021 c0,1.745-0.95,2.745-2.604,2.745c-0.508,0-0.909,0-2.026-0.551L2.28,18.675c-0.57-0.329-0.922-0.945-0.922-1.604V6.921 c0-0.659,0.353-1.275,0.922-1.603l8.795-5.082c0.557-0.315,1.296-0.315,1.848,0l8.794,5.082c0.57,0.329,0.924,0.944,0.924,1.603 v10.15c0,0.659-0.354,1.273-0.924,1.604l-8.794,5.078C12.643,23.916,12.324,24,11.998,24z M19.099,13.993 c0-1.9-1.284-2.406-3.987-2.763c-2.731-0.361-3.009-0.548-3.009-1.187c0-0.528,0.235-1.233,2.258-1.233 c1.807,0,2.473,0.389,2.747,1.607c0.024,0.115,0.129,0.199,0.247,0.199h1.141c0.071,0,0.138-0.031,0.186-0.081 c0.048-0.054,0.074-0.123,0.067-0.196c-0.177-2.098-1.571-3.076-4.388-3.076c-2.508,0-4.004,1.058-4.004,2.833 c0,1.925,1.488,2.457,3.895,2.695c2.88,0.282,3.103,0.703,3.103,1.269c0,0.983-0.789,1.402-2.642,1.402 c-2.327,0-2.839-0.584-3.011-1.742c-0.02-0.124-0.126-0.215-0.253-0.215h-1.137c-0.141,0-0.254,0.112-0.254,0.253 c0,1.482,0.806,3.248,4.655,3.248C17.501,17.007,19.099,15.91,19.099,13.993z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Node.js&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;25,429&lt;/td&gt;
&lt;td&gt;2.68%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;Other&lt;/td&gt;
&lt;td&gt;6,962&lt;/td&gt;
&lt;td&gt;0.73%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;Chrome&lt;/td&gt;
&lt;td&gt;3,948&lt;/td&gt;
&lt;td&gt;0.42%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&lt;svg viewBox=&quot;0 0 24 24&quot; width=&quot;1em&quot; height=&quot;1em&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M11.858 0c-.978.005-1.913.088-2.736.234C6.7.662 6.26 1.558 6.26 3.21v2.182h5.725v.727H4.111c-1.664 0-3.121 1-3.577 2.903-.526 2.181-.549 3.542 0 5.82.407 1.694 1.379 2.902 3.043 2.902h1.969v-2.616c0-1.89 1.635-3.557 3.576-3.557h5.72c1.591 0 2.862-1.31 2.862-2.91v-5.45c0-1.553-1.309-2.718-2.863-2.977A18 18 0 0 0 11.858 0M8.762 1.755c.591 0 1.074.491 1.074 1.095 0 .601-.483 1.087-1.074 1.087A1.08 1.08 0 0 1 7.688 2.85c0-.604.48-1.095 1.074-1.095m9.656 4.364v2.543c0 1.971-1.671 3.63-3.577 3.63H9.122c-1.566 0-2.862 1.34-2.862 2.91v5.452c0 1.551 1.349 2.464 2.862 2.91 1.813.532 3.55.628 5.72 0 1.44-.418 2.862-1.258 2.862-2.91V18.47h-5.719v-.727h8.582c1.664 0 2.284-1.16 2.862-2.903.598-1.793.573-3.518 0-5.819-.41-1.656-1.196-2.903-2.862-2.903zm-3.216 13.807a1.08 1.08 0 0 1 1.074 1.088c0 .604-.48 1.094-1.074 1.094-.592 0-1.075-.49-1.075-1.094 0-.601.483-1.088 1.075-1.088&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Python&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;2,104&lt;/td&gt;
&lt;td&gt;0.22%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;Axios&lt;/td&gt;
&lt;td&gt;2,081&lt;/td&gt;
&lt;td&gt;0.22%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;11&lt;/td&gt;
&lt;td&gt;curl&lt;/td&gt;
&lt;td&gt;1,080&lt;/td&gt;
&lt;td&gt;0.11%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;12&lt;/td&gt;
&lt;td&gt;dpip&lt;/td&gt;
&lt;td&gt;585&lt;/td&gt;
&lt;td&gt;0.06%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;13&lt;/td&gt;
&lt;td&gt;Safari&lt;/td&gt;
&lt;td&gt;183&lt;/td&gt;
&lt;td&gt;0.02%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;14&lt;/td&gt;
&lt;td&gt;Firefox&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;0.00%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;trem_lite、Dart/Flutter、tremv 合計 &lt;strong&gt;84.98%&lt;/strong&gt;。trem_lite 39.60%，Dart/Flutter 27.90%（行動應用程式），tremv 17.48%。&lt;/p&gt;
&lt;aside aria-label=&quot;Unknown 平台&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;Unknown 平台&lt;/p&gt;&lt;div&gt;&lt;p&gt;Unknown 佔 2.92%（27,754 筆），認不出平台，這部分請求沒辦法按平台分開看。&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;div&gt;&lt;h2 id=&quot;請求大小與傳輸&quot;&gt;請求大小與傳輸&lt;/h2&gt;&lt;/div&gt;
&lt;div&gt;&lt;h3 id=&quot;請求大小&quot;&gt;請求大小&lt;/h3&gt;&lt;/div&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;指標&lt;/th&gt;
&lt;th&gt;數值&lt;/th&gt;
&lt;th&gt;評估&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;平均請求大小&lt;/td&gt;
&lt;td&gt;728.91 bytes&lt;/td&gt;
&lt;td&gt;輕量&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;最小請求大小&lt;/td&gt;
&lt;td&gt;0 B&lt;/td&gt;
&lt;td&gt;健康檢查&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;最大請求大小&lt;/td&gt;
&lt;td&gt;94.12 KB&lt;/td&gt;
&lt;td&gt;WebSocket&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div&gt;&lt;h3 id=&quot;傳輸量&quot;&gt;傳輸量&lt;/h3&gt;&lt;/div&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;指標&lt;/th&gt;
&lt;th&gt;數值&lt;/th&gt;
&lt;th&gt;評估&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;總傳輸量&lt;/td&gt;
&lt;td&gt;659.64 MB&lt;/td&gt;
&lt;td&gt;5 分鐘內&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;平均傳輸速度&lt;/td&gt;
&lt;td&gt;約 2.2 MB/s&lt;/td&gt;
&lt;td&gt;這段的平均&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;平均每個請求大小&lt;/td&gt;
&lt;td&gt;729 bytes&lt;/td&gt;
&lt;td&gt;輕量&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;</content:encoded><category>Analysis</category></item><item><title>12/13 TREM Lite 地震報告重複推送說明</title><link>https://exptech.dev/blog/rca-2025-12-13_1/</link><guid isPermaLink="true">https://exptech.dev/blog/rca-2025-12-13_1/</guid><description>2025/12/13 03:33（臺灣時間）左右，維護 TNN Core Server 並重啟 report server 容器之後，TREM Lite 重複推送地震報告。cache_1s.inc 的 proxy_cache_key $url 蓋過 location 裡的快取鍵，不同參數的請求共用同一份快取。約 22 分鐘後緩解。</description><pubDate>Sat, 13 Dec 2025 00:00:00 GMT</pubDate><content:encoded>&lt;section data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;div data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;span data-severity=&quot;medium&quot;&gt;&lt;svg width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 16 16&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;rect data-on=&quot;&quot; x=&quot;1.5&quot; y=&quot;9.5&quot; width=&quot;2.25&quot; height=&quot;4.5&quot; rx=&quot;0.75&quot;&gt;&lt;/rect&gt;&lt;rect data-on=&quot;&quot; x=&quot;5.25&quot; y=&quot;7&quot; width=&quot;2.25&quot; height=&quot;7&quot; rx=&quot;0.75&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;9&quot; y=&quot;4.5&quot; width=&quot;2.25&quot; height=&quot;9.5&quot; rx=&quot;0.75&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;12.75&quot; y=&quot;2&quot; width=&quot;2.25&quot; height=&quot;12&quot; rx=&quot;0.75&quot;&gt;&lt;/rect&gt;&lt;/svg&gt;&lt;span&gt;嚴重程度&lt;/span&gt;&lt;span&gt;：&lt;/span&gt;&lt;span&gt;中&lt;/span&gt;&lt;/span&gt;&lt;span data-status=&quot;resolved&quot;&gt;&lt;svg width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 16 16&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.6&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;circle cx=&quot;8&quot; cy=&quot;8&quot; r=&quot;6.25&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m5.4 8.2 1.8 1.8 3.5-3.6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span&gt;狀態&lt;/span&gt;&lt;span&gt;：&lt;/span&gt;&lt;span&gt;已結案&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;dl data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;div data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;dt data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;13&quot; height=&quot;13&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;path d=&quot;M8 2v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M16 2v4&quot;&gt;&lt;/path&gt;&lt;rect width=&quot;18&quot; height=&quot;18&quot; x=&quot;3&quot; y=&quot;4&quot; rx=&quot;2&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M3 10h18&quot;&gt;&lt;/path&gt;&lt;/svg&gt;發生時間&lt;/dt&gt;&lt;dd data-astro-cid-g5zafgs6=&quot;&quot;&gt;2025/12/13 03:33 (UTC+8) 左右&lt;/dd&gt;&lt;/div&gt;&lt;div data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;dt data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;13&quot; height=&quot;13&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;path d=&quot;M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;觸發條件&lt;/dt&gt;&lt;dd data-astro-cid-g5zafgs6=&quot;&quot;&gt;維護過程中&lt;/dd&gt;&lt;/div&gt;&lt;div data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;dt data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;13&quot; height=&quot;13&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;path d=&quot;M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M14 2v5a1 1 0 0 0 1 1h5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M10 9H8&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M16 13H8&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M16 17H8&quot;&gt;&lt;/path&gt;&lt;/svg&gt;問題描述&lt;/dt&gt;&lt;dd data-astro-cid-g5zafgs6=&quot;&quot;&gt;TREM Lite 地震報告重複推送的問題&lt;/dd&gt;&lt;/div&gt;&lt;div data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;dt data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;13&quot; height=&quot;13&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;path d=&quot;m21 21-4.34-4.34&quot;&gt;&lt;/path&gt;&lt;circle cx=&quot;11&quot; cy=&quot;11&quot; r=&quot;8&quot;&gt;&lt;/circle&gt;&lt;/svg&gt;根本原因&lt;/dt&gt;&lt;dd data-astro-cid-g5zafgs6=&quot;&quot;&gt;快取鍵衝突&lt;/dd&gt;&lt;/div&gt;&lt;/dl&gt;&lt;/section&gt;
&lt;p&gt;2025/12/13 03:33（臺灣時間）左右，TREM Lite 重複推送地震報告，約 22 分鐘後緩解。我們向收到重複地震報告的 TREM Lite 使用者道歉。&lt;/p&gt;

&lt;div&gt;&lt;h2 id=&quot;發生經過&quot;&gt;發生經過&lt;/h2&gt;&lt;/div&gt;
&lt;section aria-label=&quot;時間軸&quot; data-astro-cid-z7ssoihh=&quot;&quot;&gt;&lt;header data-astro-cid-z7ssoihh=&quot;&quot;&gt;&lt;p data-astro-cid-z7ssoihh=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;12&quot; height=&quot;12&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-z7ssoihh=&quot;&quot;&gt;&lt;path d=&quot;M12 6v6l4 2&quot;&gt;&lt;/path&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;/svg&gt;時間 (UTC+8)&lt;/p&gt;&lt;/header&gt;&lt;ol role=&quot;list&quot; data-astro-cid-z7ssoihh=&quot;&quot;&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;critical&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;嚴重 &lt;/span&gt;&lt;time datetime=&quot;2025-12-13T03:33&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;2025/12/13 03:33&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;TREM Lite 地震報告重複推送&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;forensic&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;m21 21-4.34-4.34&quot;&gt;&lt;/path&gt;&lt;circle cx=&quot;11&quot; cy=&quot;11&quot; r=&quot;8&quot;&gt;&lt;/circle&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;取證 &lt;/span&gt;&lt;time datetime=&quot;2025-12-13T03:53&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;2025/12/13 03:53&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;確認問題，開始修復&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;fix&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;修正 &lt;/span&gt;&lt;time datetime=&quot;2025-12-13T03:54&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;2025/12/13 03:54&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;緊急處理，試著緩解&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li role=&quot;listitem&quot; data-tone=&quot;resolved&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;div aria-hidden=&quot;true&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;1rem&quot; height=&quot;1rem&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-astro-cid-kroj6hsp=&quot;&quot;&gt;&lt;span data-astro-cid-kroj6hsp=&quot;&quot;&gt;已恢復 &lt;/span&gt;&lt;time datetime=&quot;2025-12-13T03:55&quot; data-astro-cid-kroj6hsp=&quot;&quot;&gt;2025/12/13 03:55&lt;/time&gt;&lt;p data-astro-cid-kroj6hsp=&quot;&quot;&gt;觀察到問題緩解&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/section&gt;
&lt;p&gt;維護 TNN Core Server 時，我們調整 &lt;span&gt;&lt;svg viewBox=&quot;0 0 24 24&quot; width=&quot;1em&quot; height=&quot;1em&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M12 0L1.605 6v12L12 24l10.395-6V6L12 0zm6 16.59c0 .705-.646 1.29-1.529 1.29-.631 0-1.351-.255-1.801-.81l-6-7.141v6.66c0 .721-.57 1.29-1.274 1.29H7.32c-.721 0-1.29-.6-1.29-1.29V7.41c0-.705.63-1.29 1.5-1.29.646 0 1.38.255 1.83.81l5.97 7.141V7.41c0-.721.6-1.29 1.29-1.29h.075c.72 0 1.29.6 1.29 1.29v9.18H18z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Nginx&lt;/span&gt; 設定，重啟了 report server 容器，接著就出現重複推送。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;原因&quot;&gt;原因&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;故障時，&lt;code dir=&quot;auto&quot;&gt;cache_1s.inc&lt;/code&gt; 的 &lt;code dir=&quot;auto&quot;&gt;proxy_cache_key $url&lt;/code&gt; 蓋過 &lt;code dir=&quot;auto&quot;&gt;location&lt;/code&gt; 裡的 &lt;code dir=&quot;auto&quot;&gt;proxy_cache_key $cache_key&lt;/code&gt;。&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;location&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;~&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;^/api/&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;v1&lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt;v2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;/eq/report&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;set&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;$cache_key&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;$uri&lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt;$arg_limit&lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt;$arg_page&lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt;$arg_minIntensity&lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt;$arg_maxIntensity&lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt;$arg_minMagnitude&lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt;$arg_maxMagnitude&lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt;$arg_minDepth&lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt;$arg_maxDepth&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;proxy_pass&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;http://report&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;proxy_cache_key&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;$cache_key&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;include&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;/etc/nginx/conf.d/cache_1s.inc&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;code dir=&quot;auto&quot;&gt;cache_1s.inc&lt;/code&gt;&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;proxy_cache&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;my_cache&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;proxy_cache_key&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;$url&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;proxy_cache_valid&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;200&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;1s&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;proxy_cache_lock&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;on&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;proxy_cache_lock_timeout&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;1s&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;proxy_cache_use_stale&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;updating&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;error&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;timeout&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;http_500&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;http_502&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;http_503&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;http_504&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;proxy_cache_background_update&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;on&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;有查詢參數和沒有查詢參數的請求，&lt;code dir=&quot;auto&quot;&gt;$url&lt;/code&gt; 可能得到同一個快取鍵，例如 &lt;code dir=&quot;auto&quot;&gt;/api/v1/eq/report&lt;/code&gt; 和 &lt;code dir=&quot;auto&quot;&gt;/api/v1/eq/report?limit=10&lt;/code&gt;。兩種請求共用同一份快取，客戶端拿到的地震報告跟參數不符，同一起地震事件因此重複推送。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;改善措施&quot;&gt;改善措施&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;拿掉 &lt;code dir=&quot;auto&quot;&gt;cache_1s.inc&lt;/code&gt; 裡的 &lt;code dir=&quot;auto&quot;&gt;proxy_cache_key $url&lt;/code&gt;，快取鍵只留 &lt;code dir=&quot;auto&quot;&gt;location&lt;/code&gt; 裡的 &lt;code dir=&quot;auto&quot;&gt;$cache_key&lt;/code&gt;。這個鍵帶有查詢參數，有參數和沒參數的請求會分開存。&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;location&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;~&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;^/api/&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;v1&lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt;v2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;/eq/report&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;set&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;$cache_key&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;$uri&lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt;$arg_limit&lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt;$arg_page&lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt;$arg_minIntensity&lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt;$arg_maxIntensity&lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt;$arg_minMagnitude&lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt;$arg_maxMagnitude&lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt;$arg_minDepth&lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt;$arg_maxDepth&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;proxy_pass&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;http://report&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;proxy_cache_key&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;$cache_key&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;include&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;/etc/nginx/conf.d/cache_1s.inc&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;code dir=&quot;auto&quot;&gt;cache_1s.inc&lt;/code&gt;（修改後）&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;proxy_cache&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;my_cache&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# 移除 proxy_cache_key $url; 避免與 location 區塊中的設定衝突&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;proxy_cache_valid&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;200&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;1s&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;proxy_cache_lock&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;on&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;proxy_cache_lock_timeout&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;1s&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;proxy_cache_use_stale&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;updating&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;error&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;timeout&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;http_500&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;http_502&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;http_503&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;http_504&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;proxy_cache_background_update&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;on&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;地震報告 API 目前的快取與參數規則，見文件的&lt;a href=&quot;https://exptech.dev/docs/api/earthquake/report#%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A0%85&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;地震報告&lt;/a&gt;。&lt;/p&gt;</content:encoded><category>RCA</category></item><item><title>12/12 TREM Lite 檢知重複觸發說明</title><link>https://exptech.dev/blog/rca-2025-12-12_1/</link><guid isPermaLink="true">https://exptech.dev/blog/rca-2025-12-12_1/</guid><description>2025/12/12 04:24:28（臺灣時間）地震後，TREM Lite 的檢知重複觸發。Balance Server 的 Nginx 用一致性雜湊把請求分到資料不一致的兩台 upstream，不一致的資料寫進 cache。</description><pubDate>Fri, 12 Dec 2025 00:00:00 GMT</pubDate><content:encoded>&lt;section data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;div data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;span data-severity=&quot;medium&quot;&gt;&lt;svg width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 16 16&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;rect data-on=&quot;&quot; x=&quot;1.5&quot; y=&quot;9.5&quot; width=&quot;2.25&quot; height=&quot;4.5&quot; rx=&quot;0.75&quot;&gt;&lt;/rect&gt;&lt;rect data-on=&quot;&quot; x=&quot;5.25&quot; y=&quot;7&quot; width=&quot;2.25&quot; height=&quot;7&quot; rx=&quot;0.75&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;9&quot; y=&quot;4.5&quot; width=&quot;2.25&quot; height=&quot;9.5&quot; rx=&quot;0.75&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;12.75&quot; y=&quot;2&quot; width=&quot;2.25&quot; height=&quot;12&quot; rx=&quot;0.75&quot;&gt;&lt;/rect&gt;&lt;/svg&gt;&lt;span&gt;嚴重程度&lt;/span&gt;&lt;span&gt;：&lt;/span&gt;&lt;span&gt;中&lt;/span&gt;&lt;/span&gt;&lt;span data-status=&quot;resolved&quot;&gt;&lt;svg width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 16 16&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.6&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;circle cx=&quot;8&quot; cy=&quot;8&quot; r=&quot;6.25&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m5.4 8.2 1.8 1.8 3.5-3.6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span&gt;狀態&lt;/span&gt;&lt;span&gt;：&lt;/span&gt;&lt;span&gt;已結案&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;dl data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;div data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;dt data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;13&quot; height=&quot;13&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;path d=&quot;M8 2v4&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M16 2v4&quot;&gt;&lt;/path&gt;&lt;rect width=&quot;18&quot; height=&quot;18&quot; x=&quot;3&quot; y=&quot;4&quot; rx=&quot;2&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M3 10h18&quot;&gt;&lt;/path&gt;&lt;/svg&gt;發生時間&lt;/dt&gt;&lt;dd data-astro-cid-g5zafgs6=&quot;&quot;&gt;2025/12/12 04:24:28 (UTC+8)&lt;/dd&gt;&lt;/div&gt;&lt;div data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;dt data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;13&quot; height=&quot;13&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;path d=&quot;M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;觸發條件&lt;/dt&gt;&lt;dd data-astro-cid-g5zafgs6=&quot;&quot;&gt;地震後&lt;/dd&gt;&lt;/div&gt;&lt;div data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;dt data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;13&quot; height=&quot;13&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;path d=&quot;M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M14 2v5a1 1 0 0 0 1 1h5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M10 9H8&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M16 13H8&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M16 17H8&quot;&gt;&lt;/path&gt;&lt;/svg&gt;問題描述&lt;/dt&gt;&lt;dd data-astro-cid-g5zafgs6=&quot;&quot;&gt;TREM Lite 出現檢知重複觸發的問題&lt;/dd&gt;&lt;/div&gt;&lt;div data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;dt data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;13&quot; height=&quot;13&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-g5zafgs6=&quot;&quot;&gt;&lt;path d=&quot;m21 21-4.34-4.34&quot;&gt;&lt;/path&gt;&lt;circle cx=&quot;11&quot; cy=&quot;11&quot; r=&quot;8&quot;&gt;&lt;/circle&gt;&lt;/svg&gt;根本原因&lt;/dt&gt;&lt;dd data-astro-cid-g5zafgs6=&quot;&quot;&gt;upstream 資料不一致污染 cache，導致系統異常&lt;/dd&gt;&lt;/div&gt;&lt;/dl&gt;&lt;/section&gt;
&lt;p&gt;2025/12/12 04:24:28（臺灣時間）地震之後，TREM Lite 的檢知重複觸發。我們向當時看到重複檢知的 TREM Lite 使用者道歉。經觀察後，這次的故障應該已經排除。&lt;/p&gt;

&lt;div&gt;&lt;h2 id=&quot;相關影片&quot;&gt;相關影片&lt;/h2&gt;&lt;/div&gt;
&lt;div data-astro-cid-4dbawa7w=&quot;&quot;&gt;&lt;iframe src=&quot;https://www.youtube.com/embed/UI9hKzP17LE&quot; title=&quot;TREM Lite 檢知重複觸發&quot; loading=&quot;lazy&quot; allow=&quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture&quot; allowfullscreen data-astro-cid-4dbawa7w=&quot;&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div&gt;&lt;h2 id=&quot;原因&quot;&gt;原因&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;Balance Server 上的 &lt;span&gt;&lt;svg viewBox=&quot;0 0 24 24&quot; width=&quot;1em&quot; height=&quot;1em&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M12 0L1.605 6v12L12 24l10.395-6V6L12 0zm6 16.59c0 .705-.646 1.29-1.529 1.29-.631 0-1.351-.255-1.801-.81l-6-7.141v6.66c0 .721-.57 1.29-1.274 1.29H7.32c-.721 0-1.29-.6-1.29-1.29V7.41c0-.705.63-1.29 1.5-1.29.646 0 1.38.255 1.83.81l5.97 7.141V7.41c0-.721.6-1.29 1.29-1.29h.075c.72 0 1.29.6 1.29 1.29v9.18H18z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Nginx&lt;/span&gt; 當時把兩台 upstream 放在一起，並用一致性雜湊分配請求：&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;upstream&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;core_servers&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;server&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;tnn.exptech.dev:80&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;server&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;tpe.exptech.dev:80&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;hash&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;$remote_addr&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;consistent&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;code dir=&quot;auto&quot;&gt;tnn.exptech.dev&lt;/code&gt; 和 &lt;code dir=&quot;auto&quot;&gt;tpe.exptech.dev&lt;/code&gt; 的資料不一致。&lt;code dir=&quot;auto&quot;&gt;hash $remote_addr consistent&lt;/code&gt; 仍可能把請求分到不同的 upstream。請求落到不同 upstream 時，不一致的資料寫進 cache，後面的請求讀到這份 cache，TREM Lite 的檢知就重複觸發。&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;改善措施&quot;&gt;改善措施&lt;/h2&gt;&lt;/div&gt;
&lt;figure lang=&quot;zh-TW&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;div data-xt-zoomable=&quot;&quot; aria-label=&quot;改善前後的 upstream&quot; aria-describedby=&quot;xt-diagram-desc-nxu0kf&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;&lt;svg viewBox=&quot;-6 -6 375 720&quot; width=&quot;375&quot; height=&quot;720&quot; role=&quot;img&quot; aria-label=&quot;改善前後的 upstream&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;g data-tone=&quot;critical&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M10 0 H353 A10 10 0 0 1 363 10 V400 A10 10 0 0 1 353 410 H10 A10 10 0 0 1 0 400 V10 A10 10 0 0 1 10 0 Z&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; x=&quot;12&quot; y=&quot;11&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;text x=&quot;30&quot; y=&quot;17.5&quot; font-size=&quot;13&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;之前：一致性雜湊，兩台資料不一致&lt;/text&gt;&lt;/g&gt;&lt;g data-tone=&quot;resolved&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M10 454 H353 A10 10 0 0 1 363 464 V698 A10 10 0 0 1 353 708 H10 A10 10 0 0 1 0 698 V464 A10 10 0 0 1 10 454 Z&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; x=&quot;12&quot; y=&quot;465&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;text x=&quot;30&quot; y=&quot;471.5&quot; font-size=&quot;13&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;之後：主備&lt;/text&gt;&lt;/g&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M85 110 L85 147&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;85,154 81,146 89,146&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M276.5 110 L276.5 147&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;276.5,154 272.5,146 280.5,146&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M85 194 L85 231&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;85,238 81,230 89,230&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M276.5 194 L276.5 231&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;276.5,238 272.5,230 280.5,230&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M181.5 296 L181.5 333&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;181.5,340 177.5,332 185.5,332&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M85 548 L85 594&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;85,601 81,593 89,593&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M276.5 548 L276.5 602&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;polygon points=&quot;276.5,609 272.5,601 280.5,601&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/polygon&gt;&lt;/g&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M17 36 H346 A5 5 0 0 1 351 41 V105 A5 5 0 0 1 346 110 H17 A5 5 0 0 1 12 105 V41 A5 5 0 0 1 17 36 Z&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;text x=&quot;181.5&quot; y=&quot;55&quot; font-size=&quot;14&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;Balance Server 的 Nginx&lt;/text&gt;&lt;text x=&quot;181.5&quot; y=&quot;76&quot; font-size=&quot;12.5&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;tspan data-astro-cid-xohag4dl=&quot;&quot;&gt;hash $remote_addr consistent&lt;/tspan&gt;&lt;/text&gt;&lt;text x=&quot;181.5&quot; y=&quot;92&quot; font-size=&quot;12.5&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;請求可能落到不同的 upstream&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M24 154 H146 A12 12 0 0 1 158 166 V182 A12 12 0 0 1 146 194 H24 A12 12 0 0 1 12 182 V166 A12 12 0 0 1 24 154 Z&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;text x=&quot;85&quot; y=&quot;174&quot; font-size=&quot;14&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;tspan data-astro-cid-xohag4dl=&quot;&quot;&gt;tnn.exptech.dev&lt;/tspan&gt;&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M214 154 H339 A12 12 0 0 1 351 166 V182 A12 12 0 0 1 339 194 H214 A12 12 0 0 1 202 182 V166 A12 12 0 0 1 214 154 Z&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;text x=&quot;276.5&quot; y=&quot;174&quot; font-size=&quot;14&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;tspan data-astro-cid-xohag4dl=&quot;&quot;&gt;tpe.exptech.dev&lt;/tspan&gt;&lt;/text&gt;&lt;/g&gt;&lt;g data-tone=&quot;critical&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M17 238 H346 A5 5 0 0 1 351 243 V291 A5 5 0 0 1 346 296 H17 A5 5 0 0 1 12 291 V243 A5 5 0 0 1 17 238 Z&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;text x=&quot;181.5&quot; y=&quot;257&quot; font-size=&quot;14&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;cache&lt;/text&gt;&lt;text x=&quot;181.5&quot; y=&quot;278&quot; font-size=&quot;12.5&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;寫進不一致的資料&lt;/text&gt;&lt;g aria-hidden=&quot;true&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;circle cx=&quot;16&quot; cy=&quot;241&quot; r=&quot;9&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/circle&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;12&quot; height=&quot;12&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; x=&quot;10&quot; y=&quot;235&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/g&gt;&lt;/g&gt;&lt;g data-tone=&quot;critical&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M105.5 340 H257.5 A22 22 0 0 1 279.5 362 V376 A22 22 0 0 1 257.5 398 H105.5 A22 22 0 0 1 83.5 376 V362 A22 22 0 0 1 105.5 340 Z&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M105.5 343 H257.5 A19 19 0 0 1 276.5 362 V376 A19 19 0 0 1 257.5 395 H105.5 A19 19 0 0 1 86.5 376 V362 A19 19 0 0 1 105.5 343 Z&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;text x=&quot;181.5&quot; y=&quot;359&quot; font-size=&quot;14&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;TREM-Lite 檢知重複觸發&lt;/text&gt;&lt;text x=&quot;181.5&quot; y=&quot;380&quot; font-size=&quot;12.5&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;後面的請求讀到這份 cache&lt;/text&gt;&lt;g aria-hidden=&quot;true&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;circle cx=&quot;96.7&quot; cy=&quot;341&quot; r=&quot;9&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/circle&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;12&quot; height=&quot;12&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; x=&quot;90.7&quot; y=&quot;335&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M7 18v-6a5 5 0 1 1 10 0v6&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M18.5 4.5 18 5&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2 12h1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 2v1&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m4.929 4.929.707.707&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M12 12v6&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/g&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M17 490 H346 A5 5 0 0 1 351 495 V543 A5 5 0 0 1 346 548 H17 A5 5 0 0 1 12 543 V495 A5 5 0 0 1 17 490 Z&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;text x=&quot;181.5&quot; y=&quot;509&quot; font-size=&quot;14&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;Nginx&lt;/text&gt;&lt;text x=&quot;181.5&quot; y=&quot;530&quot; font-size=&quot;12.5&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;移除一致性雜湊&lt;/text&gt;&lt;/g&gt;&lt;g data-tone=&quot;resolved&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M24 601 H146 A12 12 0 0 1 158 613 V684 A12 12 0 0 1 146 696 H24 A12 12 0 0 1 12 684 V613 A12 12 0 0 1 24 601 Z&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M22 633.5 H148&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;text x=&quot;85&quot; y=&quot;620&quot; font-size=&quot;14&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;tspan data-astro-cid-xohag4dl=&quot;&quot;&gt;tnn.exptech.dev&lt;/tspan&gt;&lt;/text&gt;&lt;text x=&quot;85&quot; y=&quot;646&quot; font-size=&quot;12.5&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;主伺服器&lt;/text&gt;&lt;text x=&quot;85&quot; y=&quot;662&quot; font-size=&quot;12.5&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;tspan data-astro-cid-xohag4dl=&quot;&quot;&gt;max_fails=1&lt;/tspan&gt;&lt;/text&gt;&lt;text x=&quot;85&quot; y=&quot;678&quot; font-size=&quot;12.5&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;tspan data-astro-cid-xohag4dl=&quot;&quot;&gt;fail_timeout=10s&lt;/tspan&gt;&lt;/text&gt;&lt;g aria-hidden=&quot;true&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;circle cx=&quot;16&quot; cy=&quot;604&quot; r=&quot;9&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/circle&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;12&quot; height=&quot;12&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; x=&quot;10&quot; y=&quot;598&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;m9 12 2 2 4-4&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/g&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;path d=&quot;M214 609 H339 A12 12 0 0 1 351 621 V676 A12 12 0 0 1 339 688 H214 A12 12 0 0 1 202 676 V621 A12 12 0 0 1 214 609 Z&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M212 641.5 H341&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/path&gt;&lt;text x=&quot;276.5&quot; y=&quot;628&quot; font-size=&quot;14&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;tspan data-astro-cid-xohag4dl=&quot;&quot;&gt;tpe.exptech.dev&lt;/tspan&gt;&lt;/text&gt;&lt;text x=&quot;276.5&quot; y=&quot;654&quot; font-size=&quot;12.5&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;tspan data-astro-cid-xohag4dl=&quot;&quot;&gt;backup&lt;/tspan&gt;&lt;/text&gt;&lt;text x=&quot;276.5&quot; y=&quot;670&quot; font-size=&quot;12.5&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;主伺服器不可用時才用&lt;/text&gt;&lt;/g&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;rect x=&quot;37&quot; y=&quot;559.5&quot; width=&quot;96&quot; height=&quot;21&quot; rx=&quot;5&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;85&quot; y=&quot;570&quot; font-size=&quot;12&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;主伺服器正常時&lt;/text&gt;&lt;/g&gt;&lt;g data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;rect x=&quot;222.5&quot; y=&quot;563.5&quot; width=&quot;108&quot; height=&quot;21&quot; rx=&quot;5&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;276.5&quot; y=&quot;574&quot; font-size=&quot;12&quot; data-astro-cid-xohag4dl=&quot;&quot;&gt;主伺服器不可用時&lt;/text&gt;&lt;/g&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/div&gt;&lt;p aria-hidden=&quot;true&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;點圖可放大&lt;/p&gt;&lt;p id=&quot;xt-diagram-desc-nxu0kf&quot; data-astro-cid-fia5stjh=&quot;&quot;&gt;改善前，Balance Server 的 Nginx 把 tnn.exptech.dev 與 tpe.exptech.dev 兩台 upstream 放在一起，用 hash $remote_addr consistent 分配請求，請求仍可能落到不同的 upstream。兩台的資料不一致，不一致的資料寫進 cache，後面的請求讀到這份 cache，TREM-Lite 的檢知就重複觸發。改善後改成主備，並移除一致性雜湊：tnn.exptech.dev 是主伺服器（max_fails=1、fail_timeout=10s），主伺服器正常時請求都走這台；tpe.exptech.dev 設為 backup，只在主伺服器不可用時使用。&lt;/p&gt;&lt;figcaption data-astro-cid-fia5stjh=&quot;&quot;&gt;改善前後的 upstream&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Nginx 的 upstream 改成主備。主伺服器不可用時才走備援：&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;upstream&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;core_servers&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;server&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;tnn.exptech.dev:80&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;max_fails=&lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;fail_timeout=10s&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;server&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;tpe.exptech.dev:80&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;backup&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;ol role=&quot;list&quot;&gt;
&lt;li&gt;
&lt;p&gt;&lt;code dir=&quot;auto&quot;&gt;tnn.exptech.dev&lt;/code&gt; 設為主伺服器，&lt;code dir=&quot;auto&quot;&gt;max_fails=1&lt;/code&gt;（最多 1 次失敗），&lt;code dir=&quot;auto&quot;&gt;fail_timeout=10s&lt;/code&gt;（故障後 10 秒內不再連這台）。&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code dir=&quot;auto&quot;&gt;tpe.exptech.dev&lt;/code&gt; 設為 &lt;code dir=&quot;auto&quot;&gt;backup&lt;/code&gt;，只在主伺服器不可用時使用。&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;移除一致性雜湊。主伺服器正常時，請求都走 &lt;code dir=&quot;auto&quot;&gt;tnn.exptech.dev&lt;/code&gt;。&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;</content:encoded><category>RCA</category></item></channel></rss>