What we need is a regulatory agency staffed with programmers.  Any deep-learning generated code that any party wants to connect to a machine that will interact with humans or connect to a larger network of any size would need to internally evaluate that code and determine exactly what it does in every way -- reverse engineer its evolved functions and entirely document them, line by line and across those lines.  Then the regulatory agency goes over that submitted code and the analysis of it and either confirms or refutes it.  If the party understands what the code does, it is fixed and locked to prevent further modification by either humans or itself, and it is deemed as safe by the agency for use, then it can be utilized out-in-the-wild. If we don't do this, there is certainty eventual catastrophe will occur.