AI觉醒星球
Awakening is here
Knowledge File / 全球热点解读
2026-06-06 5 浏览 公开

趋势解读:CodeQL 2.25.6 adds Swift 6.3.2 support and improves,提升开发者接入体验

GitHub CodeQL 2.25.6版本发布,新增Swift 6.3.2支持,全面覆盖C# 14和.NET 10,并改进多语言敏感数据检测能力。

SOURCE / 全球热点解读 MIN / 4 ACCESS / 公开 POST / 2026-06-06 05:30:57

原贴

查看原文
作者:Allison 来源站点:github.blog 原贴时间:

原文

CodeQL is the static analysis engine behind GitHub code scanning , which finds and remediates security issues in your code. We’ve recently released CodeQL 2.25.6 , which adds Swift 6.3.2 support, completes full coverage for C# 14 and .NET 10, and improves sensitive data detection across multiple languages. CodeQL now supports analysis of apps built with Swift 6.3.2. We’ve completed full support for C# 14 and .NET 10. The extractor now supports all new language features, and the data flow library now includes generated models for the .NET 10 runtime. We’ve added source and sink models for org.apache.avro . We’ve added flow source models for scanf_s and related functions. We’ve adjusted actions/untrusted-checkout/critical so alerts now appear at the checkout point, aligning it with related untrusted resource queries. Note that this change will cause alerts that were previously closed from this query to reopen. The actions/unpinned-tag query now recognizes 64-character SHA-256 commit hashes as properly pinned references in addition to 40-character SHA-1 hashes, which may reduce false positives. The analysis now recognizes more Bash regex checks that restrict values to alphanumeric characters, including patterns that check for SHA-1 or SHA-256 hashes, which may reduce false positives where command output is validated before use. JavaScript/TypeScript, Python, Swift, and Rust We’ve improved the sensitive data heuristics used to identify code handling passwords and private data, allowing CodeQL to detect more variations of established patterns. Queries such as js/clear-text-logging , py/clear-text-logging-sensitive-data , swift/cleartext-logging , and rust/cleartext-logging may now find more correct results and fewer false positives. For a full list of changes, please refer to the complete changelog for version 2.25.6 . Every new version of CodeQL is automatically deployed to users of GitHub code scanning on github.com. The new functionality in CodeQL 2.25.6 will also be included in a future GitHub Enterprise Server (GHES) release. If you use an older version of GHES, you can manually upgrade your CodeQL version .

中文翻译

CodeQL 是 GitHub 代码扫描背后的静态分析引擎,它可以查找并修复代码中的安全问题。我们最近发布了 CodeQL 2.25.6 ,增加了 Swift 6.3.2 支持,完成了对 C# 14 和 .NET 10 的全面覆盖,并改进了跨多种语言的敏感数据检测。 CodeQL 现在支持分析使用 Swift 6.3.2 构建的应用程序。我们已经完成了对 C# 14 和 .NET 10 的全面支持。提取器现在支持所有新的语言功能,数据流库现在包括为 .NET 10 运行时生成的模型。我们为 org.apache.avro 添加了源和接收器模型。我们为 scanf_s 和相关函数添加了流源模型。我们调整了操作/不可信结帐/关键,因此警报现在出现在结帐点,使其与相关的不可信资源查询保持一致。请注意,此更改将导致之前从此查询关闭的警报重新打开。 actions/unpinned-tag 查询现在除了 40 字符 SHA-1 哈希之外,还可以将 64 字符 SHA-256 提交哈希识别为正确固定的引用,这可能会减少误报。该分析现在可以识别更多将值限制为字母数字字符的 Bash 正则表达式检查,包括检查 SHA-1 或 SHA-256 哈希值的模式,这可能会减少在使用前验证命令输出时的误报。 JavaScript/TypeScript、Python、Swift 和 Rust 我们改进了用于识别处理密码和私有数据的代码的敏感数据启发式方法,使 CodeQL 能够检测已建立模式的更多变化。 js/clear-text-logging 、 py/clear-text-logging-sensitive-data 、 swift/cleartext-logging 和 rust/cleartext-logging 等查询现在可能会发现更正确的结果和更少的误报。有关更改的完整列表,请参阅版本 2.25.6 的完整更改日志。每个新版本的 CodeQL 都会自动部署到 github.com 上 GitHub 代码扫描的用户。 CodeQL 2.25.6 中的新功能也将包含在未来的 GitHub Enterprise Server (GHES) 版本中。如果您使用旧版本的 GHES,您可以手动升级 CodeQL 版本。

核心信息

GitHub CodeQL 2.25.6版本发布,新增Swift 6.3.2支持,全面覆盖C# 14和.NET 10,并改进多语言敏感数据检测能力。

  • CodeQL 2.25.6 新增 Swift 6.3.2 支持。
  • 完成对 C# 14 和 .NET 10 的全面覆盖。
  • 改进多语言敏感数据检测,减少误报。
  • 调整不可信结帐查询,减少误报。
  • 支持 SHA-256 哈希作为固定引用。

详细解读

这是什么信号:GitHub 发布了 CodeQL 2.25.6,这是其代码安全扫描引擎的一次重要更新,主要增加了对 Swift 6.3.2、C# 14 和 .NET 10 的支持,并改进了敏感数据检测能力。这表明 GitHub 正在紧跟语言生态最新版本,确保安全分析覆盖新特性。

为什么重要:随着 Swift 和 .NET 的频繁更新,旧版本分析引擎可能无法准确检测新语法引入的安全漏洞。此次更新能减少漏报,提升代码安全性。改进的敏感数据检测可减少误报,提升开发者效率。

对谁有价值:使用 GitHub 代码扫描的开发者团队,特别是涉及 Swift、C#、.NET 或需要强安全合规的项目。安全团队可借此优化安全策略。

可以怎么行动:建议立即升级 CodeQL 版本(自动更新或手动升级 GHES),重新运行已有扫描任务,并特别关注新增的敏感数据检测规则。同时更新 CI/CD 管道以利用新特性。

风险或限制:查询调整可能导致旧警报重新打开,需重新评估。部分新功能需等待 GHES 版本发布,手动升级需谨慎测试兼容性。

信息差价值

信息差价值:多数开发者仅关注 GitHub 代码扫描的表面功能,忽略底层引擎持续更新。本次更新细节揭示了 GitHub 对语言生态变化的响应速度,以及其在敏感数据检测上的算法改进,这可能是行业安全工具演进的方向。

业务启发:安全分析工具需与语言版本同步更新,否则会产生安全盲区。企业应建立定期检查工具更新的机制,并评估新特性对现有工作流的影响,避免因工具滞后导致漏洞被遗漏。

可沉淀动作:1. 将 CodeQL 升级纳入安全团队月度任务,自动跟踪新版本。2. 在 CI/CD 中增加对敏感数据检测新规则的测试用例。3. 记录此次升级后警报数量变化,用于优化安全基线。

参考来源

上一篇 PixelDiT入选CVPR2026最佳论文决赛 下一篇 SpaceX与Google达成云计算新协议