rules:
  - id: ruby-weak-dh-dsa
    pattern-either:
      - pattern: OpenSSL::PKey::DH.new(...)
      - pattern: OpenSSL::PKey::DH.generate(...)
      - pattern: OpenSSL::PKey::DSA.new(...)
      - pattern: OpenSSL::PKey::DSA.generate(...)
    message: DH/DSA key generation detected - quantum vulnerable
    severity: WARNING
    languages:
      - ruby
    metadata:
      category: security
      quantum_vulnerable: true
      quantum_risk_score: 80
