Mohamed Hanipa bin Maidin (Jawi: محمد حنيفة بن ميدين) is a Malaysian politician who served as the Deputy Minister in the Prime Minister's Department in charge of legal affairs in the Pakatan Harapan (PH) administration under former Prime Minister Mahathir Mohamad and former Minister Liew Vui Keong from July 2018 to the collapse of the PH administration in February 2020 and the Member of Parliament (MP) for Sepang from May 2013 to November 2022. He is a member of the National Trust Party (AMANAH), a component party of the PH opposition coalition. and was a member of Malaysian Islamic Party (PAS). He and other progressive PAS leaders referred to as the G18 were ousted at the 2015 PAS Muktamar. This led them to launch Gerakan Harapan Baru (GHB), which took over the dormant Malaysian Workers'