You're getting a false positive from your antivirus -- at no point does Comp/Con interact with word documents (nor does it even have the ability). Check your antivirus to see if it blocks clipboard copy (which is somewhat common)
If you're skeptical, you can see (and build from) the full source here: https://github.com/massif-press/compcon