rules:
  - id: ruby-weak-ecc-curve
    pattern-either:
      - pattern: OpenSSL::PKey::EC.new($CURVE)
      - pattern: OpenSSL::PKey::EC.generate($CURVE)
    message: Quantum-vulnerable ECC curve detected
    severity: WARNING
    languages:
      - ruby
    metadata:
      category: security
      quantum_vulnerable: true
      quantum_risk_score: 85
