mcp-server-semgrep
Version:
MCP Server for Semgrep Integration - static code analysis with AI
26 lines (24 loc) • 679 B
YAML
rules:
- id: ocamllint-digest
pattern-either:
- pattern: Digest.string
- pattern: Digest.bytes
- pattern: Digest.substring
- pattern: Digest.subbytes
- pattern: Digest.channel
- pattern: Digest.file
message: Digest uses MD5 and should not be used for security purposes. Consider using SHA256 instead.
languages: [ocaml]
severity: WARNING
metadata:
category: security
references:
- https://v2.ocaml.org/api/Digest.html
technology:
- ocaml
cwe: "CWE-328: Use of Weak Hash (4.12)"
confidence: LOW
likelihood: MEDIUM
impact: MEDIUM
subcategory:
- audit