# AppSec: Reported vulnerability is considered as a false positive

**URL:** <https://community.dynatrace.com/t/appsec-reported-vulnerability-is-considered-as-a-false-positive/36750>\
**Category:** Troubleshooting\
**Tags:** application-security\
**Created:** [October 3, 2022, 11:06am UTC](https://community.dynatrace.com/t/appsec-reported-vulnerability-is-considered-as-a-false-positive/36750 "2022-10-03T11:06:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefanie\_pachne](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/stefanie_pachne/32/34814_2.png) [@stefanie\_pachne](https://community.dynatrace.com/u/stefanie_pachne)\
**Post date:** [October 3, 2022, 11:06am UTC](https://community.dynatrace.com/t/appsec-reported-vulnerability-is-considered-as-a-false-positive/36750/1 "2022-10-03T11:06:58Z")

</div>

```auto
This article is about using Dynatrace AppSec and dealing with reported false-positives in your applications.<br>Looking for <span>known CVEs in Dynatrace components</span>? Go to <a href="https://cve-status.dynatrace.com" target="_blank" rel="noopener noreferrer">https://cve-status.dynatrace.com</a>

```

This is a Self Service Diagnostics article of type **Full-Self-Service**.

For unexpected product issues on the Dynatrace side please submit a Support Ticket.

## Self Service Summary

| **Issue** | **Solution** | **Tasks** | **Alternative** |
| --- | --- | --- | --- |
| Reported third-party vulnerabilities for certain process groups or Kubernetes nodes are not relevant for your environment | Mute entities: They will be hidden and not taken into account for Application Security metrics or Davis Security Score | Mute\* entities via UI ([security problem](https://www.dynatrace.com/support/help/how-to-use-dynatrace/application-security/filter-third-party-vulnerabilities#mute) or its [individual items](https://www.dynatrace.com/support/help/how-to-use-dynatrace/application-security/remediation-tracking)) or API ([security problem](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/application-security/security-problems/post-problem-mute) or [individual items](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/application-security/security-problems/put-remediation-items)) | Set up fine-grained [Security-monitoring rules](https://www.dynatrace.com/support/help/how-to-use-dynatrace/application-security/define-monitoring-rules) for affected processes, e.g. based on process or host tags |

\* Available mute state changes include CONFIGURATION\_NOT\_AFFECTED, FALSE\_POSITIVE, IGNORE, OTHER, VULNERABLE\_CODE\_NOT\_IN\_USE

**The following query examples may be helpful to identify relevant processes before muting them:**

## Filter by Java version

This example shows how to filter out processes of a security problem with a Java version \< 9.

Steps to reproduce:

1. [Get all security problems](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/application-security/security-problems/get-all)
2. [For each: Get a list of “affectedEntities” (processes)](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/application-security/security-problems/get-problem)
3. [For each: Get entity (process) property “softwareTechnologies”](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/entity-v2/get-entity) and filter by version (“type”=“JAVA”)

```auto
...
"softwareTechnologies": [
  {
    "type": "JAVA"
  },
  {
    "type": "JAVA",
    "edition": "OpenJDK",
    "version": "1.8.0_312"
  },
...

```

Related Python script: [GitHub - robinwyss/spring4shell-dynatrace-export · GitHub](https://github.com/robinwyss/spring4shell-dynatrace-export)

## Filter by third-party library data

This example shows how to identify processes with a certain third-party library package name or version.

Step to reproduce: [Get entities](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/entity-v2/get-entities-list) using

1. “entitySelector” type(SOFTWARE\_COMPONENT), softwareComponentType(JAVA) and your specific criteria e.g. packageName(org.springframework.boot:spring-boot), softwareComponentFileName(spring-boot-1.5.12.RELEASE.jar), or softwareComponentShortName(spring-boot),  
and response “fields” fromRelationships.isSoftwareComponentOfPgi to retrieve affected processes.
2. previously identified Process Group Instances and response “fields” fromRelationships.isInstanceOf to retrieve affected Process Groups required for remediation.

**Notes** :

- The libraries in use by PROCESS\_GROUP\_INSTANCES are reported as SOFTWARE\_COMPONENT entities by the OneAgent.
- Possible properties of an entity of a specified type can be listed via the [entityTypes API](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/entity-v2/get-entity-type).

**Request 1** :

```auto
GET /api/v2/entities?entitySelector=type(SOFTWARE_COMPONENT),softwareComponentType(JAVA),packageName(org.springframework.boot:spring-boot)&fields=properties.packageName,properties.softwareComponentFileName,properties.softwareComponentShortName,properties.softwareComponentType,fromRelationships.isSoftwareComponentOfPgi

```

**Response** :

```auto
...
"entities": [
  {
    "entityId": "SOFTWARE_COMPONENT-x",
    "displayName": "org.springframework.boot:spring-boot:1.5.12.RELEASE",
    "properties": {
      "softwareComponentFileName": "spring-boot-1.5.12.RELEASE.jar",
      "softwareComponentType": "JAVA",
      "softwareComponentShortName": "spring-boot",
      "packageName": "org.springframework.boot:spring-boot"
    },
    "fromRelationships": {
      "isSoftwareComponentOfPgi": [
        {
          "id": "PROCESS_GROUP_INSTANCE-x",
          "type": "PROCESS_GROUP_INSTANCE"
        },
        {
          "id": "PROCESS_GROUP_INSTANCE-x",
          "type": "PROCESS_GROUP_INSTANCE"
        }
      ]
    }
  }
]
...

```

**Request 2** :

```auto
GET /api/v2/entities/PROCESS_GROUP_INSTANCE-x?fields=fromRelationships.isInstanceOf

```

**Response** :

```auto
{
  "entityId": "PROCESS_GROUP_INSTANCE-x",
  "type": "PROCESS_GROUP_INSTANCE",
  "displayName": "NAME",
  "fromRelationships": {
    "isInstanceOf": [
      {
        "id": "PROCESS_GROUP-x",
        "type": "PROCESS_GROUP"
      }
    ]
  }
}

```

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [January 10, 2023, 2:56pm UTC](https://community.dynatrace.com/t/appsec-reported-vulnerability-is-considered-as-a-false-positive/36750/2 "2023-01-10T14:56:38Z")

</div>

Thank you&nbsp;[@stefanie\_pachne](https://community.dynatrace.com/user/28409)&nbsp;for sharing this 🙂
