If this piques your interest I recommend reading Introduction to Computer Security by Matt Bishop. It is a straight forward read that gives you a breadth overview on those topics.
A number of the chapters from this textbook were assigned as course readings when I took "Introduction to Computer Security" (15-330) at Carnegie Mellon in Fall 2020.