Several people have asked what books I recommend so here is a look at some in my library. I’ve read quite a bit more but these are the books that I would recommend. Some are great reads cover-to-cover, while others are essential references.
Coding and Scripting References
Web Application Security
Reverse Engineering, Malware, and Rootkits