UNPKG

mcp-server-semgrep

Version:

MCP Server for Semgrep Integration - static code analysis with AI

40 lines 1.34 kB
rules: - id: sha224-hash message: >- This code uses a 224-bit hash function, which is deprecated or disallowed in some security policies. Consider updating to a stronger hash function such as SHA-384 or higher to ensure compliance and security. metadata: cwe: - 'CWE-328: Use of Weak Hash' references: - https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar3.ipd.pdf - https://www.cyber.gov.au/resources-business-and-government/essential-cyber-security/ism/cyber-security-guidelines/guidelines-cryptography category: security technology: - ruby owasp: - A03:2017 - Sensitive Data Exposure - A02:2021 - Cryptographic Failures subcategory: - vuln likelihood: LOW impact: LOW confidence: HIGH languages: - ruby severity: WARNING pattern-either: - pattern: Digest::SHA224.$FUNC - pattern: OpenSSL::Digest::SHA224.$FUNC - pattern: SHA3::Digest::SHA224(...) - patterns: - pattern-either: - pattern: OpenSSL::HMAC.hexdigest("$ALGO", ...) - pattern: OpenSSL::HMAC.digest("$ALGO", ...) - pattern: OpenSSL::HMAC.new($KEY, "$ALGO") - pattern: OpenSSL::Digest.digest("$ALGO", ...) - pattern: OpenSSL::Digest.new("$ALGO", ...) - metavariable-regex: metavariable: $ALGO regex: '.*224'