Active defense method and device, the method comprising: generating, on the basis of a service source code, and by means of compiling, a plurality of different heterogeneous versions (100); and writing, on the basis of the plurality of different heterogeneous versions, the heterogeneous versions to a plurality of devices (200).
展开▼