 Physical attack patterns are targeted at the code itself.These are things such as SQL injection attacks, buffer overflows, race conditions, and some of the more common forms of attacks that have become popular in the news.External attack patterns include attacks such as trojan horse attacks, viruses, and worms.