Multifaceted Characterization and Enhancement of Machine Learning Security