# Real User API Security

**URL:** <https://community.dynatrace.com/t/real-user-api-security/32470>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic\
**Created:** [August 23, 2021, 8:12am UTC](https://community.dynatrace.com/t/real-user-api-security/32470 "2021-08-23T08:12:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthias-Versio](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/matthias-versio/32/13286_2.png) [@Matthias-Versio](https://community.dynatrace.com/u/Matthias-Versio)\
**Post date:** [August 23, 2021, 8:12am UTC](https://community.dynatrace.com/t/real-user-api-security/32470/1 "2021-08-23T08:12:54Z")

</div>

How is the abuse of the Real User Monitoring API secured?  
From my point of view, the RUM data could currently be quite easily contaminated by means of external requests.

---

<div class="post-metadata">

**Author:** ![andreas\_grabner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/andreas_grabner/32/27879_2.png) [@andreas\_grabner](https://community.dynatrace.com/u/andreas_grabner)\
**Post date:** [August 23, 2021, 3:26pm UTC](https://community.dynatrace.com/t/real-user-api-security/32470/2 "2021-08-23T15:26:21Z")

</div>

Want to add some additional context as Matthias and I initially discussed this question via email and I asked him to post it here as I didnt know the answer either:

“Which mechanisms exist in the Dynatrace RUM API to prevent any misusage or tampering, e.g: sending bogus data or modifying data that is collected?”

---

<div class="post-metadata">

**Author:** ![Philipp\_Kastner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/philipp_kastner/32/28797_2.png) [@Philipp\_Kastner](https://community.dynatrace.com/u/Philipp_Kastner)\
**Post date:** [August 24, 2021, 10:29am UTC](https://community.dynatrace.com/t/real-user-api-security/32470/3 "2021-08-24T10:29:42Z")

</div>

Hi Matthias,

thanks for reaching out. We do validate the RUM data. However, if someone simulates valid data it is in theory possible to send bogus/fake data. I believe there isn’t much we can do about it for real user monitoring of public pages.  
This is a problem also&nbsp;[other analytics solutions face](https://security.stackexchange.com/questions/106892/how-does-google-analytics-prevent-fake-data-attacks-against-an-entitys-traffic).

That said, there is always the option to only allow traffic from trusted sources or block suspicious sources on the network/firewall level.

Kind regards,

Philipp

---

<div class="post-metadata">

**Author:** ![Matthias-Versio](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/matthias-versio/32/13286_2.png) [@Matthias-Versio](https://community.dynatrace.com/u/Matthias-Versio)\
**Post date:** [August 24, 2021, 12:02pm UTC](https://community.dynatrace.com/t/real-user-api-security/32470/4 "2021-08-24T12:02:48Z")

</div>

Hello Phillip,

thank you for your timely feedback.

That’s exactly how I thought it would be.

Regards

Matthias

---

<div class="post-metadata">

**Author:** ![fstekelenburg](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/fstekelenburg/32/22029_2.png) [@fstekelenburg](https://community.dynatrace.com/u/fstekelenburg)\
**Post date:** [December 3, 2021, 9:19am UTC](https://community.dynatrace.com/t/real-user-api-security/32470/5 "2021-12-03T09:19:35Z")

</div>

Perhaps, as also suggested in the linked page, the RUM agent could pull a hash token from the server (activegate) and pass it along. And if that hash is based on the environment ID and timestamp, this could be verified upon reception of data?
