You run two hundred Linux hosts, half the applications are Python, and a new CVE lands on a widely used library. The on-call question: which of these processes actually load the affected package? Vulnerable Python packages can be detected at runtime with Runtime Vulnerability Analytics (RVA), provided you prepare the fleet before the alert. This article starts from that operating decision and walks the path: check scope, enable, verify, triage.

The facts come from the official RVA documentation and the vendor announcement (July 2025); the angle, examples and script are my own. I have not tested the feature on a tenant, so anything not in the documentation is flagged as such.

What detection of vulnerable Python packages covers

The announcement says RVA detects vulnerable Python libraries and vulnerable Python runtimes, in production and pre-production. Results link each flaw to the affected processes, services, hosts and Kubernetes workloads. The documentation adds three points that matter for decisions:

  • Python is covered by third-party component detection only. The code-level vulnerability table does not list it: a flaw in your own Python code will not show up here.
  • Dynatrace spots libraries as processes load them, matches names and versions against vulnerability feeds, and reports a flaw only when the component is in use.
  • For reachable data assets, Python has only two states: « Within range » and « Not available ».

The announcement states the feature applies to Dynatrace SaaS and Dynatrace Managed. The documentation I read describes no difference between them; I did not check the Managed screens, so the menu paths below are the documentation’s and should be compared with your version. For the general principle of exposure, see the article on runtime vulnerabilities.

Before enabling: measure what you are about to watch

A finding only means something if you know what is monitored. Before any activation, inventory a typical host: which interpreter, how many packages, which duplicates. This nine-line script, run for this article, uses importlib.metadata from the standard library:

Python script inventaire.py listing the interpreter and installed packages with importlib.metadata

Here is its output on the writing machine:

Output of inventaire.py: Python 3.11.18, 30 installed packages, cryptography 41.0.7 listed twice

A useful detail: cryptography==41.0.7 appears twice, because two copies of its metadata exist on this system. One package can therefore sit in two places, and a finding will count what the process really loads. That is exactly the difference between an inventory scan and runtime detection. For comparison, an image SBOM remains useful: see the article on Syft.

Enabling monitoring: three settings, one trap

The documentation gives this path, in this order:

  1. Up-to-date OneAgent. The minimum version is 1.309 for Python and Python runtimes. The announcement mentions Dynatrace version 1.310; I did not verify whether the two numbers mark the same milestone, so start from the documentation.
  2. Monitor Python. Under Settings > Collect and capture > General monitoring settings > Monitoring technologies, find Python and turn on Monitor Python. The page says this step is required only to monitor Python vulnerabilities.
  3. Deep monitoring, host by host. For Python, automatic deep monitoring is disabled: you must enable it manually on each host.

Cheat sheet of RVA Python settings: Monitor Python path, manual deep monitoring, OneAgent 1.309, third-party components only

The trap is the third point. The first two settings are done once; deep monitoring is repeated on every host. Across two hundred hosts, that is a task to plan, not a click. Agent installation modes are recapped in the article on OneAgent modes. The documentation does not say whether Python processes must be restarted after these settings: check on a pilot host before the general rollout.

How to check it works

Pick a pilot host whose packages you know (the script above gives you the list). Then:

  1. Open the Vulnerabilities app and look for the banner showing analytics is active; if absent, review the third-party component setting.
  2. Filter on the Python technology and check your pilot host appears among the affected processes.
  3. If nothing shows, check in order: agent version, Monitor Python, deep monitoring on that host.

An empty result does not prove there is no flaw: it may come from scope that is not enabled. Only conclude « clean » once the pilot is validated on a package known to be present.

Triage: exposure first, ticket second

The announcement notes you can rank by network exposure, data at risk and ease of exploitation, then link findings to remediation tickets. A simple on-call rule:

  • an internet-facing process loading the affected package: fix this week;
  • an internal batch job: a ticket planned in the sprint;
  • an outdated Python runtime: a version-upgrade decision, handled apart from packages because it touches every service on the host.

This triage is my own operating choice, not a vendor recommendation. Malicious packages follow another path, described in the CWE-506 article, and the product overview is in the Application Security article.

Best practices for monitoring vulnerable Python packages

  • Start with one pilot host and one known package before rolling out to the fleet.
  • Keep a list of hosts with deep monitoring enabled: that is your real coverage.
  • Keep the repository lockfile next to the finding to know who introduced the dependency.
  • Reassess after each agent upgrade: prerequisites evolve.

Frequently asked questions

Which OneAgent version is needed for vulnerable Python packages?

The documentation states 1.309 at minimum, for Python and Python runtimes. It does not list supported Python versions: check the release notes.

Are vulnerabilities in my own Python code detected?

No: for Python, the documentation describes third-party component detection only, not code-level vulnerabilities.

Does it work on Dynatrace Managed?

The announcement says SaaS and Managed. I did not verify the screens or versions on Managed: test on a pilot host.

Conclusion

On CVE day, speed depends on what you prepared: current agent, Monitor Python on, deep monitoring set host by host, pilot validated. Only then does exposure tell you what to fix first.

Independent blog, not affiliated with Dynatrace LLC. Dynatrace is a trademark of Dynatrace LLC.

Originally published on span.observer. French version: https://span.observer/fr/paquets-python-vulnerables-runtime/.