TAS for VMs 6.0.15
This condition is not specific to the TAS version as the JDWP feature can be enabled on Java applications independent of version.
This vulnerability is reported when an application has been enabled for debugging in TAS for VMs. The following KB Article and CF Documentation detail enablement processes.
JBP_CONFIG_DEBUG: '{enabled: true}'false'cf push the app manifest after changes.
Pull a list of all application environment variables by looping a request over them and piping to less, or to a file using the following for loop:
# for i in $(cf apps | tail -n+2 | awk '{print $1}'); do cf env $i;done | less
You can search within the resulting output for "jdwp" to see which application is using the Java Debug Wire Protocol.
If you are still unable to identify the app using the cf command steps, try the following process to correlate the buildpack that is presenting the Java Debug Wire Protocol to the container runtime:
# ps -ef | grep jdwp 2000 246798 246701 0 Jun17 ? 00:57:03 /home/vcap/app/.java-buildpack/open_jdk_jre/bin/java -agentpath:/home/vcap/app/.java-buildpack/open_jdk_jre/bin/jvmkill-1.17.0 .... truncated ... -agentlib:jdwp=transport=dt_socket,server=y,address=8000
ps to identify the container ID# ps -ef | grep 246701
root 246701 235192 0 Jun17 ? 00:00:01 /var/vcap/packages/guardian/bin/dadoo -runc-root /run/containerd/runc/garden exec /var/vcap/packages/runc/bin/runc /var/vcap/data/garden/depot/16ea471e-9fc0-449f-6133-8f0e/processes/c2602852-114f-4714-5574-0f7a0be99931 16ea471e-9fc0-449f-6133-8f0e
2000 246798 246701 0 Jun17 ? 00:57:03 /home/vcap/app/.java-buildpack/open_jdk_jre/bin/java -agentpath:/home/vcap/app/.java-buildpack/open_jdk_jre/bin/jvmkill-1.17.0 ... truncated ... -agentlib:jdwp=transport=dt_socket,server=y,address=8000
root 2210303 2189977 0 18:07 pts/0 00:00:00 grep --color=auto 246701
16ea471e-9fc0-449f-6133-8f0e is the Application container ID# cfdot actual-lrps | jq '{org: .metric_tags.organization_name, app_ame: .metric_tags.app_name, guid: .instance_guid} | join (",")' | sort | grep 16ea471e-9fc0-449f-6133-8f0e