- Script-/Bot-Erkennung mindestens beim Login (-> z.B. reCAPTCHA v2 (Invisible reCAPTCHA badge), aber bitte nicht die nervige Ich-bin-kein-Bot-Checkbox), um automatisiertes Einloggen zu erschweren.
- kurzes Session-Timeout (15 - 30 Minuten) auch bei Aktivität, um Scripte, die nach dem manuellen Login die Session aktiv halten, nutzlos zu machen.
- Zeitliche Analyse der Seitenaufrufe/Logins, um Scriptbenutzung zu erkennen und zu bestrafen.
Scripting einschränken
Um Scripting einzuschränken, könnte man ein paar Maßnahmen ergreifen:
Findet alles meine Unterstützung
Beta 3: B-K --> Killy --> LFT --> G-S-L [Demiurg / Trelaine]
Beta 4: G-S-L [Trelaine / Hofnarr]
Beta 5.1: G-S-L --> P-C [Hofnarr / Naclador]
Beta 5.2: HF
Runde 6: NoS [Natalie_Portman]
Runde 7: G-S-L --> SGN [Suppenkasper / Phrasenschwein]
Runde 8: SGN [J0ker]
Runde 9: -GC- [von_Munchhausen]
Runde 11: SGN [Hans_Sarpei]
Last-War R3: SGN [Lamertien]
Last-War R4: -TA-/-GF- [Quake]
Last-War R5: SGN/-S- [unpaid_intern]
Last-War R6: ZAP [Relaxo]
Beta 4: G-S-L [Trelaine / Hofnarr]
Beta 5.1: G-S-L --> P-C [Hofnarr / Naclador]
Beta 5.2: HF
Runde 6: NoS [Natalie_Portman]
Runde 7: G-S-L --> SGN [Suppenkasper / Phrasenschwein]
Runde 8: SGN [J0ker]
Runde 9: -GC- [von_Munchhausen]
Runde 11: SGN [Hans_Sarpei]
Last-War R3: SGN [Lamertien]
Last-War R4: -TA-/-GF- [Quake]
Last-War R5: SGN/-S- [unpaid_intern]
Last-War R6: ZAP [Relaxo]
Denke das Problem ist, dass VR zwischen Datenschutz und Sicherheit abwägen muss. LW ist ohnehin nicht GDPR konform. Da braucht man als Betreiber nicht noch Google third party obendrauf. Jedenfalls nicht ohne soliden Datenschutz-Unterbau. Ist leider alles nicht so einfach...
FYI
https://gamedev.stackexchange.com/quest ... html5-game
"Minify and Obfuscate your JS, which absolutely will make the code harder to read. You can de-minify and sort-of de-obfuscate but you can never get back the right variable and function names, nor comments.
Bake in values with a different language. In this case you can use PHP or other server side languages to handle static setup variables. If the jump distance is always supposed to be 2 spaces, normally you'd define a jump distance for the player object. Don't, handle that with PHP so that the JS source ends up with 2s plastered all over the code in a million places. This has the happy additional side effect of being able to speed up your JS too.
With some practice, you'll get proficient with the mix and you can even custom-build your JS for each player. Which is another way to prevent cheating. If each player's code is different somehow, then it is harder to write a cheat that can be part of a toolkit.
Finally, you can checksum the source based on the player's identity. Say their IP address and/or username. You know what the player-specific version of the JS will be, you can bake in a checksum and require that it be the same on the other end. Easy to disable like any client-side JS, but once again makes it a little harder to make a toolkit."
"Mitigate rough clients: Serve over HTTPS, use Cross-origin resource sharing (CORS), allow only the same origin, use subresource integrity. I suggest to implement a service worker to enforce it on all requests, which will also mean that the game won't work by simply moving it to HTTP (because without HTTPS there is no service worker, the server worker is doing the client part of CORS and the server expects CORS), and if they serve over HTTPS it won't work because the server will reject the other origin.
Mitigate scripting: Use authentication and require a token to do any action. Each update cycle the server should give the client a new token, and the token is consumed by doing whatever it does... doing anything requires a valid token, the token is always changing, and thus not viable to guess, and if the client sends the same token twice or sends a wrong token the server knows that something is up. For extra protection: create a Message authentication code (MAC) of the token with a secret key and add it to te cookie. Modifying the cookie will kill the session (and they need to guess the key), and modifying the token will make the MAC check fail.
Mitigate code modifications: Aside from subresource integrity (which modern browsers will also check in runtime), keep your variables under a limited scope (using let, self executing anonymous functions, and javascript modules). Also, not rely on the DOM (the DOM is for IO only, not storage, if you need to attach attributes wrap your DOM objects and add them to wrappers). This way, whatever you on console should not be able to reach game logic (unless you exploit some browser vulnerability). You might also consider using techniques to detect developer tools (these are specific per browser, and may not work in all cases or stop working in the future... thus, this is an arms race).
Something is up? Did the session break? Kick the player from the current match, request to login again. Consider a captcha... that also has the benefit of telling the user that "we know something rare is going on" (it was not a random server failure), and yes, that is a form of mitigation. Oh, and do not foget to log these. You need to be able to verify why they happened, both to prevent false postives and to answer support tickets."
https://gamedev.stackexchange.com/quest ... html5-game
"Minify and Obfuscate your JS, which absolutely will make the code harder to read. You can de-minify and sort-of de-obfuscate but you can never get back the right variable and function names, nor comments.
Bake in values with a different language. In this case you can use PHP or other server side languages to handle static setup variables. If the jump distance is always supposed to be 2 spaces, normally you'd define a jump distance for the player object. Don't, handle that with PHP so that the JS source ends up with 2s plastered all over the code in a million places. This has the happy additional side effect of being able to speed up your JS too.
With some practice, you'll get proficient with the mix and you can even custom-build your JS for each player. Which is another way to prevent cheating. If each player's code is different somehow, then it is harder to write a cheat that can be part of a toolkit.
Finally, you can checksum the source based on the player's identity. Say their IP address and/or username. You know what the player-specific version of the JS will be, you can bake in a checksum and require that it be the same on the other end. Easy to disable like any client-side JS, but once again makes it a little harder to make a toolkit."
"Mitigate rough clients: Serve over HTTPS, use Cross-origin resource sharing (CORS), allow only the same origin, use subresource integrity. I suggest to implement a service worker to enforce it on all requests, which will also mean that the game won't work by simply moving it to HTTP (because without HTTPS there is no service worker, the server worker is doing the client part of CORS and the server expects CORS), and if they serve over HTTPS it won't work because the server will reject the other origin.
Mitigate scripting: Use authentication and require a token to do any action. Each update cycle the server should give the client a new token, and the token is consumed by doing whatever it does... doing anything requires a valid token, the token is always changing, and thus not viable to guess, and if the client sends the same token twice or sends a wrong token the server knows that something is up. For extra protection: create a Message authentication code (MAC) of the token with a secret key and add it to te cookie. Modifying the cookie will kill the session (and they need to guess the key), and modifying the token will make the MAC check fail.
Mitigate code modifications: Aside from subresource integrity (which modern browsers will also check in runtime), keep your variables under a limited scope (using let, self executing anonymous functions, and javascript modules). Also, not rely on the DOM (the DOM is for IO only, not storage, if you need to attach attributes wrap your DOM objects and add them to wrappers). This way, whatever you on console should not be able to reach game logic (unless you exploit some browser vulnerability). You might also consider using techniques to detect developer tools (these are specific per browser, and may not work in all cases or stop working in the future... thus, this is an arms race).
Something is up? Did the session break? Kick the player from the current match, request to login again. Consider a captcha... that also has the benefit of telling the user that "we know something rare is going on" (it was not a random server failure), and yes, that is a form of mitigation. Oh, and do not foget to log these. You need to be able to verify why they happened, both to prevent false postives and to answer support tickets."

Das dürfte den LWM zerschießen bzw. die Weiterentwicklung extrem erschweren. Nicht, dass das unbedingt ein Faktor sein muss. Just saying...028 hat geschrieben: 7. Dez 2020, 01:35 FYI
https://gamedev.stackexchange.com/quest ... html5-game
"Minify and Obfuscate your JS, which absolutely will make the code harder to read. You can de-minify and sort-of de-obfuscate but you can never get back the right variable and function names, nor comments.
Bake in values with a different language. In this case you can use PHP or other server side languages to handle static setup variables. If the jump distance is always supposed to be 2 spaces, normally you'd define a jump distance for the player object. Don't, handle that with PHP so that the JS source ends up with 2s plastered all over the code in a million places. This has the happy additional side effect of being able to speed up your JS too.
With some practice, you'll get proficient with the mix and you can even custom-build your JS for each player. Which is another way to prevent cheating. If each player's code is different somehow, then it is harder to write a cheat that can be part of a toolkit.
Finally, you can checksum the source based on the player's identity. Say their IP address and/or username. You know what the player-specific version of the JS will be, you can bake in a checksum and require that it be the same on the other end. Easy to disable like any client-side JS, but once again makes it a little harder to make a toolkit."
"Mitigate rough clients: Serve over HTTPS, use Cross-origin resource sharing (CORS), allow only the same origin, use subresource integrity. I suggest to implement a service worker to enforce it on all requests, which will also mean that the game won't work by simply moving it to HTTP (because without HTTPS there is no service worker, the server worker is doing the client part of CORS and the server expects CORS), and if they serve over HTTPS it won't work because the server will reject the other origin.
Mitigate scripting: Use authentication and require a token to do any action. Each update cycle the server should give the client a new token, and the token is consumed by doing whatever it does... doing anything requires a valid token, the token is always changing, and thus not viable to guess, and if the client sends the same token twice or sends a wrong token the server knows that something is up. For extra protection: create a Message authentication code (MAC) of the token with a secret key and add it to te cookie. Modifying the cookie will kill the session (and they need to guess the key), and modifying the token will make the MAC check fail.
Mitigate code modifications: Aside from subresource integrity (which modern browsers will also check in runtime), keep your variables under a limited scope (using let, self executing anonymous functions, and javascript modules). Also, not rely on the DOM (the DOM is for IO only, not storage, if you need to attach attributes wrap your DOM objects and add them to wrappers). This way, whatever you on console should not be able to reach game logic (unless you exploit some browser vulnerability). You might also consider using techniques to detect developer tools (these are specific per browser, and may not work in all cases or stop working in the future... thus, this is an arms race).
Something is up? Did the session break? Kick the player from the current match, request to login again. Consider a captcha... that also has the benefit of telling the user that "we know something rare is going on" (it was not a random server failure), and yes, that is a form of mitigation. Oh, and do not foget to log these. You need to be able to verify why they happened, both to prevent false postives and to answer support tickets."
Im Prinzip gerade gut für "uns", dass VR kein Build-Tool benutzt und einfach den Source-Code ausliefert.
So ich will auch mal meien meinung dazu beitragen. Scripting sollte definitiv verboten werden und zumindest mir ist dabei verhältnismässig einfach aufgefallen, das definitiv gescripted wird. Denn:
Ich habe gestern auf der suche nach potentiellen Ziellen alleine 4 Xianer gefunden, die
1. annähernd die gleichen punktzahlen haben
2. die gleichen forschungen haben
3. dieselben gebäudestufen haben
4. alle paar Minuten ihre ressourcen auf 2k heruntersaven
5. bei einem ungetarnten Angriff auf diese Spieler jeweils einige wenige hundert ressourcen sich farmen lassen
Nachts um kurz vor 3 hatten diese Spiler auf ihren mains dan anscheinend jeweils alle ihre savehandel abgebrochen und es lagen kurzzeitig von allen ressourcen 30-50k herum(bis auf den beeich der 100er aber auch wieder bei allen spielern gleich viel)
a.)Diese accounts sind entweder von einem Spieler als Multis angelegt und man sollte durch handelsbewegungen oder halt gezieltes abfarmen der vielen ressourcen einfachherausfinden, wer dahintersteckt und diesen spieler dann auch sperren.
b.)Oder diese accounts sind von VR angelegt um die Spielerzahlen zu schönigen, bzw Farmmöglichkeiten zu schaffen. wenn dem so sein sollte, sollten diese accounts dann aber nicht darauf verzichten überhaupt zu saven??
Eine Stellungnahme wäre wunschenswert.
Ich habe gestern auf der suche nach potentiellen Ziellen alleine 4 Xianer gefunden, die
1. annähernd die gleichen punktzahlen haben
2. die gleichen forschungen haben
3. dieselben gebäudestufen haben
4. alle paar Minuten ihre ressourcen auf 2k heruntersaven
5. bei einem ungetarnten Angriff auf diese Spieler jeweils einige wenige hundert ressourcen sich farmen lassen
Nachts um kurz vor 3 hatten diese Spiler auf ihren mains dan anscheinend jeweils alle ihre savehandel abgebrochen und es lagen kurzzeitig von allen ressourcen 30-50k herum(bis auf den beeich der 100er aber auch wieder bei allen spielern gleich viel)
a.)Diese accounts sind entweder von einem Spieler als Multis angelegt und man sollte durch handelsbewegungen oder halt gezieltes abfarmen der vielen ressourcen einfachherausfinden, wer dahintersteckt und diesen spieler dann auch sperren.
b.)Oder diese accounts sind von VR angelegt um die Spielerzahlen zu schönigen, bzw Farmmöglichkeiten zu schaffen. wenn dem so sein sollte, sollten diese accounts dann aber nicht darauf verzichten überhaupt zu saven??
Eine Stellungnahme wäre wunschenswert.






