I'm not going to try to offer a
complete answer here. Rather, I'd like to point you to the most-basic refuge of the engineering practitioner...
research of the present state-of-the-art.
"How did Microsoft do it, when they engineered 'Authenticode?'"
"How did the United States Department of Defense do it, when they explored 'SELinux?'"
When you are a student, it is very easy to imagine that you are the
first group of people who have ever considered a particular problem. (It is especially easy to think that way when you've just been given an important homework assignment!) But the simple reality is that ... you
aren't.
... and that's the most important
lesson of all!
No matter who you are, when you are, or where you are, you are not "the first!"
"Dictum Ne Agas:
Do not do a thing already done."
A great deal of "original" research actually consists of discovering, and then assimilating and somehow 'making your own,'
what has already 'been done.'
Google is a marvelous thing, indeed. (And, BTW, if you suppose that I am making a joke at your expense, you are mistaken.
)