Skip to content

Commit

Permalink
Fix-ids (#2890)
Browse files Browse the repository at this point in the history
* update test and demo ids

* update rule extensions
  • Loading branch information
cpholguera authored Sep 10, 2024
1 parent c4badb8 commit 1cfafe3
Show file tree
Hide file tree
Showing 19 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test: MASTG-TEST-0204

Let's run our @MASTG-TOOL-0110 rule against the sample code.

{{ ../../../../rules/mastg-android-insecure-random-use.yaml }}
{{ ../../../../rules/mastg-android-insecure-random-use.yml }}

{{ run.sh }}

Expand Down
2 changes: 1 addition & 1 deletion demos/android/MASVS-CRYPTO/MASTG-DEMO-0007/run.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
NO_COLOR=true semgrep -c ../../../../rules/mastg-android-insecure-random-use.yaml ./MastgTest_reversed.java --text -o output.txt
NO_COLOR=true semgrep -c ../../../../rules/mastg-android-insecure-random-use.yml ./MastgTest_reversed.java --text -o output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test: MASTG-TEST-0205

Let's run our @MASTG-TOOL-0110 rule against the sample code.

{{ ../../../../rules/mastg-android-non-random-use.yaml }}
{{ ../../../../rules/mastg-android-non-random-use.yml }}

{{ run.sh }}

Expand Down
2 changes: 1 addition & 1 deletion demos/android/MASVS-CRYPTO/MASTG-DEMO-0008/run.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
NO_COLOR=true semgrep -c ../../../../rules/mastg-android-non-random-use.yaml ./MastgTest_reversed.java --text -o output.txt
NO_COLOR=true semgrep -c ../../../../rules/mastg-android-non-random-use.yml ./MastgTest_reversed.java --text -o output.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
platform: android
title: Use of Hardcoded AES Key in SecretKeySpec with semgrep
id: MASTG-DEMO-0017
test: MASTG-TEST-0212
tools: [semgrep]
code: [java]
---
Expand All @@ -13,7 +15,7 @@ code: [java]

Let's run our @MASTG-TOOL-0110 rule against the sample code.

{{ ../../../../rules/mastg-android-hardcoded-crypto-keys-usage.yaml }}
{{ ../../../../rules/mastg-android-hardcoded-crypto-keys-usage.yml }}

{{ run.sh }}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
platform: ios
title: Uses of Insecure Encryption Algorithms in CommonCrypto with r2
code: [swift]
id: MASTG-DEMO-0014
id: MASTG-DEMO-0018
test: MASTG-TEST-0210
---

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Use of Hardcoded Cryptographic Keys in Code
platform: android
id: MASTG-TEST-0210
id: MASTG-TEST-0212
type: [static]
weakness: MASWE-0014
---
Expand Down

0 comments on commit 1cfafe3

Please sign in to comment.