Dogs may be man’s best friend—but new research shows they can also be deliberately sneaky