Does any one have any usefull methods (or know of any)of analysing an assembly to produce a modified version with the required declarative attributes for maximum security.

i.e. An assembly that uses file IO will be applied with the required File i/o attribute...

Any thoughts on this...