← 回到 Reading
Daily Dose of DS 2026-11-16

Security Breaks in the Gaps Between Your Reviews

Always-on agents 能夠跨 session 維護 state,並在無需持續監督的情況下採取行動。它們並非無休止地執行,而是在睡眠與被 event-driven 短暫喚醒執行之間切換,依賴架構層面的 primitives,而非改動核心 agent loop。Anthropic 的設計框架詳細說明了五個關鍵 primitives:durable event inbox、用於排程的 timers、用於保留 state 的 durable memory、用於權限處理的 proxies 與 deferred tool calls,以及用於管理通訊量的 outbox。開源專案 Alook 透過將像 Claude Code 這樣的 coding agents 組織成協同合作、inbox-driven 的角色層次結構,展示了這些原則的實際應用。隨著 AI models 大幅縮短識別與利用 legacy software vulnerabilities 所需的時間,跨越 microservices 的資安漏洞正成為關鍵隱憂。為了測試跨 service 邊界的 vulnerability detection,研究人員在兩個使用 Claude Code 構建的互聯 services 之間模擬了一個 Insecure Direct Object Reference (IDOR) 漏洞。對 CodeRabbit Secure 的評估顯示,其 multi-repository deep scans、PR review bots 與 attack surface maps 能夠跨 repository 追蹤漏洞並自動生成修復方案。未經 review 的 direct commits 也透過將 attack surface map 中先前驗證過的 security checkpoints 標記為失效來進行追蹤。

目錄 2 段
  1. 01Always-on agents,清楚解析!
  2. 02資安破口往往出現在 reviews 之間的縫隙
OPEN-SOURCE

Always-on agents,清楚解析!

Always-on agents 能夠跨 session 維護 state,並在無需持續監督的情況下採取行動。它們並非無休止地執行,而是在睡眠與被 event-driven 短暫喚醒執行之間切換,依賴架構層面的 primitives,而非改動核心 agent loop。Anthropic 的設計框架詳細說明了五個關鍵 primitives:durable event inbox、用於排程的 timers、用於保留 state 的 durable memory、用於權限處理的 proxies 與 deferred tool calls,以及用於管理通訊量的 outbox。開源專案 Alook 透過將像 Claude Code 這樣的 coding agents 組織成協同合作、inbox-driven 的角色層次結構,展示了這些原則的實際應用。

  • Always-on agents 並不會持續運作;它們會在平時休眠,並在 event 觸發時短暫執行,隨後儲存其 state。
  • durable event inbox 透過對 events 進行去重(deduplication)並為每個 inbox 指派單一 worker,從而防止 race conditions 與資料遺失。
  • Timers 與 schedules 會產生未來的 inbox events,讓 agents 能為自己設定後續追蹤的 deadlines。
  • 每次 run 都從乾淨的 context 開始,因此需要 durable storage 來存放持久化資料、instructions 以及互動日誌。
  • 安全性是透過 credential-injecting proxies 以及可暫停 run 以等待人工審批的 deferred tool calls 來管理。
  • outbox 僅傳遞篩選整理後的最終成果,而非中間步驟,以避免對使用者造成資訊轟炸。
  • 開源框架 Alook 使用 Claude Code 等 coding agents 實現了 inbox-driven 的 multi-agent 工作流程。
HANDS-ON

資安破口往往出現在 reviews 之間的縫隙

隨著 AI models 大幅縮短識別與利用 legacy software vulnerabilities 所需的時間,跨越 microservices 的資安漏洞正成為關鍵隱憂。為了測試跨 service 邊界的 vulnerability detection,研究人員在兩個使用 Claude Code 構建的互聯 services 之間模擬了一個 Insecure Direct Object Reference (IDOR) 漏洞。對 CodeRabbit Secure 的評估顯示,其 multi-repository deep scans、PR review bots 與 attack surface maps 能夠跨 repository 追蹤漏洞並自動生成修復方案。未經 review 的 direct commits 也透過將 attack surface map 中先前驗證過的 security checkpoints 標記為失效來進行追蹤。

  • 從 vulnerability disclosure 到 initial exploitation 的時間窗口,已從 2021 年的近一年大幅縮短至 2026 年的僅一天多。
  • 使用兩個具相依性的 FastAPI repositories,成功重現了類似 Next.js auth bypass (CVE-2025-29927) 的跨服務 IDOR vulnerability pattern。
  • CodeRabbit Secure 的 Multi-Repo Analysis 繪製了跨關聯 repositories 的 request flows,精準定位 gateway 與 backend services 之間遺漏的 authorization checks。
  • CodeRabbit 的 Fix with AI 功能成功提出了自動化的 PR patches,其中包含 404 response handling 以避免 ID enumeration。
  • 繞過 PR review 直接 push 到 main 的行為會被偵測到,並在 Attack Surface Map 中被標記為 stale,這會降低 security verification scores 直到重新檢查為止。