Security and Cryptography
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationSecurity and Cryptography

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 30th, 2009, 12:46 AM
m4rk4s m4rk4s is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2009
Posts: 2 m4rk4s User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 44 sec
Reputation Power: 0
Crypto Protocol Question - Securely submitting high scores from flash games?

Hello,

I am looking to build a high score system for flash games, however I am not sure how to verify that the scores sent from the game to the server actually came from the game.

My first idea was just to send the score, and also a hash of the score from some sort of secret function. However, the problem is that the game files can be decompiled, and then people could find the secret function and send fake scores and fake hashes using it.

Is there any sort of algorithm or protocol which will work to verify that the score came from an unmodified game, in the scenario where we assume that the server is secure but the game can be decompiled and any sort of password or function inside the game can be found out?

It seems impossible to me, but there are some surprising algorithms in crypto so I don't know

Reply With Quote
  #2  
Old June 30th, 2009, 03:02 AM
mah$us mah$us is online now
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2009
Posts: 62 mah$us User rank is Sergeant (500 - 2000 Reputation Level)mah$us User rank is Sergeant (500 - 2000 Reputation Level)mah$us User rank is Sergeant (500 - 2000 Reputation Level)mah$us User rank is Sergeant (500 - 2000 Reputation Level)mah$us User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 5 h 7 m 33 sec
Reputation Power: 19
Quote:
Originally Posted by m4rk4s
It seems impossible to me ...
If you think about it, this is a variant of the DRM problem. I don't know whether it has been proven to be impossible, but having thought a lot about this type of "anti-counterfeit" problem, I consider that it is practically impossible. And this seems to be the consensus among the security gurus.

Of course, you can always try "dodges" to make the cheater's job more difficult, for certain types of cheating. To pick an extreme example: a score would be accompanied by a record of all of the player inputs during the game. This record could then be analyzed for "reasonableness". Of course, this would not prevent cheating, but it would make a bit more work for the cheaters.

If you take some time, maybe you can think of more clever and more practical tricks that could work within your constraints.

Because (IMO) preventing cheating is impossible, my thoughts have focused on 1) adding to the adversary's cost, 2) making counterfeits more detectable, and 3) benefit denial - arranging the system so that a counterfeit doesn't pay off.

Reply With Quote
  #3  
Old June 30th, 2009, 05:54 AM
m4rk4s m4rk4s is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2009
Posts: 2 m4rk4s User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 44 sec
Reputation Power: 0
ahh I didn't think about it from the DRM angle, that is interesting.

I will probably just try to create more work for the cheaters

Thanks for the reply and helpful suggestions.

Reply With Quote
  #4  
Old July 1st, 2009, 02:08 AM
fishtoprecords's Avatar
fishtoprecords fishtoprecords is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Sep 2007
Location: outside Washington DC
Posts: 2,152 fishtoprecords User rank is General 22nd Grade (Above 100000 Reputation Level)fishtoprecords User rank is General 22nd Grade (Above 100000 Reputation Level)fishtoprecords User rank is General 22nd Grade (Above 100000 Reputation Level)fishtoprecords User rank is General 22nd Grade (Above 100000 Reputation Level)fishtoprecords User rank is General 22nd Grade (Above 100000 Reputation Level)fishtoprecords User rank is General 22nd Grade (Above 100000 Reputation Level)fishtoprecords User rank is General 22nd Grade (Above 100000 Reputation Level)fishtoprecords User rank is General 22nd Grade (Above 100000 Reputation Level)fishtoprecords User rank is General 22nd Grade (Above 100000 Reputation Level)fishtoprecords User rank is General 22nd Grade (Above 100000 Reputation Level)fishtoprecords User rank is General 22nd Grade (Above 100000 Reputation Level)fishtoprecords User rank is General 22nd Grade (Above 100000 Reputation Level)fishtoprecords User rank is General 22nd Grade (Above 100000 Reputation Level)fishtoprecords User rank is General 22nd Grade (Above 100000 Reputation Level)fishtoprecords User rank is General 22nd Grade (Above 100000 Reputation Level)fishtoprecords User rank is General 22nd Grade (Above 100000 Reputation Level)  Folding Points: 663073 Folding Title: Super Ultimate Folder - Level 2Folding Points: 663073 Folding Title: Super Ultimate Folder - Level 2Folding Points: 663073 Folding Title: Super Ultimate Folder - Level 2Folding Points: 663073 Folding Title: Super Ultimate Folder - Level 2Folding Points: 663073 Folding Title: Super Ultimate Folder - Level 2Folding Points: 663073 Folding Title: Super Ultimate Folder - Level 2Folding Points: 663073 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 3 Weeks 1 Day 23 h 20 m 39 sec
Reputation Power: 2424
Quote:
Originally Posted by m4rk4s
I am looking to build a high score system for flash games, however I am not sure how to verify that the scores sent from the game to the server actually came from the game.

Nearly all security, protocols, etc. are about moving data from one secure source to another over the evil internet. They are not about moving data from a hacked system.

If you seriously want to keep the security model, you have to trust the source of the data. In this case, you would have to compute the score on a trusted server (i.e. your server) based on data from a possibly hacked client (the gamer's computer). Its not clear you can do this, but you probably could make it too expensive to hack, but it would be a fair amount of work for you to design and implement.

You clearly can't just have the hacked client computer say @m4rk4s killed 478 bad guys.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationSecurity and Cryptography > Crypto Protocol Question - Securely submitting high scores from flash games?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
Stay green...Green IT