Skip to content

Conversation

@script3r
Copy link
Owner

No description provided.

- Add 20+ new library patterns across 6 languages
- Enhanced C/C++: MbedTLS, wolfSSL/wolfCrypt, Botan
- Enhanced Java: JCA/JCE, Google Tink, Conscrypt
- Enhanced Go: std crypto, Google Tink
- Enhanced Rust: ring, openssl bindings
- New Swift: CryptoKit, CommonCrypto, CryptoSwift, Swift-Sodium
- New Kotlin: JCA/JCE, BouncyCastle, Korlibs Krypto
- Enhanced PHP: Sodium, phpseclib, Halite

Patterns focus on:
- High precision (low false positives)
- Specific import/include statements
- Distinctive API function names
- Industry-standard libraries
- Modern cryptographic frameworks

Total patterns: 30+ libraries across 10 languages
- Add [version] section to patterns.toml (required by schema)
- Add PyCA cryptography, PyCryptodome, and PyNaCl patterns for Python
- Ensure all integration tests pass with comprehensive pattern coverage
- Maintain backward compatibility with existing fixtures
- Create detector-swift crate for Swift language support
- Create detector-objc crate for Objective-C language support
- Create detector-kotlin crate for Kotlin language support
- Update main Cargo.toml workspace to include new detector crates
- Update CLI Cargo.toml to depend on new detector crates
- Update CLI main.rs to instantiate new detectors
- All tests pass and scanner now supports 10 languages total

Languages now supported:
- C, C++, Java, Go, Rust, Python, PHP (existing)
- Swift, Objective-C, Kotlin (new)

This completes the detector infrastructure for all pattern languages.
- Update README to highlight 10 programming language support
- Add comprehensive detector architecture section listing all detector crates
- Fix Rust compiler warnings:
  - Prefix unused parameters with underscore in scan_optimized trait method
  - Remove unnecessary mut from findings_count variable
- All tests pass with zero warnings
- Documentation now accurately reflects the complete language ecosystem
@script3r script3r merged commit 89fb976 into main Sep 14, 2025
4 checks passed
@script3r script3r deleted the cursor/rust-crypto-library-scanner-984e branch September 14, 2025 04:17
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.

2 participants