中文导读(机器翻译 · 节选 · 完整内容见下方英文原文)

每个“保护你的代码”产品都必须诚实地回答一个问题:root呢?这部分是密码术的答案。 磁盘上的图像是密文。但是一旦你的应用程序运行,它的明文就在容器的内存中,主机上的root可以读取该内存。没有用户空间技巧可以改变这一点。只有两件事真正做到了: 密码中的其他一切都会增加成本。我们宁愿直截了当地说,也不愿卖给你一把不存在的锁。 在加密之前,转换会在应用程序的副本上运行。然后,内存转储会恢复编译后的工件,而不是可读的源代码,这在攻击者拥有擅长重建源代码的AI工具时非常重要。该仓库包含一个Python字节码配方(scripts/compile-Python.sh);在Nuitka中用本机代码进行交换只需要一行更改。scripts/demo-compiled.sh显示了差异。 tmpfs部署/。 这可以阻止容器内或非root的攻击者。它不会停止主机上的root。 加载器写入.cryptship-manifest.json,并将cryptship许可证ID和cryptship客户暴露给您的应用程序。如果实例泄漏,它会追溯到其被许可方。这是一种威慑,而不是一把锁:一个坚定的攻击者可以剥夺它。 docker save和tar。在线提供商,撤销是真实和即时的。 如果您从事机密计算工作并想提供帮助,我们很乐意收到您的来信。

英文原文

Every "protect your code" product has to answer one question honestly: what about root? This part is cryptship's answer.

The image on disk is ciphertext. But once your app runs, its plaintext is in the container's memory, and root on the host can read that memory. No user-space trick changes that. Only two things truly do:

Everything else in cryptship raises the cost. We would rather say that plainly than sell you a lock that is not there.

cryptship pack --transform-cmd "<your toolchain>" …

The transform runs over a copy of your app before it is encrypted. A memory dump then recovers compiled artifacts instead of readable source, which matters a lot when the attacker has AI tools that are good at reconstructing source. The repo includes a Python-bytecode recipe (scripts/compile-python.sh); swapping in Nuitka for native code is a one-line change. scripts/demo-compiled.sh shows the difference.

tmpfs deploy/. That stops an attacker who is inside the container or not root. It does not stop root on the host.

The loader writes .cryptship-manifest.json and exposes CRYPTSHIP_LICENSE_ID and CRYPTSHIP_CUSTOMER to your app. If an instance leaks, it traces back to its licensee. That is a deterrent, not a lock: a determined attacker can strip it.

docker save and tar. online provider, revocation is real and immediate. If you work on confidential computing and want to help, we would love to hear from you.

原文来源:dev.to