dark horse

A dark horse candidate is a little-known politician who emerges to win a primary election and capture his party’s nomination.

The term is derived from an unknown horse winning a race and was first used by Benjamin Disraeli in the novel, The Young Duke.