# Introducing nDPI Risk Analysis for (Cybersecurity) Network Traffic Analysis (was Ripple20) | ntop

> Earlier last month Ripple20 became popular as it has listed some vulnerabilities found in a custom IP stack used by many IoT devices. Despite the hype on Ripp

[Blog](https://www.ntop.org/blog/)[nDPI](https://www.ntop.org/category/ndpi/)

# Introducing nDPI Risk Analysis for (Cybersecurity) Network Traffic Analysis (was Ripple20)

July 1, 20202 min read

Earlier last month [Ripple20](https://www.jsof-tech.com/ripple20/) became popular as it has listed some vulnerabilities found in a custom IP stack used by many IoT devices. Despite the hype on Ripple20, in essence the tool used to fingerprint vulnerable devices sends either malformed or valid (with some values in the allowed range albeit with values deprecated or obsolete) packets that are easy to catch (see [Suricata](https://github.com/CERTCC/PoC-Exploits/blob/master/vu-257161/vu-257161.rules) and [Zeek](https://github.com/corelight/ripple20) rules for detection). In essence IDS rules/scripts are checking whether packets sent on the wire are valid or if they contain unexpected values used by Ripple20. Note that these rules are NOT checking packets in general (for instance check if the TLS header is valid, or if ICMP packets contain valid type/code that are not deprecated) but they are designed to spot only Ripple20, so if a future Ripple21 will use the same method but a different value, we’ll be back to square one and new set or rules/scripts will need to be defined. This is how signature-based system work, and as you can see they are easy to circumvent making little changes in network traffic, not to mention that constantly adding new rules/scripts will make these systems slow.

In order to have a more general solution to this problem, we have decided to introduce in nDPI (and thus on all applications that use it) a new type of analysis we have named “risk factor” that analyses the traffic and produces a bitmap of issues found on traffic. This of course not based on signatures/scripts to be prepared to catch Ripple21 if/when will be disclosed. In essence nDPI when dissecting traffic, will also evaluate some risks and report them to the application using it, this in addition to the application protocol. This mechanism is extensible and we are constantly adding new values to make it more pervasive. Applications using nDPI can use the risk factor to block or issue an alert, this without having to implement complex detection methods as nDPI has already done everything. As of today nDPI is able to detect the following issues:

-   [XSS](https://en.wikipedia.org/wiki/Cross-site_scripting) (Cross Site Scripting)
-   [SQL Injection](https://en.wikipedia.org/wiki/SQL_injection)
-   [Arbitrary Code Injection/Execution](https://en.wikipedia.org/wiki/Arbitrary_code_execution)
-   Binary/.exe application transfer (e.g. in HTTP)
-   Known protocol on non standard port
-   TLS self-signed certificate
-   TLS obsolete version
-   TLS weak cipher
-   TLS certificate expired
-   TLS certificate mismatch
-   HTTP suspicious user-agent
-   HTTP numeric IP host contacted
-   HTTP suspicious URL
-   HTTP suspicious protocol header
-   TLS connections not carrying HTTPS (e.g. a VPN over TLS)
-   Suspicious [DGA domain](https://en.wikipedia.org/wiki/Domain_generation_algorithm) contacted
-   Malformed packet (Ripple20 is detected here)

If your nDPI-based application can assign a score to the above risks, you have already spotted most of the problems that IDSs detect, this without the headache of constantly updating rules/scripts. For instance [in this pcap](https://github.com/ntop/nDPI), a malware is transferring a binary application (.exe) as PNG file, this to avoid security policies.

![](/images/2020/07/Screen_Shot_2020-07-01_at_11_00_32.webp)

As you can see int he above picture, ntopng (that uses nDPI and so that is beneficing from this traffic analysis without having to implement anything but just to interpret the risk factor reported by nDPI) reports this issue and triggers an alert. Simple and effective isn’t it?

Enjoy!

## Keep reading

AINov 7, 2026

### [Sharkfest 26EU: HowTo Detect Stealth VPN and AI Inference Traffic](https://www.ntop.org/sharkfest-26eu-howto-detect-stealth-vpn-and-ai-inference-traffic/)

Earlier this week we have presented at Sharkfest Europe 2026 a presentation of our work about traffic detection of Stealth VPNs and AI Inference. The presentation addresses the challenges of detecting modern obfuscated network traffic, specifically from stealth VPNs and custom/local artificial intel

nDPINov 7, 2026

### [Detecting CVE-2026-98432 using nDPI/ntopng](https://www.ntop.org/detecting-cve-2026-98432-using-ndpi-ntopng/)

CVE-2026-98432 is a critical, 9.8-severity use-after-free (UAF) vulnerability in the Linux kernel’s IPv4 TCP networking stack. It allows an unauthenticated remote attacker to potentially cause system crashes, memory corruption, or execute arbitrary commands with root privileges. From a network stand

nDPISep 29, 2026

### [Introducing the nDPI TCP Fingerprint: A Stable, Patent-Free Way to Fingerprint TCP Stacks](https://www.ntop.org/introducing-the-ndpi-tcp-fingerprint-a-stable-patent-free-way-to-fingerprint-tcp-stacks/)

Every TCP connection starts with a SYN, and that first packet says a lot about the machine that sent it. The Linux, Windows, macOS and Android stacks each set different flags, choose…

## Try it on your own network

Download the free Community edition and see your first flows in five minutes.

[Download ntopng free](https://www.ntop.org/support/documentation/software-installation/)[Talk to an engineer](https://www.ntop.org/support/need-help/contacts/)
Source: https://www.ntop.org/introducing-ndpi-risk-analysis-for-cybersecurity-network-traffic-analysis-was-ripple20/