Skip to content

Feature/tls cert protos file 3021 - #3209

Open
kalindafab wants to merge 4 commits into
ntop:devfrom
kalindafab:feature/tls-cert-protos-file-3021
Open

Feature/tls cert protos file 3021#3209
kalindafab wants to merge 4 commits into
ntop:devfrom
kalindafab:feature/tls-cert-protos-file-3021

Conversation

@kalindafab

Copy link
Copy Markdown
Contributor

Please sign (check) the below before submitting the Pull Request:

Link to the related issue:Addresses issue #3021

Describe changes:Added support of dynamic TLS certificate hash matching by implementing data structure to store rules, extending the protocol parser to recognize @tls_cert_hash syntax, and adding hash comparison logic in TLS detection

@lucaderi seeking your guidance on why the hash matching logic isn't detecting the custom protocol.

@sonarqubecloud

Copy link
Copy Markdown

nDPI_TestApp@tls_cert:"CN=nDPI_TestCert"

# Match by Organization
nDPI_TestOrg@tls_cert:"O=nDPI_Test_Org"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

As reported by @lucaderi here (#3099 (comment)) we want to match hash certificate.
So the rule (in protos.txt file) must be something like:
tls_cert_hash:da:39:a3:ee:5e:6b:4b:0d:32:55:bf:ef:95:60:18:90:af:d8:07:09@ProtoName.
No PEM/key stuff

@IvanNardi

Copy link
Copy Markdown
Collaborator

@kalindafab, first of all, please rebase

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.

2 participants