High voltage DC transmission works fine for this problem. All of the engineering challenges have been credibly worked out and priced (https://en.wikipedia.org/wiki/Desertec). The main problems with this approach are political, in that it requires massive cooperation between many countries over very long time scales (decades).
Why is there a security risk with putting solar in the desert? It seems like a relatively easy to secure location, and solar cells are hardly high value-density targets for theft or vandalism.