Odd request

Status
Not open for further replies.
Hi guys,

Earlier today my boss asked me to write a macro for a visio project we're working on, but he wants it written in such a way that the user won't be prompted to enable macros (i.e. the macro will allow itself to run). Is there a way to do this without doing something that'll leave the user really vulnerable to viruses? The only way I can think of doing this (without using certificates) is by getting them to run it once and then do something really dodgy, like editing their registry settings to alter their security settings. That's just off the top of my head, and I'm not sure if that's even possible -- I hope it isn't, because that'd be an absolutely gigantic flaw for virus protection.

So basically, can anyone think of a way to do this without totally buggering up our client's protection against viruses? Also, to give this thread some legs, has anyone else been asked to do similarly weird things by their boss?

Cheers
 
Suicidolt":t5o1cw4c said:
I think you can use a macro to enable macros by default, but it does have to be given permission the first time, and it is dodgy.

I've been giving it a look over, and yeah, it can be done, but only by doing what I was considering above: you've got to essentially change the value of the security key in the user's registry to get it to trust all further macros. That's just nuts. That's leaving the user completely open to any malicious macro if s/he crashes the application before it gets a chance to reset that key's value.

I'm not going to do that. I'm going to have a chat with my boss and see if we can think of a less crazy solution. I'm also going to ask him to stop asking me to essentially write the base code for macro viruses. ;)
 

ShuggyCoUk

Ars Legatus Legionis
10,387
Subscriptor++
Create your own and install it with the minimum possible permissions[1] at the client.

Obviously it requires adding you guys as a trust source, which isn't great, I doubt your company[2] will control the private keys inherent in such a cert very well, but should be zero cost...

1. Disclaimer, I am no authority on this. If there isn't a way to limit the trust accorded to signatures from your cert to a level commensurate with the access you actually need then this becomes bad. Get advice on this from a security specialist first.
2. no disrespect to you, you clearly care about doing it right
 

ronelson

Ars Legatus Legionis
21,399
Subscriptor
Alright I finally looked at Visio. You don't need certs, though that is certainly the best option. Go to Tools -> Trust Center -> Trust Locations -> Add New Location. Put the path of the directory housing the file that will be loaded (optionally check "Subfolders of this location are also trusted."). It should now load and run the macros without any notifications. No cert required.

Note: Visio Pro 2007, Windows edition. Directions may vary for other editions.

The tricky part is going to be getting people to load it off the network instead of emailing it around and creating 20 copies. Though you *could* add the outlook cache as a trusted location, I would not recommend it.
 
Status
Not open for further replies.