Skip to content

Commit

Permalink
New rule: privacy
Browse files Browse the repository at this point in the history
  • Loading branch information
thypon committed May 22, 2024
1 parent e80a789 commit 0c02683
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
20 changes: 20 additions & 0 deletions assets/semgrep_rules/client/privacy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// ruleid: privacy
test completely private
// ruleid: privacy
test anonymous
// ruleid: privacy
test anonymized
// ruleid: privacy
test military grade
// ruleid: privacy
test military-grade
// ruleid: privacy
test totally secure
// ruleid: privacy
test unbreakable encryption
// ruleid: privacy
test unhackable
// ruleid: privacy
test hackerproof
// ruleid: privacy
test hacker-proof
30 changes: 30 additions & 0 deletions assets/semgrep_rules/client/privacy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
rules:
- id: privacy
metadata:
author: Andrea Brancaleoni <abc@pompel.me>
confidence: LOW
assignees: |
bridiver
arthuredelstein
ShivanKaul
aaronsantamaria
thypon
message: "Privacy claim found"
languages:
- generic
paths:
include:
- "*.html"
- "*.md"
severity: WARNING
pattern-either:
- pattern: "completely private"
- pattern: "anonymous"
- pattern: "anonymized"
- pattern: "military grade"
- pattern: "military-grade"
- pattern: "totally secure"
- pattern: "unbreakable encryption"
- pattern: "unhackable"
- pattern: "hackerproof"
- pattern: "hacker-proof"

0 comments on commit 0c02683

Please sign in to comment.