Weak encryption algorithm (DSA) detected.
- Rule ID: ruby_lang_weak_encryption_dsa
- Languages: ruby
- Source: weak_encryption_dsa.yml
Description
A weak encryption library can lead to data breaches and greater security risk.
Remediations
According to OWASP, 1024-bit DSA (Digital Signature Algorithm) is considered a weak encryption algorithm and therefore shouldn't be used.
❌ Avoid libraries and algorithms with known weaknesses:
OpenSSL::PKey::DSA.new 1024
✅ Instead, we recommend using bcrypt:
BCrypt::Password.create('iLOVEdogs123')
Resources
Associated CWE
OWASP Top 10
Configuration
To skip this rule during a scan, use the following flag
bearer scan /path/to/your-project/ --skip-rule=ruby_lang_weak_encryption_dsa
To run only this rule during a scan, use the following flag
bearer scan /path/to/your-project/ --only-rule=ruby_lang_weak_encryption_dsa
Ready to take the next step? Learn more about Bearer Cloud.