The full list is long, but here are a couple of examples to show the pattern. Ness can be unlocked by playing five matches in Brawl, reflecting ten projectiles, or finding him in the Subspace Emissary. Marth comes from playing ten brawls, finishing Classic mode on any difficulty, or progressing through Subspace.
There are plenty more beyond those two. The official Super Smash Bros. Dojo site lists the secret fighters along with the exact conditions for each, which is far more reliable than a half-remembered forum post. For anything you're unsure about, www.smashbros.com is the place to check.