• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

A tool to kill Unity telemetry: UnityAnalyticsKiller

Joined
Aug 20, 2007
Messages
12,369 (2.72/day)
System Name Pioneer
Processor Intel i9 9900k
Motherboard ASRock Z390 Taichi
Cooling Noctua NH-D15 + A whole lotta Sunon and Corsair Maglev blower fans...
Memory G.SKILL TridentZ Series 32GB (4 x 8GB) DDR4-3200 @ 13-13-13-33-2T
Video Card(s) AMD RX 5700 XT (XFX THICC Ultra III) OC'd to 2100Mhz/1800Mhz
Storage Mushkin Pilot-E 2TB NVMe SSD w/ EKWB M.2 Heatsink
Display(s) 50" Panasonic Plasma model TC-P50S2, based on a 2010 Panasonic NeoPDP panel
Case Thermaltake Core X31
Audio Device(s) VGA HDMI->Panasonic SC-HTB20 Soundbar/Schiit Modi MB/Asgard 2 DAC/Amp to AKG Pro K7712 Headphones
Power Supply SeaSonic Prime 750W 80Plus Titanium
Mouse ROCCAT Kone EMP
Keyboard WASD CODE 104-Key w/ Cherry MX Green Keyswitches, Doubleshot Vortex PBT White Transluscent Keycaps
Software Gentoo Linux 64-bit
Hmm I recall someone at my office mentioning that they'll utilize unity for some hololens stuff. Wonder if they're aware of this.
If you have source access, it's not really an issue as the dev has to choose to turn it on.
 
Joined
Mar 4, 2005
Messages
3,255 (0.60/day)
System Name TheReactor
Processor i7 6700k @ 4.95ghz - delid
Motherboard ASUS Maximus VIII Genie z170
Cooling EK EVO NIckle/Pump, 2xBlackIce GTX 240's
Memory 32GB G.Skill 3600Mhz Cas 14
Video Card(s) PNY RTX 2080 TI - HeatKiller VI Water Block
Storage Samsung 960 EVO 500GB
Display(s) Acer Predator xb271hu - 2560x1440 @144hz
Case Corsiar 550
Audio Device(s) on board
Power Supply Antec Quattro 1000W
Mouse Logitech G502
Keyboard Corsair Gaming k70
Software Windows 10 Pro 64bit
No one mentioned PI-HOLE? If you all haven't looked into it yet I would strongly recommend it. Cheap and amazingly effective.
 
Joined
Aug 20, 2007
Messages
12,369 (2.72/day)
System Name Pioneer
Processor Intel i9 9900k
Motherboard ASRock Z390 Taichi
Cooling Noctua NH-D15 + A whole lotta Sunon and Corsair Maglev blower fans...
Memory G.SKILL TridentZ Series 32GB (4 x 8GB) DDR4-3200 @ 13-13-13-33-2T
Video Card(s) AMD RX 5700 XT (XFX THICC Ultra III) OC'd to 2100Mhz/1800Mhz
Storage Mushkin Pilot-E 2TB NVMe SSD w/ EKWB M.2 Heatsink
Display(s) 50" Panasonic Plasma model TC-P50S2, based on a 2010 Panasonic NeoPDP panel
Case Thermaltake Core X31
Audio Device(s) VGA HDMI->Panasonic SC-HTB20 Soundbar/Schiit Modi MB/Asgard 2 DAC/Amp to AKG Pro K7712 Headphones
Power Supply SeaSonic Prime 750W 80Plus Titanium
Mouse ROCCAT Kone EMP
Keyboard WASD CODE 104-Key w/ Cherry MX Green Keyswitches, Doubleshot Vortex PBT White Transluscent Keycaps
Software Gentoo Linux 64-bit
No one mentioned PI-HOLE? If you all haven't looked into it yet I would strongly recommend it. Cheap and amazingly effective.
I prefer my code to just not try this, but that's certainly a valid option. Hosts file edits work too, due to lazy code.

If wanting to go that route:

127.0.0.1 cdp.cloud.unity3d.com
127.0.0.1 config.uca.cloud.unity3d.com
127.0.0.1 perf-events.cloud.unity3d.com
127.0.0.1 prd-lender.cdp.internal.unity3d.com
127.0.0.1 thind-gke-usc.prd.data.corp.unity3d.com
127.0.0.1 thind-prd-knob.data.ie.unity3d.com
127.0.0.1 remote-config-proxy-prd.uca.cloud.unity3d.com
127.0.0.1 data-optout-service.uca.cloud.unity3d.com
127.0.0.1 redshell.io
127.0.0.1 api.redshell.io
127.0.0.1 treasuredata.com
127.0.0.1 api.treasuredata.com


Add the above to your system hosts file, and watch as Unity gets mad and stops trying.

Anyhow, new release inbound soon. Working on killing the remaining traffic. What's left isn't much, but it's certainly too much.

Crosspost from my post in TPU news about our current 1 "bug":

Here is an opt-out error log still transmitting some limited data, even with my plugin:


Relevant JSON response from Unity Server in the log:

"connect": {
"enabled": true,
"limit_user_tracking": true,
"player_opted_out": true
},
"performance": {
"enabled": true
}

You will note that though the player has clearly opted out (""player_opted_out": true") it still thinks it's ok to track performance related things (connect is enabled, as well as performance logging).

An example of a transmitted "performance metric" packet that still slips through with my plugin (bug report currently up for this)

Content-Type: application/json
X-Unity-Version: 2019.2.2f1
Content-Length: 365
JSON [m:auto]
{
"common": {
"appid": "39811e89-d29d-4faa-bb01-997f3cda24f0",
"build_guid": "15721da0da695412299517d99c2e4d2a",
"deviceid": "unknown",
"localprojectid": "5be2ef0cdad9b1344ae103b0d475456b",
"platform": "LinuxPlayer",
"platformid": 13,
"sdk_ver": "u2019.2.2f1",
"session_count": 14,
"sessionid": 8372668789457274197,
"t_since_start": 3118069,
"userid": "1ddb05956cce640a48c123610a72c706"
}
}

I believe I can address this by building yet another dummy class for UnityEngine.UnityAnalyticsModule.dll That's a big dll (relatively speaking), but I'm trying. It's slow work. Dan was tired and may have just woken up. That slows me down, too.

EDIT We have new release v0.2, testers wanted:


Unfortunately it is Unity 2019 and KSP 1.8 only. 2017 support is temporarily on hold due to this.

EDIT: Also, v0.2 still has some data leaks. Track the issue here:

 
Last edited:
Joined
Aug 20, 2007
Messages
12,369 (2.72/day)
System Name Pioneer
Processor Intel i9 9900k
Motherboard ASRock Z390 Taichi
Cooling Noctua NH-D15 + A whole lotta Sunon and Corsair Maglev blower fans...
Memory G.SKILL TridentZ Series 32GB (4 x 8GB) DDR4-3200 @ 13-13-13-33-2T
Video Card(s) AMD RX 5700 XT (XFX THICC Ultra III) OC'd to 2100Mhz/1800Mhz
Storage Mushkin Pilot-E 2TB NVMe SSD w/ EKWB M.2 Heatsink
Display(s) 50" Panasonic Plasma model TC-P50S2, based on a 2010 Panasonic NeoPDP panel
Case Thermaltake Core X31
Audio Device(s) VGA HDMI->Panasonic SC-HTB20 Soundbar/Schiit Modi MB/Asgard 2 DAC/Amp to AKG Pro K7712 Headphones
Power Supply SeaSonic Prime 750W 80Plus Titanium
Mouse ROCCAT Kone EMP
Keyboard WASD CODE 104-Key w/ Cherry MX Green Keyswitches, Doubleshot Vortex PBT White Transluscent Keycaps
Software Gentoo Linux 64-bit
I may be able to support Unity 2017 afterall.

Random related question, I don't suppose anyone knows the Appdata\LocalLow path equivalent in *nix land?

Related topic about why that's important:


EDIT: v0.3 with support for all Kerbal Space Program platforms (including 1.7) is out. It includes a config patcher for KSP. Unity 2017 support is incomplete without a config patch in many games, but it's progress.
 
Last edited:

AsRock

TPU addict
Joined
Jun 23, 2007
Messages
16,233 (3.53/day)
Location
UK\US
Processor 2500k \ 3770k
Motherboard ASRock Z68 \ Z77
Memory Samsung low profile 1600
Video Card(s) eVga GTX1060 SSC \ XFX R9 390X
Storage Intel 80Gb (SATA2) WD 250Gb \ Team SSD+Samsung Evo 250Gb+500Gb+ 2xCorsair Force+WD250GbHDD
Display(s) Samsung 1080P \ Toshiba HDTV 1080P
Case HTPC400 \ Thermaltake Armor case ( original ), With Zalman fan controller ( wattage usage ).
Audio Device(s) Yamaha RX-A820 \ Yamaha CX-830+Yamaha MX-630 Infinity RS4000 Paradigm 5SE + Tannoy Mercury F4
Power Supply PC&Power 750w \ Seasonic 750w MKII
Mouse MS intelimouse \ Logitech G700s + Steelseries Sensei wireless
Keyboard Logitech K120 \ ROCCAT MK Pro ( modded amber leds )
Benchmark Scores Meh benchmarks.
Well 7 Days to Die A18 was just released and looking at the notes it looks like they are using this so called feature.

They plan too ?, meaning they are not at this time.
The testing team painstakingly played build after build purposely playing as these archetypes and collecting XP earning data, recording and analyzing the results, and working with the game designers to re-balance. We believe the game now supports all the current play-styles. We plan to collect telemetry data in the future to help us further improve this aspect of the game.

 
Joined
Aug 20, 2007
Messages
12,369 (2.72/day)
System Name Pioneer
Processor Intel i9 9900k
Motherboard ASRock Z390 Taichi
Cooling Noctua NH-D15 + A whole lotta Sunon and Corsair Maglev blower fans...
Memory G.SKILL TridentZ Series 32GB (4 x 8GB) DDR4-3200 @ 13-13-13-33-2T
Video Card(s) AMD RX 5700 XT (XFX THICC Ultra III) OC'd to 2100Mhz/1800Mhz
Storage Mushkin Pilot-E 2TB NVMe SSD w/ EKWB M.2 Heatsink
Display(s) 50" Panasonic Plasma model TC-P50S2, based on a 2010 Panasonic NeoPDP panel
Case Thermaltake Core X31
Audio Device(s) VGA HDMI->Panasonic SC-HTB20 Soundbar/Schiit Modi MB/Asgard 2 DAC/Amp to AKG Pro K7712 Headphones
Power Supply SeaSonic Prime 750W 80Plus Titanium
Mouse ROCCAT Kone EMP
Keyboard WASD CODE 104-Key w/ Cherry MX Green Keyswitches, Doubleshot Vortex PBT White Transluscent Keycaps
Software Gentoo Linux 64-bit
Yep, I believe most Unity games will move this way rather than not.

I don't know what the motive is but I've seen it enough to know it'll probably happen. Anyhow, my dlls silence most telemetry, but in some games, some still slips through the cracks. For those, you will need to locate and patch, and write protect an "Analytics config file." To make it more fun, the location of this file varies from game to game. It's generally a JSON formatted file named "config" though, vague AF I know.

I made a patcher that handles this for KSP. Other games? Too much effort to keep up but I'll take contributions. These dlls still restrict the telemetry sent severely in even the worst case (basically just system configuration and start/quit time).

This is the state as of latest release (v0.3).
 
Top