Skip to content

Port MASTG-TEST-0014: Testing the Configuration of Cryptographic Standard Algorithms (android) (by @guardsquare) #3064

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

nmsa
Copy link
Collaborator

@nmsa nmsa commented Nov 7, 2024

  • Your contribution is written in the 2nd person (e.g. you)
  • Your contribution is written in an active present form for as much as possible.
  • You have made sure that the reference section is up to date (e.g. please add sources you have used, make sure that the references to MITRE/MASVS/etc. are up to date)
  • Your contribution has proper formatted markdown and/or code
  • Any references to website have been formatted as [TEXT](URL “NAME”)
  • You verified/tested the effectiveness of your contribution (e.g.: is the code really an effective remediation? Please verify it works!)

PR closes #2949

@cpholguera
Copy link
Collaborator

hey @nmsa, any news on this draft?

@nmsa
Copy link
Collaborator Author

nmsa commented Dec 9, 2024

I am working on it, but as we talked the last time, the scope is a bit large so it will originate many atomic tests.
I will be able to create the new version of the PR this month, for sure

@cpholguera
Copy link
Collaborator

Sounds great, thank you @nmsa!

@cpholguera cpholguera changed the title Ports MASTG-TEST-0014 (by @guardsquare) Ports MASTG-TEST-0014: Testing the Configuration of Cryptographic Standard Algorithms (android) (by @guardsquare) Feb 24, 2025
The test was called "Testing the Configuration of Cryptographic Standard Algorithms", which has a very broad scope.
It is being decompoed into atomic tests, which are in different phases of preparation, as follows:

Weak Hashing Algorithms -- to be reviewed
Hardcoded Initialization Vectors -- to be reviewed
Reused Initialization Vectors -- to be reviewed
Predictable Initialization Vectors -- to be reviewed
Weak Padding -- to be reviewed

Weak Message Authentication Codes (MAC) Algorithms  -- initial version, needs work
Weak Signature Algorithms -- only placeholder
Improper Verification of Cryptographic Signature --  only placeholder
@cpholguera
Copy link
Collaborator

Hi @nmsa should we take this out of draft? Is it ready for review?


The test case fails if you can find [insecure or deprecated](../../../Document/0x04g-Testing-Cryptography.md#Identifying-Insecure-and/or-Deprecated-Cryptographic-Algorithms) hashing algorithms being used in a security sensitive scenario.

## References
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove these "References" sections from all files and ensure the links are inlined in the text.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If necessary, the automation will create the references sections automatically

nmsa added 2 commits April 28, 2025 16:06
The test was called "Testing the Configuration of Cryptographic Standard Algorithms", which has a very broad scope.
It was decompoed into atomic tests, which are in different phases of preparation, as follows:

- [X] Weak Hashing Algorithms `MASTG-TEST-0x14-1`
- [X] Hardcoded Initialization Vectors `MASTG-TEST-0x14-22-1`
- [X] Reused Initialization Vectors `MASTG-TEST-0x14-22-2`
- [X] Predictable Initialization Vectors `MASTG-TEST-0x14-22-3`
- [X] Weak Padding `MASTG-TEST-0x14-23`
- [X] Weak Message Authentication Codes (MAC) Algorithms  `MASTG-TEST-0x14-24`
- [X] Weak Signature Algorithms `MASTG-TEST-0x14-25`
- [X] Improper Verification of Cryptographic Signature `MASTG-TEST-0x14-26`
@nmsa
Copy link
Collaborator Author

nmsa commented Apr 28, 2025

@cpholguera available for your review.

@cpholguera cpholguera changed the title Ports MASTG-TEST-0014: Testing the Configuration of Cryptographic Standard Algorithms (android) (by @guardsquare) Port MASTG-TEST-0014: Testing the Configuration of Cryptographic Standard Algorithms (android) (by @guardsquare) May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MASTG v1->v2 MASTG-TEST-0014: Testing the Configuration of Cryptographic Standard Algorithms (android)
2 participants