What are the remedies the US Military has based on the alleged leaked texts

I'm not interested in politics. Just want to know like, assuming what's been reported is true, what the remedies, procedures, or consequences are available for something like this. It seems like a huge deal and I just wonder what specific things are available to rectify the harm, and potentially preventing something like this from happening again. I'm only interested in the rules/mechanisms, not politics. Thanks!