Timo is correct. "What are you up to?" is often a casual greeting or question between friends that means "What are you doing right now/lately?" and/or "What are your (immediate) plans?" Sometimes it's regarded as general, similar to "How's it going?": "Hey, there. What're you up to?" "Not much. You?"
If an authority figure (police, security guard, etc.) asks, it is usually a direct question because they suspect you are somewhere you shouldn't be or may be doing something wrong. Saying that someone is "up to something" means they're planning or doing some kind of mischief.