1. A method comprising: an autonomous system performing a code-integrity-validation process on a static-code module of the autonomous system, wherein the static-code module comprises static code, wherein performing the code-integrity-validation process on the static-code module comprises determining whether the static code of the static-code module has or has not been modified; the autonomous system performing a behavior-integrity-validation process on a dynamic-code module of the autonomous system, wherein performing the behavior-integrity-validation process on the dynamic-code module comprises: generating an encrypted-and-verified test vector at least in part by verifying a signature of an encrypted-and-signed test vector; generating a decrypted-and-verified test vector at least in part by decrypting the encrypted-and-verified test vector; and determining whether an actual output of the dynamic-code module is or is not within a range of stored acceptable outputs for the decrypted-and-verified test vector; and responsive to both (i) determining that the actual output of the dynamic-code module is within the range of stored acceptable outputs for the decrypted-and-verified test vector and (ii) determining that the static code of the static-code module has not been modified, permitting continued autonomous operation of the autonomous system, and otherwise responsively disabling autonomous operation of the autonomous system.