Skip to content

Correct post-quantum algorithm classification and detection patterns - #659

Merged
Giulia Stocco (gfs) merged 2 commits into
mainfrom
copilot/update-quantum-cryptography-rules
Sep 14, 2026
Merged

Giulia Stocco (gfs) merged 2 commits into
mainfrom
copilot/update-quantum-cryptography-rules

Conversation

Copilot AI commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Existing post-quantum rules misclassify Kyber as ML-DSA, miss spaced FIPS names, and contain misspelled or unrelated algorithm terms.

  • Algorithm classification
    • Move CRYSTALS-Kyber detection to ML-KEM.
    • Match CRYSTALS-Dilithium in ML-DSA and remove copied Kyber constants.
    • Remove hdd and stateful xmss from the stateless signature rule; substituting hss would also misclassify a stateful scheme.
  • Pattern corrections
    • Accept compact, space-, underscore-, and hyphen-separated FIPS 203/204/205 names.
    • Correct sphincx to sphincs, matching SPHINCS+.
  • Regression coverage
    • Add inline positive and negative cases for algorithm classification, spelling variants, and word boundaries.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Co-authored-by: gfs <98900+gfs@users.noreply.github.com>
Copilot AI changed the title [WIP] Add detection for quantum computing and cryptography features Correct post-quantum algorithm classification and detection patterns Sep 10, 2026
@gfs

Copy link
Copy Markdown
Contributor

/azp run

@gfs
Giulia Stocco (gfs) requested a balanced review from Copilot September 10, 2026 21:09
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The corrected patterns are valid, appropriately classified, and covered by default-rule self-tests.

Pull request overview

Corrects post-quantum cryptography rule classification and detection patterns.

Changes:

  • Corrects Kyber, Dilithium, and stateless-signature classification.
  • Supports FIPS name separator variants and fixes SPHINCS spelling.
  • Adds positive and negative regression cases.
File summaries
File Description
AppInspector/rules/default/cryptography/post_quantum.json Updates post-quantum patterns and inline regression tests.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@gfs
Giulia Stocco (gfs) merged commit d9da79d into main Sep 14, 2026
16 checks passed
@gfs
Giulia Stocco (gfs) deleted the copilot/update-quantum-cryptography-rules branch September 14, 2026 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Quantum computing or cryptography functionality detection

4 participants