Intelligence-Driven Defense Supercharged with In-Memory Computing