constant-time-analysis

其他 社区
解读按原文结构重写,命令、链接、术语均保留;右侧可核对作者原始 SKILL.md

原文结构

  • Language Routing:Read the guide for the target language before interpreting any findings; each one lists that language's dangerous instructions and the idiomatic constant-time replacements. Guide · Languages references/compiled.md · C, C++, Go, Rust
  • Running the Analyzer:The analyzer takes one file and detects the language from its extension. Always pass --warnings: Without it the analyzer reports only error-severity findings, which means division, modulo and weak RNG. Four detector families are warning severity and stay…
  • Prerequisites:Language · Requirement C, C++, Go, Rust · gcc/clang, go, rustc in PATH Swift · Xcode or Swift toolchain (swiftc)

适用与边界

  • When to Use:Implementing or reviewing a signature, encryption, KEM, or key derivation routine Code applies / or % to a value derived from a key, plaintext, nonce, or token The user mentions "constant-time", "timing attack", "side-channel", or "KyberSlash"
  • When NOT to Use:Measuring timing variance on a running binary — use the constant-time-testing skill from the testing-handbook-skills plugin, which covers dudect and statistical approaches and may not be installed. This skill inspects compiler output statically and never…
  • Per-language coverage limits:Coverage is not uniform, and the gaps change what a clean report means: Language · What the report does not cover Go · Only symbols from the analyzed file. go build links the runtime in, and its divisions — all on public data — would otherwise dominate the…
  • Limitations:Static only — reads assembly and bytecode, never runtime behavior. Cache timing and other microarchitectural channels are invisible. No data flow analysis — see triage above. Configuration-specific — a different compiler, optimization level, architecture, or…

原文中的明确线索

  • 要点:「Measuring」、「Always pass --warnings」、「How --arch crosses depends on the toolchain.」、「PASSED」、「FAILED」、「does an operand depend on secret data?」、「True positive」、「Weak-RNG and encoding findings ask a different question.」
  • 文件与命令signverifyencryptdecryptderivekeyconstant-time-testingtesting-handbook-skills--warnings

流狐整理:以上内容来自当前 SKILL.md 的章节与原词;未补写作者没有声明的工具、兼容性或能力。

流狐档案 作者与许可取自来源;运行、权限和网络为流狐检测或估算
流狐分类
通用
作者声明 Agent
未找到明确声明;不据此推断已兼容或已测试
静态检查
88 / 100 · 启发式扫描,不代表运行安全
作者 / 版本 / 许可
@trailofbits · 未声明 license
流狐 Token 估算
低消耗
流狐接入估算
需手动接入
是否需要外部 API Key
未发现要求
检测到的系统要求
macOS · Linux
底层运行要求
Node.js · Python
检测到的文件与系统行为
  • 只读
  • 允许写入 / 修改
  • Shell 执行
检测到的网络行为
仅限本地
安装命令数
无(仅作为资料)

档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。

需要注意: 未限定 allowed-tools,默认拥有全部工具权限。

输出预览 constant-time-analysis.preview
# Interpreting Results

[ERROR] SDIV
  Function: decompose_vulnerable
  Reason: SDIV has early termination optimization; execution time depends on operand values

讨论

基于 GitHub Discussions。登录 GitHub 即可参与讨论、点赞、订阅更新。