The old idea of job security: who you work for. Get on with a good employer and you are set. They’ll take care of you.
The new reality of job security: what you are known for. Develop a reputation within and beyond your company that puts you in demand. While this certainly involves doing great work, it also means developing a strong message, a brand, that communicates your value proposition.