Repository navigation
Add checks for weak cryptography (hashes and ciphers) - #6
Merged
Merged
Conversation
katafrakt
marked this pull request as ready for review
October 21, 2026 12:42
s3cur3
approved these changes
Oct 21, 2026
Comment on lines
+7
to
+11
| # Return original finding nodes alongside effective arguments (including pipes). | ||
| # Unlike variable extraction, this also retains calls with entirely literal data. | ||
| # Every pipe is considered, including chains containing `do` blocks, which | ||
| # `get_pipe_funs/1` deliberately skips. | ||
| def calls_with_args(ast, specifications) do |
houllette
pushed a commit
to sobelow/sobelow
that referenced
this pull request
Oct 28, 2026
Port Jump-App#6, excluding the fork-only README.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds 2 new checks related to weak cryptography:
Crypto.WeakHashflagging uses of old algorithms, such as MD5Crypto.WeakCipher– similar for DES, Blowfish, weak modes for AES, such as CBC and othersFollowing https://github.com/erlef/elixir-secure-coding/blob/main/modules/2-owasp.livemd#prevention-1
It also included
Crypto.WeakRandombut I dropped it, not being able to find a reliable way to distinguish between security context and non-security one. The proposed implementation was based on variable/function name guessing, which is not good. Probably a job for LLM rather than a SAST tool.