The purpose of this repository is to provide a simple example of TSAR authentication using Rust.
This example uses very basic obfuscation and encryption. Make sure to implement further security measures for your production software.
- Code-flow obfuscation (via goldberg)
- String literal encryption (via goldberg)
- Integer literal obfuscation (via goldberg)
- Linux anti-analysis (via debugoff)
[profile.release]
stack-protector = true
strip = "symbols"
panic = "abort"
opt-level = 3
debug = false
lto = true
cfi = true
If you wish to follow this as an example implementation for TSAR, make sure to add extra security measures on top of the ones used by this example. While this example will give you a strong base which will prevent most average reverse-engineering attempts, it still has room for improvement.
TSAR is not responsible for the security of your client-side application, therefore we do not have any specific recommendations for security outside of the ones already listed above.