Skip to content

Commit

Permalink
New rule: internal-digest-call
Browse files Browse the repository at this point in the history
  • Loading branch information
thypon committed May 3, 2024
1 parent edd07a6 commit 0925d1f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions assets/semgrep_rules/services/internal-digest-call.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
def signature(**kwargs):
# ruleid: internal-digest-call
sig = _INTERNAL_DIGEST_NEVER_CALL_DIRECTLY(kwargs)
9 changes: 9 additions & 0 deletions assets/semgrep_rules/services/internal-digest-call.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
rules:
- id: internal-digest-call
pattern-regex: _INTERNAL_DIGEST_NEVER_CALL_DIRECTLY
message: Internal Digest Direct Call, never call this directly
languages:
- python
severity: WARNING
metadata:
source: https://github.com/brave/security-action/blob/main/assets/semgrep_rules/services/indirect-digest-call.yaml

0 comments on commit 0925d1f

Please sign in to comment.