feat(java): add Google Tink AEAD detection rules#406
Open
Chennamma-Hotkar wants to merge 3 commits intocbomkit:mainfrom
Open
feat(java): add Google Tink AEAD detection rules#406Chennamma-Hotkar wants to merge 3 commits intocbomkit:mainfrom
Chennamma-Hotkar wants to merge 3 commits intocbomkit:mainfrom
Conversation
Signed-off-by: Chennamma <channuhotkar@gmail.com>
Signed-off-by: Chennamma <channuhotkar@gmail.com>
… operations Signed-off-by: Chennamma <channuhotkar@gmail.com>
This file contains hidden or 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
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.
Summary
Adds detection rules for Google Tink's AEAD (Authenticated Encryption
with Associated Data) primitive in Java. Tink is one of the most widely
used Java cryptography libraries and currently has no detection coverage
in this plugin.
Changes
TinkAead.java: detectKeysetHandle.generateNew()for four AEADkey templates with
Aead.encrypt()andAead.decrypt()as depending rulesTinkDetectionRules.java: aggregates all Tink detection rulesTinkAeadTestFile.java: Java test file using real Tink 1.21.0 APITinkAeadTest.java: unit test verifying detection and translationJavaDetectionRules.java: registers TinkDetectionRules in rule aggregatorJavaAbstractLibraryTranslator.java: adds"Tink"bundle dispatchJavaCipherContextTranslator.java: maps Tink AEAD templates to AES model nodesjava/pom.xml: addscom.google.crypto.tink:tink:1.21.0as test dependencyKey templates detected
AeadKeyTemplates.AES128_GCMAeadKeyTemplates.AES256_GCMAeadKeyTemplates.AES128_CTR_HMAC_SHA256AeadKeyTemplates.AES256_CTR_HMAC_SHA256Testing
Follow-up PR
Mac.computeMac()/Mac.verifyMac()— HMAC detectionHybridEncrypt.encrypt()/HybridDecrypt.decrypt()— hybrid encryptionPublicKeySign.sign()/PublicKeyVerify.verify()— digital signaturesDeterministicAeadoperations