Uploaded image for project: 'WINDUPRULE - Red Hat Application Migration Toolkit rules'
  1. WINDUPRULE - Red Hat Application Migration Toolkit rules
  2. WINDUPRULE-1016

Prepare to Restrict The Dynamic Loading of Agents

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Undefined Undefined
    • MTR-1.2.0
    • None
    • None
    • None
    • AMM Sprint 239, AMM Sprint 240
    • No

      This rule provides information at a best-effort approach as we can't tell just from the source code whether an agent is installed at JVM startup or dynamically at runtime. JDKs can use the `-XX:-EnableDynamicAgentLoading` command line option starting in JDK21 to ensure that agents cannot be loaded dynamically.

      When
      A Java class references the java.lang.instrument package

      Perform
      add a hint advising that dynamically attaching agents will be removed in a later JDK release

      References:
      https://bugs.openjdk.org/browse/JDK-8307479
      https://openjdk.org/jeps/451

              jleflete@redhat.com Juanma Leflet Estrada
              danheidinga Dan Heidinga (Inactive)
              Sachin Singla Sachin Singla
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: