-
Notifications
You must be signed in to change notification settings - Fork 9
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
feat: Add support for FIPS 140-3 compliance check #27
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nyrahul
requested changes
May 20, 2024
Signed-off-by: Anurag Rajawat <[email protected]>
Sample outputs:
{
"app": {
"version": "v0.1"
},
"endpoints": [
{
"svc": "Google",
"host": "google.com",
"port": "443",
"finding": [
{
"plugin": "fips-140-3-compliance-check",
"title": "FIPS 140-3 compliant encryption check",
"compliance": "FIPS.140.3",
"control-id": "3.3",
"cipherSuiteInUse": "TLS_AES_256_GCM_SHA384",
"description": "Using Secure TLS protocol and FIPS-approved Ciphers. FIPS-approved ciphersuite in use is TLS_AES_256_GCM_SHA384",
"link": "https://www.gsa.gov/system/files?file=SSL-TLS-Implementation-%5BCIO-IT-Security-14-69-Rev-7%5D-06-12-2023.pdf",
"severity": "medium",
"remediationEstEffort": "medium",
"solution": "NA",
"compliant": "Yes"
}
]
},
{
"svc": "Accuknox",
"host": "accuknox.com",
"port": "443",
"finding": [
{
"plugin": "fips-140-3-compliance-check",
"title": "FIPS 140-3 compliant encryption check",
"compliance": "FIPS.140.3",
"control-id": "3.3",
"cipherSuiteInUse": "TLS_AES_256_GCM_SHA384",
"description": "Using Secure TLS protocol and FIPS-approved Ciphers. FIPS-approved ciphersuite in use is TLS_AES_256_GCM_SHA384",
"link": "https://www.gsa.gov/system/files?file=SSL-TLS-Implementation-%5BCIO-IT-Security-14-69-Rev-7%5D-06-12-2023.pdf",
"severity": "medium",
"remediationEstEffort": "medium",
"solution": "NA",
"compliant": "Yes"
}
]
},
{
"svc": "BadSSL",
"host": "expired.badssl.com",
"port": "443",
"finding": [
{
"plugin": "fips-140-3-compliance-check",
"title": "FIPS 140-3 compliant encryption check",
"compliance": "FIPS.140.3",
"control-id": "3.3",
"cipherSuiteInUse": "ECDHE-RSA-AES128-GCM-SHA256",
"description": "Approved ciphers to meet the requirements of FIPS-140-3 compliant encryption.",
"link": "https://www.gsa.gov/system/files?file=SSL-TLS-Implementation-%5BCIO-IT-Security-14-69-Rev-7%5D-06-12-2023.pdf",
"severity": "medium",
"remediationEstEffort": "medium",
"solution": "use FIPS-approved ciphers: [TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CCM, TLS_ECDHE_ECDSA_WITH_AES_128_CCM, TLS_ECDHE_ECDSA_WITH_AES_256_CCM_8, TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256]",
"compliant": "No"
}
]
},
{
"svc": "BadSSL",
"host": "wrong.host.badssl.com",
"port": "443",
"finding": [
{
"plugin": "fips-140-3-compliance-check",
"title": "FIPS 140-3 compliant encryption check",
"compliance": "FIPS.140.3",
"control-id": "3.3",
"cipherSuiteInUse": "ECDHE-RSA-AES128-GCM-SHA256",
"description": "Approved ciphers to meet the requirements of FIPS-140-3 compliant encryption.",
"link": "https://www.gsa.gov/system/files?file=SSL-TLS-Implementation-%5BCIO-IT-Security-14-69-Rev-7%5D-06-12-2023.pdf",
"severity": "medium",
"remediationEstEffort": "medium",
"solution": "use FIPS-approved ciphers: [TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CCM, TLS_ECDHE_ECDSA_WITH_AES_128_CCM, TLS_ECDHE_ECDSA_WITH_AES_256_CCM_8, TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256]",
"compliant": "No"
}
]
},
{
"svc": "BadSSL",
"host": "self-signed.badssl.com",
"port": "443",
"finding": [
{
"plugin": "fips-140-3-compliance-check",
"title": "FIPS 140-3 compliant encryption check",
"compliance": "FIPS.140.3",
"control-id": "3.3",
"cipherSuiteInUse": "ECDHE-RSA-AES128-GCM-SHA256",
"description": "Approved ciphers to meet the requirements of FIPS-140-3 compliant encryption.",
"link": "https://www.gsa.gov/system/files?file=SSL-TLS-Implementation-%5BCIO-IT-Security-14-69-Rev-7%5D-06-12-2023.pdf",
"severity": "medium",
"remediationEstEffort": "medium",
"solution": "use FIPS-approved ciphers: [TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CCM, TLS_ECDHE_ECDSA_WITH_AES_128_CCM, TLS_ECDHE_ECDSA_WITH_AES_256_CCM_8, TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256]",
"compliant": "No"
}
]
},
{
"svc": "BadSSL",
"host": "untrusted-root.badssl.com",
"port": "443",
"finding": [
{
"plugin": "fips-140-3-compliance-check",
"title": "FIPS 140-3 compliant encryption check",
"compliance": "FIPS.140.3",
"control-id": "3.3",
"cipherSuiteInUse": "ECDHE-RSA-AES128-GCM-SHA256",
"description": "Approved ciphers to meet the requirements of FIPS-140-3 compliant encryption.",
"link": "https://www.gsa.gov/system/files?file=SSL-TLS-Implementation-%5BCIO-IT-Security-14-69-Rev-7%5D-06-12-2023.pdf",
"severity": "medium",
"remediationEstEffort": "medium",
"solution": "use FIPS-approved ciphers: [TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CCM, TLS_ECDHE_ECDSA_WITH_AES_128_CCM, TLS_ECDHE_ECDSA_WITH_AES_256_CCM_8, TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256]",
"compliant": "No"
}
]
},
{
"svc": "BadSSL",
"host": "revoked.badssl.com",
"port": "443",
"finding": [
{
"plugin": "fips-140-3-compliance-check",
"title": "FIPS 140-3 compliant encryption check",
"compliance": "FIPS.140.3",
"control-id": "3.3",
"cipherSuiteInUse": "ECDHE-ECDSA-AES128-GCM-SHA256",
"description": "Approved ciphers to meet the requirements of FIPS-140-3 compliant encryption.",
"link": "https://www.gsa.gov/system/files?file=SSL-TLS-Implementation-%5BCIO-IT-Security-14-69-Rev-7%5D-06-12-2023.pdf",
"severity": "medium",
"remediationEstEffort": "medium",
"solution": "use FIPS-approved ciphers: [TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CCM, TLS_ECDHE_ECDSA_WITH_AES_128_CCM, TLS_ECDHE_ECDSA_WITH_AES_256_CCM_8, TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256]",
"compliant": "No"
}
]
},
{
"svc": "BadSSL",
"host": "pinning-test.badssl.com",
"port": "443",
"finding": [
{
"plugin": "fips-140-3-compliance-check",
"title": "FIPS 140-3 compliant encryption check",
"compliance": "FIPS.140.3",
"control-id": "3.3",
"cipherSuiteInUse": "ECDHE-RSA-AES128-GCM-SHA256",
"description": "Approved ciphers to meet the requirements of FIPS-140-3 compliant encryption.",
"link": "https://www.gsa.gov/system/files?file=SSL-TLS-Implementation-%5BCIO-IT-Security-14-69-Rev-7%5D-06-12-2023.pdf",
"severity": "medium",
"remediationEstEffort": "medium",
"solution": "use FIPS-approved ciphers: [TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CCM, TLS_ECDHE_ECDSA_WITH_AES_128_CCM, TLS_ECDHE_ECDSA_WITH_AES_256_CCM_8, TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256]",
"compliant": "No"
}
]
},
{
"svc": "BadSSL",
"host": "dh480.badssl.com",
"port": "443",
"finding": [
{
"plugin": "fips-140-3-compliance-check",
"title": "FIPS 140-3 compliant encryption check",
"compliance": "FIPS.140.3",
"control-id": "3.2",
"cipherSuiteInUse": "",
"description": "Secure TLS protocol is required to meet the requirements of FIPS-140-3 compliant encryption.",
"link": "https://www.gsa.gov/system/files?file=SSL-TLS-Implementation-%5BCIO-IT-Security-14-69-Rev-7%5D-06-12-2023.pdf",
"severity": "critical",
"remediationEstEffort": "medium",
"solution": "Implement secure TLS protocol (TLS >= v1.2)",
"compliant": "No"
}
]
},
{
"svc": "LocalTest",
"host": "isunknownaddress.com",
"port": "12345",
"finding": [
{
"plugin": "tls-security",
"title": "use of TLS security",
"compliance": "NIST.SP.800-52",
"control-id": "2.1",
"description": "It is mandatory for TLS to be enabled for all network communications including east-west traffic.",
"link": "https://csrc.nist.gov/news/2019/nist-publishes-sp-800-52-revision-2",
"severity": "critical",
"remediationEstEffort": "medium",
"solution": "enable TLS or transport security on the port.",
"status": "FAIL"
}
]
},
{
"svc": "webserver",
"host": "localhost",
"port": "9090",
"finding": [
{
"plugin": "tls-security",
"title": "use of TLS security",
"compliance": "NIST.SP.800-52",
"control-id": "2.1",
"description": "It is mandatory for TLS to be enabled for all network communications including east-west traffic.",
"link": "https://csrc.nist.gov/news/2019/nist-publishes-sp-800-52-revision-2",
"severity": "critical",
"remediationEstEffort": "medium",
"solution": "enable TLS or transport security on the port.",
"status": "FAIL"
}
]
},
{
"svc": "localssh",
"host": "localhost",
"port": "22",
"finding": [
{
"plugin": "fips-140-3-compliance-check",
"title": "FIPS 140-3 compliant encryption check",
"compliance": "FIPS.140.3",
"control-id": "3.2",
"cipherSuiteInUse": "",
"description": "Secure TLS protocol is required to meet the requirements of FIPS-140-3 compliant encryption.",
"link": "https://www.gsa.gov/system/files?file=SSL-TLS-Implementation-%5BCIO-IT-Security-14-69-Rev-7%5D-06-12-2023.pdf",
"severity": "critical",
"remediationEstEffort": "medium",
"solution": "Implement secure TLS protocol (TLS >= v1.2)",
"compliant": "No"
}
]
},
{
"svc": "AmazonAPIGateway",
"host": "apigateway-fips.us-east-1.amazonaws.com",
"port": "443",
"finding": [
{
"plugin": "fips-140-3-compliance-check",
"title": "FIPS 140-3 compliant encryption check",
"compliance": "FIPS.140.3",
"control-id": "3.3",
"cipherSuiteInUse": "TLS_AES_128_GCM_SHA256",
"description": "Using Secure TLS protocol and FIPS-approved Ciphers. FIPS-approved ciphersuite in use is TLS_AES_128_GCM_SHA256",
"link": "https://www.gsa.gov/system/files?file=SSL-TLS-Implementation-%5BCIO-IT-Security-14-69-Rev-7%5D-06-12-2023.pdf",
"severity": "medium",
"remediationEstEffort": "medium",
"solution": "NA",
"compliant": "Yes"
}
]
},
{
"svc": "AmazonDynamoDB",
"host": "dynamodb-fips.ca-west-1.amazonaws.com",
"port": "443",
"finding": [
{
"plugin": "fips-140-3-compliance-check",
"title": "FIPS 140-3 compliant encryption check",
"compliance": "FIPS.140.3",
"control-id": "3.3",
"cipherSuiteInUse": "TLS_AES_256_GCM_SHA384",
"description": "Using Secure TLS protocol and FIPS-approved Ciphers. FIPS-approved ciphersuite in use is TLS_AES_256_GCM_SHA384",
"link": "https://www.gsa.gov/system/files?file=SSL-TLS-Implementation-%5BCIO-IT-Security-14-69-Rev-7%5D-06-12-2023.pdf",
"severity": "medium",
"remediationEstEffort": "medium",
"solution": "NA",
"compliant": "Yes"
}
]
}
]
} Complete report.json |
Does the sample report look good to you? Once confirmed, I'll update the documentation. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related to #26