A more intelligent approach to security