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

More information about the potential risk in flow #2555

Open
ronygut opened this issue Sep 12, 2024 · 3 comments
Open

More information about the potential risk in flow #2555

ronygut opened this issue Sep 12, 2024 · 3 comments
Labels

Comments

@ronygut
Copy link

ronygut commented Sep 12, 2024

Hi

I'm using the ftflow_pcap sample code and I can see that there is a code the generates JSON:
ndpi_flow2json(ndpi_struct, ndpi_flow,
k->ip_version, k->protocol, k->vlan_id,
ntohl(k->saddr.v4), ntohl(k->daddr.v4),
(struct ndpi_in6_addr*)&k->saddr.v6,
(struct ndpi_in6_addr*)&k->daddr.v6,
k->sport, k->dport,
ndpi_proto,
&serializer);

I can see for example that is generates the following JSON
Where can I see more information and documentation about what each field means?
Also how it is detected and how accurate is it?

{
"src_ip": "10.164.130.230",
"dest_ip": "10.164.255.255",
"src_port": 35328,
"dst_port": 35328,
"ip": 4,
"proto": "UDP",
"ndpi": {
"flow_risk": {
"22": {
"risk": "Unsafe Protocol",
"severity": "Low",
"risk_score": {
"total": 450,
"client": 345,
"server": 105
}
}
},
"confidence": {
"6": "DPI"
},
"proto": "NetBIOS.SMBv1",
"proto_id": "10.16",
"proto_by_ip": "Unknown",
"proto_by_ip_id": 0,
"encrypted": 0,
"breed": "Dangerous",
"category_id": 18,
"category": "System",
"hostname": "secrecy1"
}
}

@ronygut ronygut changed the title More information bout the potential risk in flow More information about the potential risk in flow Sep 12, 2024
@IvanNardi
Copy link
Collaborator

@ronygut
Copy link
Author

ronygut commented Sep 12, 2024

@IvanNardi the links you sent are description of the risks.
I'm looking for explanation about each field in the JSON.
risk_score
confidence
proto_id
encrypted
breed
etc...
What are the possible values?
Is there a document that explains about those fields and what are the possible values?

@IvanNardi
Copy link
Collaborator

IvanNardi commented Sep 12, 2024

Is there a document that explains about those fields and what are the possible values?

In general, no, AFAIK

Some information:
proto_id, breed, category and risk_score: take a look at the output of ndpiReader -H
confidence: https://github.com/ntop/nDPI/blob/dev/src/include/ndpi_typedefs.h#L1005

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants