Skip to content
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

[False Positive][False Negative] Outdated/Banned SSL/TLS protocols #649

Merged
merged 6 commits into from
Dec 4, 2024

Conversation

julianladisch
Copy link
Contributor

Rule ID

DS169125 Do not use outdated SSL/TLS protocols
DS169126 An Outdated or Banned SSL/TLS Protocol is Used

What the rule matched

DS169125

  • TLSv1.2
  • TLSv1.3

DS169126

  • TLSv12
  • TLSv1.2
  • TLSv13
  • TLSv1.3

Why should this not be matched?

https://github.com/microsoft/DevSkim/blob/v1.0.33/guidance/DS169126.md says:

Use TLSv1.3 if possible or TLSv1.2 if 1.3 cannot be used.

What the rule did not match (false negative)

DS169125

  • TLSv1_0
  • TLSv11
  • TLSv1_1

Why should this be matched?

https://github.com/microsoft/DevSkim/blob/v1.0.33/guidance/DS169126.md says:

TLSv1 - Weak, strongly consider disabling unless absolutely required.
TLSv1.1 - Weak, strongly consider disabling unless absolutely required.

It already matches TLSv10 and TLSv1.0, therefore it should also match TLSv1_0. It already matches TLSv1.1, therefore it should also match TLSv11 and TLSv1_1.

## Rule ID

DS169125 Do not use outdated SSL/TLS protocols
DS169126 An Outdated or Banned SSL/TLS Protocol is Used

## What the rule matched

DS169125
* TLSv1.2
* TLSv1.3 

DS169126
* TLSv12 
* TLSv1.2 
* TLSv13 
* TLSv1.3

## Why should this not be matched?

https://github.com/microsoft/DevSkim/blob/v1.0.33/guidance/DS169126.md says:
> Use TLSv1.3 if possible or TLSv1.2 if 1.3 cannot be used.

## What the rule did not match (false negative)

DS169125
* TLSv1_0 
* TLSv11
* TLSv1_1

 ## Why should this be matched?

https://github.com/microsoft/DevSkim/blob/v1.0.33/guidance/DS169126.md says:
>TLSv1 - Weak, strongly consider disabling unless absolutely required.
>TLSv1.1 - Weak, strongly consider disabling unless absolutely required.

It already matches TLSv10 and TLSv1.0, therefore it should also match TLSv1_0.
It already matches TLSv1.1, therefore it should also match TLSv11 and TLSv1_1.
@julianladisch
Copy link
Contributor Author

@microsoft-github-policy-service agree

@gfs
Copy link
Contributor

gfs commented Nov 5, 2024

Thanks for the contribution, I'll aim to review this this week.

@gfs
Copy link
Contributor

gfs commented Nov 20, 2024

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@gfs
Copy link
Contributor

gfs commented Dec 3, 2024

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@gfs gfs merged commit 9fa5269 into microsoft:main Dec 4, 2024
10 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants