2020-04-17

検出不可能なゲームのチートが発表、今後のオンラインゲームのデザインはこのチートを前提に設計しなければならない

PCILeechというソフトウェアスタックがある。

ufrisk/pcileech: Direct Memory Access (DMA) Attack Software

これはPICeデバイスを使ってターゲットコンピューターのメモリをDMAで読み取るためのPCIeデバイスのFPGAの実装とその操作のための一連のソフトウェア群だ。

原理は簡単だ。ターゲットコンピューターのPCIeスロットにつないだPCIeデバイスからDMAをするだけ。これによりターゲットコンピューターのメモリ領域を読み取ることができる上、ターゲットコンピューターからは検出不可能だ。なぜならばDMAはCPUを介さずに行われる上、ターゲットコンピューターにカーネルスペース/ユーザースペースともに追加のコード実行を必要としないからだ。

PCILeechを作って作られたゲームのチートに、CSL:GOのチートがある。これはマップ上のどこにプレイヤーがいるかを表示するチートだ。

pcileech-webradar/readme.md at master · EngineOwningSoftware/pcileech-webradar

原理上、このチートはターゲットコンピューターからは検出不可能だ。したがっていかなるDRMであろうとも役に立たない。難読化をして多少チートの開発を嫌がらせすることはできるかもしれないが、所詮その程度だ。もはやゲームにおいてメモリは常に読まれるものと考えなければならない。

このチートに抗うのは無意味だ。したがってこれからのオンラインゲームはローカル環境でのメモリが読まれることを前提に設計しなければならない。CS:GOのようなオンラインFPSゲームでは、全プレイヤーの位置は公開すべきだろう。すなわちこのようなチートの意味をなくすのだ。オンラインポーカーのようなゲームでは、ローカルに秘密情報を保持しない実装にしなければならない。秘密情報については中央の権威サーバーのみが処理するか、メンタルポーカーのアルゴリズムを使う。オンラインFPSも中央の権威サーバーによる実装もできるが、それはGoogle Stadiaのような入力をサーバーに送信して映像をストリーミング再生するだけのような実装になるだろう。

この仕組みを使ってメモリに書き込む場合は検出可能だろう。というのも連続していない任意箇所のメモリに対してアトミックに書き込むことはできないので、ゲーム状態を重複して複数のメモリ箇所に保持したり常時チェックサム計算などの対策で、メモリ改変を検出できるはずだ。

また、自分のプログラムが全メモリアクセスを専有している場合は、メモリ帯域を常時使い切ることにより、メモリ帯域に変化が生じればそれはDMAアクセスが行われたと考えていいだろう。問題はPCILeech以外の各種デバイスかもしれず、またIntel MEやAMD PSPのような邪悪で不自由なバイナリブロブのファームウェアによるものかもしれないので、切り分けができない。そして全メモリアクセスを専有する状態ではもはやPCゲームは実装できない。

世の中から無意味で邪悪で人道上の罪であるDRMは滅ぼさなければならない。

15 comments:

Anonymous said...

>なぜならばDMAはCPUを介さずに行われる上、ターゲットコンピューターにカーネルスペース/ユーザースペースともに追加のコード実行を必要としないからだ。

 うーんと、PCIeからCPUを介さずにメモリを直接アクセスすることはもちろん可能(PCIeのリード・アクセス。これ自体をDMAとは呼びません。)なのですが、この場合使われるPCIe上のアドレスは実アドレスなので、単なる主メモリ全体のダンプではなく特定のプログラムに対するハッキング目的を持ったアクセスならば、論理アドレスを実アドレスに変換する必要性があります。MMUの変換テーブルを管理しているのはOSですから、したがって基本的にはOSにアクセスするコード実行が必要になります(変換テーブル自体もPCIeで読み取るという手もありますが複雑、かつ定期的に書き換えられると厄介)。

Anonymous said...

 と思って、一寸調べてみたら Linuxの場合は pcileech_kmd.c っていうのがターゲット上で実行するコードのソースのようですね。これをkernelスレッドとして常駐実行させておいて、PCIeを介してホストからハッキングに必要な追加コードを送り込む形かと・・・。でもそれって ps -A あたりでバレるんじゃないかと。
 また、PCIは誰も知らないかもだけど、元祖プラグアンドプレイ機器。通常はブート時にconfig応答して身元を明かすので(config応答しないと省エネのため電源を切られるとか、色々弊害が・・・)、lspci すれば怪しげな物が刺さっていることがバレるんじゃないかと・・・。
 とか調べていたら、もうこんなことやってバレてBANされたのがいるようですね。

ttps://www.elecspo.com/games/csgo-cheater-ra1f-exposes-cheating-in-csgo/

>CS:GOのようなオンラインFPSゲームでは、全プレイヤーの位置は公開すべきだろう。

 いやー、この手のゲームで身を隠してambushしているのがバレたら、このゲームが作成された背景を無視しすぎてゲームとして意味がなくなるというか、それゆえにambushを避ける様々なチート法が現れるというか・・・。

Anonymous said...

まあ、意外と基本的なことが分っていないってことかな?

Sazzad Khan Rubel said...

All the articles here are informative. It is beneficial to the newcomers. Thanks for posting such a
nice post.
Make White Background
Clipping Path
Image Masking Service

Kim McNeeley said...

Google 5 Star Rating , Wow Great... your writing is so good I got a good idea later. Thanks,

Anonymous said...

Seeking Arrangement Profile Approved
Brother Printer Troubleshooting
Icloud SMTP Server Setup
Avast Antivirus Help
Independant Call Girls in Delhi
Delhi Escort Services

Anonymous said...

www.office.com/setup
Independant Call Girls in Delhi
Brother Printer Troubleshooting
Icloud SMTP Server Setup
Avast Antivirus Help
Delhi Escort Services
Roku Official Team Contact Information

Anonymous said...

Male Enhancement Sex Pills
How Male Enhancement Pills Work?
Boundless Dating
www.norton.com/setup
Aurvedic Medicine for Male Enhancement
Natural Male Enhancement
Male Enhancement
Can't Login to POF

Unknown said...

Promote Abhi is the best Search Engine Optimization, SEO Company in Kolhapur, Maharashtra. Total SEO solution under one roof.
Not only home, but certified best interior designers in Gorakhpur are also qualified to design any space- be it home, office, restaurant, salon and all.
If you are new and don't know how to deal with Seeking Arrangement login problems, then we let you know that you have
Learn complete guide to care Dracaena compacta plant only at Birthrightforall.com, India's leading online shop for agriculture supplies in Delhi, India.
Learn about the new maurices credit card program that can help you save every time you shop at maurices! Find info on applying, logging in to pay and more!
What Is 5G? 5G is the fifth generation of cellular technology. It is designed to increase speed, reduce latency, and improve flexibility of wireless services.

Unknown said...

Promote Abhi is the best SEO company in Thane, Maharashtra, that offers complete organic SEO services for your business such as website SEO audit & keyword analysis.
The Best Online Dating Experience - Singles have more conversations on Plenty of Fish (POF) after sign Error in than any other dating app! POF is designed to help singles
Emotions Interior is one of the leading interior designing company in Gorakhpur. Their company provide a unique and creative approach to their customers.
Buy English Ivy Variegated online - Birthright's English Ivy is a common houseplant, which somewhat belies the fact that it's not particularly easy to grow
blink camera app for android Why pay more? Our store lets you in on all the best sales and discounts.Fast delivery and free shipping!
How do I get rid of Adobe software genuine integrity service Mac ? Open the Finder app on your Mac 2020 system. Click on “Go” Button.

bailbottom said...

We are Delhi based SMO Company, We offer Social Media Optimization (SMO) Services in Delhi, India at reasonable price
Emotions Interior Designer is the most trusted interior designers in Gorakhpur, India. their company provide a unique and creative approach to their customers.
Buy Aloe Vera Indoor Plant Online In India at best prices only at Birthright, India's leading online shop for agriculture supplies and garden tools.
Financeatyourtip, provide updates about the best demat account for traders all over world. Its brokerage fee is extremely feasible and this assists traders and investors
F95zone Latest Games & Updates. A visual overview of the latest new games and updates.Buy Money Plant Online in India at best prices only at Birthright, India's leading online shop.

Anonymous said...

Buy Indoor Plants Online in India - Birthright offers indoor plants for home online in India.
As a Best Graphic Design Company in India, We have a team of talented brand shapers who have the capability, passion and knowledge to deal with clients.
Get contact details and address of Renovation Services, Renovation Works firms and ... Customoised Home Renovation Services, In Delhi Ncr, Negotiable.
Use the Blink Home Monitor app to check in on what's happening at home from anywhere at any time. The app connects your home to your phone in HD video

best interior designers in gurgaon said...

One of the best interior designers in gurgaon, Delhi NCR. Renovate My Homez Interior and Architectural Design Consultancy

interior designers in delhi said...

Thanks for Sharing Information..
We, Renovate My Homez offer the best interior designers in Delhi which have deep analyzing skills in designing sector. It’s a Delhi based firm serving in all over Delhi NCR.

JacobHarman said...

As quite possibly of the biggest independent data set on the planet, Upwork is perfect as far as the ability pool. Here you can post a task offering and hold on until up-and-comers apply. From that point onward, an organization can choose a reasonable supplier. One of the benefits is that each specialist has a history of past ventures and evaluations. There is likewise an installment security highlight, which adds to the wellbeing of collaboration. This site has an alternate methodology. It vets and tests applicants that are introduced here. So the ability pool is more modest yet there are less dangers also. You glance through the records of experts and physically choose who to contact. Consultants reserve the privilege to acknowledge or deny the proposition. The site is great yet the employing system could take some time>> data engineer freelance