National security adviser
A national security adviser serves as the chief adviser to a national government on matters of security. He or she is not usually a member of the government's cabinet but is usually a member of various military or security councils.
...
Wikipedia