feat: add vector-based retrieval for threat catalog loading 0.1.3

未关闭
#79 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 4 天内回复

@iamsreec 已经在做这个了。

开始于 2026年9月23日。

  • #113 来自 @iamsreec —— 已关闭,未合并

评估

这个 Issue 还没有评估数据。

描述

enhancement
Summary

Security analysis currently loads large threat-catalog sections directly into the model context. Add a vector-backed retrieval layer that selects only the catalog entries relevant to the current architecture, attack surfaces, and analysis phase.

The complete catalog must remain the authoritative source. Vector retrieval should optimize candidate discovery without silently excluding required coverage.

Design Sketch
  1. Parse the canonical catalog into independently retrievable entries.
  2. Store embeddings with:
    • canonical threat/scenario ID;
    • source-catalog hash and schema version;
    • threat-discovery fields;
    • mitigation fields;
    • source references.
  3. Step C performs bounded semantic retrieval using architecture and attack-surface queries.
  4. Step D loads mitigation data by the exact threat IDs selected in Step C.
  5. Deduplicate results by canonical ID and record retrieved IDs in the phase artifact.
  6. Validate index freshness before every analysis run.
主要语言
Python
星标
17
派生
6
平均合并
4 天 31 分钟
30 天内合并 PR
16

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

IBM/smith 的其他 Issue

查看 IBM/smith 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。