After returning from the United Kingdom in 1968, Sharafuddin joined the government as a public servant, and was attached to the Selangor State Secretariat under the administration of Menteri Besar Harun Idris. He served in the Kuala Lumpur District Office and Kuala Lumpur police department.[1][2]