Secure Active and Passive Beamforming in IRS-Aided MIMO Systems