On cross-examination there are various ways to impeach a witness. In this day and age there can be quite a bit of information available on line, usually through social media.
But a great potential source is the witnesses record book, which is why it should always be reviewed prior to trial.
Enlistment documents. Did the person give truthful information under oath during enlistment – about criminal charges, or mental health issues, or medical issues.