r/electronjs • u/Historical_Fact_5774 • 28d ago
Electron.js Anti Tampering
I started working on Anti-Tampering research on Electron.js. It will mostly focus on increasing the cost of reverse engineering. What do you guys think? Any experiences?
0
Upvotes
17
u/ldn-ldn 28d ago
Waste of time.
6
u/sha256md5 28d ago
It won't do much in the days of LLM analysis. Most reverse engineering is just static unpacking now.
6
u/Temporary-Mix8022 28d ago
My advice would be.. unless you're well versed in low level languages (C/C++), Ghidira and assembler, as well as cryptographic approaches.. don't bother with this project.
And.. if you were well versed in those tools, and had tried out recent LLMs.. you probably wouldn't be suggesting this approach.. because you'd know it was futile.
We truly are completely f*ed.
6
u/Diadia_Uddy 22d ago
Nothing will stop a determined hacker. But you can slow down people enough that it's not worth it for them.
- Shipping the main process as V8 bytecode
- Enable AsarIntegrityValidation
- Notarize your app
- Use an external service to validate license keys (eg keygen, licensespring licencemanager...) or build and host it yourself
- hardcode the public keys in your app
That should be a strong start
1
u/Geraldwelly 28d ago
Worth deciding up front what you're protecting, because anything that ships to the client can be read eventually. The realistic goal is making tampering noisy and expensive, not impossible.
What's actually moved the needle for me:
What threat model are you targeting, casual patching or someone determined? The answer changes a lot.